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)
-   -   Custom Page for category... (https://forum.x-cart.com/showthread.php?t=950)

anoack 12-13-2002 08:01 AM

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

shan 12-13-2002 09:34 AM

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

funkydunk 12-13-2002 09:38 AM

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.

anoack 12-13-2002 10:54 AM

funkydunk please email me your paypal address.
anoack@networkoperations.us

funkydunk 12-13-2002 01:44 PM

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


All times are GMT -8. The time now is 04:25 AM.

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