X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   How to display products with a particular attribute (https://forum.x-cart.com/showthread.php?t=70741)

lakin1 09-06-2018 03:54 AM

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

tony_sologubov 09-14-2018 06:17 AM

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


All times are GMT -8. The time now is 05:31 PM.

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