Home Forums WoodMart support forum Product options

Product options

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #503127

    hodayatzarfati51
    Participant

    1. When there is a product with variations that have varying prices. So in the category archive before entering the product you see the range of prices. I want only the base price to be displayed in the category archive and not starting from… or a price range.
    A link to the category page for an example (see also a picture for illustration)
    https://digital-bar.co.il/product-category/image-development/

    2. Product features – the product ignores the design features I set for it and displays them in a drop-down table. How can I control the design?
    A link to the product page for an example (see also a picture for illustration)
    https://dev.digital-bar.co.il/product/printing-on-magnets/

    3. I added a product description to the product page, but it also appears in the description on the category archive page. Why? How do you remove it from there?
    A link to the category page for an example (see also a picture for illustration)
    https://dev.digital-bar.co.il/product-category/image-development/

    I would appreciate your help, thank you very much!

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

    Hello,

    01. Go to Theme Settings > Shop > variable products > enable the option hide to price.

    02. Swatches are enabled in Dashboard -> Products -> Attributes -> chose the attribute -> Configure Items -> Edit -> Enable swatch:
    Please check this Manual:
    https://xtemos.com/docs-topic/variable-products-and-swatches/

    03. Your issue has been resolved.check back your site.

    Best Regards.

    #503343

    hodayatzarfati51
    Participant

    Hi, thanks a lot for the help!

    1. Now it shows me a FORM and not the original price,
    I need the original price of NIS 1.00 to appear in this example, for example

    2 +3 excellent, thanks!

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

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    //Hide Price Range for WooCommerce Variable Products add_filter( 'woocommerce_variable_sale_price_html', 'lw_variable_product_price', 10, 2 ); add_filter( 'woocommerce_variable_price_html', 'lw_variable_product_price', 10, 2 ); function lw_variable_product_price( $v_price, $v_product ) { // Product Price $prod_prices = array( $v_product->get_variation_price( 'min', true ), $v_product->get_variation_price( 'max', true ) ); $prod_price = $prod_prices[0]!==$prod_prices[1] ? sprintf(__('From: %1$s', 'woocommerce'), wc_price( $prod_prices[0] ) ) : wc_price( $prod_prices[0] ); // Regular Price $regular_prices = array( $v_product->get_variation_regular_price( 'min', true ), $v_product->get_variation_regular_price( 'max', true ) ); sort( $regular_prices ); $regular_price = $regular_prices[0]!==$regular_prices[1] ? sprintf(__('From: %1$s','woocommerce') , wc_price( $regular_prices[0] ) ) : wc_price( $regular_prices[0] ); if ( $prod_price !== $regular_price ) { $prod_price = '<del>'.$regular_price.$v_product->get_price_suffix() . '</del> <ins>' . $prod_price . $v_product->get_price_suffix() . '</ins>'; } return $prod_price; }

    Best Regards.

    #503408

    hodayatzarfati51
    Participant

    Hi, I added the code but now it shows me both starting from… and a price range.
    I am attaching a picture where I put the code

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

    Hello,

    You need to install the child theme. I have installed the child theme and now check back your site after completely clearing the browser cache.

    Best Regards.

    #503772

    hodayatzarfati51
    Participant

    Hi I cleared cache and it still shows starting from.. and not just the base price

    #503948

    Hello,

    Sorry, but there is no such option in our theme and WooCommerce by default. It may require additional code customization . It is out of our theme support scope.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)