ran60616
Regular Member
- Jan 17, 2013
- 219
- 298
Hey guys,
Would appreciate if someone can help me out here. Don't have much knowledge in coding!
The above code works well, and it's the main function. This simply divides all the product prices into 12 equal installments in the online shopping store.
I need to figure out how to add a limit to this. I only want product that are more than $1000.00 in my store to offer 12 month installments. How can i add this to the above function for it to work correctly? ($price > 1000.00)
Thank you so much!
Ran60616
Would appreciate if someone can help me out here. Don't have much knowledge in coding!
Code:
function mm_product_parceled() {
$product = get_product();
if ( $product->get_price_including_tax() ) {
$value = woocommerce_price( $product->get_price_including_tax() / 12 );
return $value;
}
}
The above code works well, and it's the main function. This simply divides all the product prices into 12 equal installments in the online shopping store.
I need to figure out how to add a limit to this. I only want product that are more than $1000.00 in my store to offer 12 month installments. How can i add this to the above function for it to work correctly? ($price > 1000.00)
Thank you so much!
Ran60616