You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Daniel Riquelme (JIRA)" <ji...@apache.org> on 2012/07/04 03:48:33 UTC

[jira] [Commented] (OFBIZ-1560) Promotion rule for quantity discount not working

    [ https://issues.apache.org/jira/browse/OFBIZ-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406231#comment-13406231 ] 

Daniel Riquelme commented on OFBIZ-1560:
----------------------------------------

I revised this against revision 1357015 (last one to date) and the status is as follows,

1) The error regarding the condition in which the system donĀ“t use the user entered operator remains the same. The code reflects this clearly.

2) The first patch in this post does fixes that specific error.

3) When applying the condition "X Quantities Product" and action "X Quantity for Y %" the system do not apply the discount to all the items matching the condition. In fact what happens is that the items matching the condition, the qualifier items, are excluded from the action effect. The system will only apply the action to the number of items that are benefactors to the action, i.e. the Y items that remain in the cart that match the condition when the qualifier items are removed.

So, what I don't know and haven't found in the wiki or the mailing lists is what is the exact definition of "X Quantity for Y %", if the definition is apply a discount to all items in the cart matching the condition, then this issue is a bug and must be corrected. 
If the definition is apply the discount to at least Y benefactor items then this is not a bug.
If the latter is correct then there is no way to achieve the required promotion unless a custom service is used.
                
> Promotion rule for quantity discount not working
> ------------------------------------------------
>
>                 Key: OFBIZ-1560
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1560
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product, specialpurpose/ecommerce
>    Affects Versions: SVN trunk
>         Environment: Firefox 2.0, Ubuntu 7.10
>            Reporter: Raj Saini
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OFBIZ-1560.patch, OFBIZ-1560.patch
>
>
> Promotion rule for quantity discount does not work properly. For example if the X product in shopping cart has Qty >= Y, apply  Z% discount to all the quantities in the shopping cart. 
> I have created the following action to achieve the above:
> X Product for Y% discount - Can get the discounted price but this promotion applies to every item i.e. it does not consider the minimum quantity limit.
> If I create the following condition:
> X quantity of Product  - It does apply the minimum quantity condition but applies discount to the item above X. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira