Announcement

Collapse
No announcement yet.

TRACK_PRODUCT_INVENTORY field doesn't work

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

    TRACK_PRODUCT_INVENTORY field doesn't work

    TRACK_PRODUCT_INVENTORY field in the Add/Update Product Variants CSV is not part of the import. The field is not there to map and it's not included in the CSV Template nor the XLS Template. It was included in an example that Brennan had provided. How does one go about activating Inventory Variants in the product Attributes for about 2500+ products?
    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
    When you are using the Product Variant Import, it automatically will create the attributes with the track inventory column checked, generate variants and create the part products.

    If the products/attributes are already created in Miva and you just want to turn on inventory tracking and generate variants in bulk you'll need to do it via XML:

    Code:
     <ProductAttribute_Update product_code="&mvt:product:code;" attribute_code="&mvte:attribute:code;">  
    <Inventory>Yes</Inventory>
    </ProductAttribute_Update>
    Generate Variants:

    Code:
     <ProductVariant_Generate product_code="&mvt:product:code;" pricing_method="master" delimiter="_" />
    You can use the sitemap item and assign it to a page and generate a script that will output this code for all products.
    Last edited by Brennan; 07-19-16, 07:43 AM.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      I tried it 3 times, 3 different Product Variant Imports - it worked great for all 3 EXCEPT it never checked the track inventory. It looks like this is because these attributes already existed. At least I was able to create the variant products with the file. I'm not sure why the TRACK_PRODUCT_INVENTORY is part of the file that can be used to create everything, there is nothing to map it to, so I'm confused as to how it could assign it for the new ones created?
      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
        Originally posted by Brennan View Post
        When you are using the Product Variant Import, it automatically will create the attributes with the track inventory column checked, generate variants and create the part products.

        If the products/attributes are already created in Miva and you just want to turn on inventory tracking and generate variants in bulk you'll need to do it via XML:

        Code:
        <ProductAttribute_Update product_code="&mvt:product:code;" attribute_code="&mvte:attribute:code;">
        <Inventory>Yes</Inventory>
        </ProductAttribute_Update>
        Yes, it looks like I will need to turn the inventory tracking.
        Originally posted by Brennan View Post
        Generate Variants:

        Code:
        <ProductVariant_Generate product_code="&mvt:product:code;" pricing_method="master" delimiter="_" />
        You can use the sitemap item and assign it to a page and generate a script that will output this code for all products.
        Do you have a sample page for something like this? It would be greatly appreciated.

        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


          #5
          So I think I'm getting close to what I need to turn the tracking on for existing products. This code by itself doesn't insert the attribute code

          Code:
           <mvt:foreach iterator="product" array="products">
          <ProductAttribute_Update product_code="&mvt:product:code;" attribute_code="&mvte:attribute:code;">  
          <Inventory>Yes</Inventory>
          </ProductAttribute_Update>
          </mvt:foreach>
          If I add <mvt:item name="product_attributes" param="product:id" /> to the loop, well, yeah, I get the attribute code, but I also get the attributes for the product.

          I am soooo close but soooo far away.
          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

          Working...
          X