More Storefronts In The Quick Selector

With the ultimate edition you can switch storefronts with this selector:

https://docs.cs-cart.com/latest/_images/switch_modes.png

Unfortunately it only shows 3 storefronts in the quick selector and i would like it to show at least 5. Is there any way to change the number?

https://docs.cs-cart.com/latest/user_guide/stores/switch_between_stores.html

app/Tygh/Providers/StorefrontProvider.php

try to replace

$storefronts_threshold = 3

with

$storefronts_threshold = 5

Then clear cache

(!) Not tested

Thanks that worked like a charm!

You are welcome!

Do you know if it's possible to always show that storefront selector next to "all"?

Sometimes we have really long page titles and i can't even get to the 3rd storefront (have to go there by first going to a different page and change storefront, then go back.

Obviously i face this issue more since i have 5 storefronts enabled in the bar, but i already had it with 3 as well.

Try updating to the latest CS-Cart version. PERHAPS this will help solve the problem.

Do you know if it's possible to always show that storefront selector next to "all"?

Sometimes we have really long page titles and i can't even get to the 3rd storefront (have to go there by first going to a different page and change storefront, then go back.

Obviously i face this issue more since i have 5 storefronts enabled in the bar, but i already had it with 3 as well.

Do you want to display store-front selector before page title?

Try updating to the latest CS-Cart version. _PERHAPS_ this will help solve the problem.


Will try soon

Do you want to display store-front selector before page title?

Actually that might be the most efficient / simpliest way to fix it. My fix was to move the selector to the second position, after "all stores" but i think your sugesstion is also good
Any idea how i do this? ;)

In the latest version try to edit the following file and change position of this code

        {if $select_storefront}            
            {include file="views/storefronts/components/picker/presets.tpl"
                input_name=$storefronts_picker_name
                item_ids=[$runtime.company_data.company_id]
                show_empty_variant=$show_empty_variant
                empty_variant_text=__("all_vendors")
                select_storefront=$select_storefront
                show_all_storefront=$show_all_storefront
            }
        {/if}

Do not forget to clear cache

Sorry but which file should I edit for that?

Hi ..

I have a question about the same topic .. how can we change the icon/image for each storefront inside the selector ?

Thanks

Template is located here

design/backend/templates/common/mainbox.tpl

app/Tygh/Providers/StorefrontProvider.php

try to replace

$storefronts_threshold = 3

with

$storefronts_threshold = 5

Then clear cache

(!) Not tested

It's work! Thank you!

app/Tygh/Providers/StorefrontProvider.php

try to replace

$storefronts_threshold = 3

with

$storefronts_threshold = 5

Then clear cache

(!) Not tested

Thank you, but how can I go there to make the change?

Thank you, but how can I go there to make the change?

Use file manager in the control panel of your server