Display a waiting symbol when add to cart is clicked

  • Posts: 14
  • Thank you received: 0
8 years 3 months ago #263992

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5

Hi,

I have two Javascript related questions:
1- How can a waiting symbol be displayed when add to cart button is clicked until the notification on top of the page appears? sometimes due to network problems there is a delay before the notification is displayed and some users click on the add to cart button twice which results in unwanted quantity increase.

2- and my second question is is it possible to add a mouse drag (or touch drag) feature to hikashop content modules? I use two instances of this module to display recently added products and most visited products in a row. Auto-slide and switch buttons are active. draging would be specially useful when users are viewing the site on smart devices.

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 3 months ago #263994

Hi,

1. You can use the class add_in_progress which is added to the "add to cart" button while waiting for the AJAX request to come back. For example like that would hide the button while the product is being added:
.add_in_progress{ display: none; }


2. Are you talking about the carousel system ? With custom code, anything is possible but I don't see an easy way to do that with the current carousel system. The system is old anyway, and we want to redo it completely. So we'll try to at least have something where doing that would be easier but I can't promise anything as we didn't start any study on the feasability of the new carousel we want to have and we don't know yet how we would implement it.

Last edit: 8 years 3 months ago by nicolas.
The following user(s) said Thank You: goleyaas

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum