| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
how to add a block at a certain category or product page? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
how to add a block at a certain category or product page?
we are trying to add Block A at category A, and block B at product B, and Block C at static page C, and Block D at homepage, and Block E at contact us page, how to do, pls?
__________________
x-cart gold 4.7.12 http://www.prescriptionglasses123.com/ http://www.glassespeople.com http://www.loupesusa.com http://www.eyeglassesclub.com |
|||||||
#2
|
|||||||||
|
|||||||||
Re: how to add a block at a certain category or product page?
Hello.
This can be done by just editing Smarty templates. Basically, you will need to find the template that is responsible for displaying the part of the page you want to change, and wrap your block into a condition like this {if $main eq 'catalog' and $cat eq %your_category_id%} code of your block {end} That is it. Let me know if this helps.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
|||
X-Cart forums © 2001-2020
|