Zen Cart Logo

Adding the prefix Kilo !

Views: 1,223

Results 1 to 11 of 11
9 Aug 2011, 2:14 PM
#1
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Adding the prefix Kilo !

I'm selling prodacts that I want to be purchased in Kilos , So the box next to the prodact name should say 1,2... Kilos and at the end of the checkout procedure customer should see something like that :

Qty. Item Name Total
5 x Kilo e.g. metal

What I have now the same info but without the prefix **Kilo **after the number of Kilos ! How can I place that there ?

9 Aug 2011, 7:37 PM
#2
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Adding the prefix Kilo !

the kilo should be a sufix not prefix,
you will find instructions here:

https://www.zen-cart.com/tutorials/index.php?article=204

i entered kilo in the search of the FAQ:P

10 Aug 2011, 6:50 AM
#3
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Adding the prefix Kilo !

Donal:

the kilo should be a sufix not prefix,
you will find instructions here:

https://www.zen-cart.com/tutorials/index.php?article=204

i entered kilo in the search of the FAQ:P

Thanks Donal for the correction but my question is how show the kg at the right side of the quantity box not change the lbs to kg?

10 Aug 2011, 5:20 PM
#4
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Adding the prefix Kilo !

:oops:

a link? to see what you mean:smile:

11 Aug 2011, 11:32 AM
#5
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Adding the prefix Kilo !

Donal:

:oops:

a link? to see what you mean:smile:

I pointed to the right of the product box where the kg should be located ..

11 Aug 2011, 4:37 PM
#6
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Adding the prefix Kilo !

Like this in tpl_product_info_display.php

<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
11 Aug 2011, 5:12 PM
#7
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Adding the prefix Kilo !

dw08gm:

Like this in tpl_product_info_display.php

<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>

OK, But I have that  line already in my tpl_product_info_display.php!  Now how can I display the kg at that location ?
11 Aug 2011, 5:33 PM
#8
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Adding the prefix Kilo !

Look again!!!

11 Aug 2011, 6:28 PM
#9
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Adding the prefix Kilo !

look where?

12 Aug 2011, 2:51 PM
#10
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Adding the prefix Kilo !

The bit that I highlighted in red is what puts the kg, or whatever you have it defined as, after the value.

So wherever you want to include the defined, just add the bit that I highlighted in red.

Cheers

12 Aug 2011, 7:57 PM
#11
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Adding the prefix Kilo !

Do you mean that part . TEXT_PRODUCT_WEIGHT_UNIT . ?