Uploading Custom Templates via FTP problem

This is an archive of old posting to the User Forum

Uploading Custom Templates via FTP problem

Postby Jason Rush » Tue Feb 25, 2003 5:00 pm

I administer a site using ShopSite SC Pro 6.1.1.
The site is using nothing but custom templates. For simplicities sake, all
other templates have been removed/deleted.

When I upload a new template via FTP, some pages will be assigned to the
wrong template. If I upload a new template with a name that comes
alphabetically before the name of an existing template, any page assigned to
a template whose name comes after the name of the new template will be
assigned to use the wrong template.

Let's say I have three existing templates: "accessories", "bikes", and
"pedals"
If I upload (via FTP) a new template called "gear", any page using the
"pedals" template will now be reporting that it is assigned to use the the
"gear" template (since gear comes before pedal in the alphabet).
Let's say everything got fixed from this.
Now, we want to upload a new template called "disc brakes". If I upload the
new template (via FTP), any page using the "gear" template will now be
reporting that it is assigned to use the "disc brakes" template AND any page
using the "pedals" template will now be reporting that it is assigned to use
the "gear" template.


Has this been fixed in 6.2?


Yes, if I upload the new template via the ShopSite interface, this does not
happen. But, what would rather do when you had 20 templates to upload, use
FTP and upload all 20 at once or use an interface whereby you can only
upload one new template at a time?
Jason Rush
 

Re: Uploading Custom Templates via FTP problem

Postby loren_d_c » Tue Feb 25, 2003 5:50 pm

Jason,

Wow, that's weird, did you by any chance delete the default ShopSite template
placeholders in the ShopSite cgi directory's templates/page/ directory?

-Loren


Jason Rush wrote:

I administer a site using ShopSite SC Pro 6.1.1.
The site is using nothing but custom templates. For simplicities sake, all
other templates have been removed/deleted.

When I upload a new template via FTP, some pages will be assigned to the
wrong template. If I upload a new template with a name that comes
alphabetically before the name of an existing template, any page assigned to
a template whose name comes after the name of the new template will be
assigned to use the wrong template.

Let's say I have three existing templates: "accessories", "bikes", and
"pedals"
If I upload (via FTP) a new template called "gear", any page using the
"pedals" template will now be reporting that it is assigned to use the the
"gear" template (since gear comes before pedal in the alphabet).
Let's say everything got fixed from this.
Now, we want to upload a new template called "disc brakes". If I upload the
new template (via FTP), any page using the "gear" template will now be
reporting that it is assigned to use the "disc brakes" template AND any page
using the "pedals" template will now be reporting that it is assigned to use
the "gear" template.

Has this been fixed in 6.2?

Yes, if I upload the new template via the ShopSite interface, this does not
happen. But, what would rather do when you had 20 templates to upload, use
FTP and upload all 20 at once or use an interface whereby you can only
upload one new template at a time?
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Uploading Custom Templates via FTP problem

Postby Jason Rush » Wed Feb 26, 2003 2:52 pm

Loren,

Yes, we did not want our customer to use the wrong template (like a ShopSite
default template). Thus, we removed them. To maintain the site's design,
the customer is only provided the custom page templates necessary for the
different sections of his store and the 1 custom product template that works
with the custom page templates.


Jason
Jason Rush
 

Re: Uploading Custom Templates via FTP problem

Postby loren_d_c » Wed Feb 26, 2003 4:33 pm

Whether you FTP the custom templates or upload them via ShopSite, should not
matter. I would imagine that the reason you might get one temnplate instead of
another probably has more to do with where the template is (cgi vs data template
directories) or whether one comes before the other alphabetically or something.

Anyway, try putting them back the placeholder files. I am not sure that the
logic behind the template selection pull-downs is designed with the
addition/removal/renaming of the default template placeholder files in mind. The
filenames for the default products templates should be:

00_Default_product_template
01_Graphic_over_text
02_Compact_product_template
03_Compact_graphic_over_text
04_Inline_product
05_Inline_graphic_over_text
06_One_line

The filenames for the default pages templates should be:

00_Default_page_template
01_Text_3_on_left_side
02_Page_graphic_down_left_side
03_Header_down_left_side
04_Page_links_down_left_side
05_Matte_theme
06_Column_theme
07_Mondrian_theme
08_Lefty_theme
09_Topnotch_theme

These files just need to exist, nothing needs to be in them. These should be put
in the templates/products/ and templates/pages/ subdirectories in the 'ss' cgi
directory, not in the store's data directory.

Try this and see if it resolves the problem.

-Loren



Jason Rush wrote:

Loren,

Yes, we did not want our customer to use the wrong template (like a ShopSite
default template). Thus, we removed them. To maintain the site's design,
the customer is only provided the custom page templates necessary for the
different sections of his store and the 1 custom product template that works
with the custom page templates.

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

Re: Uploading Custom Templates via FTP problem

Postby loren_d_c » Wed Feb 26, 2003 5:41 pm

Oh, also make sure none of your custom template file names start with a number.

-Loren


Loren wrote:

Whether you FTP the custom templates or upload them via ShopSite, should not
matter. I would imagine that the reason you might get one temnplate instead of
another probably has more to do with where the template is (cgi vs data template
directories) or whether one comes before the other alphabetically or something.

Anyway, try putting them back the placeholder files. I am not sure that the
logic behind the template selection pull-downs is designed with the
addition/removal/renaming of the default template placeholder files in mind. The
filenames for the default products templates should be:

00_Default_product_template
01_Graphic_over_text
02_Compact_product_template
03_Compact_graphic_over_text
04_Inline_product
05_Inline_graphic_over_text
06_One_line

The filenames for the default pages templates should be:

00_Default_page_template
01_Text_3_on_left_side
02_Page_graphic_down_left_side
03_Header_down_left_side
04_Page_links_down_left_side
05_Matte_theme
06_Column_theme
07_Mondrian_theme
08_Lefty_theme
09_Topnotch_theme

These files just need to exist, nothing needs to be in them. These should be put
in the templates/products/ and templates/pages/ subdirectories in the 'ss' cgi
directory, not in the store's data directory.

Try this and see if it resolves the problem.

-Loren

Jason Rush wrote:

Loren,

Yes, we did not want our customer to use the wrong template (like a ShopSite
default template). Thus, we removed them. To maintain the site's design,
the customer is only provided the custom page templates necessary for the
different sections of his store and the 1 custom product template that works
with the custom page templates.

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


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 70 guests