surpassweb
Sophomore
Just Getting Started
Member Likes (0)
@S H Mohanjith has been kind enough to help me set up custom pricing tables for pro-sites on my website :)

Responses (7)
Member (joined March 2012) Likes (0)
Step 1: Edit your theme's style.css and add the following code to it:
#psts_checkout_grid { display: none;}This will hide the old ugly boxes
Developer (joined September 2010) Likes (0)
in my-scripts.js
Developer (joined September 2010) Likes (0)
in my-scripts.js
Member (joined March 2012) Likes (0)
Where do you find my-scripts.js? Or do you have to create it?
Could you give a code example of a functional "buy now" button?
Member (joined March 2012) Likes (0)
Sorry, I'm not a coder so I'm going to need more information than "in my-scripts.js" to be able to use this.
Also, this isn't quite as important, but when you applied a coupon code, the prices on the old ugly boxes would change accordingly. It would also highlight your current subscription and prevent you from purchasing it. Is there a way to keep that functionality?
Could you please provide more step-by-step instructions?
eg: in folder X, open the Y,js document and paste tis code on line 50
Developer (joined September 2010) Likes (0)
Create a directory called js in your theme directory (e.g. wp-content/themes/twentyeleven/js). Create a file called my-scripts.js there and add the code in it.
Then from your custom pricing table selection event call the function
my_awesome_pro_sites_wrapperwith the correct level and duration.Let me flag Aaron to help you with it.
Lead Developer (joined May 2009) Likes (0)
That would be a lot of custom work, really beyond what I can help with here. For an example you can look at all the conditional code in the checkout_grid() function. Basically it uses lots of php conditionals to apply various classes to each button. The JS and css control the functionality based on those classes.
Become a member