how can we detect the vendor page?
something like this..
if controler == "vendor-page" {
//do something..
}
how can we detect the vendor page?
something like this..
if controler == "vendor-page" {
//do something..
}
What do you mean by vendor page? Vendor area in the admin panel or vendor microstore in the store-front?
Hello
{if controler == "companies.products" {
//do something..
}
Best regards
Robert
What do you mean by vendor page? Vendor area in the admin panel or vendor microstore in the store-front?
Inside the micro store.. I'm trying to check it in tpl using smarty like so {if vendor url is vendor store} //do something.. {/if}
Hello
{if controler == "companies.products" {
//do something..
}
Best regards
Robert
Thanks a lot, this works for scripts.. can i do it in the tpl file like so {if vendor url is vendor store} //show class {else} //hide class {/if}
Hello
{if $smarty.request.dispatch == "companies.products"}
//something
{else}
// something
{/if}
Best regards
Robert
Inside the micro store.. I'm trying to check it in tpl using smarty like so {if vendor url is vendor store} //do something.. {/if}
I would use the following solution
Both worked great, Thanks..! Is there a way to check the product search inside a micro store?
Hello
The standard search engine on this site only search for the vendor's products.
Best regards
Robert.
Hello
The standard search engine on this site only search for the vendor's products.
Best regards
Robert.
Yes i understand, i just want to hide a class if search occurred inside the vendor's micro store
In this case use the following condition
{if $runtime.controller == 'companies' && $runtime.mode == 'products' && $smarty.request.search_performed} .... {/if}
In this case use the following condition
{if $runtime.controller == 'companies' && $runtime.mode == 'products' && $smarty.request.search_performed} .... {/if}
100% thanks!
You are welcome! :)