<none> is a legal value for the "Add to cart redirect" setting in /admin/store/settings/cart, behaving as described when adding products to the cart. However, it appears that <none> is literally interpreted when products have checkout nodes, redirecting to example.com/%3Cnone%3E and returning page not found.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 452734-4_node_checkout_redirect.patch | 1.29 KB | aaronbauman |
Comments
Comment #1
FranCarstens commentedDitto
Comment #2
GreyHawk commentedDitto that ditto.
"Add to cart" then goes to show the saved node, instead of the shopping cart. I want the cart to be the default target instead, but the setting is being ignored.
Comment #3
tommy kaneko commentedI also had this problem. Here's a fix. Go to the file uc_node_checkout.module
Around line 407 to 409, you should see this:
Replace the above lines with the following
The snippet above will check to see if the uc_add_item_redirect variable has a value of '', in which case it will redirect to your cart.
Hope it helps.
Comment #4
aaronbaumanComment #5
aidanlis commentedAnyone want to role this against -dev for me?
Comment #6
aidanlis commentedRewrote the patch, thanks, this is now in -dev.