try thi but it didn't work
try thi but it didn't work
What are you trying to do, retrieve the company data, or the company id?
just the company id
just the company id
Then just use $runtime.company_id
yeah, {$runtime.company_id} show 0 from the index page, i ended up using {$user_data.company_id}. thanks
{$auth.company_id} will show the company id anywhere on the site, making it possible to show the vendor logo anywhere
yeah, {$runtime.company_id} show 0 from the index page, i ended up using {$user_data.company_id}. thanks
you can use $runtime.forced_company_id when necessary.
Use the function fn_get_runtime_company_id() (or in template code {""|fn_get_runtime_company_id}. Using $runtime.company_id only works for multiple storefronts or for MVE. It is a hack they did way back in early version 4 for compatibility where they should have just converted the single-store company to company_id 1. But now we live with it. You can look at the fn_get_runtime_company_id() function to see how it uses $runtime.company_id to determine the actual real company_id.
Thanks guys, i appreciate it