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
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
Reason: Topic moved
1. EDIT: catalog/model/shipping/shipping_groups.php
2. FIND:
3. REPLACE WITH:
2. FIND:
Code: Select all
$totalcost = array_sum($totalcost);
Code: Select all
$totalcost = max($totalcost);
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

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
Try this.
1. EDIT: catalog/model/shipping/shipping_group.php
2. FIND:
3. REPLACE WITH:
1. EDIT: catalog/model/shipping/shipping_group.php
2. FIND:
Code: Select all
$tmpcost[$shipping_group_id] = $query->row['cost'];
Code: Select all
$tmpcost[$shipping_group_id] = $query->row['cost'] * $product['quantity'];
Try putting parenthesis around it
Code: Select all
$tmpcost[$shipping_group_id] = ($query->row['cost'] * $product['quantity']);
Who is online
Users browsing this forum: No registered users and 2 guests