Post by finaldesign » Thu Jul 29, 2010 9:31 pm

Hi all!

My shop will have only 2 shipping methods: free and pay when picking up. I managed to do that by using free shipping module, and duplicated that module to make "pay when picking up" module. The problem is now, if buyer pays to delivery services, I don't wan't him to see delivery price on invoice or email notice, or in cart.

My question is: how to hide shipping price from order form, cart, emails?

I have already made the search on the forums and found this solution: http://forum.opencart.com/viewtopic.php ... t=0#p31980

But it does not work correctly it only hides shipping price on order form, but not in basket (on right sidebar) or from emails that are sent when order is confirmed.

Any ideas? Thanks to all in advance.
Last edited by i2Paq on Mon Aug 02, 2010 5:45 am, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Thu Jul 29, 2010 9:24 pm

Post by finaldesign » Thu Jul 29, 2010 9:54 pm

Ok few minutes after posting this question I managed to work it out myself.

SOLUTION
Edit file: system/library/currency.php

Find this line:

Code: Select all

return $string;
Add this code on line before:

Code: Select all

//Hide Shipping Prices
$trace = debug_backtrace();
if (isset($trace[1]['class']) && strpos($trace[1]['class'], 'Shipping') !== false) {
$string = "";
}
I used this solution: http://forum.opencart.com/viewtopic.php ... t=0#p31980 and just modify class "ModelShipping" to "Shipping".

:)

Newbie

Posts

Joined
Thu Jul 29, 2010 9:24 pm

Post by Savag3 » Sat Nov 30, 2019 11:56 pm

Briliant modification.
Working on 3.0.2.0 also

Thanks

Newbie

Posts

Joined
Thu Aug 11, 2016 2:26 am
Who is online

Users browsing this forum: No registered users and 28 guests