Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-21T12:34:25-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=917 2011-11-21T12:34:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=53642#p53642 <![CDATA[Re: Custom s2member Pro form templates]]> Thanks for the follow-up.
oxwald wrote:
It works, thanks.
(in fact, the s2-hacks.php is not needed, and therefore creates an error). Only s2memeber-o.php needed
Best regards

Statistics: Posted by Jason Caldwell — November 21st, 2011, 12:34 pm


]]>
2011-11-21T12:24:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=53640#p53640 <![CDATA[Re: Custom s2member Pro form templates]]> (in fact, the s2-hacks.php is not needed, and therefore creates an error). Only s2memeber-o.php needed
Best regards

Statistics: Posted by oxwald — November 21st, 2011, 12:24 pm


]]>
2011-11-21T11:49:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=53637#p53637 <![CDATA[Re: Custom s2member Pro form templates]]> Thanks for the follow-up on this.

I see, this is due to the way s2Member loads it's JavaScript library. I've updated the instructions above to correct my mistake earlier. You'll need to grab the revised code sample from above, and be sure to duplicate your code into both /s2-hacks.php and into /s2member-o.php.

Please let us know if you have any further trouble.

Also, please note: these hack files are not required when/if you're translating s2Member's POT file. While it is possible to use the gettext_with_context Filter for WordPress, it's not needed when you're doing a full translation of s2Member's POT file. For further details, please check the instructions inside: /s2member/includes/translations.

Statistics: Posted by Jason Caldwell — November 21st, 2011, 11:49 am


]]>
2011-11-21T10:19:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=53627#p53627 <![CDATA[Re: Custom s2member Pro form templates]]> $translated = /* Use another/different PayPal locale that you prefer. */ "fr_FR";
uploaded in /mu-plugins/s2-hacks.php
with no success.
Did i miss something ?

Statistics: Posted by oxwald — November 21st, 2011, 10:19 am


]]>
2011-11-20T23:06:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=53559#p53559 <![CDATA[Re: Custom s2member Pro form templates]]> Thanks for the heads up on this thread.

In current releases of s2Member Pro, it is no longer possible to modify the Express Checkout button image to one of your own. This is due to strict policy requirements set forth by PayPal's terms of service.

However, s2Member Pro does make it possible the modify the language used in PayPal's Express Checkout Button image, to one of the Locale Codes supported by PayPal. You will need s2Member Pro v111105+ for this hack to work as expected. Please create this directory and files.

/wp-content/mu-plugins/s2-hacks.php
/wp-content/mu-plugins/s2member-o.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
( use the exact same code in both files please )
Code:
<?php
if 
(!function_exists ("my_s2_pro_paypal_exp_co_button_locale"))
    {
        add_filter ("gettext_with_context", "my_s2_pro_paypal_exp_co_button_locale", 10, 3);
        function my_s2_pro_paypal_exp_co_button_locale ($translated, $original, $context)
            {
                if ($context && $context === "s2member-front paypal-button-lang-code" && $original === "en_US")
                    /* See: <https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECButtonIntegration#id089QD0O0TX4__id08AH8N000HS>. */
                    $translated = /* Use another/different PayPal locale that you prefer. */ "de_DE";
                /**/
                return $translated;
            }
    }
?>
* Will force s2Member Pro to use this Express Checkout Button instead:
Code:
https://www.paypal.com/de_DE/i/btn/btn_xpressCheckout.gif
s2-hacks.zips2member-o.zip

Statistics: Posted by Jason Caldwell — November 20th, 2011, 11:06 pm


]]>
2011-11-18T04:32:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=53407#p53407 <![CDATA[Re: Custom s2member Pro form templates]]> Statistics: Posted by oxwald — November 18th, 2011, 4:32 am


]]>
2011-10-31T23:35:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=50663#p50663 <![CDATA[Re: Custom s2member Pro form templates]]>
Did you ever create a fix for customizing the "Checkout Button" in the Paypal Pro Form? I would like to change that, too, but I cannot find anything the forum on how to do so. Thanks.... Tom

Statistics: Posted by 13zebras — October 31st, 2011, 11:35 pm


]]>
2011-05-23T03:42:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=15623#p15623 <![CDATA[Re: Custom s2member Pro form templates]]> Thanks for reporting this important issue.
~ and thanks Cristián, for the heads up.

Yep, I'll see what we can do about this. It's a bit tricky because PayPal® requires their Button to be displayed whenever a Customer selects PayPal®. That's the reason it's dynamically adjusted in JavaScript. But, I'll see what we can do to make this simpler to customize.

Statistics: Posted by Jason Caldwell — May 23rd, 2011, 3:42 am


]]>
2011-05-19T20:05:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=15453#p15453 <![CDATA[Re: Custom s2member Pro form templates]]> Statistics: Posted by Cristián Lávaque — May 19th, 2011, 8:05 pm


]]>
2011-05-19T18:15:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=15446#p15446 <![CDATA[Re: Custom s2member Pro form templates]]>
In s2member-pro/includes/separates/gateways/paypal/paypal.js (or the min version), line 400.

And of course we don't want to just edit this file.

Statistics: Posted by toddz88 — May 19th, 2011, 6:15 pm


]]>
2011-05-19T17:58:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=15442#p15442 <![CDATA[Re: Custom s2member Pro form templates]]> viewtopic.php?f=4&p=15385#p15385

Let me know if that helps. :)

Statistics: Posted by Cristián Lávaque — May 19th, 2011, 5:58 pm


]]>
2011-05-19T17:52:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=15440#p15440 <![CDATA[Re: Custom s2member Pro form templates]]>
The default "Submit Form" is very generic and cold.
We want it to say "Sign Up Now" or "Purchase Now" or "Join Now".

Statistics: Posted by toddz88 — May 19th, 2011, 5:52 pm


]]>
2010-10-01T14:12:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=3670#p3670 <![CDATA[Re: Custom s2member Pro form templates]]>
I also had an issue with a customer that was confused by the select billing method. The default billing is paypal but the radio button is un-checked by default. If you click on the un-checked radio button it selects the button but the form does not change. Is there a way that the paypal radio button can be checked by default on page load?

Statistics: Posted by kenduret — October 1st, 2010, 2:12 pm


]]>
2010-09-29T14:22:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=917&p=3634#p3634 <![CDATA[Custom s2member Pro form templates]]>
So I then hacked the core plugin form file to see the results but the submit button still reads 'Submit Form' so I then hacked the .js file to see if I could get the text to change. No luck. Is there something I'm missing to modify the submit button value?

Statistics: Posted by kenduret — September 29th, 2010, 2:22 pm


]]>