Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[-] FO : Fix #PSCSX-6751, gets the carrier available with weight attribute #3958

Merged
merged 2 commits into from Sep 16, 2015
Merged

[-] FO : Fix #PSCSX-6751, gets the carrier available with weight attribute #3958

merged 2 commits into from Sep 16, 2015

Conversation

webagil-kevin
Copy link
Contributor

Considers the weight of products attributes.

Bug fix http://forge.prestashop.com/browse/PSCSX-6751

@webagil-kevin webagil-kevin changed the title [-] FO : Fix PSCSX-6751, gets the carrier available with weight attribute [-] FO : Fix #PSCSX-6751, gets the carrier available with weight attribute Sep 10, 2015
@gRoussac
Copy link
Contributor

💝

Thank you for your PR and dedication.

@gRoussac
Copy link
Contributor

👍

@gRoussac gRoussac added the Bug Type: Bug label Sep 14, 2015
gRoussac added a commit that referenced this pull request Sep 16, 2015
[-] FO : Fix #PSCSX-6751, gets the carrier available with weight attribute
@gRoussac gRoussac merged commit 75d7c80 into PrestaShop:1.6.1.x Sep 16, 2015
@gRoussac
Copy link
Contributor

Thank you for your PR and contribution.

Best regards

@@ -1401,7 +1407,7 @@ public static function getAvailableCarrierList(Product $product, $id_warehouse,
unset($carrier_list[$key]);
}

if ($carrier->max_weight > 0 && $carrier->max_weight < $product->weight * $cart_quantity) {
if ($carrier->max_weight > 0 && ($carrier->max_weight < $product->weight * $cart_quantity OR $carrier->max_weight < $cart_weight)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentionned here : http://forge.prestashop.com/browse/PSCSX-6751?focusedCommentId=156257&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-156257

Shouldn't this condition become only "if ($carrier->max_weight > 0 && $carrier->max_weight < $cart_weight)" ?

@eternoendless eternoendless added this to the 1.6.1.2 milestone Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants