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)
-   -   Mod for subcategories in columns with descriptions and icons (https://forum.x-cart.com/showthread.php?t=3848)

weckie 02-15-2005 04:36 AM

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.

balinor 02-15-2005 06:16 AM

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?

weckie 02-15-2005 06:45 AM

Quote:

Originally Posted by balinor
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?


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

alexming 02-17-2005 08:19 AM

Very nice.

Works perfectly with 4.0.11 Gold with images in the file system.

ian_fs 02-17-2005 09:55 AM

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

weckie 02-17-2005 10:25 AM

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.

weckie 02-19-2005 04:02 AM

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 $ *}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}


 
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}


 
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":"
"}

{/if}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}


{* ==================== Sub categories mod start *}

{section name=cat_num loop=$subcategories}
{ if %cat_num.first% }
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
{/if}
{ if %cat_num.index% is div by 2}
<tr>
{/if}
<td align="center" valign="top">
<a href="home.php?cat={ $subcategories[cat_num].categoryid }">
[img]{$xcart_web_dir}/icon.php?categoryid={$subcategories[cat_num].categoryid}[/img]</a>

<a href="home.php?cat={ $subcategories[cat_num].categoryid }">
<font size="1">{ $subcategories[cat_num].category|escape }</font></a>
 
{ $subcategories[cat_num].description|escape }
{if $config.Appearance.count_products eq "Y"}
{if $subcategories[cat_num].product_count}
{ $subcategories[cat_num].product_count } {$lng.lbl_items}
{elseif $subcategories[cat_num].subcategory_count}
({ $subcategories[cat_num].subcategory_count } Subcategories)
{/if}
{/if}
</td>
{ if %cat_num.last% }
</tr>
</table>
{/if}
{/section}

{* ==================== Sub categories mod end *}


{if $tmp and $products ne "" }
<BR clear="left">
<HR size="1" noshade>
{/if}
{if $products}
{if $sort_fields}
<DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</DIV>
{/if}
{if $total_pages gt 2}

 
{ include file="customer/main/navigation.tpl" }
{/if}
<HR size="1" width="100%">
{include file="customer/main/products.tpl" products=$products}
{/if}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_man}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}


 
{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }


Hope i can help people with this "modified"mod.

balinor 02-19-2005 05:19 AM

Modified your post using code tags, makes it much easier to read.

weckie 02-19-2005 06:46 AM

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

balinor 02-19-2005 06:48 AM

There you go! :)


All times are GMT -8. The time now is 01:46 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.