J on "[Plugin: WooCommerce] Variated Price Query"

ساخت وبلاگ

Wonder if someone could point me in the right direction of a hook for the new way variation price is pulled in :-

{{{ data.variation.price_html }}}

I am currently manipulating the simple price to add on £15 to the product if a cookie is set at a certain value which works and display fine is there a hook or way to add values to the variated prices.

$this->total_price = $product->sale_price + $this->additional_price;
$this->old_total_price = $product->regular_price + $this->additional_price;
echo '<p class="price"><del><span class="amount">'.wc_price($this->old_total_price).'</span></del> <ins><span class="amount">'.wc_price($this->total_price).'</span></ins></p>';
echo '<meta itemprop="price" content="'.$this->total_price.'" />';

So this is the code Im using to add to the simple price and it works fine.

I cannot seem to find a template file controlling this the closest I can get is on the above which I cannot do much with.

Any help will be appreciated.

J

https://wordpress.org/plugins/woocommerce/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 128 تاريخ : چهارشنبه 22 ارديبهشت 1395 ساعت: 16:24