Support percentage discount on shipping for a specific shipping method
---------------------------------------------------------------------- Key: OFBIZ-2488 URL: https://issues.apache.org/jira/browse/OFBIZ-2488 Project: OFBiz Issue Type: New Feature Components: product Affects Versions: SVN trunk Reporter: Divesh Dutta Fix For: SVN trunk Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arun Patidar updated OFBIZ-2488: -------------------------------- Attachment: Shipping_Promotion-OFBIZ-2488.patch Here is patch for creating promotion on specific shipping method for getting X% discount. Steps to test functionality: 1) Go to Catalog -> Promos 2) Create new Promotion 3) Select new options in condition drop down , ie 'Ship-total' and also select shipping method from new drop down added. 4) Select ' X% discount on shipping' in drop down of action part. 5) Then follow normal procedure to create promotion. > Support percentage discount on shipping for a specific shipping method > ---------------------------------------------------------------------- > > Key: OFBIZ-2488 > URL: https://issues.apache.org/jira/browse/OFBIZ-2488 > Project: OFBiz > Issue Type: New Feature > Components: product > Affects Versions: SVN trunk > Reporter: Divesh Dutta > Fix For: SVN trunk > > Attachments: Shipping_Promotion-OFBIZ-2488.patch > > > Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vikas Mayur reassigned OFBIZ-2488: ---------------------------------- Assignee: Vikas Mayur > Support percentage discount on shipping for a specific shipping method > ---------------------------------------------------------------------- > > Key: OFBIZ-2488 > URL: https://issues.apache.org/jira/browse/OFBIZ-2488 > Project: OFBiz > Issue Type: New Feature > Components: product > Affects Versions: SVN trunk > Reporter: Divesh Dutta > Assignee: Vikas Mayur > Fix For: SVN trunk > > Attachments: Shipping_Promotion-OFBIZ-2488.patch > > > Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vikas Mayur closed OFBIZ-2488. ------------------------------ Resolution: Fixed Thanks Arun, Divesh! Arun your patch is in trunk rev. 776581 Vikas > Support percentage discount on shipping for a specific shipping method > ---------------------------------------------------------------------- > > Key: OFBIZ-2488 > URL: https://issues.apache.org/jira/browse/OFBIZ-2488 > Project: OFBiz > Issue Type: New Feature > Components: product > Affects Versions: SVN trunk > Reporter: Divesh Dutta > Assignee: Vikas Mayur > Fix For: SVN trunk > > Attachments: Shipping_Promotion-OFBIZ-2488.patch > > > Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733222#action_12733222 ] Jacopo Cappellato commented on OFBIZ-2488: ------------------------------------------ It would be nice to show/hide the shipmentmethod drop down on selection of the "ship-total" condition (and hide/show in the same time the free text input box associated to the "otherValue"). It would be nice to have also the ability to select "all shipment methods". > Support percentage discount on shipping for a specific shipping method > ---------------------------------------------------------------------- > > Key: OFBIZ-2488 > URL: https://issues.apache.org/jira/browse/OFBIZ-2488 > Project: OFBiz > Issue Type: New Feature > Components: product > Affects Versions: SVN trunk > Reporter: Divesh Dutta > Assignee: Vikas Mayur > Fix For: SVN trunk > > Attachments: Shipping_Promotion-OFBIZ-2488.patch > > > Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733224#action_12733224 ] Jacopo Cappellato commented on OFBIZ-2488: ------------------------------------------ Also, in order to keep the code cleaner, it would be better to move the block: + if (otherValue != null && otherValue.contains("@")) { + shippingMethod = otherValue.substring(otherValue.indexOf("@")+1); + otherValue = ""; + } inside of the block: + } else if ("PPIP_ORDER_SHIPTOTAL".equals(inputParamEnumId) && shippingMethod.equals(cart.getShipmentMethodTypeId())) { + BigDecimal orderTotalShipping = cart.getTotalShipping(); + if (Debug.verboseOn()) { Debug.logVerbose("Doing order total Shipping compare: ordertotalShipping=" + orderTotalShipping, module); } + compareBase = new Integer(orderTotalShipping.compareTo(new BigDecimal(condValue))); > Support percentage discount on shipping for a specific shipping method > ---------------------------------------------------------------------- > > Key: OFBIZ-2488 > URL: https://issues.apache.org/jira/browse/OFBIZ-2488 > Project: OFBiz > Issue Type: New Feature > Components: product > Affects Versions: SVN trunk > Reporter: Divesh Dutta > Assignee: Vikas Mayur > Fix For: SVN trunk > > Attachments: Shipping_Promotion-OFBIZ-2488.patch > > > Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacopo Cappellato reopened OFBIZ-2488: -------------------------------------- > Support percentage discount on shipping for a specific shipping method > ---------------------------------------------------------------------- > > Key: OFBIZ-2488 > URL: https://issues.apache.org/jira/browse/OFBIZ-2488 > Project: OFBiz > Issue Type: New Feature > Components: product > Affects Versions: SVN trunk > Reporter: Divesh Dutta > Assignee: Vikas Mayur > Fix For: SVN trunk > > Attachments: Shipping_Promotion-OFBIZ-2488.patch > > > Support percentage discount on shipping for a specific shipping method. Also associate this with promotion code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |