| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Inserting an html page into the cart as a category? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Inserting an html page into the cart as a category?
I'd really like to add a static page to my categories menu.
Right now it has all my product categories. What I'd like to do is add a "news" category, then when a person clicks on the news button it will open up an html file created by my blogger account. This is probably as clear as mud right? If you understand what I"m after and can help, I'll much appreciate it! thanks in advance! |
|||||||
#2
|
|||||||
|
|||||||
The easiest way to do that is to create a new static page and insert your html there. Then, hard-code the link in to customer/categories.tpl. Just after the first closing {/section} tag, add your link in this format:
<span class="CategoriesList">Your text for link</SPAN> Replace 'x' with the number of the static page.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Ok, here I did it just to test and the link isn't showing up in my categories?
Code:
|
|||||||
#4
|
|||||||
|
|||||||
Are you using Fancy Categories?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Yeah, using the icons one to be exact. I'm guessing that's what's causing the issue.
|
|||||||
#6
|
|||||||
|
|||||||
Ok, then move that code I showed you after the last {/if} statement, but before the {/capture} tag.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
Ok, that puts it in there, but leaves me with a few problems.
I'd like to have it at the top of the categories list, but it's currently showing up at the bottom. That's nothing major. BUT.... here's what I'm doing and can't figure out why. I can preview the pages in my admin side with no troubles. When I add your link and click on it, it gives me an error Quote:
The link to preview is: (note that is has the httpS) https://paintballtrader.com/v4/page_002.html But the link that x-cart uses to normally view it is: http://www.paintballtrader.com/v4/pages.php?pageid=3 I'll explain a little better what I"m trying to do. I've got a blogger account. It saves the blog to an Html page on my server. So I'm trying to setup a static page, then allow the blog to overwrite it on my server, so when I click the link in my categories bar it will bring up the blog, but have it formatted so that it is in a normal x-cart page. I've not actually gotten that far yet as I can't get the link to display a normal page yet. Thanks for the help! |
|||||||
#8
|
|||||||
|
|||||||
Are you creating embedded or root pages? Make sure you are using embedded. Also, please put your X-Cart version in your signature....each version is different. Thanks!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
Ok, switching to the root page made all the difference!
Now any idea how to get my link to the top before the fancy categories? My x-cart version is 4.0.18 You've been a great help!! thanks |
|||||||
#10
|
|||||||
|
|||||||
Move the code up above the if statement for fancy categories, right after {capture name=menu}
Also, please put the version in your signature so we don't have to ask you each time Edit profile, enter version, enter help desk password, click the 'Always attach my signature:' box, save. Thanks!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|