| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
How to select all product of speified vendor? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to select all product of speified vendor?
Product is linked to a vendor through vendor_id attribute in product table, there is no vendor_id property in \XLite\Model\Product, so how can I select all products of specified vendor?
__________________
xcart 4.4.1, 5 |
|||||||
|
#2
|
|||||||||
|
|||||||||
Re: How to select all product of speified vendor?
Actually, Multivendor module adds vendor property to a product model (see the \XLite\Module\XC\MultiVendor\Model\Product class), which means that you can pull products by vendor as follows:
PHP Code:
where VENDOR_ID must be replaced with actual vendor name. If you can pull $vendor object anyhow else, you can go for it as well. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|