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)
-   -   Create a range in tpl (https://forum.x-cart.com/showthread.php?t=14050)

hudge 05-17-2005 10:21 AM

Create a range in tpl
 
I am looking to do something like this:

Code:

{if $cat eq "14-68"}
{include file="customer/main/products_np.tpl" products=$products}
{else}
{include file="customer/main/products.tpl" products=$products}
{/if}


I want anything in cat 14 through 68 not to pull a different tpl file without a price. I am doing this to show case some products that they have to call and order. Thanks for the help.

hudge

shan 05-17-2005 11:27 AM

i did a similar thing by adding an extra field to the categories table to say what type of category it was and then display the products acordingly. my way you can add extra categories and have them display the right way easily

hudge 05-17-2005 11:38 AM

I figured it out.

Code:

{if $cat > "13" and $cat < "69"}


All times are GMT -8. The time now is 04:39 AM.

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