Display special quantity pcs in description cart
-
I use woocommerce latest version,
I found the way to Display the cart item weight in cart and checkout pages. [right here][1]now I am looking to display a special line “total pcs” in yellow (photoshop)
[(as shown in the photo here)][2]In my exemple : Album (15pcs) x 4 = 60pcs
the value “15 pcs” in the title is for informational purposes.
but I think with the help of “ACF Advanced Custom Fields Plugin”
I can save this value in the product post type. after that I imagine a snippet something like this
‘value’ => ($ acf_field [‘quantity_pcs’] * $ cart_item [‘data’] -> get_total ()
maybe you have a better way ?
I hope someone save my week!
[1]: https://stackoverflow.com/questions/51851028/display-the-weight-of-cart-and-order-items-in-woocommerce
[2]: https://i.stack.imgur.com/4spYk.jpg
- The topic ‘Display special quantity pcs in description cart’ is closed to new replies.