Activate or deactivate icon
Автор: DIEGO P.
Просмотрено 1479,
Подписчики 1,
Размещенный 0
Good afternoon guys how can I condition a button or icon to activate or deactivate as appropriate. In my case I want it to be activated only when the shopping cart contains a product. If the cart is empty, the icon must be deactivated.
Regards,
DP
Размещено
You must use code for this.
If amount in cart is 0 then you can set the image/icon to hidden - and else if amount > 0 then it should be visible.
Автор
I understand well, but if you can specifically guide me in which part of the HTML files I can make the modifications. I'm not an expert in HTML or JS. I have basic programming notions in c language. If you would be so kind to guide me, I would appreciate it. And I understand that I would go on the road. I understand that in the future also the staff of incomedia can add buttons with specific conditions.
Thank you,
DP
I think you need an expert - KolAsim.
If KolAsim sees this post, I am sure he can/will help with some code.
If not - then maybe later I will give it a try.