Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/09/20 in all areas

  1. modifying the JS sets the default registration period to 2 years - though it assumes that there is a 1 year registration price set for the TLD (I doubt it would work correctly if there wasn't - but haven't tested that yet). changing the JS isn't enough and it returns to being a 1-yr reg at viewcart - so ClientAreaPageCart is used to change the period, initial and renewal prices and a few language strings at viewcart. to update the pricing in the Order Summary box, the OrderDomainPricingOverride hook is used to set the initial/recurring price for that domain... using just ODPO isn't enough because of the way it shows the price in the cart (see first image). I can think of another, possibly better, way to do this - though haven't tested that. removing 1-yr pricing from the domain register pricing array doesn't work - I tried that yesterday in the deluded hope it could be a quick fix. I saw enough after the first two steps above to know that it could be done, just that it could take multiple hooks and significant testing... so postponed for a later date when i've got less of a backlog of commercial projects to complete.
    1 point
  2. i'm glad it worked for you. 🙂 you couldn't/shouldn't use both together - the Smarty code is posted there for others who want to do this in the template in the future and have a relevant hook... you will never (at least until WHMCS change the cart!) need to edit the template - the hook will do everything.
    1 point
  3. Hi @asil From the clients page you are currently on go to the 'Profile' tab and you need to change 'Closed' to 'Active' in here.
    1 point
  4. Hello @JakeMurray Thank you for your question, under Setup > Automation Setting you'll see Billing Settings under that there is a Invoice Generation setting which by default is set to 14. In this box enter the default number of days before the due payment date to generate invoices if you would like to use different Per Billing Cycle Settings so that Quarterly, Semi-Annual, Annual sections ect click on Advanced Settings to reveal the Per Billing Cycle Settings and you can enter custom settings for each period.
    1 point
  5. Whoops sorry @Craft! Clearly had not had enough Coffee ☕ yesterday, I have gone ahead and updated my text, and those settings look OK go ahead and try sending an email with those settings in place
    1 point
  6. they have to be custom written - unless they have been published here, or elsewhere, previously. check your Private Messaging to download the hook. you would really need PHP experience to do that, along with knowledge of the database and some WHMCS functions... to get "an" exchange rate is simple enough and is not a million miles away from the thread link I previously gave. btw, assuming you had a basic hook that passed exchange rates to the template, and wanted to do this in the template using that hook, then to just update only cycle would require... <span id="recurringMonthly" {if !$totalrecurringmonthly}style="display:none;"{/if}> <span class="cost">{$totalrecurringmonthly} (₺{($totalrecurringmonthly->toNumeric()*$exchangerate)|string_format:"%.2f"} TL)</span> {$LANG.orderpaymenttermmonthly}<br /> </span> but don't bother trying that as it wouldn't work without a hook... plus you'd have to update the other 5 recurring cycles in a similar way.... and it would then need many additional IF statements based on how the output is supposed to react to different currencies... I had a quick look at this on Sunday and it would be far more complicated to do this in the template (and even longer to explain) than it would as a hook - and it takes 60 lines of code for the entire hook solution. you would upload it to the /includes/hooks folder and it should work straight away. the hook is currently designed to output alternate total recurring pricing in the Order Summary part of viewcart, using the rules that... if the item(s) in the cart is/are in your default currency (USD I assume), then it will also show the price in your alternate currency (TRY). if the item(s) in the cart is/are in your alternate currency (TRY I assume), then it will also show the price in your default currency (USD). if the item(s) in the cart is/are in another currency (e.g EUR), then it will also show the price in your default currency (USD). I know you only have 2 currencies in your WHMCS install, so that third option should be irrelevant for now.
    1 point
  7. the output shown in that screenshot was generated using an action hook with no template edits at all. what should happen if someone buys a product priced in TL? should it show a USD price too or only TL ?
    1 point
×
×
  • 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