Jump to content
ISH

The number of active services for the product group

Recommended Posts

Hi,

 

Dear community users,

 

Shows the number in active service in the customer interface.

We want to show the number in active service with the group but we relevant product.

For example:

Dedicated Servers

Virtual Servers

Web hosting, etc.

We need hooks with Client Area Homepage Tiles (not Panels)

 

In these groups you have active or is it possible to show how Total product number.

all shows the number of currently active services.

I thank everyone in advance

 

Share this post


Link to post
Share on other sites
On 28/01/2019 at 13:48, ISH said:

We want to show the number in active service with the group but we relevant product.

For example:

Dedicated Servers

Virtual Servers

Web hosting, etc. 

do you mean these... ?

mVShqih.png

On 28/01/2019 at 13:48, ISH said:

We need hooks with Client Area Homepage Tiles (not Panels)

the only way you could alter them with a hook would be to replace the values within the existing variables used with new values - probably by querying from the database.... you could change the labels using Language Overrides... but you couldn't change the FA5 icons with a hook as they're coded in the template.

On 28/01/2019 at 13:48, ISH said:

In these groups you have active or is it possible to show how Total product number.

if you wanted to get totals by product groups, you would have to query the database using a ClientAreaPageHome action hook.

if you just wanted to show total number of services, then the simplest way is to edit the clientareahome.tpl template and change {$clientsstats.productsnumactive} to {$clientsstats.productsnumtotal}...

6nyLFaL.png

I suppose you could use a hook to replace the values in $clientsstats if you had to... but if you're going to change these tiles to show product groups, then you're really looking at editing the template AND using potentially hooks (depending on if the values are already available to the template).

there's nothing to stop you adding more tiles to the row, or outputting them in a different way - but you will need to edit the template to do that....

BEx1NDa.png

Share this post


Link to post
Share on other sites
On 1/28/2019 at 7:18 PM, ISH said:

Hi,

 

Dear community users,

 

Shows the number in active service in the customer interface.

We want to show the number in active service with the group but we relevant product.

For example:

Dedicated Servers

Virtual Servers

Web hosting, etc.

 

These are product groups.(gid) If a client have active product in groups need to display in Homepage Tiles

 

 

Share this post


Link to post
Share on other sites
49 minutes ago, ISH said:

These are product groups.(gid) If a client have active product in groups need to display in Homepage Tiles

and what if he has products in 10 product groups ? you can't have 10 different tiles there!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated