View Single Post
  #3  
Old 05-04-2015, 04:57 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Create custom IF function

Try the following:
1. Create a custom module
2. Decorate the \XLite\View\Product\Details\Customer\Image class
3. Add isVisible() method that checks for the field as follows:
Code:
protected function isVisible() { return parent::isVisible() && ($this->getProduct()->getYourField() === 'your value'); }

Will this work?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 05-04-2015 at 05:00 AM.
Reply With Quote