Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Scripted Calculation In Block Based On Product Price. Rate Topic   - - - - -

 
  • mumbomedia
  • Member
  • Members
  • Join Date: 13-Jan 17
  • 49 posts

Posted 19 October 2018 - 07:14 AM #1

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



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3200 posts

Posted 19 October 2018 - 07:42 AM #2

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}

<div>{$new_price}</div>

Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO


 
  • mumbomedia
  • Member
  • Members
  • Join Date: 13-Jan 17
  • 49 posts

Posted 19 October 2018 - 07:52 AM #3

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)
<div>{$new_price}</div>


Edited by mumbomedia, 19 October 2018 - 01:14 PM.


 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3200 posts

Posted 19 October 2018 - 01:33 PM #4

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)
<div>{$new_price}</div>

 

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


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO