Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

how to add a block at a certain category or product page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-24-2016, 02:22 AM
 
Eyeglasses Expert Eyeglasses Expert is offline
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default 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?
Reply With Quote
  #2  
Old 06-24-2016, 11:35 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:05 AM.

   

 
X-Cart forums © 2001-2020