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

Custom Page for category...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-13-2002, 08:01 AM
  anoack's Avatar 
anoack anoack is offline
 

Senior Member
  
Join Date: Dec 2002
Location: Austin, TX
Posts: 113
 

Default Custom Page for category...

Okay, I am still having problems and I seems like my first post is just moving down down down the page. So Im just going to make this again I need to get this working ASAP! This is very important and if anyone cares to help me and I get this working I will paypal $50 dollars to the person that shows me how to get this working right. $75 If we can get it working before 4:00 CST.
What I am trying to do is make a custom page layout for a single Category. E.g. I want my "Headset Tops" Page to look diffrent then all my other pages.
I already made a post and some one told me that I should enter this into my products.tpl file:
Code:
{if $categories[cat_num].categoryid eq 248} WHAT YOU WANT HERE {else}
Wouldn't it be the subcategories.tpl ?
That top code did not work.
Here is the page that I want to customize:
http://www.headsetinnovations.com/cart/customer/home.php?cat=248
I need to know how to do this ASAP! Like I said before, I will be willing to paypal anyone who get this working for me...
Reply With Quote
  #2  
Old 12-13-2002, 09:34 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

If you add another post to your origional it will appear at the top again instead of splitting the posts and repeating.

The old post is here

http://forum.x-cart.com/viewtopic.php?t=1206
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 12-13-2002, 09:38 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

and the winner is....

new subcategories.tpl

Code:
{* $Id: subcategories.tpl,v 1.21 2002/09/10 12:36:34 zorg Exp $ *} { include file="location.tpl" } {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} { include file="customer/main/navigation.tpl" } {if ($page eq "")||($page eq "1")}{$current_category.description|regex_replace:"/[\n]/":" "} {/if} {capture name=dialog} {if $subcategories} [img]../icon.php?categoryid={$cat}[/img] {/if} {if $current_category.categoryid eq 248} do this {else} {section name=cat_num loop=$subcategories} { if %cat_num.first% } <table border=0 cellspacing=5> {/if} <tr><td align=left nowrap width=95%> <font class="TableCenterSubCategoryListTitleBlue">{ $subcategories[cat_num].category|escape }</font> </td> <td align=right nowrap><font class="TableCenterSubCategoryListQuantityBlue">{ $subcategories[cat_num].product_count } {$lng.lbl_products}</font></td> </tr> { if %cat_num.last% } </table> {/if} {/section} {/if} {if $subcategories ne "" and $products ne ""} <hr size=1 noshade> {/if} {include file="customer/main/products.tpl" products=$products} {if $products eq "" and $subcategories eq ""} {$lng.txt_no_products_in_cat} {/if} {/capture} {include file="dialog.tpl" title=$current_category.category|regex_replace:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"} {if $products eq ""} {if $f_products ne ""} {include file="customer/main/featured.tpl"} {/if} {/if}

Added in the bits with spaces top and bottom.
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 12-13-2002, 10:54 AM
  anoack's Avatar 
anoack anoack is offline
 

Senior Member
  
Join Date: Dec 2002
Location: Austin, TX
Posts: 113
 

Default

funkydunk please email me your paypal address.
anoack@networkoperations.us
Reply With Quote
  #5  
Old 12-13-2002, 01:44 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

dont worry about it - glad to help - maybe the favour can be returned one day... doesnt seem fair to charge $1 per character of the solution anyway...
__________________
ex x-cart guru
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 09:56 AM.

   

 
X-Cart forums © 2001-2020