Announcement

Collapse
No announcement yet.

Product Attributes with Power Search Module

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Product Attributes with Power Search Module

    I'm using Power Search Module for Faceted Navigation. I display my attributes on the Category Page. On the SRCH results page, using Power Search, I want to be able to display the attributes of each product as well. Is this possible, because the SRCH results Template Code is contained in the Power Search Module settings.

    On the "Search Results Layout" inside Power Search, this is my code to call load the attributes:


    Code:
    <div id="ctgyswatches_&mvte:product:id;" class="ctgyswatches swatches"> 
    </div>
                    
    <mvt:item name="category_listing_imagemachine" param="body:product:id" />
    <mvt:item name="attributemachine" param="body:product:id" />
    I also have
    Code:
    <mvt:item name="attributemachine" param="head" />
    in the HEAD tag. My attributes don't load on the page. Is what I'm trying to do even possible? All the items I'm calling above are active on my SRCH page.

    #2
    Re: Product Attributes with Power Search Module

    The reason your attributes are not showing is because you need this item on the page.

    <mvt:item name="product_attributes" param="product:id" />

    You may have to adjust the param value so it passes in the correct product id from the search page.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Product Attributes with Power Search Module

      Brennan,

      I've tried a few different variations to get this to work, I'm beginning to think it won't work being called inside the module. Here's the full picture:

      The foreach loop inside the Power Search Module is
      Code:
        <mvt:foreach iterator="product" array="search_results:products">
      Then I have
      Code:
       <form method="post" action="&mvte:global:sessionurl;Screen=BASK">                               
       <input type="hidden" name="Action" value="ADPR" />
       <input type="hidden" name="Quantity" value="1" />
       <mvt:item name="attributemachine" param="product:id" />          
       <input type="hidden" name="Product_Code" value="&mvte:product:code;" />    
      </form>
      
      
      <div id="ctgyswatches_&mvte:product:id;" class="ctgyswatches swatches"> 
                          
      </div>
      
      
      <mvt:item name="product_attributes" param="product:id" />   
      <mvt:item name="category_listing_imagemachine" param="product:id" />

      Comment

      Working...
      X