find:
Code: Select all
'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
Code: Select all
'weight' => sprintf($this->weight->format($result['weight'], $result['weight_class_id']), $this->language->get('text_product_weight')),
find:
Code: Select all
$_['text_quantity']
Code: Select all
$_['text_product_weight'] = 'Weight: %s';
find:
Code: Select all
<?php foreach ($products as $product) { ?>
<div>
Code: Select all
<?php if ($product['weight']) { ?>
<?php echo $product['weight']; ?>
<?php } ?>
Code: Select all
</div>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
For v2.0x releases, in catalog/controller/product/category.php file,Flysan wrote:How to make it work on OC 2.x?
find:
Code: Select all
'rating' => $result['rating'],
Code: Select all
'weight' => sprintf($this->weight->format($result['weight'], $result['weight_class_id']), $this->language->get('text_product_weight')),
find:
Code: Select all
<?php foreach ($products as $product) { ?>
<div class="product-layout product-list col-xs-12">
Code: Select all
<?php if ($product['weight']) { ?>
<?php echo $product['weight']; ?>
<?php } ?>
Code: Select all
</div>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Display Product Weight in Category Sections, Single Language Edition VqMOD for Opencart v.1.5.6.x
I will add it into the Extension Section, as well as a Version v.2.x, soon.
needs to be changed here:
Code: Select all
<span>Weight: <?php echo $product['weight']; ?>
Download:
http://www.ipc.li/os/weight_in_category_156.zip
Good Luck

Ernie
PS: I just added a OC v.2.0.3.x Text Version XML to the ZIP, wich I cannot test by myselfs!
If it don't work, check for required WHITESPACE , they have to match exactly to, what you have,
on whitespace, INSIDE/WITHIN OF SUCH LINES, existing in your Source Files, related to the Task, to make
the VqMod work.
Whitespace Sample:
Code: Select all
'rating' => $result['rating'],
The Result can be seen here, momentarely, multi Theme tested:
http://www.hitline.info/shop/index.php? ... path=20_26
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Fatal error: Class 'Controllerproductproduct' not found in /home/souqkz/public_html/vqmod/vqcache/vq2-system_modification_system_engine_action.php on line 62
can you help me plz
my oc language is arabic
would be equal:
controller/product/product.php
but a product file is not even called by anything, related to this Mod !
You did not mention your Version either, how in the World do you expect someone to assist you ?
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I have oneegyshow wrote:sorry version is 2.3.1
http://www.opencart.com/index.php?route ... on_id=2937
Users browsing this forum: No registered users and 11 guests