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.
When click on 'continue shopping', page goes to uc_ajax_cart/add/item. When refresh the cart page, it goes to the home page instead of the product page that i was viewing while addding to cart. Clean install with Ubercart and uc ajax cat installed only and garland theme.
Anyone has a solution, please help!
Comment | File | Size | Author |
---|---|---|---|
#4 | continue_shopping_url.jpg | 94.05 KB | joro78 |
page_not_found.jpg | 54.62 KB | bellagio |
Comments
Comment #2
bellagio CreditAttribution: bellagio commentedComment #3
Bitvark CreditAttribution: Bitvark commentedA quick "dirty" solution can be to patch ubercart/uc_cart/uc_cart.module, appending in function uc_cart_add_item:
to any occurrence of:
$_SESSION['uc_cart_last_url'] = current_path();
Comment #4
joro78 CreditAttribution: joro78 as a volunteer commentedThe proposed solution does not work for me :( Maybe I was not able to implement it right, thought.
However I have found an easy solution from the Shop settings (admin/store/settings/cart). You can set an URL to be used for the "Continue Shopping" link. I have also checked to use a button instead of link. You can also hide the link at all. Be sure that you have unchecked "Make continue shopping go back to the last item that was added to the cart." Now everything works fine.
Comment #5
bellagio CreditAttribution: bellagio commented@joro78, Thank you for your suggestion. it is much better than showing blank page.