If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Shipping Method Image

Shipping Method Image

Started by oitem on 25 May 2012, 2:13 PM · Views: 1,309

Results 1 to 5 of 5
25 May 2012, 2:28 PM
#2
oitem avatar

oitem

New Zenner

Join Date:
Apr 2012
Posts:
82
Plugin Contributions:
0

Re: Shipping Method Image

i want to put some image like fedex image etc

25 May 2012, 3:08 PM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Shipping Method Image

oitem:

how can i make my shipping method like this

You'll need to customise whatever shipping module(s) you are using.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

25 May 2012, 3:16 PM
#4
oitem avatar

oitem

New Zenner

Join Date:
Apr 2012
Posts:
82
Plugin Contributions:
0

Re: Shipping Method Image

i use zones as a shipping method zone 1 zone 2 etc ,, but i dont know where can i put the picture on my file manager

25 May 2012, 3:34 PM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Shipping Method Image

oitem:

i dont know where can i put the picture on my file manager

As I said, you'll need to customise your shipping modules. Uploading the pictures isn't enough.

The code changes aren't difficult, at least in theory.

Firt you'll need to finds the lines in your shipping module ... assuming it's zones.php you'll need to search for code that reads like:

$shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country;

Then you'll need to modify the $shipping_method variable to make it into an image with ALT text. Something like:

$shipping_method = zen_image("/images/image.jpg", $shipping_method);

In other words, you'll need to ADD this line of code AFTER the existing line(s) of code.
Change the /images/ path and image name to match where ever you choose to store your images.

Cheers
Rod

ps. Make a backup of the file before editing. DO NOT back it up using a .php extension in the /shipping/ folder. It will cause problems.

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.