Forums / Built-in Shipping and Payment Modules / Showing message according to country

Showing message according to country

Locked

Started by navneet on 21 Jul 2006, 10:35 AM · Views: 1,034

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Jul 2006, 10:35 AM
#1
navneet avatar

navneet

New Zenner

Join Date:
Apr 2006
Posts:
8
Plugin Contributions:
0

Showing message according to country

Hi,

I have my zencart shipping module set to only Australia. Now I sometimes get customers trying to buy product from other countries and I dont ship to other countries at the moment.

The way it happens now is in checkout when they get to the shipping option it dont find any if the user is from another country and keeps showing the previous step.

Is there a way to show the user a message during checkout that We are currently not shipping outside Australia

Thanks for help

23 Jul 2006, 7:36 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Showing message according to country

  1. /includes/templates/YOURTEMPLATE/templates/tpl_checkout_shipping_default.php
    line 108 starts like this:```php
<?php } ?> <fieldset class="shipping" id="comments"> ```replace with this: ```php <?php } else { ?> <h2 id="checkoutShippingHeadingMethod"><?php echo TITLE_NO_SHIPPING_AVAILABLE; ?></h2> <div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_NO_SHIPPING_AVAILABLE; ?></div> <?php } ?> <fieldset class="shipping" id="comments"> ```
  1. /includes/languages/english/YOURTEMPLATE/checkout_shipping.php
    add these two lines to your existing content:```php
    define('TITLE_NO_SHIPPING_AVAILABLE', 'Not Available At This Time');
    define('TEXT_NO_SHIPPING_AVAILABLE','<span class="alert">Sorry, we are not shipping to your region at this time.</span><br />Please contact us for alternate arrangements.');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.