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

Modifying featured products on customer home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-17-2005, 09:18 AM
 
Paulw Paulw is offline
 

Senior Member
  
Join Date: Jul 2004
Location: United Kingdon (Manchester)
Posts: 134
 

Default 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
__________________
X-Cart Gold V 4.4.1
Reply With Quote
  #2  
Old 03-17-2005, 04:50 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-17-2005, 11:38 PM
 
Paulw Paulw is offline
 

Senior Member
  
Join Date: Jul 2004
Location: United Kingdon (Manchester)
Posts: 134
 

Default

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!
__________________
X-Cart Gold V 4.4.1
Reply With Quote
  #4  
Old 03-18-2005, 08:51 AM
 
Paulw Paulw is offline
 

Senior Member
  
Join Date: Jul 2004
Location: United Kingdon (Manchester)
Posts: 134
 

Default

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
__________________
X-Cart Gold V 4.4.1
Reply With Quote
  #5  
Old 03-18-2005, 08:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 03-18-2005, 09:17 AM
 
Paulw Paulw is offline
 

Senior Member
  
Join Date: Jul 2004
Location: United Kingdon (Manchester)
Posts: 134
 

Default

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
__________________
X-Cart Gold V 4.4.1
Reply With Quote
  #7  
Old 03-18-2005, 09:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Looks like it would be this little bit of code:

{%cnum.last%}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 03-18-2005, 09:25 AM
 
Paulw Paulw is offline
 

Senior Member
  
Join Date: Jul 2004
Location: United Kingdon (Manchester)
Posts: 134
 

Default

Your right thanks, I have taken it out but not sure if it will effect the functionality of the section now its taken out?
__________________
X-Cart Gold V 4.4.1
Reply With Quote
  #9  
Old 03-18-2005, 09:26 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not sure, as I am not familar with that template you have shown. Was that a custom mod written for you?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 03-18-2005, 09:28 AM
 
Paulw Paulw is offline
 

Senior Member
  
Join Date: Jul 2004
Location: United Kingdon (Manchester)
Posts: 134
 

Default

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

Many thanks
__________________
X-Cart Gold V 4.4.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:48 AM.

   

 
X-Cart forums © 2001-2020