- Posts: 9
- Thank you received: 0
×
WooPrice Calculator PRO
[SOLVED] Sale price dosent work
- john morten
-
Topic Author
- Offline
Less
More
2 years 3 months ago #1804
by john morten
john morten replied the topic: Sale price dosent work
I changed the public function code in the ecommercehelper.php and this looks to work.
Now it works on sale price , and also on variable products.
from
public function getProductArrayFromWooCommerce($product){
return array(
'id' => $product->get_id(),
'name' => $product->get_title(),
'price' => $product->get_regular_price(),
);
}
too
public function getProductArrayFromWooCommerce($product){
return array(
'id' => $product->get_id(),
'name' => $product->get_title(),
'price' => $product->get_price(),
);
}
Now it works on sale price , and also on variable products.

from
public function getProductArrayFromWooCommerce($product){
return array(
'id' => $product->get_id(),
'name' => $product->get_title(),
'price' => $product->get_regular_price(),
);
}
too
public function getProductArrayFromWooCommerce($product){
return array(
'id' => $product->get_id(),
'name' => $product->get_title(),
'price' => $product->get_price(),
);
}
Please Log in or Create an account to join the conversation.
- john morten
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
2 years 3 months ago #1803
by john morten
john morten created the topic: Sale price dosent work
When adding sale price to a product the "base price" in the calculator gets the regualar price. is this a bug?
Please Log in or Create an account to join the conversation.
Moderators: david
Time to create page: 0.216 seconds