Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Root HTML Generator

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 01-20-2005, 11:52 PM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Argh ok that makes sense, although not very good.
This would have been better written to work with disabled/non-installed languages I think...

The fact you have to delete it is not good.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #32  
Old 01-20-2005, 11:57 PM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Ok, just backed up and deleted German, French and Swedish as we dont need these, and still it asks for the language.

And around I turn to go back to the drawing board...
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #33  
Old 01-25-2005, 06:45 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

I haven't tried this so just consider it a suggestion:

admin/html_catalog.php

change lines 360-361 from:
Code:
if ((filetype ($catdir["path"]."/".$file) != "dir")) { unlink ($catdir["path"]."/".$file);
to:
Code:
if ((filetype ($catdir["path"]."".$file) != "dir")) { unlink ($catdir["path"]."".$file);
Let me know how it goes?
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #34  
Old 01-26-2005, 12:19 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Already attempted this, same result the double // lives!

It's one of those bits of code where you know the answer is simple enough if only you could be arsed to sit there long enough to work it out.

I really need to, as the html catalog in root would be a huge bonus.
But I dont want to be indexed with // URL's, it looks poor if nothing else.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #35  
Old 01-26-2005, 07:05 AM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Hmmm.. I kinda like having my html pages in a seperate folder, but I put my index.html in the root folder, that way when I make changes to my store the customer isn't aware since they are riding on the html pages. And after I make the changes, I delete the index.html and the customer rides the .php pages while my html's are generating.

As far as indexing goes, I am in probably one of the most competative businesses going and my pages are starting to get indexed very well. The problem is not in the html files being outside of the root folder. There are many drawbacks to Xcart when it comes to SEO and it would take me a few days to explain it all. But I had to totally re-re my whole cart to get it to index properly. You see, one of the first things the spiders go for is cart.php and then the search results page can actually destroy your chances of getting indexed! I have reworked this for myself solving the problem, but before that, NO INDEXING. The standard XCart takes the spider for quite a ride before they get to your html pages and some search engines will only index 400 pages. The search results page alone will eat that up before ever getting to a product! Putting the html's in the root may or may not solve this but it won't solve the way spiders go through your cart. XCart should hire an SEO company to rework the cart. I can show them how to fix it but they will have to purchase a support ticket from me.
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #36  
Old 01-26-2005, 09:04 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Indexing is not something we suffer from, we get indexed very highly, particularly by Google.

What we really need is the speed from the html catalog for our customers.
But I dont want to jepordise our indexing for speed, so I need to fix some issues first with this root install.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #37  
Old 02-20-2005, 09:34 PM
 
symphony symphony is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 82
 

Default html catalog javascript 4.0.1

I read this thread as I have the same problem with // while generating html files. However, when checking links in the code once generated all links are with only one / which is fine I guess.

My main questions is:

I have not used x-cart for a while and noticed with the 4.x version that the html generates javascript in the head of each html page. Does anyone know its purpose and if it is necessary?

Thanks for the hints.

Cheers

4.0.11
Red Hat 9.0
Reply With Quote
  #38  
Old 02-21-2005, 03:21 AM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

It's been so long since I dealt with that (js in the head section) I believe it is a browser check. Anyway, it's no good for SEO but a must have for the site.
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #39  
Old 03-13-2005, 04:28 PM
 
wapiticboy wapiticboy is offline
 

Advanced Member
  
Join Date: Feb 2004
Location: Colorado Springs, CO
Posts: 57
 

Default So Why doesnt X-cart solve the concern/..............

Am I stupid or what...

simple question...:
why doesn't x-cart solve the SEO/catalog BS by writing a snippet of code that can be run as stand-alone or absolved into the cart itself that will write the catalog static html to the root (given proper root configurations that is)

problem solved... anyway I have 5 sites that I webmaster and all of them are running the catalog generated index in the root and the rest in the catalog directory....all works fine...and seems to spider ok...

true all in root is much better...you would think that x-cart would solve this issue...would be a big boost to the software...
__________________
Al
Wapiticboy
\"When all else fails...PUNT!
X-Cart 4.0.18 & 4.1.2 Pro versions installed on various websites
FreeBSD 4.8-RELEASE
MySQL 4.0.27
PERL v5.008008
PHP 4.4.2
Net::SSLeay 1.30
libCURL libcurl/7.15.3
OpenSSL/0.9.7e zlib/1.2.2
Reply With Quote
  #40  
Old 03-27-2005, 02:56 PM
 
pwd88 pwd88 is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 80
 

Default

How did you solve this? please share with us Will you?
__________________
XCart 4.0.18 Gold
X-Giftregistry
Neon light
Fashion mosaic
Tabbed product menu
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:45 AM.

   

 
X-Cart forums © 2001-2020