Hi everyone!
Has anyone solved this issue about:
SHOW WEIGHT + WEIGHT UNIT IN ALL PAGES
(home, manufacturer, categories, search and special)
down the Product Name and before the Price?????
This subject still not working for me, someone here has it working and can post how did it???
Thanks to all you,
Wilma
(Don't speak english)
Has anyone solved this issue about:
SHOW WEIGHT + WEIGHT UNIT IN ALL PAGES
(home, manufacturer, categories, search and special)
down the Product Name and before the Price?????
This subject still not working for me, someone here has it working and can post how did it???
Thanks to all you,
Wilma
(Don't speak english)
Wilma
(Don't speak english)
Hi again!! it's working thanks!!!!
But: HOW CAN I PLACED AN SPACE BETWEN THE WEIGHT AND THE WEIGHT UNIT, because are both together with this code in catalog/controller/product/product.php
$this->data['weight'] = $this->weight->format($product_info['weight'], $product_info['weight_class_id']);
Thanks,
But: HOW CAN I PLACED AN SPACE BETWEN THE WEIGHT AND THE WEIGHT UNIT, because are both together with this code in catalog/controller/product/product.php
$this->data['weight'] = $this->weight->format($product_info['weight'], $product_info['weight_class_id']);
Thanks,
Wilma
(Don't speak english)
open /system/helper/weight.php
change line 35 with this one:
bye
change line 35 with this one:
Code: Select all
return number_format($value, 0, $decimal_point, $thousand_point) . ' ' . $this>classes[$weight_class_id]['unit'];
Thanks banane, but I don't have that file, maybe because I have OC 1.2.9
Must be different here.
Do anybody know?
Must be different here.
Do anybody know?
Wilma
(Don't speak english)
You should edit the catalog/controller/common/home.php to get the exact size of perfume bottle as you want.
All the work will be in the code.
All the work will be in the code.
I really want to show TOTAL WEIGHT in the basket.
Can someone help me on how to implement this.
Thanks in Advance
Scott
Can someone help me on how to implement this.
Thanks in Advance
Scott
Simple search for "TOTAL WEIGHT" and look what comes up:webstudent1 wrote:I really want to show TOTAL WEIGHT in the basket.
Can someone help me on how to implement this.
Thanks in Advance
Scott
http://forum.opencart.com/viewtopic.php ... tal+weight
Perfect thanks.
Also in the shopping cart.
I also managed to show the product weight of each item in the list.
I also showed the weight of the item row conditionally if more than 1 product so that the weight of each item purchased is clearly showing as my shipping is purely weight based.
All of the values and where to get them from are in the two weight topics.
Thanks so much,
Scott
Also in the shopping cart.
I also managed to show the product weight of each item in the list.
I also showed the weight of the item row conditionally if more than 1 product so that the weight of each item purchased is clearly showing as my shipping is purely weight based.
All of the values and where to get them from are in the two weight topics.
Thanks so much,
Scott
Hi, this thread has been useful and thanks to the people who contribute.
I have a problem. I am using Weight Based Shipping with only Grams. What modification do I need to make the grams exceed 1000g? Whenever I update my product's weight to 1500g, it will reset to 999.99g.
Please help. Thank you in advance
I have a problem. I am using Weight Based Shipping with only Grams. What modification do I need to make the grams exceed 1000g? Whenever I update my product's weight to 1500g, it will reset to 999.99g.
Please help. Thank you in advance
I had the same problem.
In your localization settings you can set the default weight unit.
You can however leave it in grams if you want and still enter 1000g or more by doing the following.
For products over 999grams like 2000grams edit the product and change the unit to kg and enter 2.0kg.
For weight based shipping and in the product view it will show up as 2000grams.
Make sure your shipping table matches the default weight unit.
Cya,
Scott
In your localization settings you can set the default weight unit.
You can however leave it in grams if you want and still enter 1000g or more by doing the following.
For products over 999grams like 2000grams edit the product and change the unit to kg and enter 2.0kg.
For weight based shipping and in the product view it will show up as 2000grams.
Make sure your shipping table matches the default weight unit.
Cya,
Scott
As this is a MOD I will move the topic.
[topic moved]
[topic moved]
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Hi Scott,webstudent1 wrote:I had the same problem.
In your localization settings you can set the default weight unit.
You can however leave it in grams if you want and still enter 1000g or more by doing the following.
For products over 999grams like 2000grams edit the product and change the unit to kg and enter 2.0kg.
For weight based shipping and in the product view it will show up as 2000grams.
Make sure your shipping table matches the default weight unit.
Cya,
Scott
Thank you for replying. I only want my products to show as grams. Based on the guide you told me (In your localization settings you can set the default weight unit.), it still shows in kg.
Is there any other way to modify it? I only want grams in the localization settings but shows 1000++ grams in my products.
Please help. Thank you.
Stenno
Yes, I had the exact same problem.
Using 1.3.4 here.
I stock my store in kilograms and kilos weight.
in my product.tpl (theme/product)
use this
<tr>
<td><b><?php echo $text_weight; ?></b></td>
<td><?php echo $weight * 1000; ?> <?php echo $text_weight_unit; ?></td>
</tr>
For example 1.430kg = 1430grams.
Only drawback is for 0.015kg 15g you have to pick either 20g or 10g because the last decimal place appeared to be rounded somewhere. I am sure you could display to the gram but the store I made that accurate a weight was not required. This can be considered a bit crude or more of a workaround but it wasn't changing any more to make it better integrated.
In the cart
<?php echo $product['weight'] * 1000; ?>
to show the total weight of the items on the row for example if there is a quantity of 2 or 3 use this.
<?php echo $product['weight'] * $product['quantity'] * 1000; ?>
change you unit from kg to g.
Scott
Using 1.3.4 here.
I stock my store in kilograms and kilos weight.
in my product.tpl (theme/product)
use this
<tr>
<td><b><?php echo $text_weight; ?></b></td>
<td><?php echo $weight * 1000; ?> <?php echo $text_weight_unit; ?></td>
</tr>
For example 1.430kg = 1430grams.
Only drawback is for 0.015kg 15g you have to pick either 20g or 10g because the last decimal place appeared to be rounded somewhere. I am sure you could display to the gram but the store I made that accurate a weight was not required. This can be considered a bit crude or more of a workaround but it wasn't changing any more to make it better integrated.
In the cart
<?php echo $product['weight'] * 1000; ?>
to show the total weight of the items on the row for example if there is a quantity of 2 or 3 use this.
<?php echo $product['weight'] * $product['quantity'] * 1000; ?>
change you unit from kg to g.
Scott
Who is online
Users browsing this forum: No registered users and 48 guests