custom template problems

General ShopSite user discussion

custom template problems

Postby ShirtDawg » Thu Feb 18, 2010 1:25 pm

Ok, I made a category or "product" page. Then I added a product. I want to be able to click on that product and be viewing only that product within the custom template of my store. So I read that if you do not add code for MORE INFO to your product template that it will automatically show the more info product in your custom template.

So I click on a category, then I click on the product to view the product in the more info page(product1.html). Sure enough my custom theme is there but it is not showing the links, the mini-cart, or tell-a-friend...

I am guessing it is not showing the links because no other pages are linked specifically to it.. but i don't understand why the search and mini cart aren't showing either.. so I guess my question is..

How do I make my category links, tell-a-friend, mini-cart, etc. appear on a product page? Is there a different code I need to be using? How do I define this in my custom template for everything to show properly?

You can see what I am talking about here..
http://shirtdawg.com/store/product1.html

The links are supposed to appear underneath the search on the left. The mini-cart and tell-a-friend link appear in the right column.

This is what it is supposed to look like here..
http://shirtdawg.com/store/index.html

If anyone can help me I will be forever in your debt! Thanks!
Last edited by ShirtDawg on Fri Feb 19, 2010 12:30 pm, edited 2 times in total.
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby Jim » Thu Feb 18, 2010 2:11 pm

Products in the store do not "know" about pages so there is no direct way to include page links on a moreinformation page. You can however hard code the page links in the moreinfo template or create an include file that contains page links and include that file in your moreinformation page template so that the page links would display on product detail pages.


In ShopSite 10 sp1 new functionality was added to create global page navigation menus that can be included on more info pages. Your store is currently at Version 10 r7.2 so if you can upgrade your store to the latest version it would simplify implementing the navigation.

I'm not sure what you mean by this comment. " I read that if you do not add code for MORE INFO to your product template that it will automatically show the more info product in your custom template." If you want a more information page for products then you must have a
Code: Select all
[-- 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 --]
section in the product template that defines how you want the moreinformation page to look. That will not be created automatically unless you are using one of the ShopSite provided templates. The mini cart, tell-a-friend, etc code must also be included in the Define More_info_page section if you want them to display.

Note that because of the way your host configures stores the mini cart will not funciton as you expect. The mini cart uses cookies to contain the order data. The shopping cart, which creates the cookie, has the domain name of http://shopsite.startlogic.com. Your store pages have the domain name of http://shirtdawg.com. Cookies can only be read by the domain that creates them so your store domain will not be able to read the cookies created by http://shopsite.startlogic.com and will therefore not be able to display the data for the minicart.

The way to get around this issue is to have your own shopping cart url which requires a secure certificate and a separate set of cgis just for your store. You would need to contact your host about getting your store set up in that manner if you want to use the minicart feature.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby ShirtDawg » Thu Feb 18, 2010 4:05 pm

I am pretty sure my site is actually on shirtdawg.startlogic.com but it shows the address as only shirtdawg. im not sure. ill have to look into that.
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby ShirtDawg » Fri Feb 19, 2010 8:08 am

How do I load a custom template into a More Info page?
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby Jim » Fri Feb 19, 2010 8:50 am

The more info template is part of the custom product template.
Code: Select all
[-- 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 --


In the Define_More_info section you define the complete page for your more information page. You can copy one of the ShopSite provided templates as an example. There is also information in the online help.

http://www.shopsite.com/help/10.1/en-US ... oduct.html
on this page
http://www.shopsite.com/help/10.1/en-US ... lates.html at the bottom in the section Custom Template Resources you will find links to tutorials and a cookbook of code segments that you can use to create your template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby ShirtDawg » Fri Feb 19, 2010 10:09 am

thanks Jim! got that issue resolved. I contacted my host about moving the shopping cart to shirtdawg.com instead of startlogic... hopefully they will be getting that straight soon.
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby ShirtDawg » Fri Feb 19, 2010 10:22 am

Hey, Currently I am using this to show products..

Code: Select all
<table border="0" width="100%" cellspacing="0" cellpadding="3">
[-- LOOP PRODUCTS PAGE.Columns--]
<td width="175">
[-- PRODUCT Products --]
</td>
[-- END_LOOP PRODUCTS --]
</table>
[-- IF PAGE.ProductsPerPage 0 --]
# do nothing
[-- ELSE --]
<p style="text-align:center">[-- PrevNext --]</p>
[-- END_IF --]


but on my page here it is stacking items one on top of another...
http://shirtdawg.com/store/page3.html

so it is only showing 1 product in each row. i would like to make it so that it shows more than 1 product in each row. maybe 4 in each row. Any idea how I would go about doing that?

nevermind.. i figured it out. Thanks anyway!
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby ShirtDawg » Fri Feb 19, 2010 12:24 pm

is there anyway to have my links and search bar appear inside the shopping cart? also the continue shopping and continue to checkout buttons appear to be white... but so is my background so they are currently invisible. how would i change the color of those buttons?
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby Jim » Fri Feb 19, 2010 4:29 pm

In regard to your queston about multiple products on a line, have you set the number of columns on the page under Pages > Edit Page Layout?

For your links and search on the shopping cart pages you would need to copy the html from a page and put it into the shopping cart template.

The buttons are defined on Preferences > Store Text > Shopping cart (or Checkout ) so you could change the images images there. If the buttons are text then you would probably need to change the style sheet that is setting the button color.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby ShirtDawg » Tue Feb 23, 2010 8:52 am

Thanks Jim. I'm working on the search results template now...

Currently I can only seem to get my search results to stack 1 on top of another. I would like to make it so search results would appear in rows of 4. I tried using the columns code, but I guess I'm not implementing it correctly.

Here's the code I'm currently using... Any idea how I can display the results in rows or get the columns feature to work? Am I missing something in my code here?

Code: Select all
[-- IF PAGE.DisplayName --]<h1>[-- PAGE.Name --]</h1>[-- END_IF --]
   [-- IF PAGE.DisplayGraphic --]
     [-- IF PAGE.Graphic --]
       [-- PAGE.Graphic --]
     [-- END_IF --]
   [-- END_IF --]

   [-- IF PAGE.Text1 --]
     <p>[-- PAGE.Text1 --]</p>
   [-- END_IF --]

   [-- IF PAGE.Text2 --]
     <p>[-- PAGE.Text2 --]</p>
   [-- END_IF --]

   </font>
      
       <table border="0">
[-- LOOP SEARCH PAGE.Columns --]
  [-- IF SEARCHPRODUCT --]
    <td>Product:</td>
  [-- END_IF --]
  [-- SEARCHRESULT --]
[-- END_LOOP SEARCH --]
 </table>
   <font face="Verdana">

   [-- IF PAGE.Text3 --]
     <p>[-- PAGE.Text3 --]</p>
   [-- END_IF --]

   </font><br><div class="search_term">[-- SEARCHRESULT_FORM --]</div>


Thanks!
ShirtDawg
 
Posts: 18
Joined: Thu Feb 18, 2010 11:23 am
Location: shirtdawg.com

Postby Jim » Tue Feb 23, 2010 9:48 am

This has been discussed in the forum on a couple of occasions. You might try a search for "search template columns" and look at those topics for ideas. Here is what I posted in reply to one several versions ago.
=====================
Search results are returned by ShopSite as a Product and all page links that it is found on. So if a product is only on 1 page you will get 2 results (1 product and 1 page link) but if the product is on 5 pages you would get 6 results (1 product and 5 links) This makes it difficult (but not impossible) to have the results displayed in columns.

If you have ShopSite 8.1.x study the Classy search templates (classy_se_template.sst, classy_se_link_template.sst and classy_se_prod_template.sst ) to see how a multi column search result can be implemented.
============================
So check out those templates and it will give you an idea of how to do it.
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 151 guests