News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Update Shipping logic

Started by Sam_78, November 11, 2023, 01:25:01 PM

Previous topic - Next topic

Sam_78

I have a extension 'default_flat_rate_shipping' turned on with price of $15  and now I have some products that requires individual shipping for $25.
The issue I am having is if a customer adds 1 product that has default flat shipping and 4 products of this individual shipping it charges $25*4 + $15  I want it to charge $24*1 + $15    How can I limit shipping for individual product to not multiply it by quantity?

abolabo

public_html/extensions/default_weight/storefront/model/extension/default_weight.php

line 87
see
if ($product['ship_individually']) {
    $cost += $fixed_cost * $product['quantity'];
}
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Sam_78

#2
Thanks abolabo for your reply /default_flat_rate_shipping.php This is the file that needed to be updated.


Here is one more doubt regarding same issue. In my order I have 2 products one that has flat shipping rate of $25 and another one that has separate shipping for $15  I want shipping to be charged just $25 not $15 + $25= $40 (which ever is bigger). Where can I change that code??

Forum Rules Code of conduct
AbanteCart.com 2010 -