M2 - Use price for calculation

On the product detail page I need to use the price for calculation. How can I get the price and use it for calculation?

For example; $product_price / 12 = $outcome



Where $product is the current product you are viewing.

Similar questions

How to show product total price calculation in Magento cart
I'm having problems trying to show the product full total price in Magento, and by product total price I mean full product price without the discount; the price has to be multiplied for each product quantity added to the cart, and custom options additional price should be added as well. Which files should I edit in Magento? is it possible to show t...
Custom Option Price Calculation Method
Can someone explain why a custom option of type percent is calculated using the final item price on a quote? See here: It doesn't seem to make sense to do this. Here's an example to illustrate the problem: As I attempt to add this item to my cart along with the warranty option, my total cost as shown on the product view page will be 600.00. That lo...
Add second price calculation factor to cart item
I need to add a second price factor to the cart. Besides amount/quantity I have to add a second (integer) value that comes from a custom option, so the calculation isn't base price x amount but base price x "custom option value" x amount Background: Custom option is "number of days" for a rentable product. Note: I do not need to incorporate anythin...
Magento Shipping Price calculation for back-end Edit Order
I am using Amsty shipping table rate extension for shipping rate calculation. Also am using TinyBrick extension for back-end order edit. Once i edit the order in back-end, some amount ($-Grand Total) will increase. Now that time shipping rate is not changed for current amount ($-Grand Total) its showing old shipping rate. (I am edit the order in ba...
Cart price calculation on user login is set to zero
I made a module to calculate the price, based on given dimensions. This is working very nice, but when I login as user, the cart price resets to zero. How do I solve this? /// edit #1 After some digging, I found out that the vars: $quantity and $dimensionsPrice not working on quote merging. Do you know why? $dimensionPrice is from the custom attrib...
Tier 'savePercent' Calculation Based on 'Manufacturer's Suggested Retail Price'
By default, on a simple product with tier pricing, each tier price 'percent saved' is calculated based on the 'Item Price'. I want to recalculate the 'percent saved' to display/calculate the percent saved based on the 'Manufacturer's Suggested Retail Price' On this file: app\design\frontend\base\default\template\catalog\product\view\tierprices.phtm...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.