- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2015
02:41 PM
07-28-2015
02:41 PM
I'm building a book shop store.
I created an Author custom attribute (multiselect) and I'd like to render it as a link to advanced search.
The following code works if I select only one value, but if I select more of one value I see array.
<a href="/catalogsearch/advanced/result/?author=<?php echo $_product->getData('author') ?>"><?php echo $_product->getAttributeText('author') ?></a>
How can I adapt it for multiselect values?
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2015
08:05 AM
07-30-2015
08:05 AM
This may be help you, If you make the array of selected value into one string and then pass in URL.
Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2015
08:05 AM
07-30-2015
08:05 AM
This may be help you, If you make the array of selected value into one string and then pass in URL.
Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer