Ivory Search › Forums › Support › I need to have it refresh the page after “add to cart” is clicked.
- This topic has 5 replies, 2 voices, and was last updated 2 years, 8 months ago by Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- March 1, 2022 at 10:21 PM #10871
Hello again 🙂
I’ve tried and tried to solve this one but I’m stumped. When I click the “Add to cart” button in the search results, it DOES add the item (with the quantity) to the cart, but no matter what hook/action I use, I cannot get it to refresh the page. I have a little “mini-cart” that I want to display once an item gets added to the cart but it just won’t work.
Is there a special hook I can use with this plugin so that it will refresh the page after adding an item to the cart?
- March 1, 2022 at 10:32 PM #10872
another small issue… Try as I may I cannot seem to get the mouseover/hover effect off the main row in the search results. It seems determined to keep that gray background on hover. Can you point me to the right spot to eliminate that?
- March 1, 2022 at 10:46 PM #10873
another small issue… Try as I may I cannot seem to get the mouseover/hover effect off the main row in the search results. It seems determined to keep that gray background on hover. Can you point me to the right spot to eliminate that?
found this one. for some silly reason it didn’t occur to me to look in the admin section options for it 🙂
- March 3, 2022 at 1:27 PM #10896
I hope you are well today and thank you for your questions.
Is there a special hook I can use with this plugin so that it will refresh the page after adding an item to the cart?
You have to develop custom javascript code to achieve this.
Developing custom code for custom functionality is beyond the scope of support that we provide here.
If you are not a developer then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site or WordPress agency.
You can also consider us to develop it for you using the form https://ivorysearch.com/custom-work/
Best regards,
Ivory Search Support- March 4, 2022 at 1:59 AM #10908
I’ve tried writing my own function for every hook related to adding items to the cart that I can think of. It doesn’t seem to want to work. I even tried using jquery to simply listen for a “click” on the add to cart button in the drop down. It doesn’t seem to see those buttons.
Is there some crucial element I’m overlooking here? I’m not asking you to write it for me, just point me in the right direction.
Thanks again.
- March 4, 2022 at 7:47 PM #10912
You have to write dynamic jQuery code to achieve this and no need to use any hook.
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login