توضیحات
I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
add_filter('woocommerce_get_price_html', 'imanbash_change_price_for_drager', 9999, 2); function imanbash_change_price_for_drager($price, $product) { if (is_product() || is_shop() || is_product_category()) { $terms = get_the_terms($product->get_id(), 'product_cat'); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { if ($term->slug === 'drager') { return 'تماس بگیرید'; } } } } return $price; }
5,000,000 تومان
I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
دیدگاهها
هیچ دیدگاهی برای این محصول نوشته نشده است.