If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / Getting an Error On checkout page-"Please select shipping country for shipping."

Getting an Error On checkout page-"Please select shipping country for shipping."

Started by atp29awr on 23 Apr 2013, 6:55 AM · Views: 3,267

Results 21 to 27 of 27
23 Apr 2013, 12:38 PM
#21
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Getting an Error On checkout page-"Please select shipping country for shipping."

atp29awr:

I will look into the files for the relevant content to check the possibility of getting the said text in any of the files. Thanks!

Getting rid of the text isn't going to solve the issue.

The idea is:

Find the file that contains the text.
This will then tell you/us what the DEFINE is.
By searching for the DEFINE you'll then find the file(s) that are using it.
By looking at the code logic of these file(s) we'll be able to determine what conditions aren't being met, and hopefully a clue as to why.
Armed with this information a solution can probably be provided.

Keeping in mind that you will be getting different results than the rest of us. We have no idea what you are seeing at any given time unless you tell us.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

23 Apr 2013, 1:23 PM
#22
atp29awr avatar

atp29awr

New Zenner

Join Date:
Apr 2013
Location:
India
Posts:
36
Plugin Contributions:
0

Re: Getting an Error On checkout page-"Please select shipping country for shipping."

Hello

I got this text in checkout_process.php file in /includes/modules.

The file is edited. I found a script which is as below.

if ( $_SESSION['shipping']['cost'] == 0) {
$messageStack->add_session('checkout_payment', 'Please select shipping country for shipping.', 'error');

By that, does it mean that if the shipping cost of the product is $0.00 then show this message. For the testing purpose, I have added a product whose price is $0.10 and shipping cost is $0.00. The country I select in my checkout page is United States. Is this error('Please select shipping country for shipping') showing on my checkout page because the shipping cost of the product is $0.00? If that is the case, please let me know what should be the best action to fix it. Due to this, I nobody can checkout successfully thus ending in buying no products. Thanks!

23 Apr 2013, 2:25 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Getting an Error On checkout page-"Please select shipping country for shipping."

Could you post, from the server, the file:
/includes/modules/checkout_process.php

that looks like there is some kind of customization to your code that has added that message, as it is not part of the default Zen Cart code ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Apr 2013, 3:05 PM
#24
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Getting an Error On checkout page-"Please select shipping country for shipping."

atp29awr:

By that, does it mean that if the shipping cost of the product is $0.00 then show this message.

Yes that is pretty much exactly what it means.

However, in saying this, I don't know offhand if
$_SESSION['shipping']['cost'] is a valid variable anyway.

As Ajeh has suggested, this looks like some kind of customization. Without seeing the code your guesses are probably better than ours.

Anyway, tis heading towards 1am in this part of the world, I'm going to call it a night. Meanwhile, do as Ajeh tells you. You are in very good hands. :)

I''ll expect the problem to be solved by the time I get up :)

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

23 Apr 2013, 5:46 PM
#25
atp29awr avatar

atp29awr

New Zenner

Join Date:
Apr 2013
Location:
India
Posts:
36
Plugin Contributions:
0

Re: Getting an Error On checkout page-"Please select shipping country for shipping."

You guys are the best. You have helped me a lot here. Now I see that the error only shows when the shipping prices are set to zero. I created a dummy product with its price as $0.10 and shipping price as $0.10. The order was placed successfully. But when I have the shipping price as $0.00 and select the country as United States, it gives me this error as "Please select shipping country for shipping." So I believe it is customized country wise and according to the shipping price. Atleast by now, I know what exactly is happening..:) .

Please apologize me for my negligence. I may put up another query if I have one...:)
Thanks a lot for all the help.

23 Apr 2013, 5:59 PM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Getting an Error On checkout page-"Please select shipping country for shipping."

Actually, your site appears to be customized to prevent any chackout with shipping of $0.00, meaning also Free shipping would be prevented, with a "logical looking" message for the customer to not cause them to panic but rather hope that they contact your site with checkout issues ...

Make sure that you want to just go on your merry way rather than perhaps make a more meaningful message for the customer to encourage them to contact you, rather than assume that they will contact you from the ambiguous error message ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Apr 2013, 5:52 AM
#27
atp29awr avatar

atp29awr

New Zenner

Join Date:
Apr 2013
Location:
India
Posts:
36
Plugin Contributions:
0

Re: Getting an Error On checkout page-"Please select shipping country for shipping."

Yes. I will do that. I will have another message for that. Again, now I see that the shipping price for Canada is $25.00 in the checkout page, that is supposedly too high. I want to change that. The site being customized it is a bit confusing for me to know where exactly is that value coming from. I want to change that. Also can you give me any references for the database tables other that 'products' to know where does this value come from? Thanks!