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 anonymous users configure a product and then click 'Add to cart', they are redirected to the login form and then subsequently to the node checkout form. This works well however their attribute selections are not preserved during the redirect process.
The code to do this is already present in uc_node_checkout_add_to_cart_submit() for logged un users, so the attached patch is mostly just copy/pasting snippets from that function to have this done while redirecting anonymous users.
Comment | File | Size | Author |
---|---|---|---|
#1 | uc_node_checkout-anonymous-keep-attributes-1376864-1.patch | 1.79 KB | stewart.adam |
Comments
Comment #1
stewart.adam CreditAttribution: stewart.adam commentedNote that this patch calls urlencode() on $oid as per #1298348.