Breadcrumb Navigation

General ShopSite user discussion

Breadcrumb Navigation

Postby ericf » Sat Jul 09, 2016 12:40 pm

Hi,

We just acquired an eCommerce site on the shopsite platform. Has the software been updated to show subcategory breadcrumbs? When I search the forum, the newest post about the topic is from 2014 and it talks about custom templates. The site is using custom templates so I wasn't sure how that would work.


Thanks
ericf
 
Posts: 2
Joined: Sat Jul 09, 2016 12:27 pm

Re: Breadcrumb Navigation

Postby ShopSite David » Mon Jul 11, 2016 9:40 am

You would need to modify the template to add breadcrumbs. For example http://www.shopsite.com/templates/cookbook/builtintemplates-deskman.html

There is built in menu navigation with sub-menu (fly-outs, drop-downs) you'd find this in Preferences > Navigation. However, if you do have a custom template it may need to be modified to support that feature.
-David H.
ShopSite, Inc.
http://www.shopsite.com
ShopSite David
Site Admin
 
Posts: 316
Joined: Fri Aug 04, 2006 1:30 pm
Location: Utah

Re: Breadcrumb Navigation

Postby ericf » Mon Jul 11, 2016 5:44 pm

Hi,
It all ready has this Var set.

Here are a few links to show the issue:

http://www.bestbuypoolsupply.com/pool-cleaners.html <--- This is the category page. The breadcrumb works perfectly.

http://www.bestbuypoolsupply.com/pentair-pool-cleaners.html <----This is the sub category page

The subcategory bread crumb is: Home > Pentair Pool Cleaners

It should be Home > Automatic Pool Cleaners > Pentair Pool Cleaners

I see other shopsites have this function: http://www.hobbytron.com/KWAKM4KR14FPS410ElectricAirsoftRifle.html

Am I missing something?

Thannks
ericf
 
Posts: 2
Joined: Sat Jul 09, 2016 12:27 pm

Re: Breadcrumb Navigation

Postby ShopSite Lauren » Tue Jul 12, 2016 11:39 am

I am not sure how hobbytron is doing their breadcrumbs, but here are two alternate solutions.

1. Manually specify parent category.
You could use one of the extra page fields to specify the link to that page's parent category. You could then use tags in your template to add this to the breadcrumbs for both the category page and product pages for products assigned to that page. For this setup, if you were using the extra page field 2, you would add the following code into the extra page field 2 for the Pentair Pool Cleaners page.
Code: Select all
<a href="http://www.bestbuypoolsupply.com/pool-cleaners.html">Automatic Pool Cleaners</a>


Then you would add the following in your page template just after the [-- DEFINE PAGE --] tag:
Code: Select all
[-- VAR.ParentCategory PAGE.Field2 --]


Last, in your breadcrumbs trail in both your page and product more information page sections, add the following code after the link for "Home" in your breadcrumb trail.

Code: Select all
[-- IF VAR.ParentCategory --]<span class="bbbread-div">></span><div>[-- VAR.ParentCategory --]</div>[-- END_IF --]



2. Dynamically Create Breadcrumbs with JavaScript or PHP
This second option would be to create custom programming to dynamically create breadcrumbs based on the path the customer actually used to view a page. I don't have easy code I could provide for this.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 60 guests