| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Force htmlcatalog.php to generate self-made templates | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Force htmlcatalog.php to generate self-made templates
I've created a New Arrivals section for our store, using a modification of home.php, and I've named it newarrivals.php. Problem is in the admin/html_catalog.php, I have no idea what to add to the code, to make it crawl the page.
Apart from adding newarrivals.php to the array, what other sections in the script do I have to duplicate/modify to suit my changes? *Edit-* Also, has anyone's help section not work, once in the HTML Catalog? Mine gives an invalid link error for some reason. html_catalog.php: Code:
P.S. What is the difference between dropping and not dropping old HTML Catalog before creating new HTML Catalog? TIA!
__________________
Best Regards! Alan Search is my friend |
|||||||
#2
|
|||||||
|
|||||||
Eventually
Eventullay I was planning on asking a very similar question.
I'd also like to have it index the many extra pages I added to the home_main.tpl like aboutus.tpl dealer.tpl media.tpl etc etc Is there an easy way to do this? I know if this can be done FunkyDunk will be able to do it. I've been reading and watching for a while now. Usually any question I have is already asked in the forum. Thanks for all your help everyone. This has been a great learning experience so far. Its a lot of fun learning new tricks and better ways to do things in x-cart. Sincerely, John7 |
|||||||
#3
|
|||||||
|
|||||||
Thanks for the vote of confidence John... but the pressure....
What happens when you add the new page name to the array? the diff between the dropping old catalog and not is if you have deleted a product, it will delete that page before building the new mini site. hth
__________________
ex x-cart guru |
|||||||
#4
|
|||||||||
|
|||||||||
Code:
Adding to this array should make the regular expressions run over the contents of them and output html. You may have to make your own regular expressions if your doing some weird things.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#5
|
|||||||
|
|||||||
Damn
So I reckon that all the help.php links being converted to html works for all your pages?
In that case I'll have to contact x-cart to help me sort it out, as I didn't change my help.php and tpl files at all, and the html versions give me 401 errors. The ones that work for me are: home.php ------>home.html product.php---->product.html categories.php->categories.html The ones that have html, but gets a 401 is: help.php -->help.html The ones that dont are: search.php giftcert.php cart.php register.php And yes, the regular expressions part is killing me..it's been a while since I've gotten a good sleep, and the pressure is on from my boss too..T_T
__________________
Best Regards! Alan Search is my friend |
|||||||
|
|||
X-Cart forums © 2001-2020
|