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)
-   -   subcategories.tpl mod works, breaks webmaster mode? (https://forum.x-cart.com/showthread.php?t=6713)

domspe 03-15-2004 01:25 PM

subcategories.tpl mod works, breaks webmaster mode?
 
Hello, i modified customer/main/subcategories.tpl to take out a whole lot of stuff i don't need. i made it read:

Quote:

{include file="customer/main/products.tpl" products=$products}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category_name|regex_replac e:"/.*\//":"" 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" }


works 100% with the store, however, when i got into webmaster mode, everything displays horribly. white background, no CSS, tables broken up.

any ideas, comments, or suggestions? did i remove something that webmaster mode needs?? :?:

Thank you!!!!!!! :o

domspe 03-22-2004 10:13 AM

anyone have any idea??????
thx :oops:

domspe 03-25-2004 07:14 AM

In case anyone happens to care or wishes to remove subcategory listings in the future, this is how you make it worK:

Code:

{include file="customer/main/products.tpl" products=$products}
{capture}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_cat}
{/if}

{include file="dialog.tpl" title=$current_category.category_name|regex_replace:"/.*\//":"" 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" }
{/capture}


I was missing some capture tags!
yay fixed mods! :)


All times are GMT -8. The time now is 03:23 PM.

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