X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modifying featured products on customer home page (https://forum.x-cart.com/showthread.php?t=12881)

Paulw 03-17-2005 09:18 AM

Modifying featured products on customer home page
 
I have been searching now for hours to try to find out how to modify the featured products section on my customer home page so that all products shown will have a border around then, then when you move mouse over it the whole box will change colour. I have noticed that a number of later x-cart installations seem to have this feature, but I haven't found a 3.5.X cart with it. Do I need to edit the css file?

If it helps my site is at www.diy2go.com

Many thanks in advance, and i'm sorry if this has been answered before, I simply could not find it.

Also under the 'categories' section of my home page - which I have renamed 'departments' I seem to get an annoying number '1' showing up- any idea's how to get rid of it?

Thanks

Paul

balinor 03-17-2005 04:50 PM

Search isn't great, but it does work if you get the right combo of words in there ;)

http://forum.x-cart.com/viewtopic.php?t=16543

Paulw 03-17-2005 11:38 PM

Quote:

Originally Posted by balinor
Search isn't great, but it does work if you get the right combo of words in there ;)

http://forum.x-cart.com/viewtopic.php?t=16543


Cheers Balinor,

Your a star! :lol:

Paulw 03-18-2005 08:51 AM

I still have that number one showing, it's one of those little things that really bugs you, has anyone got any ideas?

Thanks
Paul

balinor 03-18-2005 08:56 AM

What template are you using to display the categories on the home page? Is that welcome.tpl or have you created a new template? Either way, look for that 1 in the code...as it must just be a random piece of text in one of the templates.

Paulw 03-18-2005 09:17 AM

Is it in a folder called customer_favourites:

Quote:

{assign var="is_favour" value="N"}
{section name=cnum loop=$category_tree}
{if $category_tree[cnum].cust_favour eq "Y"}
{assign var="is_favour" value="Y"}
{/if}
{/section}

{if $is_favour eq "Y"}
{capture name=dialog}
{assign var="cat_per_row" value="2"}

<table border=0 cellpadding=10 cellspacing=10 width=100%>
{assign var="counter" value="0"}
{section name=cnum loop=$category_tree}

{if $category_tree[cnum].cust_favour eq "Y"}

{if $counter is div by $cat_per_row}
<tr>
{/if}

<td width="50%" valign="top" align="center">
{$category_tree[cnum].category}
<div align="left">
<table border=0 cellpadding=0 cellspacing=8><tr>
<td width=100 align=right>
[img]{if $category_tree[cnum].icon_url}{$category_tree[cnum].icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$category_tree[cnum].categoryid}{/if}[/img]
</td>
<td valign=middle>
{section name=subcat_num loop=$category_tree[cnum].subcategories}
<a href="home.php?cat={ $category_tree[cnum].subcategories[subcat_num].categoryid }">
{ $category_tree[cnum].subcategories[subcat_num].category_name|escape }</font></a>


{/section}
</td>
</tr></table>
</div>
{%cnum.last%}
</td>

{capture name=cat_index}
{math equation="index+x+1" index=$counter x=$cat_per_row}
{/capture}
{if $smarty.capture.cat_index is div by $cat_per_row }
</tr>
{/if}

{math equation="x+1" x=$counter assign="counter"}

{/if}
{/section}

{capture name=cat_index}
{math equation="index+x" index=$counter x=$cat_per_row}
{/capture}
{if $smarty.capture.cat_index is div by $cat_per_row }
{else}
<td width="50%"></td></tr>
{/if}

</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_cust_favourites content=$smarty.capture.dialog extra="width=100%"}
{/if}
It allows me to choose which categories (departments) to display on the customer homepage and in what order, with what subcategories I like. I have loked through the code but can still not find the answer - any thoughts?

Paul

balinor 03-18-2005 09:20 AM

Looks like it would be this little bit of code:

{%cnum.last%}

Paulw 03-18-2005 09:25 AM

Your right thanks, I have taken it out but not sure if it will effect the functionality of the section now its taken out?

balinor 03-18-2005 09:26 AM

Not sure, as I am not familar with that template you have shown. Was that a custom mod written for you?

Paulw 03-18-2005 09:28 AM

Yes, X-cart did it for me, I can pre guess your next comment- ask them!

Many thanks


All times are GMT -8. The time now is 06:43 PM.

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