![]() |
Hi, Rob:
If your site has 16,000 files, you will be tired to copy all these files everyday to update your site. You can either create a cron job to do it for you at a pre-defined time or modify your HTML catalog routing to copy the HTML files into your web root directory everytime when you create your HTML catalog files. |
Hello,
I too am trying to generating my store in HTML with the catalogue being placed into the root directory. I am using v4.0.7 and have the store in my root directory not customer or xcart. I have located the code to modify of ('DIR_CATALOG', '/catalog'); within my html_catalogue.php file. I have changed this to define ('DIR_CATALOG', ''); This section is fine and it shows my url would be www.giftandhomewarehouse.com.au/index.html However when I try to generate the catalogue I receive an error stating: "No languages are selected" I have tried adding a / to the english language box but this then generates a php script error as it is trying to write www.giftandhomewarehouse.com.au//index.html Notice the double // but this only occurs when I have to enter the lanague area path. What other item can I put in the english lanague option so this generates to the root? Im stumped on this one. Hope someone can offer so guidance with this please, I would be most greatful. |
Quote:
Look in the area where you generate the catalog. You will see languages listed close to the bottom with the white boxes next to them Simply place Code:
/catalog PS, forgot to say ONLY next to YOUR language! Leave all of the others blank |
Hello Markwhoo,
Thanks for your fast reply i do appreciate it. Just want to confirm that with your advice to put /catalog in the language box, should I still use /catalog even though I want it to go into the root directory and not in catalog? Look forward to hearing from you soon. |
Quote:
If you have installed the store into the main web directorythen the slash should do it. If you add " /catalog " This would add the html files into xcart root folder/catalog. So, make sure you have defined catalog as " " and add the slash, try it and see, this should work. |
Catalog Generating Problem
Hi Ghhoz
I had issues with the catalog generator over Christmas/New Year. Here is my post - have a read and see if you have/had the same issue: http://forum.x-cart.com/viewtopic.php?t=15826&highlight= I hope it helps prevent a problem in the future. Regards Ing. Stephen Hatton :idea: |
hmmm XC forces the //index.html (etc) into the file, so when you look at the pages they are displayed as:
www.domain.com//index.html - As mentioned above in this thread. It doesnt matter if you make this define like the following: Code:
define ('DIR_CATALOG', ''); If you leave the language empty, you get the usual error. I have looked through the code but cant figure why XC is doing this. You cant generate the pages in /catalog and move to route as the code is already in the html pages, all links will point to /catalog/xxx.html The forced second / needs to be removed for this to work correctly. Nice idea too I must say. ;) Fix that and place it on a cron job and this will be nice and speedy! :D |
Just a quick addition.
The 2nd / is added all the way through the html_catalog.php file. So they either all need removing... :? Or the languages field you have to select in admin needs to be allowed to process if left empty. |
interesting...
html_catalog.php includes this code: Code:
# If only one language, then remove the "select language" form Now as we only have one language and the others are disabled I would have thought this code should have kicked in, but it doesnt... |
Languages
Hi CC
You have more than one Language installed - One enabled, the others disabled. If you delete the disabled ones, then you will have one language and the script will "kick in". Just though I would mention it for others (just in case you didn't realise it after you hit the submit button). Regards Ing Stephen Hatton :idea: |
All times are GMT -8. The time now is 07:37 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.