Announcement

Collapse
No announcement yet.

Dynamic Pricing on the CTGY screen

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

    Dynamic Pricing on the CTGY screen

    I thought i had this figured out, but obviously I don't because it's not working. I need to place a product on the CTGY that has dynamic inventory variant pricing. The product works fine on the product page, so all of that is configured correctly.

    I have the Attribute Machine enabled for the CTGY screen

    I have this tag in the head <mvt:item name="attributemachine" param="head" />

    I am using the <mvt:item name="category_listing" /> tag

    I have this tag <mvt:item name="attributemachine" param="body:product:id" /> in the Category Product List Layout template

    I have the Attribute Machine enabled and the Price Element is price-value

    This is the code in the template to display the price:
    Price: <span id="price-value" class="bold">&mvt:product:formatted_price;</span>


    Calculate Predicted Discounts and Sale Price is checked

    The price is not changing when the attribute is selected like it does on the product page and it's frustrating...

    What am I missing? How do I make this work?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Re: Dynamic Pricing on the CTGY screen

    The attributes must be on the page in order for the price to change. Make sure the product_attributes item is assigned and this tag is in the foreach loop:

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


    Also, All the ids for attribute machine need the product_id appended to the end so they are unique:

    inventory-message-%product_id%
    price-value-
    %product_id%
    price-value-additional-
    %product_id%
    product-discounts-%product_id%
    swatches-%product_id%
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Dynamic Pricing on the CTGY screen

      Originally posted by Brennan View Post
      The attributes must be on the page in order for the price to change. Make sure the product_attributes item is assigned and this tag is in the foreach loop:<br>
      <br>
      <mvt:item name="product_attributes" param="product:id" /><br>
      <br>
      <br>
      Also, All the ids for attribute machine need the product_id appended to the end so they are unique:<br>
      <br>
      inventory-message-<strong>%product_id%<br>
      price-value-</strong><strong>%product_id%<br>
      price-value-additional-</strong><strong>%product_id%<br>
      product-discounts-%product_id%<br>
      swatches-%product_id%</strong>
      <br>
      <br>
      <br>
      These two tokens are in the are in the <mvt:foreach iterator="product" array="category_listing:products"> loop<br>
      <br>
      Code:
      <mvt:item name="product_attributes" param="product:id" /><br>
      <!-- Attribute Machine Body -->;<br>
      <mvt:item name="attributemachine" param="body:product:id" /><br>
      <br>
      <br>
      But I am slightly confused about what I need to use to make the price-value-%product_id% unique in the template. Does it need to need to be price-value-&mvt:product:id; or do have this all wrong?<br>
      <br>
      <br>
      Last edited by lesliekirk; 11-23-15, 09:00 AM.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Re: Dynamic Pricing on the CTGY screen

        You can have the price value be whatever you want as long as what you have in the page template matches what is in the admin settings, and there is a unique identifier per product
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: Dynamic Pricing on the CTGY screen

          Okay, then I must still be doing something wrong. It's still not working.
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            Re: Dynamic Pricing on the CTGY screen

            PM me access and I can take a look
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment

            Working...
            X