Wrapping multiple shortcode options at payment and some options not showing

Hey

s2member newbie (and website builder newbie tbh) and I’m having an issue with wrapping the shortcodes on my payment gateway.

There are 4 options - 2 different time scales for membership with an option for each whether you buy outright, or pay monthly

I can quite happily get all four options to display HOWEVER, when I add a custom success page to all four shortcodes only 2 options display in drop down on purchase page. Deleting the custom success page from all but one shortcode option means they all display…

The code below is what I’d like to run - with the success= highlighted in bold on first option causing the issue. Deleting this and all options then display. Having it in and only top 2 options display.

(I’ve had to delete the link out of the rest of the shortcodes and replace with ****** as I’m new and can only add a couple of links per post!!!)

[s2Member-Pro-Stripe-Form]

[s2Member-Pro-Stripe-Form level=β€œ1” **success=β€œhttps://aeonhaf.co.uk/vipaccsuccess/”** ccaps=β€œfast” desc=β€œΒ£179 GBP / One Time FAST TRACK TO FAT LOSS (for 2 month access, non-recurring)” cc=β€œGBP” custom="" ta=β€œ0” tp=β€œ0” tt=β€œD” ra=β€œ179” rp=β€œ2” rt=β€œM” rr=β€œBN” coupon="" accept_coupons=β€œ1” default_country_code=β€œGBP” captcha=β€œ0” /]

[s2Member-Pro-Stripe-Form level=β€œ1” success="******" ccaps=β€œfast” desc=β€œΒ£119 GBP / Monthly FAST TRACK TO FAT LOSS (recurring charge, for 2 months)” cc=β€œGBP” custom="" ta=β€œ0” tp=β€œ0” tt=β€œD” ra=β€œ119” rp=β€œ1” rt=β€œM” rr=β€œ1” rrt= β€œ2” coupon="" accept_coupons=β€œ1” default_country_code=β€œGBP” captcha=β€œ0” /]

[s2Member-Pro-Stripe-Form level=β€œ1” success="*******" ccaps=β€œtg” desc=β€œΒ£499 GBP / One Time TRANSFORMATION GUARANTEE (for 6 month access, non-recurring)” cc=β€œGBP” custom="" ta=β€œ0” tp=β€œ0” tt=β€œD” ra=β€œ499” rp=β€œ6” rt=β€œM” rr=β€œBN” coupon="" accept_coupons=β€œ1” default_country_code=β€œGBP” captcha=β€œ0” /]

[s2Member-Pro-Stripe-Form level=β€œ1” success="********" ccaps=β€œtg” desc=β€œΒ£99 GBP / Monthly TRANSFORMATION GUARANTEE (recurring charge, for 6 months)” cc=β€œGBP” custom="" ta=β€œ0” tp=β€œ0” tt=β€œD” ra=β€œ99” rp=β€œ1” rt=β€œM” rr=β€œ1” rrt= β€œ6” coupon="" accept_coupons=β€œ1” default_country_code=β€œGBP” captcha=β€œ0” /]
[/s2Member-Pro-Stripe-Form]

Thanks for any advice!

Hi Ben.

It’s odd that the success attributes in several options would be a problem…

First I’d suggest simplifying the shortcodes. You can move to the parent one all the attributes that are common to every option. If the success redirection is the same for all options, then you can stick it there as well, side-stepping the issue you mention. Also, the success address doesn’t need to be a full URL.

Also, the country code would be GB, not GBP, that’s the currency. And the custom attribute has to have your domain name, so I included it. See: WP Admin > s2Member Pro > Stripe Pro-Forms > Shortcode Attributes

So you get something like this:

[s2Member-Pro-Stripe-Form level="1" custom="aeonhaf.co.uk" cc="GBP" ta="0" tp="0" tt="D" coupon="" accept_coupons="1" default_country_code="GB" captcha="0" success="/vipaccsuccess"]
  [s2Member-Pro-Stripe-Form ccaps="fast" desc="Β£179 GBP / One Time FAST TRACK TO FAT LOSS (for 2 month access, non-recurring)" ra="179" rp="2" rt="M" rr="BN" /]
  [s2Member-Pro-Stripe-Form ccaps="fast" desc="Β£119 GBP / Monthly FAST TRACK TO FAT LOSS (recurring charge, for 2 months)" ra="119" rp="1" rt="M" rr="1" rrt= "2" /]
  [s2Member-Pro-Stripe-Form ccaps="tg" desc="Β£499 GBP / One Time TRANSFORMATION GUARANTEE (for 6 month access, non-recurring)" ra="499" rp="6" rt="M" rr="BN" /]
  [s2Member-Pro-Stripe-Form ccaps="tg" desc="Β£99 GBP / Monthly TRANSFORMATION GUARANTEE (recurring charge, for 6 months)" ra="99" rp="1" rt="M" rr="1" rrt= "6" /]
[/s2Member-Pro-Stripe-Form]

Could you give it a try?

I hope that helps. :slight_smile:

Hey

Apologies for taking so long to reply and thanks very much for the feedback - I found a different, more clunky workaround and haven’t checked back in here for ages!

Been through this and works a charm

Much appreciated

1 Like