All things Shopify and commerce
I have a tech store and I want to change price for my all products by 30% but I have also mentioned price of every product in description tab now I want to remove word price and what next to it like xyz amount from my whole store I have 5 collections and 50k products.
Sample attached (want to remove price which is marked with red line from all product description)
Solved! Go to the solution
This is an accepted solution.
Hi @HXtech001
Please put this code in theme.liquid before body closing tag </body>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
var tags = document.querySelector('#product_all').innerHTML.split("<br>");
var newTags = [];
tags.forEach(tag => {
if(!tag.includes("Price")) {
newTags.push(tag);
}
});
document.querySelector('#product_all').innerHTML = newTags.join("<br>");
});
</script>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Thanks!
Hello @HXtech001
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
you have to remove price from your liquid file
from CSS its difficult to remove the price
how I can do that?
Hi @HXtech001
If it is in product description then you can remove it by exporting the products on local then change it, after change, re-import the products
Please don't forget to Like and Mark Solution if this helped you.
Thanks!
I have like 50k + products it's really hard for me to re-upload
There is bulk editor in-built in shopify backend as well, you can use that by working on a set of products first and then others, it works same like excel
That may be helpful to you
You can select the products and click bulk edit to do that
Thanks!
still I have to select and remove text for each product
Can you share the product url where it is showing so that i can check if there is automatic way through JS to remove it ?
Please share the password as well if it is password protected
This is an accepted solution.
Hi @HXtech001
Please put this code in theme.liquid before body closing tag </body>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
var tags = document.querySelector('#product_all').innerHTML.split("<br>");
var newTags = [];
tags.forEach(tag => {
if(!tag.includes("Price")) {
newTags.push(tag);
}
});
document.querySelector('#product_all').innerHTML = newTags.join("<br>");
});
</script>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Thanks!
you are real gem 😍 God will bless you
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024