| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Custom Template for Single Category [Paying $$ TO COMPLETE] | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Okay, I want this page: http://www.headsetinnovations.com/cart/customer/home.php?cat=248
To look like this one: http://www.headsetinnovations.com/?page=tops But, I want to leave all the other ones the same. Would it be possible for me to just make the change for that one page? |
|||||||||
#2
|
|||||||
|
|||||||
![]() in the products.tpl template you will need to put in a conditional such as
{if $categories[cat_num].categoryid eq 8} put your new code in here - there is code elsewhere on this forum for multiple products per row {else} existing layout {/if}
__________________
ex x-cart guru ![]() |
|||||||
#3
|
|||||||||
|
|||||||||
![]() AWESOME DUDE! I figured it would be something like that I was not sure. I will give that a try.
|
|||||||||
#4
|
|||||||||
|
|||||||||
![]() This is what I have:
// {if $categories[248].categoryid eq 8} put your new code in here - there is code elsewhere on this forum for multiple products per row {else} // This is what I get Parse error: parse error, unexpected $ in /home/www/headsetinnovations/cart/templates_c/103/1035601712/0.php on line 145 This is the URL of the custom page I want: http://www.headsetinnovations.com/cart/customer/home.php?cat=248 Now, How would I exacly do this? |
|||||||||
#5
|
|||||||
|
|||||||
![]() dont put the 248 in there just leave as is and it will work fine. It is telling smarty to look in the array for the cat_num.
__________________
ex x-cart guru ![]() |
|||||||
#6
|
|||||||
|
|||||||
![]() sorry - forgot to say that you should change the 8 for the category number that you want to put a special rule in for.
__________________
ex x-cart guru ![]() |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Okay, I changed my products.tmpl and this is what I get
Quote:
Still getting an error and its at the bottom of the page. I am trying to replace that entire page with a custom look accoring to the cat # |
|||||||||
#8
|
|||||||
|
|||||||
![]() did you put the {/if} at the end?
__________________
ex x-cart guru ![]() |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Wouldn't I have to modify subcategories.tpl?
Heres my code for subcategories.tpl: Code:
My code for products.tpl: Code:
What exacly needs to be changed here? I made the changed to the subcat file and nothing is happening. |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() Also, if anyone works with me and I get this working the way it needs I will paypal $50.00 Dollars to the person.
More if it gets competed within 3 hours. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|