Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Want to add USPS icon to Zone Rates <legend>

Want to add USPS icon to Zone Rates <legend>

Locked

Views: 1,161

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Oct 2010, 3:49 PM
#1
524cw avatar

524cw

New Zenner

Join Date:
Sep 2008
Posts:
53
Plugin Contributions:
0

Want to add USPS icon to Zone Rates <legend>

I would like to use USPS priority mail for my Zone Rate shipping option, and it will be the only one offered. I would like to display the usps.gif icon within the <legend> tags on the Step1 of checkout, just the same as in the USPS shipping module.

In the file includes/modules/shipping/zones.php

I changed line 104 from

      $this->icon = '';

to this

    $this->icon = $template->get_template_dir('shipping_usps.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'shipping_usps.gif';

Which is how it is in the usps.php file in the same folder. Unfortunately, when I upload the zones.php file, the page in admin > modules > shipping stops loading and breaks. When I change zones.php back, it works ok.

Is there some other way to add this icon?