اضافة تاج قبل السعر
Sat Dec 23 2023 13:49:53 GMT+0000 (Coordinated Universal Time)
Saved by
@mebean
#بهار
#جو
#لد
function add_prefix_to_prices($price) {
// قم بتحديد الكلمة أو التاج الذي تريد إضافته
$prefix = '<div class=div_p>ajax</div>';
// قم بإرجاع السعر مع الكلمة أو التاج
return $prefix . $price;
}
add_filter('woocommerce_get_price_html', 'add_prefix_to_prices');
add_filter('woocommerce_cart_item_price', 'add_prefix_to_prices');
add_filter('woocommerce_cart_item_subtotal', 'add_prefix_to_prices');
content_copyCOPY
Comments
@mebean - Sun Dec 24 2023 22:54:49 GMT+0000 (Coordinated Universal Time)بهار جولد