May 25, 2011 at 12:23 am #3467
I added the shopping card short code at the end of the product page and checked “Allow Shopping Cart Anchor”. When people add a product to cart, the page can automatically go the the anchor #wp_cart_anchor; and when people enter a coupon code now, and hit apply, the page will stay at the anchor #wp_cart_anchor. However, if people enter a coupon for a second time, the anchor disappears in the URL, and the page goes to the top of the product page.
Is it possible to keep the page at the shopping cart anchor #wp_cart_anchor, no matter how many times people enter coupon code?
I mean, every time when people enter a coupon code and click apply, the page can go back to (actually stays at) the shopping anchor “#wp_cart_anchor”, instead of going to the very top of the page. Possible?
Thank you!May 25, 2011 at 6:33 am #32857
If you use the “Allow Shopping Cart Anchor” option then the cart will stay at the anchor point even after applying coupon. Not sure why you are seeing any other behavior. Have you made any change to the code? Please post a link to your products page so I can go and take a look. What browser are you using to test?May 26, 2011 at 4:36 am #32858
http://www.winningwebprojects (dot) com/wp3p1/online-store/
I am using IE.
Try to enter a random coupon code 2 to 3 times, somehow it just lost the anchor in the URL (the very first time was fine). you can also see this when pointing to the “apply” button, at the beginning, it shows http://www.domainname.com/…/online-store/#…., later the #…. disappeared.
If you want to try a real coupon code, please use “test” without the quote “”.
Thanks a lot for your helpMay 26, 2011 at 10:39 pm #32859
What I saw on the left cornet status bar is “Done”, and I didn’t see the yellow warning. Here the screenshot of the IE7:
I tried it on another new PC with IE8, same result.
I also recorded the page in action, the first time after I applied the coupon, it went back to the anchor; but starting from the second, and the third time I tried, it went to the top of the page, you can see the anchor in the URL is gone, and I didn’t see the yellow warning.
Hopefully, we can find out what is the problem of my website.
Thanks!May 28, 2011 at 1:45 am #32861
That is a little weird. Lets try to eliminate the possibility that a file got corrupted. Can you please get a fresh build of the plugin from here:
Let me know if you see anything different after the update.
- You must be logged in to reply to this topic.