List active services first instead of all

Started by Danny, February 28, 2015, 07:19:21 PM

Danny

did anyone know what to change on the template, to get only active services listed on dashboard or that i can list on the service list tab first only all active services instead of all
regards
Danny

BRJP

Hi Danny,

I am not sure I understand - can you explain more or provide an example?
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Danny

Hi,

if you go to the page with the services, logged in as customer, than it will show you all services, also the canceled one. Than you can click to show only active etc. but i want to list first only the active services and not all.

Hope this helps for better understanding what i mean
regards
Danny

BRJP

Quote from: Danny on March 05, 2015, 05:15:29 PM
Hope this helps for better understanding what i mean

It does but I don't know how you will hide that.  I have a look in the code later an see what can be achieved.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Danny

#4
maybe it helps with a picture! This is the services list of some product. If you go to this page you see all products active and inactive, but i want that if you go to the page, that it first filter the list so, that it only shows the active services.

edit: the same should be possible on the service list on the dashboard
regards
Danny

BRJP

Yes - that is very clear.

What client area template is that?
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Danny

at the moment the cloudy theme but i will change to the blue-theme, that i already have buyed
regards
Danny

BRJP

Its strange but I don't remember that in Cloudy and cannot find anything similar in Blue.  You say this is the Dashboard? 
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Danny

no, this screenshot is not from the dashboard! It is from the service list "/clientarea/services/XYZ-service" .  With the dashboard i mean, that you have the same, that there all services are listed if active or inactive
regards
Danny

BRJP

OK - so I know how to do this.  Its to do with a class=ACTIVE for the one you want active.  (ALL,  ACTIVE, PENDING).

This is the services/domain.tpl extract.  Note the li class="active" for the Tab i want active on loading. 

<ul class="nav nav-pills ">
                <li><a href="#" data-sorter="filter[status]">{$lang.all}</a></li>
                <li  class="active"><a href="#Active" data-sorter="filter[status]">{$lang.Active}</a></li>
                <li><a href="#Pending" data-sorter="filter[status]">{$lang.Pending}</a></li>
                <li><a href="{$ca_url}checkdomain" class="color-sky-blue"> <i class="icon-plus icon-white"></i> {$lang.add_domain}</a></li>
            </ul>
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Danny

this is not working, i have already tested it. it will only give the link active status but the filter is still on all, so this made no changes

edit: the filtering of all/active etc. is done with java/jquery
regards
Danny

BRJP

Quote from: Danny on March 06, 2015, 05:44:33 PM
the filtering of all/active etc. is done with java/jquery

I have just tried that on our live site and the li class feature worked.  Please see screenshot of when we click on the domain service and notice that when the page loads the active take is the ACTIVE.

Strange - I am not sure why this CLASS feature does not work for you.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Danny

i will test it now on the blue theme, on cloudy this is not working for me
regards
Danny

Danny

#13
Template changed (<li class="active"><a href="#Active" data-sorter="filter[status]">{$lang.Active}</a></li>) but it is not working, it still also shows terminated products. Do you have there terminated services also or only these active ones?
regards
Danny

BRJP

This is a bit odd.

1. When I click from ALL to ACTIVE the terminated order items disappears.  Please see screenshot.

Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/