| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding links/pages to Special.tpl | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Adding links/pages to Special.tpl
Does anyone know how I can add links and static pages to Special.tpl? I've changed the name of the section to read "Extras" instead of "Special" and would like to include a link to our pdf version of our catalog and also a static page that would contain links to product manuals, among other things. I tried using the code suggestion below and nothing changed. If anyone can point me in the right direction I would appreciate it. Thanks!
Quote:
__________________
X-Cart 4.4.4 Gold |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Adding links/pages to Special.tpl
Make sure you change the correct template, in 4.4.x if file exists in the skin you are using it overwrites the common_files template. You may also need to clear your cache - cleanup.php
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Adding links/pages to Special.tpl
Thanks for your reply. I cleared my cache as suggested w/ no results. I also checked my skin files and there are none (I'm using the basic 3-column skin). Below is the code I'm working with in
/common_files/customer/special.tpl. The red type is what I added. I'm trying to create a link to a pdf file. Chances are I could be missing something basic here so I apologize ahead of time if I am. Thanks for any help! Code:
__________________
X-Cart 4.4.4 Gold |
|||||||||
#4
|
|||||||
|
|||||||
Re: Adding links/pages to Special.tpl
Quote:
Missing a closing quotes mark on the href attribute? Otherwise, looks good.
__________________
Ralph X-Cart v4.4.2 Gold (still buggy, some are new ones) PHP 5.2.13 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Adding links/pages to Special.tpl
Okay, a lot of time has passed with this, but I just realized something. Apparently I have the pdf linked wrong because whenever someone clicks on the link it brings them to the admin login screen. Anyone know how to fix this?
__________________
X-Cart 4.4.4 Gold |
|||||||||
#6
|
|||||||
|
|||||||
Re: Adding links/pages to Special.tpl
Can you show us what you mean? Take a screen shot?
You created your own hard coded link in the Special's box and you would like it to link to a pdf? Can you provide an updated version of the code that you are using do this. |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Adding links/pages to Special.tpl
I have links to various pdf files within some of my product descriptions as well. All of my pdf files are doing the same thing. A screen shot is attached.
The code I added to Special.tpl: Code:
Code to a pdf file within a product description: Code:
__________________
X-Cart 4.4.4 Gold |
|||||||||
#8
|
|||||||
|
|||||||
Re: Adding links/pages to Special.tpl
I am a little confused at what your trying to do, but I have an idea if I am on the correct path.
You want clients/customers to click on these links in the Specials.tpl to take them to pdfs? If so, make a copy of your PDF and put it into the images folder. So that would be xcart/images/something.pdf Now when you type our <li> put the full path to your pdf file. <li><a href="http://www.YOURWEBSITE.com/xcart/images/somthing.pdf"</a></li> If you xcart installation is on your root, then you can omit the folder xcart and just have "http://www.website.com/images/something.pdg" The possible reason why you are thrown to the admin page is because the PDF is located admin section? If you want something to be public, I wouldn't put it in the admin folder. Hope this helps. |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Adding links/pages to Special.tpl
As Sunray Sales mentioned, if you want the pdf files to be public you shouldn't put them in the admin folder. Creating a folder called "documents" in the root directory for PDF and Word files would be a good solution. Are you trying to have the links open the PDF file so it can be viewed/downloaded or are you trying to embed it within your page? If you're looking for the viewing/downloading option, Sunray Sales' solution should work.
__________________
version 4.4.2 |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: Adding links/pages to Special.tpl
My pdf files are located in files/pdf/ which I can then access by going to Files in the admin section. This is where I copied the link and placed in either the Special.tpl or the product description. I wasn't having any problems with this method prior to switching from our test site to our new site.
I placed the pdf in the Images folder as suggested and it seems to be working fine. I really don't understand what the difference is between the two folders. They are both listed in the same location. Could it have to do with the .htaccess? BTW - Most of the pdf files are product manuals, adapter lists and downloadable catalogs/product lists. They are not embeded.
__________________
X-Cart 4.4.4 Gold |
|||||||||
|
|||
X-Cart forums © 2001-2020
|