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)
-   -   Products on an embedded page (https://forum.x-cart.com/showthread.php?t=5774)

svanhove 12-30-2003 05:03 AM

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.

funkydunk 12-30-2003 06:12 AM

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.

svanhove 12-30-2003 06:55 AM

Thanks, Funkydunk. It works great!

Take a look... http://madelainechocolate.com/customer/home.php?cat=119

funkydunk 12-30-2003 11:27 AM

hmm chocolate... =P~


All times are GMT -8. The time now is 10:18 AM.

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