{"push_id":939953746,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"5eeaf56aab81a01f724a3bed8bd61a5a2fa10f4d","before":"20e7f1cc6e64ff0e48793cadcea5ecfbe314379b","commits":[{"sha":"5eeaf56aab81a01f724a3bed8bd61a5a2fa10f4d","author":{"email":"2236798969a5e46f8d6ee5689aed8ada36cd1f68@befactory.es","name":"mmoreram"},"message":"Coupons Query Language (CQL)\n\nWe have developed a coupons query language, a special query language for coupons design.\nAt the moment, only NxM coupons have been applied, and the query language only contains logic for\nproducts, categories and manufacturers.\n\nFor example:\n\n3x2:p(13,34)|m(3)\n\nThis means: buy 3, pay only 2, including all products of manufacturer 3 or products with id 13 and 34.\nHere we have some extra examples\n\n2x1 - buy 2, pay 1, to all products\n4x3:c(13) - buy 4, pay 3, to all products of category 13\n\nThis PR introduces as well modifiers. At the moment we have only 5 modifiers.\nThey can be combined.\n\n2x1:c(13):G\n\nP - Only products - When exists, only Products are applied\nV - Only variants - When exists, only Variants are applied\nX - Only packs - When exists, only Packs are applied\nG - Group elements - When exists, coupons are applied to all elements matching the expression. This means that they are threated as the same\n    element before applying the coupon. for example, if 2x1 for category 13 is applied with G modifier (2x1:c(13):G), all products, variants and packs\n    with category 13 will match, they will be ordered from less expensive to more expensive, and the first half will be discounted. If the modifier is\n    not introduced, all elements will be grouped by type and id and after this, 2x1 will be applied for each one.\n\nIf type modifiers are combined, then you can mix types\n\n2x1:c(13):PVG - buy 2, pay 1, to all products with category 13 that are products, variants, grouping them all as one before applying.\n\nThis implementation is explicitely done for extension, with adapters and tags in Symfony DIC.\n\n- Extra\n\n* Dependency with KNPGaufretteBundle has updated\n* Travis test with Symfony3 (explicit) is not a must. Removed for allow_failure matrix","distinct":true,"url":"https://api.github.com/repos/elcodi/CartCouponBundle/commits/5eeaf56aab81a01f724a3bed8bd61a5a2fa10f4d"}]}