No gift certificates have been purchased and why would the weight appear there??
I would prefer to have either Shopping Cart or the product name on there. Where can I change this?
jpg screenshot:

Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
if ($weight)
Code: Select all
<?php if ($weight) { ?>
(<?php echo $weight; ?>)
<?php } ?>
Any advice if setting is as suggested but still the weight appears on the Cart Page?
Code: Select all
IN:
/catalog/view/theme/YOURTHEME/template/checkout/cart.twig
DELETE:
({{ weight }})
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
IN:
/catalog/model/shipping/weight.php
or
/catalog/model/extension/shipping/weight.php
REPLACE:
'title' => $result['name'] . ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
WITH:
'title' => $result['name'],
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
My installation is v.3.0.2.0 and it worked great.
No problem. Although, it would of still be informative to indicate the OC version range that is available to use the provided codes to help future users.Johnathan wrote: ↑Tue Apr 03, 2018 9:42 pm
Literally every OpenCart version since 1.5.1. The syntax for that line is slightly different in 1.5.0 and older, but I doubt there are many users of versions that old these days. If you do have a version that's 1.4.x or 1.5.0, the line is pretty much the same, so it shouldn't be hard to find.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 5 guests