Shopping Cart Nav Menu on the Left

General ShopSite user discussion

Shopping Cart Nav Menu on the Left

Postby jimk » Thu Aug 07, 2008 6:29 pm

I am using the Modern-Cart.sst template and I am wondering why the left nav is not included?

webiste: http://e x press-it.com (remove spaces))

1. How do I add my left nav links to the template?
2. How set it up to update automatically when I make changes?

Jim K.
jimk
 
Posts: 14
Joined: Wed Jul 23, 2008 9:16 am

Postby Jim » Thu Aug 07, 2008 7:31 pm

Only pages "know" about other pages, the shopping cart and products don't so you can't have automatic links generated on the shopping cart (or product moreinformation) pages. To include the links from your store pages you can either copy the html for your page links and place it in the shopping cart template or make an include file that gets included in the shopping cart template.

One way to get it automatically included in these places would be to create a page in your store that just has the links. Then create a symlink (linux, solaris, freebsd versions of ShopSite not Windows) in the include directory that points to the page in your output directory as an include file and then have an include statement in the template that reads that file. (Note that this mechanism would require you to have access to the server to create the symlink so it may not work for you)

I think this might also be done with a server side include but I'm not familiar with that mechanism.

Another way is to just create the include file and manually update it when you make changes to your links.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

You are a genius automatic links to shopping cart

Postby jimk » Fri Aug 08, 2008 8:04 am

Jim - you are the man. I now have automatic links inserted into my shopping card page and they update automatically. :)

To help others in the future, here is general process I used.

1. Took my master page TEMPLATE page and made a copy called it Lef Nav Links Only
2. Stipped out everything but the lines that created the left nav list
3. Created a new PAGE called Left Nav Links Only with html page name left-nav-only-links.html.
4. On the LAYOUT PAGE for the new PAGE Left Nav.... I set the layout to the new page template Left Nav... created in step 1 above.
5. Publish-->Regenerate
6. Verified the new file genterated left-nav-links-only.html in /store directory now only had the left nave links
6. I created a symbolic link on my unix system from the newly generated left-nav...html page to the include directory file. This include file will inserted into the shopping cart template page below. I used the following command. Substitue in your path "ln ..../store/left-nav-links-only.html to the .../shopsite-data/templates/includes/lift-nav-links-only"
7. Went to my shopping cart template and found the area that inserted the left nav links. You will see a generic <td></td> entry. I inserted the following include line [-- INCLUDE left-nav-links-only PROCESS --] and it worked great!
8. I had to edit the link file and do a replace to add /store/ infront of each link as it would be relative to the shopping cart directory. Working on that part to automate.

You can see the results at http://e x press-it.com/store (remove spaces)

Hope this helps others. Jim K.
jimk
 
Posts: 14
Joined: Wed Jul 23, 2008 9:16 am

Postby Jim » Fri Aug 08, 2008 8:37 am

Glad you got it working. Looks good.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 149 guests