Show items with 0 cost - Post ID 231876

User 2140875 Photo


Registered User
364 posts

Hi,

I now have a follow up to this original question and hope to get some suggestions.

http://petportraitsbymichelle.com/viewcategory.php?groupid=5

Shows a page of Private Collection/Sold paintings. My customer does not want to have the price of the painting shown, or the ADD to Cart Button Shown.

In SCCP through the help of Eric I was able to add these three lines in the detail section of the Private Collection/Sold category.
[[[<style>.scs_price {visibility:hidden;}</style>]]]
[[[<style>.scs_stocksold {visibility:hidden;}</style>]]]
[[[<style>.scs_addtocart {visibility:hidden;}</style>]]]

And have successfully hidden the pertinent information.

However, when someone clicks on the picture to see it larger the price shows back up. Is there some code I can add elsewhere to hide that bit of information.
User 187934 Photo


Senior Advisor
20,186 posts

Try this.:) You'll need to place it on the product detail tab for each product.
[[[<style>.scs_yourprice{visibility:hidden;}
.scs_label{visibility:hidden;}</style>]]]
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2140875 Photo


Registered User
364 posts

Eric scores Again. Was able to hide all the unnecessary information. Thank you!

And now for those pictures in the Private Collection/Sold section. When going to that section pictures are lined up the way I would like them (hey!). When clicking to get to the detail information which is all hidden, is there a way to have the painting centered, rather than off to the left??

Thanks again,
Galen
User 187934 Photo


Senior Advisor
20,186 posts

I'm not sure but I wonder if that could be done in SCDP otherwise try this.
Adjust the 300px as needed
<style>
#scs_productdetails_images{
margin-left:300px;
}
</style>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2140875 Photo


Registered User
364 posts

Thanks again Eric,

With yours and others help I'm gradually figuring out to make these changes.

Galen

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.