Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Redirect after adding to cart
- This topic has 11 replies, 5 voices, and was last updated 8 years, 7 months ago by premierweb.
May 8, 2014 at 4:18 pm #10794
I am displaying the cart button in a sidebar on my checkout page. When a product is added to the cart, the page reloads and it isn’t immediately obvious that the user has added something to the cart.
Is there any way I can a) redirect to an internal link so the cart is at the top or b) add a message at the top after the page reloads?
I am a developer so if there is a place in the code I can do this that would be helpful as well. Had a hard time looking through the plugin files.
Thanks!May 8, 2014 at 5:23 pm #62810wzpModeratorMay 9, 2014 at 2:02 pm #62811
Thanks. The second post was helpful. However, I already have the “Allow Shopping Cart Anchor” checked. I do not see #wp_cart_anchor being appended to the URL after adding to cart.
The code I am using for the products is:
[wp_eStore_category_products_fancy id=1 style=1]
the cart is in a widget area, using this code:
[wp_eStore_cart]May 9, 2014 at 11:56 pm #62812
Can you please share a link to the add to cart page so I can take a look?May 11, 2014 at 9:48 pm #62813
Sure – It’s in coming soon mode. First login in here:
Then click here to get to the page:
[http://rallyhub.wearewoman.us/plan-your-trip/order-breakfast-lunch/]May 12, 2014 at 1:20 am #62814
Thank you. It doesn’t look like you have the anchor option enabled. I will take a look inside you site which will give me more details. I have sent you an email for it.May 12, 2014 at 4:30 pm #62815
Thanks – I sent in the info. I do have the anchor option enabled. Please let me know what you find.October 14, 2014 at 1:23 am #62816
I am also having an issue with the page not going to the shopping cart when I add a product.
I have the “Allow Shopping Cart Anchor” checked.
The #wp_cart_anchor text is being appended to the URL after I add a product to my cart.
I only have the cart in the sidebar widget and this is the code I’m using:
I even added the a name before the [wp_eStore_cart_fancy1] but this did not help.
Can you please assist?
JoanneOctober 14, 2014 at 9:54 pm #62817
Have you done step 4 and 5 from the following post?
https://support.tipsandtricks-hq.com/forums/topic/how-to-create-a-specific-checkout-page-for-estoreOctober 16, 2014 at 1:07 am #62818
Yes, I have done these steps. But after I add a product to the cart, the page stays where it is and does not redirect up to the sidebar cart widget.
Here is a screenshot of the settings in admin – http://awesomescreenshot.com/09f3o1my50.
Here is a short video of what happens when I add a product to the cart – https://www.dropbox.com/s/dspm4uxd2473l3t/My%20Screencast.mp4?dl=0.
Please let me know what I should do to correct this.
ThanksOctober 16, 2014 at 1:12 am #62819wpCommerceModerator
@premierweb, I believe you are using the ajax method. Please disable that option in the settings and see how it goes. It’s under
WP eStore -> Settings -> Advanced Settings -> Enable Ajax on Add to Cart Buttons.October 16, 2014 at 3:49 am #62820
Yes, that worked! After disabling that setting, the page went to the cart anchor.
Thanks very much for your help:)
- You must be logged in to reply to this topic.