Closed (fixed)
Project:
Commerce Shipping
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Apr 2019 at 12:29 UTC
Updated:
19 Oct 2020 at 09:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tbalkwill-vupar commentedThis patch adds a adjustable "Shipment quantity" condition to the already existing conditions in the Shipments tab of the Edit Shipping method page.
Comment #3
tamerzg commentedPatch works fine!
Comment #4
dwkitchen commentedUpdating patch to align with #3170419: Move all Shipping Conditions to the Shipping Category
Needs tests before acceptance.
Comment #5
dwkitchen commentedComment #6
jsacksick commentedLet's use the Calculator to sum up quantities.
Also, the patch has several coding standard issues (missing spaces between operators and $variables),
falseshould beFALSE.And as mentioned, we're missing a test. Let's write a unit test (similar to what we're doing for similar condition plugins (i.e OrderItemQuantityTest).
Comment #7
khiminrm commentedComment #8
khiminrm commentedI've created patch with code fixes and unit test.
Comment #9
khiminrm commentedComment #10
jsacksick commentedI think this is good to go! @dwkitchen: could you confirm?
Comment #12
jsacksick commentedAdded the condition to the schema.yml and committed. Thanks everyone!