X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Root HTML Generator (https://forum.x-cart.com/showthread.php?t=10401)

Yang Xu 11-29-2004 08:39 AM

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.

ghhoz 01-18-2005 07:11 PM

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.

markwhoo 01-18-2005 07:19 PM

Quote:

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

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
in the white box and all should be well with the world :wink:

PS, forgot to say ONLY next to YOUR language! Leave all of the others blank

ghhoz 01-18-2005 08:30 PM

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.

markwhoo 01-19-2005 03:54 PM

Quote:

Originally Posted by ghhoz
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.


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.

Stephen Hatton 01-19-2005 04:21 PM

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:

CC 01-20-2005 01:03 PM

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', '');
It still forces the double //

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

CC 01-20-2005 01:07 PM

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.

CC 01-20-2005 01:34 PM

interesting...

html_catalog.php includes this code:

Code:

                # If only one language, then remove the "select language" form
                if (count($hc_state["catalog_dirs"]) == 1)
                        $hc_state["remove_slform"] = true;


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...

Stephen Hatton 01-20-2005 06:08 PM

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.