Jump to content

Choose a Package page: show monthly price?


kingmoore

Recommended Posts

I have set my package up with these options:

 

19.95/Monthly

101.70/Semi-Anually

179.40/Anually

 

On the Choose a package page, I would like the dropdown to show the Per month price... not just "179.40 USD Anually" but something like "14.95/month (179.40 USD Anually)"

 

Is there a way to do this? Or perhaps I have it wrong and I should be putting the monthly cost in the Semi-Anually and Anually boxes in the configuration, and not the monthly cost multiplied by the months.

Link to comment
Share on other sites

No, your doing it right. I questioned that myself once too. The easiest way i would do it is by using smarty math to do division on the total amount. When i get around to doing it for myself, I will try to remember to post the code here.

 

Im working on a couple other smarty plugins that im going to share and i think others will benefit from as well.

Link to comment
Share on other sites

smarty math cant be currently used since Matt hardcoded text to the pricing variables. For example:

 

{$pricing.annually} prints out: $XX.XX USD Annually

 

If i have to, i will just make a plugin that pulls the prices directly from the db and then assigns them to new smarty variables. Then we can do what we please with them.

Link to comment
Share on other sites

smarty math cant be currently used since Matt hardcoded text to the pricing variables. For example:

 

{$pricing.annually} prints out: $XX.XX USD Annually

 

If i have to, i will just make a plugin that pulls the prices directly from the db and then assigns them to new smarty variables. Then we can do what we please with them.

 

That would be sweet.

Link to comment
Share on other sites

  • 3 years later...
smarty math cant be currently used since Matt hardcoded text to the pricing variables. For example:

 

{$pricing.annually} prints out: $XX.XX USD Annually

 

If i have to, i will just make a plugin that pulls the prices directly from the db and then assigns them to new smarty variables. Then we can do what we please with them.

 

any developments?

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