Post by matsp » Fri Jan 21, 2011 5:24 am

Hi.
Love the script, will definately be sticking with it.
I have one thing i'd like to do that I can't see how though - Can I set a maximum a shopper has to pay for postage, I am setting it up as per item shipping.
Any advice would be much appreciated thank you.

Newbie

Posts

Joined
Sun Jan 16, 2011 7:02 pm

Post by Johnathan » Fri Jan 21, 2011 7:56 am

You can do it by do the following edits (replace 20 with your maximum cost):

IN:

Code: Select all

/catalog/model/shipping/item.php
REPLACE BOTH INSTANCES OF:

Code: Select all

$this->config->get('item_cost') * $this->cart->countProducts() 
WITH:

Code: Select all

$cost
AND BEFORE:

Code: Select all

$quote_data['item'] = array( 
ADD:

Code: Select all

$cost =  $this->config->get('item_cost') * $this->cart->countProducts();
if ($cost > 20) $cost = 20; 
If Daniel or Q reads this, this would be easy to add as an actual setting in the per item module, and would probably be a good idea.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by matsp » Sat Jan 22, 2011 2:15 am

That works a treat.
Thank you so much for taking the time to show me that Johnathan. :)

Newbie

Posts

Joined
Sun Jan 16, 2011 7:02 pm
Who is online

Users browsing this forum: No registered users and 2 guests