WebSite X5Help Center

 
DIEGO P.
DIEGO P.
User

Activate or deactivate icon  en

Auteur : DIEGO P.
Visité 1481, Followers 1, Partagé 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

Posté le
3 RéPONSES
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.

Lire plus
Posté le de John S.
DIEGO P.
DIEGO P.
User
Auteur

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

Lire plus
Posté le de 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.

Lire plus
Posté le de John S.