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?
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?
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 } ?>
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...
send a copy of the confirmTEST.php page please so i can see the code
you do not have the if statement around the checkout button
<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 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>
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.
What was the problem for the US order? They couldn't see the checkout button? or did they go to the checkout failure page?
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.
please provide more details, what specifically do you need guidance with?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.