Need to use a custom BB-Header-Familiar.sst

Questions and answers about ShopSite Custom Templates

Need to use a custom BB-Header-Familiar.sst

Postby psldesigns » Tue Aug 18, 2015 1:13 pm

Hi,

What template file calls the BB-Header-Familiar.sst? I need to have a custom one for Product pages (because of the <script type="text/javascript">var $ = ss_jQuery, jQuery = ss_jQuery;</script> line) but can't seem to find which file calls it. Thanks!
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Re: Need to use a custom BB-Header-Familiar.sst

Postby loren_d_c » Tue Aug 18, 2015 1:33 pm

It's used 2 places in BB-VARs-DOCTYPE.sst, but in both cases it's used to set the value of a VAR, like:

[-- VAR.Header BB-Header-Familiar.sst --]

Then it is used withing the various BB templates (cart, product, page, search) like:

[-- INCLUDE VAR.Header PROCESS --]

Do you want to use your customized version of this file everywhere that BB-Header-Familiar.sst is currently used? If so, just copy your modified copy of the file to the exact same name, BB-Header-Familiar.sst, and it should be used instead of the default BB-Header-Familiar.sst and you won't have to change those other places in the other templates.

-Loren
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Need to use a custom BB-Header-Familiar.sst

Postby psldesigns » Tue Aug 18, 2015 1:43 pm

Actually no, I only need to change it for the product pages. So would I just create a new Var like this:

[-- VAR.HeaderPRODUCT BB-Header-FamiliarPRODUCT.sst --]

in the BB-VARs-DOCTYPE.sst

and then find and change it in the product template to

[-- INCLUDE VAR.HeaderPRODUCT PROCESS --]

Does that sound right?
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Re: Need to use a custom BB-Header-Familiar.sst

Postby loren_d_c » Tue Aug 18, 2015 2:04 pm

Or in the product template just change it to:

[-- INCLUDE BB-Header-FamiliarPRODUCT.sst PROCESS --]

so you don't have to muck with BB-VARs-DOCTYPE.sst.

-Loren
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Need to use a custom BB-Header-Familiar.sst

Postby psldesigns » Wed Aug 19, 2015 5:35 am

Thanks Loren, that worked great. All is working as I need it to. :O)
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 10 guests

cron