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)
-   -   Yurij is it possible to change subcategories? (https://forum.x-cart.com/showthread.php?t=39706)

merbay 05-12-2008 12:49 PM

Yurij is it possible to change subcategories?
 
I want to change my subcategories (S, M, L) on my products pages. Instead of using a separate line for each, I want them all on one line. Is this possible??

Does anyone know the answer? Thanks.

Yurij 05-13-2008 12:47 AM

Re: Yurij is it possible to change subcategories?
 
Quote:

Originally Posted by merbay
I want to change my subcategories (S, M, L) on my products pages. Instead of using a separate line for each, I want them all on one line. Is this possible??

Does anyone know the answer? Thanks.


Yes this is possible.

Let us give the task.

Now subcategories are displayed as follows:

CD audio 12 Products
DVD 4 Products
Video cassettes 2 Products



We want to make it so

CD audio DVD Video cassettes


?

merbay 05-13-2008 06:26 AM

Re: Yurij is it possible to change subcategories?
 
Great! How to do this??

Yurij 05-13-2008 07:56 AM

Re: Yurij is it possible to change subcategories?
 
Quote:

Originally Posted by merbay
Great! How to do this??


1. Backup file "skin1/customer/main/subcategories.tpl"

2. Change the code of this file on this (version 4.1.9)

PHP Code:

{* $Idsubcategories.tpl,v 1.55.2.1 2006/06/27 08:20:37 svowl Exp $ *}
{if 
$active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"}
<
/>
{include 
file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<
/>
{if 
$active_modules.Special_Offers}
{include 
file="modules/Special_Offers/customer/category_offers_short_list.tpl"}
{/if}
{if (
$navigation_page eq "")||($navigation_page eq "1")}{$current_category.description}</>{/if}
{
capture name=dialog}
{
assign var="tmp" value="0"}
{foreach 
from=$subcategories item=c key=catid}
{if 
$c.category}{assign var="tmp" value="1"}{/if}
{/foreach}

{if 
$subcategories}
<
table cellspacing="5" width="100%">
<
tr>
<
td>
{foreach 
from=$subcategories item=subcat}

    <
a href="home.php?cat={ $subcat.categoryid }"><font class="ItemsList">{ $subcat.category|escape }</font></a>&nbsp;&nbsp;

{/foreach}
</
td>
</
tr>
</
table>
{/if}


{if 
$tmp and $products ne "" }
<
br clear="left" />
<
hr size="1" noshade="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}
<
br />
{ 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_cat}
{/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" 


merbay 05-15-2008 11:25 AM

Re: Yurij is it possible to change subcategories?
 
Thanks Yurij! That fixed my problem!


All times are GMT -8. The time now is 01:44 PM.

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