Post by ianhaney » Mon Jun 15, 2020 8:46 pm

I need to remove the 0.00 from pickup from store shipping method, I thought it might be same way as when I did it on a 2.0.3.1 store but it's bit different code on 2.3.0.2 and I get a error if I comment out the following lines

Code: Select all

'cost'         => 0.00,

'text'         => $this->currency->format(0.00, $this->session->data['currency'])
I tried putting false where the 0.00 on the cost line and removing the line

Code: Select all

$this->currency->format(0.00, 
from the 'text' line but that just gave errors

Active Member

Posts

Joined
Sun Jun 24, 2012 2:30 am
Location - GB

Post by straightlight » Mon Jun 15, 2020 8:51 pm

I get a error if I comment out the following lines
What error?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ianhaney » Mon Jun 15, 2020 9:48 pm

If I comment the lines out below, I get the error Notice: Undefined index: text in catalog/view/theme/default/template/checkout/shipping_method.tpl on line 18

Code: Select all

'cost'         => 0.00,

'text'         => $this->currency->format(0.00, $this->session->data['currency'])

Active Member

Posts

Joined
Sun Jun 24, 2012 2:30 am
Location - GB

Post by ianhaney » Mon Jun 15, 2020 11:03 pm

Just solved it with the following code in catalog/model/extension/shipping/pickup.php in oc 2.3.0.2

Code: Select all

'cost'         => false,

'text'         => false

Active Member

Posts

Joined
Sun Jun 24, 2012 2:30 am
Location - GB

Post by paulfeakins » Tue Jun 16, 2020 4:35 pm

You're hacking your store to bits, I bet you didn't even use vQmod or OCMOD? :crazy:

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by funky123 » Tue Oct 06, 2020 4:36 pm

how would you right that as an ocmod ??

Newbie

Posts

Joined
Sat May 12, 2018 10:03 pm
Who is online

Users browsing this forum: No registered users and 279 guests