Home › Forums › WoodMart support forum › Remove Price on Product Page
Remove Price on Product Page
- This topic has 6 replies, 2 voices, and was last updated 1 hour, 11 minutes ago by amirghaffarii03.
-
AuthorPosts
-
January 17, 2025 at 7:18 pm #630678
amirghaffarii03ParticipantHow do we remove the price displayed under the variation dropdown?
How do we remove the “Clear” button next to the variation selector?
How do we make it so that only the price of the selected variant is displayed? Currently, it shows a range like “70,00 kr – 450,00 kr,” but when 100 ml is selected, it should only show “450 kr.”
Attachments:
You must be logged in to view attached files.January 18, 2025 at 11:28 am #630748
Aizaz Imtiaz AwanKeymasterHello,
01,03. To display the actual variation price on the single product page, please enable the option “Remove duplicate price for variable product” under Theme Settings > Shop > Variable Products. This will update the price displayed after selecting a variation, replacing the price range with the specific variation’s price.
Additionally, if you wish to remove the price range entirely, enable the “Hide ‘to’ price” option. This will hide the higher price for variable products, simplifying the display.
02. Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:
span.wd-attr-selected, .reset_variations, .wd-reset-var { display: none !important; }
Best Regards
January 18, 2025 at 1:35 pm #630765
amirghaffarii03ParticipantThank you very much! I was wondering if you could also help me create a “Read More” feature on our product page.
The goal is to use the short product description, but after 1.5 lines of text (please see the image for reference), it should show a “Read More” link. When clicked, an accordion would open to display the full short product description.
Attachments:
You must be logged in to view attached files.January 18, 2025 at 3:40 pm #630783
amirghaffarii03ParticipantHey,
I would also like to remove “:” after the variation text
Attachments:
You must be logged in to view attached files.January 18, 2025 at 6:05 pm #630822
Aizaz Imtiaz AwanKeymasterHello,
01. Sorry to say there is no option in theme settings available for that. Try to add the php code in the function.php of the child theme.
add_action( 'woocommerce_after_single_product', 'pk_woocommerce_short_description_truncate_read_more' ); function pk_woocommerce_short_description_truncate_read_more() { wc_enqueue_js( ' var show_char = 80; var ellipses = "... "; var content = $(".woocommerce-product-details__short-description").html(); if (content.length > show_char) { var a = content.substr(0, show_char); var b = content.substr(show_char - content.length); var html = a + "<span class=\'truncated\'>" + ellipses + "<a class=\'read-more\'>Read more</a></span><span class=\'truncated\' style=\'display:none\'>" + b + "</span>"; $(".woocommerce-product-details__short-description").html(html); } $(".read-more").click(function(e) { e.preventDefault(); $(".woocommerce-product-details__short-description .truncated").toggle(); }); ' ); }
02. Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:
table.variations label:after { display: none; }
Best Regards
January 18, 2025 at 6:25 pm #630831
amirghaffarii03ParticipantHello again;
We dont want to remove “STORLEK”, but rather “:” which is after “STORLEK” so how can we do that?
January 18, 2025 at 9:11 pm #630850
amirghaffarii03ParticipantHi,
I’ve added the code using the WPCODE plugin, but it doesn’t seem to be working. Is there something additional we need to set up for it to function properly? Should we add a specific element or take any other steps? I’ll attach the setup for the code so you can review it.
Additionally, we’re experiencing an issue with the Accordion element. When using dynamic tags for the “Short Product Description,” the spaces in the description aren’t displaying correctly. I’ll also attach images to illustrate the problem.
Looking forward to your guidance on these issues!
Best regards,
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to create new topics. Login / Register