dalex Posted May 18, 2017 Share Posted May 18, 2017 (edited) In the product section, all services are billed annually but I want to display it like this: Example Product: $3,599.88 annually How it displays on the front end: $299.99mo In the product addons section, all services are billed annually but I want to display it like this: Example Product Addon: $599.88 annually How it displays on the front end: $49.99mo Thanks! Edited May 18, 2017 by dalex 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 19, 2017 Share Posted May 19, 2017 the quick way would be setup -> general settings -> ordering -> Monthly Pricing Breakdown.... tick the box and the page should show the monthly equivalent price. 0 Quote Link to comment Share on other sites More sharing options...
dalex Posted May 19, 2017 Author Share Posted May 19, 2017 It's still showing the annual rate. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 19, 2017 Share Posted May 19, 2017 then i'll need to see a screenshot of what you're seeing as i've quickly tested this in v7.2.1 & standard_cart and it still works fine. 0 Quote Link to comment Share on other sites More sharing options...
dalex Posted May 20, 2017 Author Share Posted May 20, 2017 It is showing in monthly format now but not for the addon products, it is still showing the annual rate for addon products. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 20, 2017 Share Posted May 20, 2017 It is showing in monthly format now but not for the addon products, it is still showing the annual rate for addon products. then the quick way is not enough. you'll need to either edit configureproduct.tpl or write a hook to do some maths on the addons pricing array... basically, you'll strip the currency from the price, divide the amount by the appropriate number (e.g 12), add the currency back and output the result... in configureproduct.tpl, you would change... {$addon.pricing} to.. {if $addon.billingCycles.annually.price}{$currency.prefix}{((($addon.billingCycles.annually.price->toNumeric())/12)|number_format:2)}{$currency.suffix} mo{else}{$addon.pricing}{/if} if the addon price is annual, it divides it by 12 to show the monthly price... if it's any other cycle, it just outputs as normal... you could expand it to cover all billingcycle options, but the above should be sufficient for your needs. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.