Post by skip » Thu Jun 06, 2019 10:49 pm

Hi , how to hide weight amounth if cart iz "0 kg" on checkout
UK Shipping (Weight: 0.00kg) - $0.00
how to hide "(Weight: 0.00kg)" from this line for weight=0
catalog/model/shipping/weight.php define this line

Code: Select all

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

Active Member
Online

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by uksitebuilder » Fri Jun 07, 2019 1:44 am

Code: Select all

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

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by skip » Fri Jun 07, 2019 3:39 am

@uksitebuilder Thank You very much -it works!

Active Member
Online

Posts

Joined
Mon May 09, 2011 9:57 pm
Who is online

Users browsing this forum: No registered users and 51 guests