Post by harish318 » Thu Mar 26, 2015 6:36 pm

I am using Weight Based Shipping in OC 2.0.1.1. In Settings > Options > Checkout I have set "Display Weight On Cart Page" to "No". However in Checkout under Delivery Method - Weight Based Shipping it is still showing the weight. See att file.

Is there any other setting that I am missing or is this a bug?

- Harish

Attachments

Screenshot_1.jpg

Screenshot_1.jpg (22.93 KiB) Viewed 6385 times


Newbie

Posts

Joined
Mon Mar 24, 2014 7:49 pm

Post by Qphoria » Thu Mar 26, 2015 9:54 pm

The settings one controls the weight at the title on the cart page
For the individual shipping level titles, they don't have an master off button and are hardcoded into the extensions themselves.

You can do 1 of 2 things.
- Add a check for the global show weight setting to the individual shipping extension code
or
- Just remove that weight stuff from displaying

Option 2 is the easiest:

1. EDIT: catalog/model/shipping/weight.php (or whatever other shipping extension)

2. FIND:

Code: Select all

'title'        => $result['name'] . '  (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
3. REPLACE WITH:

Code: Select all

'title'        => $result['name'],

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by budbecks » Wed Sep 13, 2023 5:17 am

Qphoria wrote:
Thu Mar 26, 2015 9:54 pm
The settings one controls the weight at the title on the cart page
For the individual shipping level titles, they don't have an master off button and are hardcoded into the extensions themselves.

You can do 1 of 2 things.
- Add a check for the global show weight setting to the individual shipping extension code
or
- Just remove that weight stuff from displaying

Option 2 is the easiest:

1. EDIT: catalog/model/shipping/weight.php (or whatever other shipping extension)

2. FIND:

Code: Select all

'title'        => $result['name'] . '  (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
3. REPLACE WITH:

Code: Select all

'title'        => $result['name'],
Thanks, just used this on 4.0.2.2 however "title" is replaced with "name"

1. EDIT: catalog/model/shipping/weight.php (or whatever other shipping extension)

2. FIND:

Code: Select all

'name'        => $result['name'] . '  (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class_id')) . ')',
3. REPLACE WITH:

Code: Select all

'name'        => $result['name'],

Newbie

Posts

Joined
Sat Sep 02, 2023 6:31 pm
Who is online

Users browsing this forum: No registered users and 7 guests