| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Static page simulation. Search engine improvements | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Static page simulation. Search engine improvements
I wrote a mod that will generate a page which lists all products of the store with its description, simulating a static page. It makes use of Apache Rewrite Engine (mod rewrite).
A page mycatalog.html is dynamically created, and will list the products in the following way: Name of the first product Description of the first product Name of the second product Description of the second product and so forth for the whole catalog. You can see it at work in http://mascotasmexico.com/tienda/lista.html (and yes, this is dynamically created) (thanks Gijs for your help on seeing into template variables, which helped me nail this in relatively short time). 03.03.05 EDIT Please check my newest version of this mod at: http://forum.x-cart.com/viewtopic.php?p=80454#80454 These are the steps to install it (you don't need to change any of the original programs): 1. Create new template skin1/SEO_listing.tpl Code:
2. Create mycatalog.php on your xcart directory: Code:
3. Add the following lines to your .htaccess file on xcart directory, that will map your "html" files to the actual php scripts, without redirecting. Code:
(change the /xcart/ directory if your webdir is something else) 4. Add a link somewhere in your customer/home.tpl or wherever you feel like, that might look something like: Quote:
Ideally this should not be a hidden link, but you want to place somewhere highly unlikely for users to click on it. 03.03.05 EDIT Please check my newest version of this mod at: http://forum.x-cart.com/viewtopic.php?p=80454#80454 I'd want to hear what you think of this, and if you have any improvements for it (which I'm sure there could be), I would be more than glad to hear from you!! Regards
__________________
Fernando Sorry, I\'m not using x-cart anymore, so I am unable to reply to enquiries about modules. Thank you. |
|||||||
#2
|
|||||||||
|
|||||||||
Hi Fernando,
Works like a dream ... now ! First you have to check if the Rewrite module is loaded with Apache otherwise you'll get an internal server error. Check at this section: Quote:
Personnally I would add categories and thumbs as well. Nice Mod Gijs |
|||||||||
#3
|
|||||||
|
|||||||
Good point. I'll update the mod so that it'll include all categories. I just finished a new mod so that customers will be able to see all the first-level sub-categories within the main category they're browsing. I'll post it here over the next few days You can check it out @ my site.
Cheers,
__________________
Fernando Sorry, I\'m not using x-cart anymore, so I am unable to reply to enquiries about modules. Thank you. |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Static page simulation. Search engine improvements
Quote:
I don't know what a hidden link is In CSS you could do the following and ... I hope this is not what you call a hiddenlink Code:
Match COLOR to the background colour of where you put the hyperlink (f.e. in bottom.tpl) When hoovering you'll notice the "hand cursor" showing up for the rest it will be invisible. <a class="HiddenUrl" href="mycatalog.html>Catalog</a> |
|||||||||
#5
|
|||||||
|
|||||||
awesome mod
FYI, people using 3.5 and lower need to change func_display("SEO_listing.tpl", $smarty); to $smarty->display("SEO_listing.tpl"); in mycatalog.php for this to work. |
|||||||
#6
|
|||||||
|
|||||||
Very nice mod... but can this be done in even a slightly better way...
shop is on domain1.com but a page is generated on domain2.com and domain3.com etc this way the all links can be put on the back of many high rank domains... a suggestion...! maybe a xml feed? |
|||||||
#7
|
|||||||
|
|||||||
Hi guys;
I'm running version 3.2.2, and I don't even have HTML Catalog feature. This Mod seems can be very usable for me. Any idea if would work in this old version 3.2.2 ? Appreciate any help ! Thanks
__________________
www.furniturevision.com Version 3.2.2 retired Updated to 4.0.8 - retired Updated to 4.1.9 - retired Updated to 4.4 |
|||||||
#8
|
|||||||
|
|||||||
Great mod - thank you - very versatile too. How can I display it within the xcart template?
__________________
xcartmods.co.uk |
|||||||
#9
|
|||||||
|
|||||||
Hi. I actually created it with search engines in mind, so applying a template wasn't of too much use. Maybe someone else will care to comment on this?
Regards
__________________
Fernando Sorry, I\'m not using x-cart anymore, so I am unable to reply to enquiries about modules. Thank you. |
|||||||
#10
|
|||||||
|
|||||||
It's ok, I've found a way round it, thanks again.
__________________
xcartmods.co.uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|