הוספת ערך לQuantity
add_action( 'woocommerce_before_add_to_cart_quantity', 'bbloomer_echo_qty_front_add_cart' ); function bbloomer_echo_qty_front_add_cart() { echo '<div class="qty">Quantity: </div>'; }
הוספת מחיר למחיר בווקומרס
// add text after price add_filter( 'woocommerce_get_price_html', 'gs_change_product_price_display' ); add_filter( 'woocommerce_cart_item_price', 'gs_change_product_price_display' ); function gs_change_product_price_display( $price ) { $price .= "<span class='unit-price'>/ מחיר ליח'</span>"; echo $price; }