Home Forums WoodMart support forum How to show unit of measure in loop?

How to show unit of measure in loop?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #438730

    fineorganics
    Participant

    I 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.
    #438967

    Hello,

    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.

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