You have added a new attribute origin of the type varchar to the product entity. Which two calls will filter a product collection with origin set to "California"? (Choose two.)
A) $collection->addFieldToFilter('origin', "California") ;
B) $collection->addAttributeToSelect('origin', "California") ;
C) $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California") ;
D) $collection->addAttributeToFilter('origin', "California") ;
Correct Answer:
Verified
Q41: What is the difference between online and
Q42: A merchant asks you to extend customer
Q43: What is the relationship between products and
Q44: How do you add a new link
Q45: You are working on a custom web
Q47: A custom module needs to log all
Q48: A merchant gives you the module MyCompany_MyModule
Q49: Assume that $collection is a new instance
Q50: You are building a report using complex
Q51: Magento allows you to specify custom values
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents