- This topic has 11 replies, 4 voices, and was last updated 4 months, 1 week ago by
Leo.
-
AuthorPosts
-
October 3, 2020 at 11:45 am #1470855
tertas
Hi,
I am using below css to hide original price for “composite products”. (Woodmart theme)
Same code doesn’t work with GP and Prime.Any idea?
/* Composite product remove previous price */ .archive .product-type-composite .price .from { display: none!important; } .single-product .product-type-composite .price .from { display: none!important; }
October 3, 2020 at 2:54 pm #1470965Leo
StaffCustomer SupportHi there,
Try this CSS:
.woocommerce ul.products li.product .price del { display: none; } .woocommerce div.product p.price del, .woocommerce div.product span.price del { display: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 4, 2020 at 12:30 pm #1472050tertas
Hi Leo,
Thank you.
I have changed your code a bit. This one works good in single product pages.
If it is composite product, It is hiding original price and if it is simple product original price is there..woocommerce .product-type-composite div.product p.price del, .woocommerce .product-type-composite div.product span.price del { display: none; }
This one is also works good in shop pages.
.archive .product-type-composite ul.products li.product .price del { display: none; }
But i couldn’t solve the issue for main page, which is using woocommerce shorcodes to show products.
October 4, 2020 at 12:43 pm #1472059Elvin
StaffCustomer SupportHi,
This should work on the products on your homepage.
.woocommerce ul.products li.product .price del { display: none; }
A wise man once said:
"Have you cleared your cache?"October 4, 2020 at 2:09 pm #1472107tertas
Hi Elvin,
Yes it is working but delete for all products.
I want to delete only for composite products.
ThanksOctober 4, 2020 at 2:24 pm #1472118Elvin
StaffCustomer SupportYour site seems to be in maintenance mode.
Can you open it up so we could take another look? Thanks.
A wise man once said:
"Have you cleared your cache?"October 5, 2020 at 12:26 am #1472487tertas
hi,
I added pass.October 5, 2020 at 1:28 am #1472562David
StaffCustomer SupportHi there,
can you share the URL to one of your composite products?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 21, 2020 at 12:21 pm #1498857tertas
sure here it is.
October 21, 2020 at 12:30 pm #1498869Leo
StaffCustomer SupportSo are all products on that page the composite products?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 21, 2020 at 1:58 pm #1498967tertas
I have managed to fix it with below code in category pages.
Just couldn’t hide from main page, which created with woocommerce shortcodes.Thanks for help.
.archive .product-type-composite ul.products li.product .price del { display: none; } .woocommerce .product-type-composite div.product p.price del, .woocommerce .product-type-composite div.product span.price del { display: none; }
October 21, 2020 at 2:12 pm #1498980Leo
StaffCustomer SupportGlad to hear 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.