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

Yurij is it possible to change subcategories?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-12-2008, 12:49 PM
 
merbay merbay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 42
 

Default 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.
__________________
merbay
4.1.9
Reply With Quote
  #2  
Old 05-13-2008, 12:47 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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


?
Reply With Quote
  #3  
Old 05-13-2008, 06:26 AM
 
merbay merbay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 42
 

Default Re: Yurij is it possible to change subcategories?

Great! How to do this??
__________________
merbay
4.1.9
Reply With Quote
  #4  
Old 05-13-2008, 07:56 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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" 
Reply With Quote
  #5  
Old 05-15-2008, 11:25 AM
 
merbay merbay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 42
 

Default Re: Yurij is it possible to change subcategories?

Thanks Yurij! That fixed my problem!
__________________
merbay
4.1.9
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 01:58 PM.

   

 
X-Cart forums © 2001-2020