WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Wordpress Ecommerce by GetShopped, and on the checkout page there is a part where the user selects their country.

By default, not all the available delivery options are displayed until the user selects their country or the Calculate button.

The problem is, the customers assume that there is no delivery available (as its hidden until they select the country or click Calculate).

How can I hide the rest of the form from the customer (therefore requiring them to select their country), before displaying the remainder of the form?

share|improve this question

closed as off-topic by Pieter Goosen, Mark Kaplun, birgire, toscho Oct 17 '14 at 19:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Hi - this sounds like something more appropriate for the GetShopped forums than here. – Zach Aug 13 '12 at 15:52
Well, to be fair, this question on the GetShopped forums will languish, gathering dust until the OP gets frustrated enough to switch to WooCommerce. – SickHippie Aug 13 '12 at 19:16
please, please pretty please , make a better title for this question – jonathan Aug 13 '12 at 20:18
I rewrote a wpec checkout template once, and it was, quite frankly, a complete nightmare. There is a lot of javascript running around that you're going to have to deal with to avoid hacking the plugin directly. That said, for your specific issue, after having dumped hundreds of hours into wpec, I would recommend writing your own template forcing the customer to select their country first and then redirect them to the wpec checkout by running the submit_change_country() js function found in wpsc-core/js/wp-e-commerce.js. – Andrew Bartel Apr 14 '13 at 15:54

This is really a question for the GetShopped Forums, as #1, the forums are fairly active (and the company also offers premium support, which you may/may not have), #2 it's a customization question specific to their code.

If you want to post some code and the template files involved, maybe someone can help.

Or, possibly add some text in that template to say that delivery options are available once a country, etc., is selected.

share|improve this answer
I would really disagree with #1 songdog. FWIW, having purchased premium support from them I was still unable to post on the premium forum and never received a response from them via email, I think their commitment to the product is non-existent. Last paragraph about adding text is probably the way to go though. – Andrew Bartel Apr 14 '13 at 15:58
You pay your money and you take your chances. People on WPSE are not obligated to help when the company won't. But some can and will. It's been discussed before: meta.wordpress.stackexchange.com/questions/1233/… – markratledge Apr 14 '13 at 19:18

Since I didnt see the code, i can suggest this in css,javascript:

Try to find the id of the div which you want to display all time.

now add inline style to div with display:block

This would display everytime, otherwise u can add style through javascript when user lands to that page.


<div id="delivery">

now you have to change that code to

<div id="delivery" style="display:block">

but however this is not always reliable, but if you can post the php code we could help you

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.