Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.5
Component:
Line item
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2013 at 07:43 UTC
Updated:
13 May 2013 at 16:14 UTC
This problem came to light when trying to adjust the sell price of a product using a custom line item and I noticed the price adjust alway happens twice. So in my rule for Calculating the sell price of a product I added the following as a display message
<?php dsm($commerce_line_item);?>
This then shows that the same line item is being returned twice and thus any rules relating to that line item are also applied twice.
Comments
Comment #1
rszrama commentedThis is either due to the shopping cart refresh or the appearance on a page of the same product as you have in the cart. You might update to Commerce 1.7 and see fi we've removed whatever particular duplication you're experiencing, but some of this is simply "by design."