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?
Announcement
Collapse
No announcement yet.
TRACK_PRODUCT_INVENTORY field doesn't work
Collapse
X
-
TRACK_PRODUCT_INVENTORY field doesn't 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
Tags: None
-
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>
Code:<ProductVariant_Generate product_code="&mvt:product:code;" pricing_method="master" delimiter="_" />
Last edited by Brennan; 07-19-16, 07:43 AM.
-
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
-
Originally posted by Brennan View PostWhen 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>
Originally posted by Brennan View PostGenerate Variants:
Code:<ProductVariant_Generate product_code="&mvt:product:code;" pricing_method="master" delimiter="_" />
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
-
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>
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
Comment