Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
Tsuri Japan

How do I add an image for my Zone shipping?

Recommended Posts

Hey guys I want to add my own image for my shipping since I'm using Zone 1 & 2 for Japanese post. Where do I add my image for this postage?

 

Thanks,

 

Nigelman :thumbsup:

Share this post


Link to post
Share on other sites

Let's say you want to use an image called table_shipping.gif for table shipping..... you upload the image to your icons folder, then call the image in the table module. Find this section of code....

 

 

// class constructor
function table() {
  global $order;

  $this->code = 'table';
  $this->title = MODULE_SHIPPING_TABLE_TEXT_TITLE;
  $this->description = MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION;
  $this->sort_order = MODULE_SHIPPING_TABLE_SORT_ORDER;
  $this->icon = '';
  $this->tax_class = MODULE_SHIPPING_TABLE_TAX_CLASS;
  $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);

 

..and change to...

 

// class constructor
function table() {
  global $order;

  $this->code = 'table';
  $this->title = MODULE_SHIPPING_TABLE_TEXT_TITLE;
  $this->description = MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION;
  $this->sort_order = MODULE_SHIPPING_TABLE_SORT_ORDER;
  $this->icon = DIR_WS_ICONS . 'table_shipping.gif';
  $this->tax_class = MODULE_SHIPPING_TABLE_TAX_CLASS;
  $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);

Share this post


Link to post
Share on other sites

Thanks Maggi worked like a charm, once again you've made my that much better. CHEERS!

 

Nigelman :thumbsup:

Edited by Tsuri Japan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×