Post by tilesupply » Sat Sep 18, 2010 9:53 pm

Hi have just purchased a mod from Q but I need some help in changing part of it.

With this mod you can have a different shipping rate for each group.
You set up a group give it a price and set which products will use this group.

I have 5 groups but what I need it to do is not add each of the shipping cost of each group together and that’s the cost the customer pays.

What I need the mod to do is only ever show the highest price.

Example 1

Item A is in group 1 Shipping cost £10
Item B is in group 2 Shipping cost £15

If a customer just buys items from group 1 the shipping would be £10 but if they buy an item from group 1 & 2 the shipping cost would be £25.

What I need it to do would be to only charge the customer £15 that would be the highest delivery cost.

Example 2
item A group A shipping 8.99 but if someone adds an item from group B that has a shipping rate of 14.99 it will only charge the customer for item A and B a total cost of 14.99 not 23.98.

Can anyone help me with this?
I have sent a PM to Q but I haven’t had a reply this is why I am asking for help here.

Many Thanks
Last edited by i2Paq on Sun Sep 19, 2010 3:46 am, edited 1 time in total.
Reason: Topic moved

Active Member

Posts

Joined
Wed Aug 26, 2009 7:48 am


Post by tilesupply » Sat Sep 18, 2010 11:53 pm

Jay has sorted this for me.

Many Thanks

Active Member

Posts

Joined
Wed Aug 26, 2009 7:48 am


Post by Qphoria » Sun Sep 19, 2010 3:04 am

1. EDIT: catalog/model/shipping/shipping_groups.php

2. FIND:

Code: Select all

$totalcost = array_sum($totalcost);
3. REPLACE WITH:

Code: Select all

$totalcost = max($totalcost);

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by komarik » Fri Feb 04, 2011 4:53 am

Sorry for double posting, but I need some help with the Shipping Groups module. Qphoria seems to be busy :(

I am using OC Version 1.4.9.3.

I have setup 2 different groups using Mode: Q:
Group A
US Shipping: 1:20.00, 9999:18.00
Canada Shipping: 1:35.00, 9999:30.00

Group B
US Shipping: 1:25.00, 9999:22.00
Canada Shipping: 1:40.00, 9999:45.00

The problem is it doesn't count the quantity of products. For example:
I have added 2 x Product 1 (group A) and 1 x Product 2 (group B). The shipping should be $61, but it only shows $43.

Am I doing something wrong or this module does not support quantity?

Thank you,
Nikolay

Newbie

Posts

Joined
Tue Feb 01, 2011 1:31 am

Post by Qphoria » Fri Feb 04, 2011 5:26 am

Try this.

1. EDIT: catalog/model/shipping/shipping_group.php

2. FIND:

Code: Select all

$tmpcost[$shipping_group_id] = $query->row['cost'];
3. REPLACE WITH:

Code: Select all

$tmpcost[$shipping_group_id] = $query->row['cost'] * $product['quantity'];

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by komarik » Fri Feb 04, 2011 5:35 am

Hey Q,

Thanks for the reply. I have updated the code, and now its showing the price equal to quantity.
I have 3 products in the shopping cart, the shipping is $3.

Thanks

Newbie

Posts

Joined
Tue Feb 01, 2011 1:31 am

Post by Qphoria » Fri Feb 04, 2011 5:59 am

Try putting parenthesis around it

Code: Select all

$tmpcost[$shipping_group_id] = ($query->row['cost'] * $product['quantity']);

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Melon » Wed Feb 09, 2011 2:40 am

I know this is old topic, where can I download this module ?

New member

Posts

Joined
Thu Feb 03, 2011 8:02 pm

Post by komarik » Wed Feb 09, 2011 5:01 am


Newbie

Posts

Joined
Tue Feb 01, 2011 1:31 am
Who is online

Users browsing this forum: No registered users and 2 guests