G
G
genrich_pauls2020-01-15 09:59:41
WooCommerce
genrich_pauls, 2020-01-15 09:59:41

How to frame the weight of the product in the tag in the woocomerce product?

here is the code to display this line

apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) ;

here is the html where this header is
<h4 class="product-widget-title"><a href="https://xn----htbcxngmi.xn--p1ai/aktiv-25/?attribute_pa_size=medium" title="СТОПЛЁД Актив -25 - 25кг"> СТОПЛЁД Актив -25 - 25кг </a> </h4>

need so
<h4 class="product-widget-title"><a href="https://xn----htbcxngmi.xn--p1ai/aktiv-25/?attribute_pa_size=medium" title="СТОПЛЁД Актив -25 - 25кг"> СТОПЛЁД Актив -25 -  <span class="custom-weight">25кг<span> </a> </h4>

5e1eb80f096ff627883991.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question