If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / After click purchase item on product listing page do not return to that page

After click purchase item on product listing page do not return to that page

Started by cshart on 23 Jul 2013, 2:11 AM · Views: 2,379

Results 1 to 12 of 12
23 Jul 2013, 2:11 AM
#1
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

After click purchase item on product listing page do not return to that page

New install v1.5.1

I start on the product listing page index.php?main_page=index&cPath=27 After clicking buy now button I end up on index.php?main_page=shopping_cart&sort=20a page -- nothing is there except new items. I want it to go back to product listing page. Where do I change this to work correctly.

23 Jul 2013, 9:30 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: After click purchase item on product listing page do not return to that page

It would help to see the site.

23 Jul 2013, 12:21 PM
#3
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

stevesh:

It would help to see the site. the site address is http://www.withnatureinmind.com/shoppingcart/

23 Jul 2013, 12:27 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: After click purchase item on product listing page do not return to that page

What happens if you don't run your whole site under SSL ?

23 Jul 2013, 1:51 PM
#5
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

admin reset to catalog ssl false index page comes up as http but when you put an item in the shopping cart it goes to https://www.withnatureinmind.com/shoppingcart/index.php?main_page=shopping_cart&sort=20a

and this is not the product listing page or the product page. What is setup wrong here?

23 Jul 2013, 2:33 PM
#6
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

cshart:

admin reset to catalog ssl false index page comes up as http but when you put an item in the shopping cart it goes to https://www.withnatureinmind.com/shoppingcart/index.php?main_page=shopping_cart&sort=20a

and this is not the product listing page or the product page. What is setup wrong here?

The shopping cart page is not working either. It is not coming up even after logging in. I click on product to purchase and nothing happens off of the product listing page. The product page works, but I want them to be able to buy directly from the product listing page.

23 Jul 2013, 2:56 PM
#7
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

New install 1.5.1 only css changes thus far.

I have the buy now button with quantity box showing on the product listing page and would like the customers to be able to buy from there.
The shopping cart page does not show up either from the SSL or non SSL page. After you click add to cart but the page does show up if you go to the product page and click on add to cart. There are no errors being generated in the log so I have no idea what is going wrong.

24 Jul 2013, 3:28 AM
#8
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

The problem has become more defined. Here it is The link on the products listing page from the buynow button is not correct and will not add product to the shopping cart. The link on the product description page is correct So what I really need is the code to add the buynow button to the product listing page so that it also works.

cshart:

New install 1.5.1 only css changes thus far.

I have the buy now button with quantity box showing on the product listing page and would like the customers to be able to buy from there.
The shopping cart page does not show up either from the SSL or non SSL page. After you click add to cart but the page does show up if you go to the product page and click on add to cart. There are no errors being generated in the log so I have no idea what is going wrong.

24 Jul 2013, 4:06 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: After click purchase item on product listing page do not return to that page

On a brand new fresh install of Zen Cart using the default template, the buy-now capability on the Product Listing page works fine.
So, it begs the question: in what ways have you changed yours?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Jul 2013, 4:55 AM
#10
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

I have not changed anything as far as the template except css which only styles. I have tried replacing the product listing templates thinking it must be something there that is cause the quantity and zen id to not be passed to the shopping cart, but nothing changed.

This was installed on a server I do not usually work with where SSL is on all the time, but that doesn't seem to have any effect on this because the product description page buy now button works fine.

So my question is where in the code do I need to fix so the right url is passed -- it should have the same url that you get after you click product description buy now button for the same product. The urls are not the same the product listing page does not pass the zen id why I don't know.

DrByte:

On a brand new fresh install of Zen Cart using the default template, the buy-now capability on the Product Listing page works fine.
So, it begs the question: in what ways have you changed yours?

24 Jul 2013, 1:54 PM
#11
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: After click purchase item on product listing page do not return to that page

Switched back to default template no change

24 Jul 2013, 2:56 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: After click purchase item on product listing page do not return to that page

cshart:

it should have the same url that you get after you click product description buy now button for the same productNot necessarily, depending on how your listing settings are configured (ie: multiple add-to-cart buttons, etc).

cshart:

The urls are not the same the product listing page does not pass the zen id why I don't know.
The zenid should rarely be a part of the URL. In fact in a properly configured site it should disappear after visiting the second page on the site, because it is moved to a cookie when visiting the first page and then disappears from the URL so that it's cleaner and more secure.
To be clear: if your site is showing zenid in all its URLs all the time on all the pages, then you've got a problem which you should be fixing.
So, leave zenid out of this "product listing" discussion.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.