If i clone the shopping cart block - so i can make a simpler version to use in my header - it works fine, but after checkout and payment I see items in the cart still, clicking on the view cart or checkout link takes me to a "Your shopping cart is empty." or "Add some items to your cart and then try checking out." message.

My cloned shopping cart block is completely unchanged other than the name and machine name. I've done this so i can make a tpl file to remove all the fields other than the total items and buttons at the bottom. If I also show the original shopping cart block that behaves as normal.

The cloned bock is showing the order i made during checkout, it will disappear if i delete that order. The original shopping cart block will disappear as soon as I complete checkout (eg click on the paypal button). I assume there is code that targets that block and hides it - it would be nice to be able to clone it though.

Comments

nocean’s picture

Category: support » bug
Priority: Normal » Major

I'm also seeing this. Changing this to "bug report", as it's not a support item. Also changing this to "major", as it's a pretty significant problem for anyone using modified carts (for slimmer "header" carts).

rszrama’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Fixed

Actually, it's just a support request, because the problem is a misconfigured View. When you clone the normal cart block View, you have to update the settings for the Order ID contextual filter. In the normal cart block, the Order ID comes from the Cart module itself, not straight from the View's settings. This is because it doesn't have an actual block display by default right now. You're adding that and are most likely leaving the default setting on the Order ID contextual filter to display all items by default. Change the behavior of that to provide a default value of the current user's cart order ID and it'll work as expected.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.