Blank Products with sub products, anchors, and a text menu?

General ShopSite user discussion

Blank Products with sub products, anchors, and a text menu?

Postby Capt.Goodvibes » Fri Nov 10, 2006 6:00 pm

Hi,

I'm very new to Shopsite and their template system. It seems stable but I'm used to Perl and PHP so I'm frustrated with the perceived limitations. My customer's host doesn't have any ssh or terminal access and the permissions don't allow any non-shopsite textfiles to be added to the server.

My quandry...

I have a page with 3 products; Touring, Sportster, and Softail. These products are place holders for their associated sub-products; each sub-product has an image and description. I'm trying to make a text navigation menu of products(not sub-products) using anchors. Think of the products as "sections". I'm adding code to the page template to loop through the products and grap the name to create the menu at the top of the page. I also have code in the product template to add the anchor. But it ain't working! I have searched and searched this forum but didn't find the answer.

This is what I've got(page template):

Code: Select all
[-- LOOP PRODUCTS PAGE.columns --]
<a href="#[-- PRODUCT.RecordNumber --]">[-- PRODUCT.Name --] &nbsp; </a>
[-- END_LOOP PRODUCTS --]


Any ideas would be appreciated.
Capt.Goodvibes
 
Posts: 18
Joined: Fri Nov 10, 2006 5:36 pm

Postby Jim » Fri Nov 10, 2006 9:42 pm

You need to create a product template and assign that to your items. You then assign those items to the page that is using your page template.

The page template needs to have
[-- PRODUCT --]
in place of the
<a href="#[-- PRODUCT.RecordNumber --]">[-- PRODUCT.Name --] &nbsp; </a>

In the product template there are 3 sections as follows.

[-- DEFINE MORE_INFO_PAGE --]
# This defines how the more information page for the products
# that use this template will look
[-- END_DEFINE MORE_INFO_PAGE --]

[-- DEFINE SUBPRODUCT --]
# This define is used to control how the sub-products assigned
# to the main product will be displayed
# (if no sub-products assigned, this section is ignored)
[-- END_DEFINE SUBPRODUCT --]

[-- DEFINE PRODUCT --]
# This define is used to control how the products will look
[-- END_DEFINE PRODUCT --]

The More_info_page section will be used to display a page that has more information about your product IF you have that feature enabled in the product.

The Subproduct section displays the information for your sub products and is called by a [-- Loop Subproducts --] [-- subproduct --] [-- end_loop subproducts --] section of the Product section.

The PRODUCT section contains the general layout of your product and may contain a call to the subproducts as outlined above.


You might want to checkout the online tutorial at
http://www.shopsite.com/templates/tutorial/

and the overall description of templates at
http://www.shopsite.com/help/8.2/en-US/ ... lates.html

There are sample templates for pages and products linked to from the above pages.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby Capt.Goodvibes » Mon Nov 13, 2006 2:11 pm

I'm using the product/subproduct interaction to organize my actual products. The subproducts have the description, price, drop down options, and images.

I have page and product templates working. What I really want is for each "product" to have an anchor
<a name="widget1">
with a text menu near the top of the page -
widget1 | widget2 | widget3
where widget1 would have the html
<a href="#widget1">widget1</a>

I only have 4-10 products per page but the subproducts for each widget are at least 15.

Each product page should have a simple text menu at the top to find the section of products the user is looking for.
Capt.Goodvibes
 
Posts: 18
Joined: Fri Nov 10, 2006 5:36 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 28 guests