All things Shopify and commerce
I have searched here and watched many you-tube videos. Everything says something different.
I want to be able to remove the price on my affiliate collection page (I also have collection pages where I sell my own products so the price needs to remain) . I use Prestige theme.
I just don't want Amazon prices to show (and eventually other affiliates) because they change so often.
Most solutions have me adding just one line of code to changing entire pages. Changing entire pages scares me.
And, most of the time with just one collection of products it seems hard to find that specific collection to change the code.
I am also using Spreadr as the import app for amazon to shopify.
Can anyone give me a simple solution or at least explain it simply?
Thanks!
SAndra
Solved! Go to the solution
This is an accepted solution.
Also can you try replacing older code with the below codes?
{% if collection.handle == 'curated-collection-from-curvy-girl-knits' %}
<style>
.ProductItem__PriceList.Heading {
display: none!important;
}
</style>
{% endif %}
Hi @jasiri63 ,
Removing the price from certain collection pages require updating the theme code. Can you provide me with the link to your collection page? I will write a code to remove the price from that specific page.
Thank you
Hi @jasiri63
With collection page, please send me that collection link so I can provide code to remove price.
In product page, you can create a new template for those affiliate products and delete Buy button block from that template.
You can check this to learn how to create a new template for your products
- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
https://admin.shopify.com/store/curvy-girl-knits/collections/300829933760
Is this what you need? Do you need a password too?
Hi @jasiri63 ,
Seems like you are trying to remove price from the products that are in collection https://curvygirlknits.com/collections/curated-collection-from-curvy-girl-knits
If i am correct, please add below code to theme.liquid file
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above </body> tag
{% assign search_handle = product.collections | map: "handle"%}
{% if search_handle contains 'curated-collection-from-curvy-girl-knits' %}
<style>
.ProductMeta__PriceList.Heading {
display: none;
}
</style>
{% endif %}
If you require further help to optimize your store, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
It has worked so far except when I hover over the item on the collection page. It still shows up there. Even when I remove "show price on hover" it shows up instead of disappearing. ANy ideas?
THanks so far!!!
Sandra
Hi @jasiri63 ,
Try adding the following code just above </body> tag
{% assign search_handle = product.collections | map: "handle"%}
{% if search_handle contains 'curated-collection-from-curvy-girl-knits' %}
<style>
.ProductItem__PriceList.Heading {
display: none!important;
}
</style>
{% endif %}
Is this in addition to the previous code or instead of...
Replace this code with the previous one.
No this one didn't work. The prices are back on the item page and the "hover" price is now permanent.
The first code worked to remove on the item page.
Any more thoughts? I really appreciate your time!
Sandra
Can you show me the screenshot of the code that you have added on the store??
I dont see any of my code on the frontend.
Can you provide me access to your store? To add this on your site?
This is an accepted solution.
Also can you try replacing older code with the below codes?
{% if collection.handle == 'curated-collection-from-curvy-girl-knits' %}
<style>
.ProductItem__PriceList.Heading {
display: none!important;
}
</style>
{% endif %}
Hi @jasiri63
You can add this code to your to hide price on this collection page
{% if collection.id == 300829933760 %}
<style>
.ProductItem .ProductItem__PriceList { display: none !important; opacity: 0 !important; }
</style>
{% endif %}
- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
How do I find where to add the code...there is so much of it.
Please add code in your theme.liquid file before </head> tag in Online store > Themes > Edit code
- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Thanks I am going to try it in the morning!
When I search for </head> it doesn't come up. What else could it be?
Thanks again!
So you can place code right below <body> tag
- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hey @jasiri63
Can you provide the link of the collection from where you want to hide the prices from?
Best Regards,
Moeed
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024