Which two calls will filter a product collection with origin set to “California”?(Choose two.)

You have added a new attribute origin of the type varchar to the product entity.

A. $collection->addFieldToFilter(‘origin’, “California”);
B. $collection->addAttributeToSelect(‘origin’, “California”);
C. $collection->joinAttribute(‘origin’, ‘catalog_product/origin’, ‘origin’, ‘California”);
D. $collection->addAttributeToFilter(‘origin’, “California”);

Not sure

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x