View Single Post
  #12  
Old 09-14-2018, 06:17 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: How to display products with a particular attribute

Hi @lakin1,

Quote:
Originally Posted by lakin1
Suppose i need attribute value of current product.
How can i add condition here ? Please advise.

I am not sure I am following you here.
The queryBuilder already contains the condition there:
PHP Code:
->andWhere('at.name = :attributename AND aot.name = :optionvalue'

so your implementation can contain as many similar conditions as you need.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote