Home Forums WoodMart support forum Remove Price on Product Page

Remove Price on Product Page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #630678

    amirghaffarii03
    Participant

    How 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.
    #630748

    Hello,

    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

    #630765

    amirghaffarii03
    Participant

    Thank 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.
    #630783

    amirghaffarii03
    Participant

    Hey,

    I would also like to remove “:” after the variation text

    Attachments:
    You must be logged in to view attached files.
    #630822

    Hello,

    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

    #630831

    amirghaffarii03
    Participant

    Hello again;

    We dont want to remove “STORLEK”, but rather “:” which is after “STORLEK” so how can we do that?

    #630850

    amirghaffarii03
    Participant

    Hi,

    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.
Viewing 7 posts - 1 through 7 (of 7 total)