Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding New Static Pages Using STS_Template_System


Recommended Posts

Posted

Hi all

 

I would like to add new static pages using the STS_Template_System which i successfully installed and is working a treat. However when trying to add a new static page i get an error. see below

 

 

Template file doesn't exist: [includes/sts_template.html]

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 714 is not allowed to access includes/sts_template.html owned by uid 705

 

i copied the privacy.php

added define to english.php

added the new static page to information.php

added filename to filename.php

 

what else could seem to be the problem here..... does anybody else get this error when trying to add static pages using sts_template - great contribution but a little shizzled on this one.

 

i also checked permission and doesnt seem likely there too.

 

 

so all i want to add is a static page for

 

product_history.php

product_size.php

 

thanks in antipcation

Posted

How are you linking to this page? If you want to link to it from the sts_template then the best thing to do is to add a define for it in the sts_display_output file so you can use a $tag for the link.

 

If you wanted to link directly to the shipping page from your template you would add the following to your sts_display_output file in the templates variables section

 

$template['shipping'] = '<a href=' . tep_href_link(FILENAME_SHIPPING) . ' class="headerNavigation">' . BOX_INFORMATION_SHIPPING . '</a>';

 

Then you can place the $shipping tag anywhere in your template and have it pull the page If you want to have the tag use an image you would define it like this

 

$template['shipping'] = '<a href=' . tep_href_link(FILENAME_SHIPPING) . ' class="headerNavigation">' . tep_image(DIR_WS_IMAGES . 'shipping.gif', 'Shipping Information') . '</a>';

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...