Child pages
  • [in-commerce] Product and category in shopping cart url after adding product to cart
Skip to end of metadata
Go to start of metadata

Imported From:

Why product and it's category are still in shopping cart url after product was added to cart.

To fix this add code below to the end of ord:OnAddToCart and ord:OnUpdateItemOptions events:

// don't pass nor product neither category to shopping cart template 
$event->redirect_params['pass'] = 'm'; 
$event->redirect_params['pass_category'] = 0; //otherwise mod-rewrite shop-cart URL will include category 


  1. Actually I think we still want to have Category passed through since users
    can choose to "Continue Shopping" and it should take them back to the
    Category they came from. At the same time, I don't see need for a ProductId
    to be carried there.

    Do you think differently?


  2. Need more opinions on that.

  3. from user's end, what would you like to see once you've added a product t
    your cart, if you don't want to checkout? I'd answer: the category I went

    2010/3/28 Alexander Obuhovich <>

  4. So be it.

    On Sun, Mar 28, 2010 at 1:31 AM, Phil ..:: ::.. <

  5. I am still holding my prev. point on this topic.

    Phil, Ilya - do you think differently?


  6. I've expressed the same point of view: return to last category.

    2010/3/28 Dmitry Andrejev <>

  7. So what are we doing here OR we are not doing anything, since it already
    works the way it needs to work.

    On Sun, Mar 28, 2010 at 3:59 PM, Phil ..:: ::.. <

  8. I would leave it *as is* now and come back if we come across better options.