Community Support Forums — WordPress® ( Users Helping Users ) — 2011-07-21T17:47:06-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14153 2011-07-21T17:47:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28878#p28878 <![CDATA[Re: Template shortcode not working]]>
scottgould wrote:
Thanks - but this won't work as %%coupon_response%% is not a PHP Variable - so when it put it in PHP, the page errors! Any ideas?
Sorry, there is no way to modify this value yet, not without modifying the source code for s2Member Pro. I'll see what we can do about this in a future release. Until then, you can search the s2Member Pro file: /s2member-pro/includes/classes/gateways/paypal/paypal-utilities.inc.php for public static function paypal_apply_coupon

See source file: viewtopic.php?f=40&t=13268&src_doc_v=110710#src_doc_line_401

Statistics: Posted by Jason Caldwell — July 21st, 2011, 5:47 pm


]]>
2011-07-21T17:41:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28876#p28876 <![CDATA[Re: Template shortcode not working]]> Thanks for the heads-up on this thread.

I did just confirm that s2Member Pro v110710+ will correctly find a custom template file inside your active theme directory. It has to be inside your active theme directory, like this:
/wp-content/themes/twentyeleven/checkout.php
Please let me know if you continue to have trouble with this.

The /wp-content/ directory also works, and if present, will override the one inside the active theme directory: /wp-content/checkout.php.

Statistics: Posted by Jason Caldwell — July 21st, 2011, 5:41 pm


]]>
2011-07-19T23:17:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28676#p28676 <![CDATA[Re: Template shortcode not working]]> Statistics: Posted by Cristián Lávaque — July 19th, 2011, 11:17 pm


]]>
2011-07-19T05:39:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28642#p28642 <![CDATA[Re: Template shortcode not working]]>
Thanks - but this won't work as %%coupon_response%% is not a PHP Variable - so when it put it in PHP, the page errors!

Any ideas?

Scott

Statistics: Posted by scottgould — July 19th, 2011, 5:39 am


]]>
2011-07-18T23:37:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28632#p28632 <![CDATA[Re: Template shortcode not working]]>


1. How do I change the text in %%coupon_response%%, or other shortcodes? (i.e., when it says "Sales Tax", I need to change that to just "Tax")

You could try using str_replace or strtr for that.
http://php.net/str_replace
http://php.net/strtr


2. How do I change the PayPal button image to be just a plain button? (The whole reason why I'm using pro forms is to appear like I'm not using PayPal you see)

For the PayPal option it has to be the PayPal button, it seems to be a PayPal policy. When choosing one of the other options (Visa, Matercard, etc) the button changes to a normal HTML one, which I believe you can edit with CSS.

Statistics: Posted by Cristián Lávaque — July 18th, 2011, 11:37 pm


]]>
2011-07-18T02:59:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28608#p28608 <![CDATA[Re: Template shortcode not working]]>
Yes it works by putting it in /wp-content/

Two more questions quickly, if you know how this will help:

1. How do I change the text in %%coupon_response%%, or other shortcodes? (i.e., when it says "Sales Tax", I need to change that to just "Tax")

2. How do I change the PayPal button image to be just a plain button? (The whole reason why I'm using pro forms is to appear like I'm not using PayPal you see)

Thanks,

Scott

Statistics: Posted by scottgould — July 18th, 2011, 2:59 am


]]>
2011-07-17T20:36:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28595#p28595 <![CDATA[Re: Template shortcode not working]]>
If not, please zip checkout.php and send us the file or a link to it by email, so we can take a look at the code.

Statistics: Posted by Cristián Lávaque — July 17th, 2011, 8:36 pm


]]>
2011-07-17T16:04:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28588#p28588 <![CDATA[Re: Template shortcode not working]]>
It's in the theme folder - I'll try putting it in /wp-content/

Scott

Statistics: Posted by scottgould — July 17th, 2011, 4:04 pm


]]>
2011-07-17T15:52:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28586#p28586 <![CDATA[Re: Template shortcode not working]]>

Where did you put checkout.php? It has to be in /wp-content/ or your theme's directory (i.e. http://wearelikeminds.com/wp-content/themes/likeminds/).

Statistics: Posted by Cristián Lávaque — July 17th, 2011, 3:52 pm


]]>
2011-07-17T14:07:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14153&p=28580#p28580 <![CDATA[Template shortcode not working]]>
I am trying to use the Template shortcode option in my pro forms.

Currently it looks like this:

Code:
[s2Member-Pro-PayPal-Form level="1" ccaps="+exeter2011,attendee" desc="<strong>Full registration for the conference is £280 ex. VAT.</strong>" ps="paypal" lc="" cc="GBP" dg="0" ns="1" custom="wearelikeminds.com|exeter2011|23" ta="0" tp="0" tt="Y" ra="280" rp="1" rt="Y" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success="https://wearelikeminds.com/registration/exeter-2011/customise" template="checkout.php" /]


However, the checkout.php page is not being used.

I'm not sure what I might be doing wrong here

Thanks in advance for your help - I am very grateful for all you guys do,

Scott

Statistics: Posted by scottgould — July 17th, 2011, 2:07 pm


]]>