close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Only have shipping to one country

Thread began 5/20/2013 12:20 pm by Patrice | Last modified 10/06/2014 9:24 am by Jason Byrnes | 5783 views | 26 replies |

PatriceWebAssist

Only have shipping to one country

My client wants to limit shipping rates, auto check out to just US. If they are buying from another country, he wants them to phone to get a rate. How can I do this, please?

Sign in to reply to this post

Jason ByrnesWebAssist

the shipping country is stored in a sessin variable named:
eCartCheckoutForm_shipping_country

add an if statement around the checkout button to only show if the shipping country is US:

<?php if(isset($_SESSION['"eCartCheckoutForm_shipping_country']) && $_SESSION['"eCartCheckoutForm_shipping_country'] == "US") { ?>
checkout button
<?php } else { ?>
Please phone in your order
<?php } ?>

Sign in to reply to this post

PatriceWebAssist

Thanks Jason
confirm.php page
I did a test page, and the message appears but the submit button is still available.
But, when it passes to Paypal, it doesn't process... so all good... thanks...

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the confirmTEST.php page please so i can see the code

Sign in to reply to this post

PatriceWebAssist

Thanks

Attached Files
confirm.php
Sign in to reply to this post

Jason ByrnesWebAssist

you do not have the if statement around the checkout button

php:
<input type="image" name="Submit_order" id="Submit_order" value="Checkout" alt="Submit order"  src="WA_eCart/Images/Slate2/Btn4_EN_submitorder.gif" class="eC_ImageButton"  />

                      
                      <?php if(isset($_SESSION['"eCartCheckoutForm_shipping_country']) && $_SESSION['"eCartCheckoutForm_shipping_country'] == "US") { ?>
                      checkout button
  <?php } else { ?>
                      <br>
                      Our auto check out only works with US orders. <br>
                      Please phone in your order 866-321-6612 Monday - Friday, 9-5 PST </h3>                      <?php ?>
                    </td>




should be:

php:
<?php if(isset($_SESSION['"eCartCheckoutForm_shipping_country']) && $_SESSION['"eCartCheckoutForm_shipping_country'] == "US") { ?>

                      <input type="image" name="Submit_order" id="Submit_order" value="Checkout" alt="Submit order"  src="WA_eCart/Images/Slate2/Btn4_EN_submitorder.gif" class="eC_ImageButton"  />
  <?php } else { ?>
                      <br>
                      Our auto check out only works with US orders. <br>
                      Please phone in your order 866-321-6612 Monday - Friday, 9-5 PST </h3>                      <?php ?>
                    </td>
Sign in to reply to this post

PatriceWebAssist

Revisited. I did this change and it was fine for non-US but then the US folks couldn't complete the order, so I reverted back one step. So when a non-US submits order, it fails at Paypal level so it solves the problem, albeit not perfectly.

Sign in to reply to this post

Jason ByrnesWebAssist

What was the problem for the US order? They couldn't see the checkout button? or did they go to the checkout failure page?

Sign in to reply to this post

PatriceWebAssist

Revisiting this issue. Client now wants to add Canada also but at a different flat rate than US. Since we customized already, I need some guidance on how to accomplish this. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

please provide more details, what specifically do you need guidance with?

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...