Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Proper tag for root path?


sc123

Recommended Posts

I have a OSC store setup several folders deep into a website. I have a custom template I'm trying to integrate into the OSC store using STS, but that's another issue.

 

My files are currently linked like "../../../../images/image.gif", which is a lot of wasted code. Is there a tag or some code that will eliminate that "../../../../" code, but also know when to use HTTPS instead of HTTP?

 

I had hoped it would be easy to use a custom template with OSC, but it's not turning out that way. It seemed straight forward enough to me - all I really need to do is add an "Add to Cart" button on my custom made product page and then customize the checkout pages, but that has turned into a nightmare of trying to work with STS and tinkering with tags and having mixed results. Does anyone know how to accomplish my goal without causing a brain tumor to form? :)

Link to comment
Share on other sites

The path to the images directory is setup in the configure file. In the code, you either use that path or, if you use an html <img> call, use images/. The code is already setup to work that way so if you are changing it, you are making a mistake. If the shop is several layers deep, you will eventually want to move it since it will not do well with the serach engines there. When you do, if you have your code setup as ../../, it will no longer work.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The path to the images directory is setup in the configure file. In the code, you either use that path or, if you use an html <img> call, use images/. The code is already setup to work that way so if you are changing it, you are making a mistake. If the shop is several layers deep, you will eventually want to move it since it will not do well with the serach engines there. When you do, if you have your code setup as ../../, it will no longer work.

 

Jack

 

Thanks Jack - I forgot to look in the configure file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...