Scripted Calculation In Block Based On Product Price

We offer a new service, "pay your order in 12 monthly fees"
It doesn't have to be displayed on e-mails or invoices, just in a block i put on the products.

The formula is productprice X 0.08940.

Anyone that can help me in the right direction on how to pull the product price and multiply it?
Thanks

We offer a new service, "pay your order in 12 monthly fees"
It doesn't have to be displayed on e-mails or invoices, just in a block i put on the products.

The formula is productprice X 0.08940.

Anyone that can help me in the right direction on how to pull the product price and multiply it?
Thanks

Hello!

If you mean product detail page, you can do something like this:

{$new_price = $product.price * 0.08940}
{$new_price}

Thanks Oleg,

That did it! :)

Oleg, can i bother you with another question.

What would be the way to pull the total price from the cart.


{$new_price = $cart.total * 0.08940} (no idea about the cart.total)

{$new_price}div>

Thanks Oleg,

That did it! :)

Oleg, can i bother you with another question.

What would be the way to pull the total price from the cart.


{$new_price = $cart.total * 0.08940} (no idea about the cart.total)

{$new_price}div>

Try to use $smarty.session.cart.total to get the cart total value.