Product listing page "add to cart" button redirects to product info
I think that is the default set-up, but I can't seem to get it the way I want, no matter how much I search.
Basically, I want the product listing page to refresh when someone adds something to the cart. That button should keep you on the same page.
I played with the appropriate settings to no avail.
"Display Multiple Products Qty Box Status and Set Button Location" is set to "0" off
"Display Product Add to Cart Button" is set to "2" on with QTY box
"Display Cart After Adding Product" I have set to false
Here a link to see for you to see for yourself.
standard stainless steel flat head square tapping screw
I've searched through these forums and found similar problems, but none of those fixes seemed to work
Re: Product listing page "add to cart" button redirects to product info
Mickey D,
Take a look at this thread
Re: Product listing page "add to cart" button redirects to product info
What you are describing is not "standard" Zen Cart behavior, as controlled by /includes/init_includes/init_cart_handler.php (it's the $goto variable setting that's of interest).
Has that file been overwritten by one of the plugins (or template) that you are using?
Re: Product listing page "add to cart" button redirects to product info
Well I replaced the init_cart_handler with the original file for 1.5.4. I checked to see if there was an override file for it, there was one. But I had made it in the last few days while following a fix in the forum here. I removed it and no improvement. Still going to the info page.
Maybe I do have a add-on messing with this, but I can't imagine what. Can you think of some thing to search for that might help me track down the problem?
I searched for $goto and couldn't find anything fishy.
Re: Product listing page "add to cart" button redirects to product info
To be sure of understanding what you have been seeing is that when there is a list of products, the add to cart adjacent to that product adds the product to the cart, but then returns the customer to the info page for that one product.
What you would like to have is a list of products, selecting to add products adds the items, but returns to the list of products.
Been a while and I don't currently have immediate access to test, but what about using the "Display Multiple Products Qty Box Status and Set Button Location" set to 1, 2, or 3?
Re: Product listing page "add to cart" button redirects to product info
Good point mc12345678,
I did test that. When I had it setup for "Multiple Products QTY" It would redirect to the same page. The problem was my "buy now" button disappeared.
Re: Product listing page "add to cart" button redirects to product info
I think that ZC is doing exactly what you instructed, but you are not paying attention (or I could be wrong, it has happened before :D).
When I go to the page and click add to cart, it adds the product to the cart, and then goes to the product page.
The problem is that it isn't really obvious that the product has been added to the cart, and going to the product page looks almost like what it would do if there was some type of error, so you click 'add to cart' again.
Change "Display Cart After Adding Product" to true, and I think that will make your problem go away. I know that you turned it to false for a reason, but test to see if that is causing your behaviour & then see if you still agree with your reason.
Re: Product listing page "add to cart" button redirects to product info
:blink: I don't see how that would work, but I'll try it!
So, it just took me to the shopping cart after adding an item from the product page.
not the easy fix I was hoping for haha
Could it have anything to do with the green banner that says you've successfully added the item to the cart?
Re: Product listing page "add to cart" button redirects to product info
Quote:
Originally Posted by
Mikey D
:blink: I don't see how that would work, but I'll try it!
So, it just took me to the shopping cart after adding an item from the product page.
not the easy fix I was hoping for haha
Could it have anything to do with the green banner that says you've successfully added the item to the cart?
Actually, that banner ought to provide a good indication that the product has been added to the cart... Since it says that...
Now, I got to thinking and a while back someone had a slightly different request, but perhaps with proper merging, it can be incorporated and serve the end goal you are trying to obtain, but let me explain first.
So, the "Display Multiple Products Qty Box Status and Set Button Location" set to a value other than 0, removes the Add-to-cart button... Makes sense to an extent as one need only populate the quantity desired for each item and then select the button that is located top, bottom, or both to fill the cart with that quantity of those items. The add-to-cart button addresses the one item and isn't really looking at where it "was"... So, what about something somewhat in the middle of the road? What about an increase/decrease button?
Check out: Checkbox TextBox Icon Product Checkout
The idea is/was that an icon would be available to click on to increase or decrease the quantity of the product in the cart and stay on the same page... Of course this is before the use of things like javascript or ajax... :)
Re: Product listing page "add to cart" button redirects to product info
I see what your saying, but that's not the setup what I was hoping for. I want someone to fill in the field, click add to cart, have the listing page refreshed with the little green banner on top. I don't see how that addon would fix my redirect. Also, to have it the way I want, I would have to "hide" these icons, which seems a bit redundant.
Maybe I could hack the code a bit. What I was thinking as a work around would be switching it to multiple product QTY. Finding the add to cart button code, or the add multiple product button code. Then adding that button to each listing under the quantity box.
The first problem I see is that if they put any numbers down in another field, and forget about it, then choose another item and input the amount, both will be added to the cart. I would also have to change the default quantity in that box to zero instead of 1 or whatever.
Can you imagine any other pitfalls?
hmmm maybe I'll take a closer look at that add multiple items button. There must be something there that keeps it on the same page.
BTW Thanks for your help on this today! :D