Hi,
Is is possible to remove the actual weight from the delivery section of the check out.
At checkout it currently says, for example:
UK Shipping (Weight: 19.00kg)
I'd like it to just say:
UK Shipping
Is is also possible to change the name displayed from "Weight Based Shipping" to something else, say "Standard Shipping".
Thanks,
Ryan
Is is possible to remove the actual weight from the delivery section of the check out.
At checkout it currently says, for example:
UK Shipping (Weight: 19.00kg)
I'd like it to just say:
UK Shipping
Is is also possible to change the name displayed from "Weight Based Shipping" to something else, say "Standard Shipping".
Thanks,
Ryan
v1.5.2.1
Open catalog/model/shipping/weight.php
Find this line: (array)
Make it look like this and you will get what you want:
Note: we comment out code that we might want to use again by adding a // or a # in front of it.
Open catalog/model/shipping/weight.php
Find this line: (array)
Code: Select all
$quote_data['weight_' . $result['geo_zone_id']] = array(
'code' => 'weight.weight_' . $result['geo_zone_id'],
'title' => $result['name'] . ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
'cost' => $cost,
'tax_class_id' => $this->config->get('weight_tax_class_id'),
'text' => $this->currency->format($this->tax->calculate($cost, $this->config->get('weight_tax_class_id'), $this->config->get('config_tax')))
);
Code: Select all
$quote_data['weight_' . $result['geo_zone_id']] = array(
'code' => 'weight.weight_' . $result['geo_zone_id'],
'title' => $result['name'],
//'title' => $result['name'] . ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
'cost' => $cost,
'tax_class_id' => $this->config->get('weight_tax_class_id'),
'text' => $this->currency->format($this->tax->calculate($cost, $this->config->get('weight_tax_class_id'), $this->config->get('config_tax')))
);
Not true. It's turned off in my settings yet still shows on the invoiceJohnathan wrote:If you just need to hide the weight, you can turn it off in System > Settings > Option.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
I could have sworn this was the case, but you're right that that's not in the code. Seems like it would be a good idea, but we'd have to convince Daniel of that first.labeshops wrote:Not true. It's turned off in my settings yet still shows on the invoiceJohnathan wrote:If you just need to hide the weight, you can turn it off in System > Settings > Option.
Here is the vqmod I use, hope it helps:
Code: Select all
<modification>
<id>Remove Shipping Weight</id>
<version>1.0.0</version>
<vqmver>2.2.1</vqmver>
<author>Eddie</author>
<file name="catalog/model/shipping/weight.php">
<operation>
<search position="replace">
<![CDATA[
'title' => $result['name'] . ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
]]>
</search>
<add>
<![CDATA[
'title' => $result['name'] . ' ',
]]>
</add>
</operation>
</file>
</modification>
Last edited by Johnathan on Tue Mar 15, 2016 11:07 pm, edited 1 time in total.
Reason: Added [code] tags
Reason: Added [code] tags
Who is online
Users browsing this forum: No registered users and 43 guests