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.
This is working if you use the default links for the buy button (#229333: Update cart breadcrumb and continue shopping link support), but I'm using uc_cart_links, so I added $_SESSION['uc_cart_last_url'] = uc_referer_uri();
in uc_cart_links.pages.inc, rright before the drupal_goto() line
Comment | File | Size | Author |
---|---|---|---|
#3 | uc_cart_links_498390.patch | 303 bytes | attiks |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedGood call. Can we get a patch?
Comment #2
rszrama CreditAttribution: rszrama commentedComment #3
attiks CreditAttribution: attiks commentedPatch attached
Comment #4
rszrama CreditAttribution: rszrama commentedTested the patch; the first time I tried it, I didn't seem to have the correct path (i.e. the base path seemed to be missing). I tried tweaking it and lost any path at all. I don't know if it needs work or review, but I'm going to mark it needs work and ask Lyle to look at it.
Comment #5
Island Usurper CreditAttribution: Island Usurper commentedIt worked for me. Maybe you had some leftover session variables or something.
Committed.