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
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Variated Price Query’ is closed to new replies.