Post by midlifedesign » Mon Jul 20, 2015 6:38 am

I am using the weight based shipping module in opencart. I have had to be creative with the numbers and the prices. I would like to remove the bit in brackets where it says the "UK Shipping (Weight = XXkg)" Can someone point me in the right direction please

New member

Posts

Joined
Thu Apr 18, 2013 3:47 am

Post by inactiveaccount9912 » Mon Jul 20, 2015 11:31 am

In catalog/model/shipping/weight.php , the line:

Code: Select all

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

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by midlifedesign » Mon Jul 20, 2015 3:26 pm

which bit do I need to remove - dont want the brackets or the content of the brackets if possible.

Sorry but I dont want to mess it up so i would rather be sure than fiddle about - thanks for your help

New member

Posts

Joined
Thu Apr 18, 2013 3:47 am

Post by Rohit0071996 » Mon Jul 20, 2015 5:22 pm

midlifedesign wrote:which bit do I need to remove - dont want the brackets or the content of the brackets if possible.

Sorry but I dont want to mess it up so i would rather be sure than fiddle about - thanks for your help

You want there to be shown only UK Shipping ? And not the weight including the brackets?

New member

Posts

Joined
Fri Apr 03, 2015 6:44 pm


Post by midlifedesign » Mon Jul 20, 2015 7:37 pm

That's correct. Thanks

New member

Posts

Joined
Thu Apr 18, 2013 3:47 am

Post by inactiveaccount9912 » Tue Jul 21, 2015 1:08 am

no brackets at all:

Code: Select all

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

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by midlifedesign » Tue Jul 21, 2015 3:22 am

Inserted where

New member

Posts

Joined
Thu Apr 18, 2013 3:47 am

Post by steveking198 » Tue Jul 21, 2015 3:39 am

Replace the line

Code: Select all

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

Code: Select all

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

Newbie

Posts

Joined
Mon Jul 13, 2015 3:52 am


Post by midlifedesign » Tue Jul 21, 2015 3:40 am

Many thanks

New member

Posts

Joined
Thu Apr 18, 2013 3:47 am

Post by midlifedesign » Tue Jul 21, 2015 5:10 am

worked a treat many thanks

New member

Posts

Joined
Thu Apr 18, 2013 3:47 am
Who is online

Users browsing this forum: No registered users and 13 guests