Hi,
Una here, Ecwid Customer Care Team. I’m terribly sorry for the delay in answer! Please accept my sincere apologies.
I will be happy to help you. You have an almost right code, however we need to correct the code a little to make it work. If you want to hide price and “Add to Bag” button for certain products, you need to use the following CSS rules:
Code:
.ecwid-productBrowser-ProductPage-productID .ecwid-productBrowser-price { display: none; }
.ecwid-productBrowser-ProductPage-productID button.ecwid-btn.ecwid-btn--primary.ecwid-btn--addToBag { display: none !important; }
.ecwid-product-id-productID div.ecwid-productBrowser-productsGrid-productCostFragment { display: none; }
.ecwid-productBrowser-ProductPage-productID2 .ecwid-productBrowser-price { display: none; }
.ecwid-productBrowser-ProductPage-productID2 button.ecwid-btn.ecwid-btn--primary.ecwid-btn--addToBag { display: none !important; }
.ecwid-product-id-productID2 div.ecwid-productBrowser-productsGrid-productCostFragment { display: none; }
.ecwid-productBrowser-ProductPage-productID3 .ecwid-productBrowser-price { display: none; }
.ecwid-productBrowser-ProductPage-productID3 button.ecwid-btn.ecwid-btn--primary.ecwid-btn--addToBag { display: none !important; }
.ecwid-product-id-productID3 div.ecwid-productBrowser-productsGrid-productCostFragment { display: none; }
You should copy the code and paste it in your current CSS theme (Ecwid control panel->Settings->Design->Edit Theme). Please remember to replace the “productID” with the real ID of products you want to hide price and “Add to Bag” button for. Then save the changes. Here you can learn where to get your product ID from:
https://support.ecwid.com/hc/en-us/a...ct-or-category
For example, this is the code for my product:
Code:
.ecwid-productBrowser-ProductPage-82157279 .ecwid-productBrowser-price { display: none; }
.ecwid-productBrowser-ProductPage-82157279 button.ecwid-btn.ecwid-btn--primary.ecwid-btn--addToBag { display: none !important; }
.ecwid-product-id-82157279 div.ecwid-productBrowser-productsGrid-productCostFragment { display: none; }
That’s it. If you have any further questions, please feel free to ask. We will be glad to answer and help.
Best regards,
Una Q., Ecwid Support Team