Jump to content

Calculate proper from price with montly price breakdown?


Magistar

Recommended Posts

Has anyone figured out how to modify the product.tpl to display the proper from price when monthly price breakdown is enabled?

For example:

  • 3 months = 24 = 8 monthly
  • 12 months = 60 = 5 monthly

Without monthly price breakdown the product.tpl will display 'from 24 per 3 months' which is correct.

With monthly price breakdown enabled the product.tpl will display 'from 8 per 3 months'. Now this of course the 8 and 3 months make no sense. It should say:  From 5 per month

Anyone that already tried this? (I am working with premium comparison currently).

 

 

Edited by Magistar
Link to comment
Share on other sites

9 hours ago, Magistar said:

Is there a  list somewhere with all the 'selectors' available for the product class?

you could throw a {if $adminLoggedIn }{debug}{/if} into the products.tpl template; look at the popup window generated and see what options are available within the $product array.

ilGk9YL.png

Link to comment
Share on other sites

I have had mixed success so far. On the ordertemplate I would like to display the price before setup cost (so no tax, no setup cost). Right now this is producttotals.pricing.baseprace .

 

So far I have not been able to find the selector that allows me to set the 'today' price. Because producttotals.pricing.totaltodayexcltax also includes the setup fee. Is this possible?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated