Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / USPS - I want to add informational text about duties and taxes

USPS - I want to add informational text about duties and taxes

Started by mikestaps on 21 Oct 2010, 1:34 PM · Views: 1,786

Results 1 to 8 of 8
21 Oct 2010, 1:34 PM
#1
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #1 by mikestaps

I currently have USPS only available for international addresses, I have already modified it so when USPS is not available (US orders) it shows "NOTE: USPS shipping is currently only available for orders shipped outside of the US."
I would like to I would like to add text on the inside of the USPS shipping option ( under the shipping options ) box for the international orders that says "Customers are responsible for any and all import taxes and or duty's on products ordered."
How and where would I put this inside the usps.php?
THX
Mike

21 Oct 2010, 6:16 PM
#2
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #2 by mikestaps

Ok so changing this:

function usps() {
    global $order, $db, $template, $current_page_base;

    $this->code = 'usps';
    $this->title = MODULE_SHIPPING_USPS_TEXT_TITLE;
    $this->description = MODULE_SHIPPING_USPS_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_SHIPPING_USPS_SORT_ORDER;
    $this->icon = $template->get_template_dir('shipping_usps.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'shipping_usps.gif';
    $this->tax_class = MODULE_SHIPPING_USPS_TAX_CLASS;
    $this->tax_basis = MODULE_SHIPPING_USPS_TAX_BASIS;

to this:

function usps() {
    global $order, $db, $template, $current_page_base;

    $this->code = 'usps';
    $this->title = MODULE_SHIPPING_USPS_TEXT_TITLE;
    $this->description = MODULE_SHIPPING_USPS_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_SHIPPING_USPS_SORT_ORDER;
    $this->icon = $template->get_template_dir('shipping_usps.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'shipping_usps.gif';
    $this->tax_class = MODULE_SHIPPING_USPS_TAX_CLASS;
    $this->tax_basis = MODULE_SHIPPING_USPS_TAX_BASIS;
	$this->print = 'NOTE: Customer is responsible for all import taxes and/or duties on products purchased'

DOES NOT work... :no: it just brings up the no shipping for your zip code error... guess I'll try something else!

21 Oct 2010, 6:26 PM
#3
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #3 by mikestaps

Well I got it to show up by changing the checkout_shipping.php from this:

define('TEXT_CHOOSE_SHIPPING_METHOD', 'Please select the preferred shipping method to use on this order.');

To this:

define('TEXT_CHOOSE_SHIPPING_METHOD', 'Please select the preferred shipping method to use on this order. <br /><br /><strong>NOTE:</STRONG> Customer is responsible for all import taxes and/or duties on products purchased.');

I really wanted this to only show up for international orders, not all of the time, but I can't figure that one out...:frusty:

9 Feb 2011, 4:20 PM
#4
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Post #4 by sbbemn

I too am trying to accomplish the same thing.

Funny thing is that
TEXT_CHOOSE_SHIPPING_METHOD
used to show only for USA address

and
TEXT_ENTER_SHIPPING_INFORMATION
used to show for for international addresses.

For some reason it stopped working lately.
TEXT_CHOOSE_SHIPPING_METHOD shows for both.

9 Feb 2011, 6:25 PM
#5
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #5 by mikestaps

sb-
What other changes have you made lately? Updates?
Likely something that you installed or changed caused this to happen. For example I installed a SEO mod and tons of my other MOD's stopped working... It's been just a blast getting everything back up.
For that reason I keep a copy of my store as a test_store to make ANY and ALL changes to first, to make sure it works.

9 Feb 2011, 6:30 PM
#6
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Post #6 by sbbemn

I certainly have a test store, but did not see this until today.

Weeks ago I installed the FedEx module. It's hard to say when this actually stopped displaying as it would help me pinpoint any changes in the past several weeks.

We have another code writer that works in the store as well. There could have been something there too.

Anomoly.

9 Feb 2011, 6:41 PM
#7
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Post #7 by mikestaps

sbbemn:

Anomoly.

Quite possibly... As far as I can tell, looking into it a little further the TEXT_CHOOSE_SHIPPING_METHOD has always shown up for both US and International in my setups...

11 Feb 2011, 3:09 PM
#8
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Post #8 by sbbemn

O.k.

I checked back on a backup file from 7 months ago -
includes/templates/yourtemplate/templates/tpl_checkout_shipping_default.php

Same code. I know I'm not crazy - it worked before. The way it is currently set up is that FREE Shipping displays TEXT_ENTER_SHIPPING_INFORMATION that is if all items in the cart are free shipping. Here's the code:

<?php if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) { ?> <div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></div> <?php } elseif ($free_shipping == false) { ?> <div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></div> <?php } ?>

So.......
<?php } elseif ($free_shipping == false) { ?>

Shouldn't false mean that it does not display? THe next code states if true, "echo FREE_SHIPPING_TITLE;" etc.

When the code gets to elseif , then "based on a specified zone" echo TEXT_ENTER_SHIPPING_INFORMATION;

on the right track?