Ketty Posted December 18, 2020 Share Posted December 18, 2020 Hi, Does anyone know how to hide "only" certain item's price tag on summary block? We have some products not ready for production but still want to show it in our shop. Thank you in advance. Link to comment
tuanphan Posted December 22, 2020 Share Posted December 22, 2020 You can add tag: no-price for these products, then share url again. We will give the code to remove price. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joshcohen Posted July 4, 2022 Share Posted July 4, 2022 On 12/22/2020 at 11:51 AM, tuanphan said: You can add tag: no-price for these products, then share url again. We will give the code to remove price. Hi @tuanphan Do you have a generic code for removing specfic prices based on their tag in a summary block? Link to comment
tuanphan Posted July 4, 2022 Share Posted July 4, 2022 22 hours ago, joshcohen said: Hi @tuanphan Do you have a generic code for removing specfic prices based on their tag in a summary block? If you share link to a summary block, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joshcohen Posted July 4, 2022 Share Posted July 4, 2022 17 minutes ago, tuanphan said: If you share link to a summary block, we can check easier Ok https://thirtytwoacres.squarespace.com pw: 32acres The meat summary block only some are tagged with "per-kilo" which ill put a :after on the price to display "per kilo" just can't target it in the summary block properly. Any help would be great @tuanphan :) Link to comment
tuanphan Posted July 5, 2022 Share Posted July 5, 2022 8 hours ago, joshcohen said: Ok https://thirtytwoacres.squarespace.com pw: 32acres The meat summary block only some are tagged with "per-kilo" which ill put a :after on the price to display "per kilo" just can't target it in the summary block properly. Any help would be great @tuanphan 🙂 Can you enable Metadata: Tag? (I will use code to hide tag then) Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joshcohen Posted July 5, 2022 Share Posted July 5, 2022 1 hour ago, tuanphan said: Can you enable Metadata: Tag? (I will use code to hide tag then) OK has been enabled now -- Thanks! Link to comment
tuanphan Posted July 6, 2022 Share Posted July 6, 2022 15 hours ago, joshcohen said: OK has been enabled now -- Thanks! Add to Page Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-metadata-item--tags [href*="Per+Kilo"]').parents('.summary-item').addClass('summary-kilo'); }); </script> <style> .summary-kilo .product-price { display: none; } .summary-metadata-item--tags { display: none !important; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joshcohen Posted July 6, 2022 Share Posted July 6, 2022 1 hour ago, tuanphan said: Add to Page Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-metadata-item--tags [href*="Per+Kilo"]').parents('.summary-item').addClass('summary-kilo'); }); </script> <style> .summary-kilo .product-price { display: none; } .summary-metadata-item--tags { display: none !important; } </style> Hi @tuanphan thanks for this, however what i was looking to do was to have all items tagged with "per kilo" to have after the price "per kilo" i have this working in the shop however not in a summary block.. i appreciate the above though Link to comment
Solution tuanphan Posted July 6, 2022 Solution Share Posted July 6, 2022 1 hour ago, joshcohen said: Hi @tuanphan thanks for this, however what i was looking to do was to have all items tagged with "per kilo" to have after the price "per kilo" i have this working in the shop however not in a summary block.. i appreciate the above though Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-metadata-item--tags [href*="Per+Kilo"]').parents('.summary-item').addClass('summary-kilo'); }); </script> <style> .summary-kilo .product-price:after { content: "Per Kilo"; } .summary-metadata-item--tags { display: none !important; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joshcohen Posted July 6, 2022 Share Posted July 6, 2022 19 minutes ago, tuanphan said: Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-metadata-item--tags [href*="Per+Kilo"]').parents('.summary-item').addClass('summary-kilo'); }); </script> <style> .summary-kilo .product-price:after { content: "Per Kilo"; } .summary-metadata-item--tags { display: none !important; } </style> Thanks so much @tuanphan worked perfectly! - Always appreciated! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment