Added free shipping for orders over $50, see http://www.ubercart.org/faq/2942#comment-45452 for overview on how it's setup. Works as it should, except when node title has a | in it.

Comments

TR’s picture

Status: Active » Postponed (maintainer needs more info)

I really don't see how that's possible - neither the CA module nor the "Check order total" condition examines or uses the $node->title value. I suspect that something entirely different is happening. Please provide more information about how you reached your conclusion. Specifically, tell us what you mean when you say it doesn't work - what happens exactly?

rj’s picture

See http://www.something-comfortable.com/gallery/12/spanx-sportease-athletic... for a node with a | in the title. If I add 6 items to my shopping cart for a total of $60, it should trigger free S/H, but it doesn't; if you enter cc information and try to proceed to the review order page, it gives the following error message: Invalid option selected. Recalculate shipping quotes to continue. If I remove the | from the node title, free S/H is triggered and it works perfectly.

Free S/H works on every other product in the store. Any insight is appreciated. Thanks.

rj’s picture

Just as a follow-up, I was able to replicate this issue using a clean install of Drupal and only the Ubercart and Token modules.

TR’s picture

Status: Postponed (maintainer needs more info) » Active

OK, seems to be a JavaScript problem. uc_quote.js uses "|" internally as a separator for product information, essentially implode()-ing on "|". So the "|" in your product title confuses the AJAX callback uc_quote_request_quote() when it tries to explode() the data.

The proper fix is probably to redesign the format of information passed back to the callback from the JavaScript, since changing the separator character only moves the problem to somewhere else.

longwave’s picture

longwave’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Nobody cared enough to fix this in 6 years, it isn't going to be fixed now, and isn't a problem in 7.x-3.x or 8.x-4.x.