VirtueMart Developer Portal

         
[BUG-703]  -  Continue Shopping appears after modifying order details in shopping cart
Tags:   No tags associated yet.
All Tags...
Go Back
  0  
 Tracker:  Bug  Priority:  High  Status:  Closed
 Resolution:  --  Owner:  --  Severity:  --
 Submitted by:  soeren_nb Apr 17 2006 08:32  Assigned to:  -- Apr 17 2006 08:32  Modified by:  soeren_nb Apr 20 2006 16:30
 Category:  --  Platform:  --  OP-SYS:  --
 Version:  --  Joomla! Version:  --  Browser Version:  --
 Fixed in Version:  --
Description:
When I update an items quantity or delete an item from the shopping cart the 'continue shopping' link appears. Clicking it returns me to a category in the store.

The 'continue shopping' item should not appear when modifying the shopping cart, only when visiting the shopping cart from a product or category page.

Details:
Comments (3)
Attachments (0)
Associations (0)
SCM Commits (0)
All (3)

Submitted Comment
soeren_nb
Apr 20 2006 16:29
See //line 28// in the file __/html/shop.cart.php__!

Change from

[{elseif( empty( $category_id) && !empty($product_id) ) {]}

to

[{elseif( empty( $category_id) && !empty($product_id) && empty($func)) {]}

That prevents the "Continue shopping" link to be displayed after user actions in the cart.
soeren_nb
Apr 20 2006 11:35
I stored it in the bug system because the functionality does not work as I have assumed it should work. This doesn't mean it is wrong, I may not understand how the function is meant to operate.

As mentioned, clicking 'continue shopping' doesn't necessarily return the user to the correct virtuemart page therefore I thought it was a bug.

Alternatively the 'continue shopping' item should not appear when the shopping cart was accessed from a page which was not for a product or category.
soeren_nb
Apr 19 2006 20:21
This would be a feature request, not a bug.