latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Paypal Button not showing up?

Home Forums Community Forum Paypal Button not showing up?

This topic contains 7 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jun 13th, 2012 at 1:48 am #16338

Hi,

I’m trying to add Paypal buttons within a table in my memberships page, however the shortcode is not rendering at all…

Any idea why is not working?

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Wednesday Jun 13th, 2012 at 4:59 am #16348

Hi Marco.

That’d be a problem with the WP parser for shortcodes. I don’t think having it inside an HTML should be a problem. If your table is generated by another shortcode, then maybe nested shortcodes can cause an issue.

Could you show us your code for the table with the button, please? Thanks!

Posted: Wednesday Jun 13th, 2012 at 7:43 am #16357

Hi Cristian,

I’m using tabs to display the table, here’s the code:

[tabs]

[tab title="<strong>AIH Membership</strong>"]
<h2>AIH Membership Fee Schedule</h2>
<h2></h2>
<table id="supportOptions" summary="This table charts of our different support options."><caption> </caption>
<thead>
<tr>
<th class="centeredText mainTitle">Membership Category</th>
<th class="centeredText mainTitle">Joining Fee</th>
<th class="centeredText mainTitle">Membership Fee</th>
<th class="centeredText mainTitle">Total</th>
<th class="centeredText mainTitle">Subscribe</th>
</tr>
</thead>
<tbody>
<tr>
<td class="zebraRecord"><strong>Members &amp; Fellows</strong></td>
<td class="zebraRecord centeredText">$77</td>
<td class="zebraRecord centeredText">$290</td>
<td class="zebraRecord centeredText"><strong>$367</strong></td>
<td class="zebraRecord centeredText"><form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="business" value="webmaster@aih.org.au" /> <input type="hidden" name="cmd" value="_xclick-subscriptions" /> <!-- Instant Payment Notification &#038; Return Page Details -->
<input type="hidden" name="notify_url" value="http://wp.aih.org.au/wp/?s2member_paypal_notify=1" /> <input type="hidden" name="cancel_return" value="http://wp.aih.org.au/wp/" /> <input type="hidden" name="return" value="http://wp.aih.org.au/wp/?s2member_paypal_return=1" /> <input type="hidden" name="rm" value="2" /> <!-- Configures Basic Checkout Fields --> <input type="hidden" name="lc" value="" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="no_note" value="1" /> <input type="hidden" name="custom" value="wp.aih.org.au" /> <input type="hidden" name="currency_code" value="AUD" /> <input type="hidden" name="page_style" value="paypal" /> <input type="hidden" name="charset" value="utf-8" /> <input type="hidden" name="item_name" value="AIH Membership - Members &amp; Fellows / description and pricing details here." /> <input type="hidden" name="item_number" value="1" /> <!-- Configures s2Member's Unique Invoice ID/Code  -->[s2Member-PayPal-Button level="1" ccaps="" desc="AIH Membership - Members &amp; Fellows / description and pricing details here." ps="paypal" lc="" cc="AUD" dg="0" ns="1" custom="wp.aih.org.au" ta="367" tp="1" tt="Y" ra="290" rp="1" rt="Y" rr="1" rrt="" rra="1" image="default" output="button" /]</form></td>
</tr>
<tr>
<td><strong>Corporate</strong></td>
<td class="centeredText">$115</td>
<td class="centeredText">$920</td>
<td class="centeredText"><strong>$1,035</strong></td>
<td class="centeredText"></td>
</tr>
<tr>
<td class="zebraRecord"><strong>Retired Members &amp; Fellows</strong></td>
<td class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></td>
<td class="zebraRecord centeredText">$190</td>
<td class="zebraRecord centeredText"><strong>$190</strong></td>
<td class="zebraRecord centeredText"></td>
</tr>
<tr>
<td><strong>Associates</strong></td>
<td class="centeredText">$77</td>
<td class="centeredText">$290</td>
<td class="centeredText"><strong>$367</strong></td>
<td class="centeredText"></td>
</tr>
<tr>
<td class="zebraRecord"><strong>Student w/magazine suscription</strong></td>
<td class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></td>
<td class="zebraRecord centeredText">$88</td>
<td class="zebraRecord centeredText"><strong>$88</strong></td>
<td class="zebraRecord centeredText"></td>
</tr>
<tr>
<td><strong>Student enrolled with preferred Member Training Provider</strong></td>
<td class="centeredText"><span class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></span></td>
<td class="centeredText">$72</td>
<td class="centeredText"><strong>$72</strong></td>
<td class="centeredText"></td>
</tr>
<tr>
<td class="zebraRecord"><strong>Overseas</strong></td>
<td class="zebraRecord centeredText">$77</td>
<td class="zebraRecord centeredText">$265</td>
<td class="zebraRecord centeredText"><strong>$342</strong></td>
<td class="zebraRecord centeredText"></td>
</tr>
<tr>
<td><strong>Overseas Singapore</strong></td>
<td class="centeredText"><span class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></span></td>
<td class="centeredText">$116</td>
<td class="centeredText"><strong>$116</strong></td>
<td class="centeredText"></td>
</tr>
</tbody>
</table>
[/tab]
[/tabs]
Posted: Thursday Jun 14th, 2012 at 5:03 am #16418

I see.

It seems like the tabs shortcode isn’t doing do_shortcode to its content, so the button’s shortcode isn’t being parsed. Or some other problem caused by the nesting.

You can use a PayPal created button, or using something else to generate your table. Knowledge Base » Using PayPal created buttons

I hope that helps. :)

Posted: Sunday Jun 17th, 2012 at 7:27 pm #16745

Thanks for your help Cristian…

The strange thing is that even when I put the code outside the tabs, it still won’t be rendered. It actually won’t be rendered on any page regardless of the structure…

Posted: Tuesday Jun 19th, 2012 at 5:03 am #16847

I see. Then you probably have something messing up with the shortcode parsing, or s2Member is not active.

First make sure s2Member is active.

Then test if the theme is causing it, by changing for a moment to the default TwentyEleven theme and reloading the page with the shortcode.

If that didn’t fix it, try deactivating other plugins one by one, checking after each if the shortcode is now parsed.

Let me know how it goes, please. :)

Posted: Wednesday Jun 20th, 2012 at 5:41 am #16981

Hi Cristian,

I tried with another theme and it renders the button… seems like the theme I’m using is not rendering for some reason… any clue on how to fix it?

I’ve already customised all my website using that theme so it’d be a real pain if I have to change it in order to use the paypal buttons.

Any ideas on how can I fix this?

Regards,

Posted: Thursday Jun 21st, 2012 at 6:39 am #17082

I’d contact the theme developer to alert him about the problem and try to fix it.

Viewing 7 replies - 1 through 7 (of 7 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.