Jump to content
Latest News: (loading..)
sinopia

Help with ot_shipping due the free shipping

Recommended Posts

I've set the default cost manually, in case anyone needs I used this way in ot_shipping.php:

        // The line telling the savings on the shipping when it's free
        if ($order->delivery['country_id'] == STORE_COUNTRY) {
        	$total_saving = '<span style="color: red; text-decoration: line-through;">4€</span>';
    	} else {
    		$total_saving = '<span style="color: red; text-decoration: line-through;">8€</span>';
    	}

		if (($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) { // if free shipping
	        $this->output[] = array('title' => $order->info['shipping_method'] . ':',
	                                'text' => $total_saving . ' ' . $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']),
	                                'value' => $order->info['shipping_cost']);
	    } else {
	        $this->output[] = array('title' => $order->info['shipping_method'] . ':',
	                                'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']),
	                                'value' => $order->info['shipping_cost']);
	    }

 

Share this post


Link to post
Share on other sites
11 hours ago, sinopia said:

@clustersolutions Hi. That code for the savings looks very nice. You could possibility public it? 

@sinopia, I believe there were quite a few places that required core code mods, may be schema as well. I hv been waiting for a stable/finalized OSC frame work b4 further  dev...I would by then. Hope u known what I mean. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×