WebSite X5Help Center

 
DIEGO P.
DIEGO P.
User

Activate or deactivate icon  en

Autore: DIEGO P.
Visite 1201, Followers 1, Condiviso 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

Postato il
3 RISPOSTE
John S.
John S.
User

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.

Leggi di più
Postato il da John S.
DIEGO P.
DIEGO P.
User
Autore

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

Leggi di più
Postato il da DIEGO P.
John S.
John S.
User

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.

Leggi di più
Postato il da John S.