Jump to content

Recalculate All Prices for your Customers


Recommended Posts

  • 4 months later...
  • 11 months later...
  • 2 weeks later...
  On 6/25/2018 at 9:44 AM, PixelPaul said:

can someone supply me the module? i really need it but can't seem to get it.

Expand  

it seems to have been removed now from Marketplace, so along with it being removed from the developers' site, it's probably to be considered a dead addon (at least for now).

however, there is an alternate product in Marketplace, Auto Recalculate Prices for $15, that seems to do price recalculation (either manually or via the cron) - I don't think it's the same author though, but is at least marked as being v7.5 compatible.... admin demo mentioned doesn't work, so I haven't tried the module myself.

Link to comment
Share on other sites

  • 2 months later...
  On 6/25/2018 at 10:02 AM, brian! said:

it seems to have been removed now from Marketplace, so along with it being removed from the developers' site, it's probably to be considered a dead addon (at least for now).

however, there is an alternate product in Marketplace, Auto Recalculate Prices for $15, that seems to do price recalculation (either manually or via the cron) - I don't think it's the same author though, but is at least marked as being v7.5 compatible.... admin demo mentioned doesn't work, so I haven't tried the module myself.

Expand  

Hello, I am the developer of the Auto Recalculate Prices addons, the testing environment is enabled and you can do all the tests you want.

I leave the link to the Marketplace of the addons https://marketplace.whmcs.com/product/4017

Link to comment
Share on other sites

  On 8/27/2018 at 4:33 PM, brian! said:

it's a pity there is now a $15 USD setup fee - that may put some buyers off from getting the addon.

Expand  

hello, the module has new features and will have new ones, the recurring value will be 15 usd per year, also enable the monthly, quarterly and biannual cycles, as well as a 7 day trial license for your test

Link to comment
Share on other sites

  • 1 month later...
  • 3 years later...
  • 8 months later...
  • 11 months later...
  On 1/3/2024 at 1:24 PM, mroxidane said:

Any alternative in this regard? Is there any other module or hook available?

Expand  

You can use the following hook:

<?php

/*
* Hook to automatically recalculate pricing for services and domains after daily cron is ran
*/

if (!defined("WHMCS"))
die("This file cannot be accessed directly");

use WHMCS\Database\Capsule;

add_hook('DailyCronJob', 1, function($vars)
{
    logActivity('Starting autorecalculate for services and domains	', 0);
    $adminUsername = ''; // Optional for WHMCS 7.2 and later
    
    foreach(Capsule::table('tblhosting')->pluck('id') as $v)
    {
        localAPI('UpdateClientProduct', array('serviceid' => $v, 'autorecalc' => true), $adminUsername);
    }

    foreach (Capsule::table('tbldomains')->pluck('id') as $v)
    {
        localAPI('UpdateClientDomain', array('domainid' => $v, 'autorecalc' => true), $adminUsername);
    }
    logActivity('Ending autorecalculate for services and domains	', 0);

});

 

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