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

Products on an embedded page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-30-2003, 05:03 AM
 
svanhove svanhove is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 42
 

Default Products on an embedded page

Is it possible to set up an embedded page to show a category of products? The page shouldn't be hard-coded, but database-style like the rest of the site.

To make things even more difficult, the category mustn't appear in the product category list.

To see how it must work, see http://madelainechocolate.com/customer/home.php?cat=119 I need to show products for a "Private Label" category on the embedded page "Private Label" under "Special" Б─⌠ without that category appearing under "Categories".

I'm running version 3.4.4

Any help would be appreciated.
Reply With Quote
  #2  
Old 12-30-2003, 06:12 AM
 
funkydunk funkydunk is offline
 

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

Default

In short, no.

Using the embedded function this would be impossible using 3.4.4 although version 3.5 has the ability to do it with a large amount of work.

However, there is an easy way to do this.

Simply change categories.tpl as follows:
from:

Code:
{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *} {capture name=menu} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} <font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font> {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font> {/section} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }

to:

Code:
{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *} {capture name=menu} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} {if $categories[cat_num].categoryid ne "119"} <font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font> {/if} {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font> {/section} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }

and add a link to special.tpl to the normal category page.

This will then do exactly as you want.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 12-30-2003, 06:55 AM
 
svanhove svanhove is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 42
 

Default

Thanks, Funkydunk. It works great!

Take a look... http://madelainechocolate.com/customer/home.php?cat=119
Reply With Quote
  #4  
Old 12-30-2003, 11:27 AM
 
funkydunk funkydunk is offline
 

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

Default

hmm chocolate... =P~
__________________
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 06:46 AM.

   

 
X-Cart forums © 2001-2020