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)
-   -   how to add a block at a certain category or product page? (https://forum.x-cart.com/showthread.php?t=74116)

Eyeglasses Expert 06-24-2016 02:22 AM

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?

razortw 06-24-2016 11:35 AM

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.


All times are GMT -8. The time now is 01:14 PM.

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