Jump to content

Renewal Rate/term In Service Table On Client Profile


Jonathan

Recommended Posts

I like the suggestion, it saves a few steps in finding out. I would be hesitant to add another permanent column though, I wonder if it would make sense in the "Term" column, ie "1 Year @ $123.00 USD". It may take up less room.

 

Also another reason to do what I wanted to do before the initial 3.0 launch, which is an icon / drop down selector for selecting which columns you want to display and in what order. Would allow us to add a lot of column options, while maintaining a clean UI by default.

Link to comment
Share on other sites

+1

Or replace the existing date created column with a rate column. For my purposes, seeing the rate, term and renewal date at a glance is far more important than the date created. I can always drill down if I need to find the date created (which is almost never).

Link to comment
Share on other sites

I was hoping this would just be a template issue and could be added in easily and it almost can be.  The base package price is available on

$services[$i]['package_pricing']['price']

but this doesn't include configurable options, so it's not an accurate total renewal price.  I'm not sure if coupons are taken into account here or not either.

 

The configurable options output within their respective template are done so with this code:

function packageOptions() {
   var pricing_id = $('#pricing_id').val();
   if (pricing_id) {
    var params = 'service_id=<?php echo $this->Html->_($service->id);?>&' + $('[name^="configoptions"]', $('.package_options').closest('form')).serialize();
    $(this).blestaRequest('GET', '<?php echo $this->Html->safe($this->base_uri . "clients/packageoptions/");?>' + pricing_id, params, function(data) {
     $('.package_options').html(data);
    },
    null,
    {dataType: 'json'});
   }
  }

but I'm no javascript guy and this is a bit over my head to decipher into something usable to do the math to get the correct total.

Link to comment
Share on other sites

Renewal pricing has to be derived from each service separately. In the case of one-time services, there would be no renewal pricing. Also if we were to create a table column for listing expected renewal pricing, it would not be a sortable field.

Link to comment
Share on other sites

Renewal pricing has to be derived from each service separately. In the case of one-time services, there would be no renewal pricing. Also if we were to create a table column for listing expected renewal pricing, it would not be a sortable field.

 

Sounds exactly like what I'd hope for and expect.  Sorting by this column would be useless anyway.

Link to comment
Share on other sites

The javascript you included above is for fetching and displaying package options as form fields. There's really nothing you can do with that to aid in creating a new column for service renewal price under the Services table. If you need the combined pricing of the service and configurable options, then you would need to update the controller for that view to fetch and include this information for each service. You can fetch configurable options by calling Services::getOptions, and simply sum up the package price and config option prices to come to a total renew pricing that you can include on a new column in the view.

Link to comment
Share on other sites

  • 2 weeks later...

@Jonathan,

 

Are you only looking to display the service/package price as the "Renewal Rate", or are you wanting this to be the exact total amount that should be charged (considering config options, taxes, and any coupon) upon renewal? Including the package price is fairly simple, but the latter is not.

Link to comment
Share on other sites

The latter is what I'm after.  The package price isn't a big deal since we already see the plan listed there.  It's the total that we need.

 

Perhaps adding another DB column to store a "cached"? copy of this might make it easier to deal with so there's not so much logic involved in making this total available in the template?

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.

Loading...
×
×
  • Create New...