![]() |
thanks works great in 4.07 too
|
This is working great :)
I do got a request though. Is it possible to have a category display more columns? I want all categories at 2 columns what this code does great but one needs to be at 4 or it will get way to long. is this possible? |
any differences for 3.5.x branch?
|
You should be able to use the 3.4 code and just watch the Smarty tags for database items to make sure the verbage isn't different. It shouldn't be because 3.5 is really just an extension of 3.3, 3.4
|
I use the code from "grimscot" given above.
Is it possible to shorten the amount of subcategories displayed? I have for example over 50 subcategories in one section. I get a huge list now and people have to scroll down a lot. Can i get more columns so people don't have to scroll down so much? 3 or 4 for example? |
Change this I believe
Code:
{if %cat_num.index% is div by 2} |
category description
now that wouldn't display description for each subcategory, would it?
It didn't in my 4.0.8... Alhtough I clearly see: { $subcategories[cat_num].description|escape } but it returns nothing... any ideas? Thanks! |
MOST EXCELLENT! :wink:
|
Changing that works... but how can i set x amount od columns for a specific subcategory?? I want one section to be 3 columns and my others must be 2.
|
display only 10 per page
Since we have so many sub categories, is there a method to display only 10 on a page and then have a "next" and "previous" button?
Thank you, Chris |
There is probably a way BUT it will affect how your webpages get crawled by the search engines. Surely there is a nice way to organise them rather than bogging down the navigation with multiple pages...
|
nice one, cheers for the mod.....exactly what i was looking for.
|
anyone know why the catagorys in columns 2,3,4 shift to the right?
any help would be great. example: http://www.qvsdiscountelectrical.co.uk/qvsshop/home.php?cat=249 subcatagories.tpl Code:
{* $Id: subcategories.tpl,v 1.43.2.2 2004/10/07 07:08:51 max Exp $ *} |
By default, the x-cart templates expand to the full size of your computer display settings. Therefore the table in which the categories are displayed expands to fit as well, leaving a lot of space between your category images.
In order to maintain consistent size viewable on most system settings, we generally set the width of the entire site to 760 pixels. This will allow you to left justify or center your cart also. For example: http://www.uneedabirkenstock.com This site is left justified as well as using the 3 column category layout. To do this, modify the rectangle_top.tpl from this: Code:
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%" height="100%"> to this: Code:
<TABLE align=center border=0 bgcolor="#FFFFFF" cellPadding=0 cellSpacing=0 width="760" bordercolor="#000000"> Depending on which version you are using there may be 2 instances of this table. (One for the customer end, and one for the administration section.) I hope this helps... |
Tried this in 4.0.9 and did paste in the code that was made for 4.0.8 and nothing changed at all on the page.Was there updates in categories.tpl that prevents this mod from working in 4.0.9 ?
|
Please ignore my stupidity.
Did not know I had to change the welcome.tpl file.Works fine now :) |
Hello guy,
I amd kind of confused now! amd her eis ther reason why. I implemented this mod and is working properly displaying the Icon when the cart is in the dynamic part. whent the HTML catalog is created is displaying a broken link to the images. I my case I move all the images and icons out of the DB and place the proper code on the .htaccess file so images and Icons will display properly. I guess I am sure where the images should be place for the HTML to display it. below is the code Code:
<td align="center" valign="top"> <a href="LADS_Competition_Latin-p-1-c-278.html"> if you like to see what is doing here is the link http://www.ballroomdancingshoe.com/LADS_Competition-p-1-c-276.html thank you in advance. HAPPY NEW YEAR!!!! Kind regards Ricky |
RJC, I cannot understand your last post at all... :roll:
|
What I am trying to say is the HTML catalog is not displaying the icons at all for the subcategories. The Dynamic cart show the Icons for the subcategories.
Look at the links and see. http://www.ballroomdancingshoe.com/LADS_Competition-p-1-c-276.html The above show the broken links. http://www.ballroomdancingshoe.com/store/customer/home.php?cat=276 The above link shoes the Icons. is that better? Kind regards, Ricky |
Yup, got it now. LOL. The spelling and grammar was a little rough in the other post, I was getting confused. :?
Something is definitely wrong as I have this working on a 3.5 development no problem. The html cat pages should not be outputting icon.php but creating the actual http location of the images stored on your server. These are just a couple of shot-in-the-dark ideas to check. html_catalog.php, check the script array against the latest distribution (note i have included my code from an older version it could be different in the latest distro) Code:
$php_scripts = array("search.php","giftcert.php","help.php", "cart.php", "product.php","register.php", "home.php", "pages.php", "pconf.php", "giftregs.php"); Check that your images location is set correctly in the database. Image-path in xcart-icons table. I have had a lot of troubles setting this properly. Nice 404 page btw. :D Good luck. |
Adpboss
Thank you for your help. I went and look at my html_catalog.php and here is the line from my php. Code:
$php_scripts = array("search.php","giftcert.php","help.php", "cart.php", "product.php","register.php", "home.php", "pages.php", "pconf.php", "icon.php"); I went I look at the subcategories.tpl and I think the line of code below is the one that is producing the broken links and I do not know how to fix it. Code:
[img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img] My Icons are in the File System and in that folder I have the .htaccess file with "Access from all" THank you for the kuddos on the 404 page. Thank you for all your help Kind regards, Ricky |
http://www.ballroomdancingshoe.com/store/icon.php?categoryid=277
on php page http://www.ballroomdancingshoe.com/icon.php?categoryid=277 on html page see the problem? How did you generate this catalog in the site root? |
Quote:
Not sure if this is related but your .htaccess file should read: Allow from All |
Adpboss,
I see the difference now between them. I guess I will have to find a way to put an IF stament in the tpl so It will get executed only for the html_catalog.php to correct that little problem. Quote:
Yes the catalog is generated in the root of my syte. Thank you Adpboos for all your help. Quote:
Sorry my mistake the line in my .htacess is "Allow" not "Access" Kind regards, Ricky |
category pagination
Since we have so many sub categories, is there a method to display only 10 on a page and then have a "next" and "previous" button?
I'm still stuck with this issue using this modification... Any Ideas? |
Quick Question
Great Stuff by the way!!!
My Question is, How can I get it to display without all the images and just like this, http://www.gamehead.com.au/home.php?cat=260 Thanks John |
To eliminate the image, change the following code:
Code:
to Code:
[img]{$ImagesDir}/spacer.gif[/img] This will keep a 100 pixel clear image within the <td> </td>and keep a consistant format. |
I tried using the mod that grimsot posted on page 3 but I'm not having any luck. I have 4.0.6 installed on this site.
Here is my subcategories.tpl code: Code:
{* $Id: subcategories.tpl,v 1.43.2.2 2004/10/07 07:08:51 max Exp $ *} Here is what it's outputting: http://www.puttinggreensturf.com/home.php?cat=248 Does anyone know why it's not listing the description under the category name? |
Is it possible to modify the subcategories.tpl file to include a "blurb" at the top of each category page (mostly for Search Engine Optimization purposes)? And then underneath that is the subcategories displayed as has been discussed in this post.
The trick is to be able to have a different "blurb" at the top of each page... My fingers are crossed that someone knows how to do this! Jennifer P.S. If you're not familiar with what a "blurb" is, all I mean is a paragraph of text. |
You could fill in the category description on the edit categories page, and it will show up as that 'blurb' :)
|
very nice mod no pictures
hi,
i copied this into my xcart version 4.011 The mod seems to work but i dont see the icons. example: www.weckonline.nl/xcart Can anyone help me please, because i like this visual very much. |
A few things:
-Are your category icons in the database or the file system? -If they are in the file system, make sure the permissions and htaccess file are correct on that folder -Can you see the category icons in the admin area? |
Quote:
my icons are in the database, yep i can see the icons in my admin. when i use an other subcategories.tpl it works fine. see it working on www.weckonline.nl/xcart. Regards Herman |
Very nice.
Works perfectly with 4.0.11 Gold with images in the file system. |
Weckie
I just looked at your website and it was the first time I have seen a Fashion Mosaic template used for real. It looks very nice and I like the colour scheme. But my question is, I looked on the Register page that you have states for UK, Germany, France, USA etc. Now I know USA, Australia, UK and Canada have states supplied, but did you input the other states for other countries or is there a special list you got from somewhere? As I would like to do a similiar thing for our new website, however I do not fancy spending how ever long typing each one in. Cheers Jez |
hmmm
i got the states from this forum somewhere. but i forgot were. I can always send you an sql dump from my database which has all the states. Just let me know. |
this on is for version 4.0.11
ok, i took an example from the forum, changed it to fit it into version 4.011, and it works fine. I also removed the hardcoded "Products" en replaced it with lbl_items so it will suite for every language.
For instance English=Item(s) German=Artikel Dutch=Artikel(en) etc. Code:
{* $Id: subcategories.tpl,v 1.43.2.2 2004/10/07 07:08:51 max Exp $ *} Hope i can help people with this "modified"mod. |
Modified your post using code tags, makes it much easier to read.
|
yeah i know,
But i don't know how to do that (i dont know what code tags really are. ah wait something like this.... Code:
TES TEST TEST Lets see, if this works i will use it next time... |
There you go! :)
|
All times are GMT -8. The time now is 02:00 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.