Is it possible to hide a price of a product on Wix Store, automatically, if the price is set to $0?
Many thanks.
Is it possible to hide a price of a product on Wix Store, automatically, if the price is set to $0?
Many thanks.
It would be perfect if when putting the product with price = 0 the “Buy now” button is replaced by the “contact” button
Hello from the Velo DevRel team!
You should be able to do this with Wix and Velo.
First, I would grab the input field with the .value() method and save the value to a variable.
Next, I would perform some kind of check on the value to see if it was equal to zero.
The most straightforward way to implement this would be with an “if/else” statement, where the “if” case either hides the button or replaces it with a separate “Contact” button. The “else” case in this instance would keep the button the same.
All of this could be implemented inside of the $w.onReady() function that comes already set up by default with every Wix site in Dev Mode.
It’s hard for me to speak to the specifics of your site without having access to the site and code you’re working on, but hopefully this is enough to get you started!
Thanks,
Rob
Hi Rob, thank you very much for your answer.
It would be very useful if you have the possibility to upload a video of how to do it, my knowledge with Velo is limited and every time I try to do something with code I have bad luck, I am a Wix partner Legend, but with Velo I have my “complications”
T.I.A.
I think you can only do that if you have a custom Products/Product page. Otherwise, I don’t know if it is possible to filter anything from the default element.
Hi!
Did you manage to resolve this?
I am facing exactly the same issue with my products.
Thanks!