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');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter