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

How to display products with a particular attribute

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 09-06-2018, 03:54 AM
 
lakin1 lakin1 is offline
 

Member
  
Join Date: Feb 2018
Posts: 12
 

Default Re: How to display products with a particular attribute

Quote:
Originally Posted by jameshouston135
Hi my website is homebrandsusa will you please set it's products structure or tell me what should i have to do. For searching the solution on it i recently got an article that how to find the best selling products but really not know about products structure.

Please use following free addon for best selling products.
https://market.x-cart.com/addons/bestsellers.html
__________________
xcart 4.7
Reply With Quote
  #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
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 12:00 PM.

   

 
X-Cart forums © 2001-2020