Home › Forums › WoodMart support forum › How to show unit of measure in loop?
How to show unit of measure in loop?
- This topic has 1 reply, 2 voices, and was last updated 2 years, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 29, 2023 at 6:40 pm #438730
fineorganicsParticipantI have this code and unit of measure not showing:
<div class=”CartButton”>
<div class=”shopAddToCart”>
<button value=”-” class=”minus”>-</button>
<input type=”text”
value=”<?php echo (Check_if_product_in_cart($product->get_id())) ? Check_if_product_in_cart($product->get_id())[‘QTY’] : 0;
?>”
id=”count”
data-product-id=”<?php echo $product->get_id() ?>”
data-in-cart=”<?php echo (Check_if_product_in_cart($product->get_id())) ? Check_if_product_in_cart($product->get_id())[‘in_cart’] : 0;
?>”
data-in-cart-qty=”<?php echo (Check_if_product_in_cart($product->get_id())) ? Check_if_product_in_cart($product->get_id())[‘QTY’] : 0;
?>”
class=”quantity qty”
max_value=”<?php echo ($product->get_max_purchase_quantity() == -1) ? 1000 : $product->get_max_purchase_quantity(); ?>”
min_value=”<?php echo $product->get_min_purchase_quantity(); ?>”
readonly><button type=”button” value=”+” class=”plus”>+</button>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
How to make it works?Attachments:
You must be logged in to view attached files.January 30, 2023 at 2:29 pm #438967
Aizaz Imtiaz AwanKeymasterHello,
As you know by default WooCommerce doesn’t have the option to show Unit of Measure in the Product loop. It requires Customization and this is beyond our limitations and support policy scope. Hope you can understand our limitations.
If you are using any third party Plugin to show the Measure Unit on the Products then try consulting the respective Plugin Support in this regard. They might help in this regard.
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register