WebSite X5Help Center

 
DIEGO P.
DIEGO P.
User

Activate or deactivate icon  en

Автор: DIEGO P.
Просмотрено 340, Подписчики 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

Размещено
3 Ответы
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.

Читать больше
Размещено От John S.
DIEGO P.
DIEGO P.
User
Автор

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

Читать больше
Размещено От 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.

Читать больше
Размещено От John S.