WebSite X5Help Center

 
DIEGO P.
DIEGO P.
User

Activate or deactivate icon  en

Autor: DIEGO P.
Visited 1204, Followers 1, Udostępniony 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

Posted on the
3 ODPOWIEDZI
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.

Czytaj więcej
Posted on the from John S.
DIEGO P.
DIEGO P.
User
Autor

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

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from John S.