Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Possible to stay at shopping cart anchor #wp_cart_anchor after applying coupon?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Possible to stay at shopping cart anchor #wp_cart_anchor after applying coupon?

  • This topic has 5 replies, 2 voices, and was last updated 14 years ago by amin007.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 25, 2011 at 12:23 am #3467
    winning
    Member

    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
    amin007
    Participant

    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
    winning
    Member

    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 help :)

    May 26, 2011 at 10:39 pm #32859
    amin007
    Participant

    I tested the functionality on my test site and it definitely behaves as I explained. I think I know why your site is showing a different behavior though. You seem to have a lot of Javascript violations on this page which is making it to act abnormally. After the page loads if you look at the lower left corner of the browser’s status bar you will see a yellow warning sign. If you double click that icon it will show you the specific errors. Please fix those errors and then the anchor will work normally.

    May 27, 2011 at 3:52 am #32860
    winning
    Member

    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:

    http://screencast.com/t/TQHz1V9ff4

    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.

    Video:

    http://screencast.com/t/g2bUcEtaO

    Hopefully, we can find out what is the problem of my website.

    Thanks!

    May 28, 2011 at 1:45 am #32861
    amin007
    Participant

    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:

    https://support.tipsandtricks-hq.com/update-request

    Let me know if you see anything different after the update.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ