Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have added a conditional action to add tax for all residents of NY state. Every time the checkout form is submitted we seem to add another tax line item to the order,wether there are errors or not. If you submit with a wrong credit card number,then with a missing address field,and then finally correct all info and submit you should now have 3 tax items in the review page. Table uc_orders_line_items also has 3 tax line items,looks like the item gets inserted every time the page is submitted.
Comments
Comment #1
jordan.aanei CreditAttribution: jordan.aanei commentedThe following fix worked for me :
File uc_order.line_item.inc , line 99 :
Comment #2
Island Usurper CreditAttribution: Island Usurper commentedWhat do you mean by "added a conditional action"? By creating a tax rule, a conditional action predicate should be created for that tax automatically, and you just have to put conditions on it. You shouldn't have to add the action itself, because that would mean it happens twice.
Comment #3
Island Usurper CreditAttribution: Island Usurper commentedComment #4
TR CreditAttribution: TR commentedClosing because it seems likely that the OP caused the problem by creating a duplicate rule. Since there has been no follow-up in more than 6 months, and because no-one else has reported a similar problem in that time, I'm going to assume the OP figured it out.