Home › Forums › WoodMart support forum › Product options
Product options
- This topic has 7 replies, 2 voices, and was last updated 1 year, 4 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
October 10, 2023 at 10:59 pm #503127
hodayatzarfati51Participant1. 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.October 11, 2023 at 12:54 pm #503301
Aizaz Imtiaz AwanKeymasterHello,
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.
October 11, 2023 at 2:27 pm #503343
hodayatzarfati51ParticipantHi, 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 example2 +3 excellent, thanks!
Attachments:
You must be logged in to view attached files.October 11, 2023 at 3:41 pm #503381
Aizaz Imtiaz AwanKeymasterHello,
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.
October 11, 2023 at 4:30 pm #503408
hodayatzarfati51ParticipantHi, 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 codeAttachments:
You must be logged in to view attached files.October 12, 2023 at 9:06 am #503538
Aizaz Imtiaz AwanKeymasterHello,
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.
October 12, 2023 at 7:45 pm #503772
hodayatzarfati51ParticipantHi I cleared cache and it still shows starting from.. and not just the base price
October 13, 2023 at 12:57 pm #503948
Aizaz Imtiaz AwanKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register