Is there a way to update products, specifically attributes/options via the provide.xml file. Seems to ignore any changes if the product is present.
Announcement
Collapse
No announcement yet.
Update Product Via Provide.xml
Collapse
X
-
Update Product Via Provide.xml
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.comTags: None
-
Re: Update Product Via Provide.xml
yea...know that...hoping there was an undocumented feature to update...not just add...Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
Re: Update Product Via Provide.xml
Was there any answer to this?
I am wondering about price, cost, description, etc, as well as attributes and the most important, inventory counts.
TIA,
ScottNeed to offer Shipping Insurance?
Interactive Design Solutions https://www.myids.net
MivaMerchant Business Partner | Certified MivaMerchant Web Developer
Competitive Rates, Custom Modules and Integrations, Store Integration
AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
My T-shirt Collection is mostly MivaCon T-shirts!!
Comment
-
Re: Update Product Via Provide.xml
Yep, realized how old this thread is, but since I haven't found any documentation, the subject is still current. My similar/exact question on the dev forum has gone unanswered. If I didn't see this thread, I would have created a ticket.
Thanks,
ScottNeed to offer Shipping Insurance?
Interactive Design Solutions https://www.myids.net
MivaMerchant Business Partner | Certified MivaMerchant Web Developer
Competitive Rates, Custom Modules and Integrations, Store Integration
AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
My T-shirt Collection is mostly MivaCon T-shirts!!
Comment
-
Re: Update Product Via Provide.xml
Product_Update is the tag you want to update existing products:
Code:<Product_Update code="existing_code"> <Code>new_code</Code> <Name>new_name</Name> <Price>1.23</Price> <Cost>1.23</Cost> <Weight>1.23</Weight> <Description>new_desc</Description> <ThumbnailImage>new_thumbnail</ThumnailImage> <FullSizeImage>new_image</FullSizeImage> <Taxable>Yes</Taxable> <Active>Yes</Active> </Product_Update>
Attributes can be added, deleted, or updated using provisioning:
Code:<ProductAttribute_Add product_code="code"> <Code></Code> <Type></Type> <Prompt></Prompt> <Price></Price> <Cost></Cost> <Weight></Weight> <Required></Required> <Inventory></Inventory> <Image></Image> </ProductAttribute_Add> <ProductAttribute_Update product_code="" attribute_code=""> <Code></Code> <Type></Type> <Prompt></Prompt> <Price></Price> <Cost></Cost> <Weight></Weight> <Required></Required> <Inventory></Inventory> <Image></Image> </ProductAttribute_Update> <ProductAttribute_Delete_All product_code="" /> <ProductAttribute_Delete product_code="" attribute_code="" /> <ProductAttributeOption_Add product_code="" attribute_code=""> <Code></Code> <Prompt></Prompt> <Price></Price> <Cost></Cost> <Weight></Weight> <Image></Image> <DefaultOption>No</DefaultOption> </ProductAttributeOption_Add> <ProductAttributeOption_Update product_code="" attribute_code="" option_code=""> <Code></Code> <Prompt></Prompt> <Price></Price> <Cost></Cost> <Weight></Weight> <Image></Image> <DefaultOption>No</DefaultOption> </ProductAttributeOption_Add> <ProductAttributeOption_Delete product_code="" attribute_code="" option_code="" />
Last edited by zdumlao; 11-30-11, 03:23 PM.
Comment
-
Re: Update Product Via Provide.xml
Thanks John.
Looks like inventory is only part of the attribute block? True?
How many product records can be handled in one file? Is there a limit?
Thanks again,
ScottNeed to offer Shipping Insurance?
Interactive Design Solutions https://www.myids.net
MivaMerchant Business Partner | Certified MivaMerchant Web Developer
Competitive Rates, Custom Modules and Integrations, Store Integration
AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
My T-shirt Collection is mostly MivaCon T-shirts!!
Comment
-
Re: Update Product Via Provide.xml
Code:<InventoryProductSettings_Update product_code="armor-stdleather"> <TrackProduct>Yes</TrackProduct> <AdjustStockBy>500</AdjustStockBy> <InStockMessageShort><![CDATA[]]></InStockMessageShort> <InStockMessageLong><![CDATA[]]></InStockMessageLong> <TrackLowStockLevel>Yes</TrackLowStockLevel> <LowStockLevel>Default</LowStockLevel> <LowStockMessageShort><![CDATA[]]></LowStockMessageShort> <LowStockMessageLong><![CDATA[]]></LowStockMessageLong> <TrackOutOfStockLevel>Yes</TrackOutOfStockLevel> <HideOutOfStockProducts>Yes</HideOutOfStockProducts> <OutOfStockLevel>Default</OutOfStockLevel> <OutOfStockMessageShort><![CDATA[]]></OutOfStockMessageShort> <OutOfStockMessageLong><![CDATA[]]></OutOfStockMessageLong> <LimitedStockMessage><![CDATA[]]></LimitedStockMessage> </InventoryProductSettings_Update>
Thanks,
ScottNeed to offer Shipping Insurance?
Interactive Design Solutions https://www.myids.net
MivaMerchant Business Partner | Certified MivaMerchant Web Developer
Competitive Rates, Custom Modules and Integrations, Store Integration
AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
My T-shirt Collection is mostly MivaCon T-shirts!!
Comment
-
Re: Update Product Via Provide.xml
Scott,
I"m using miva 5.5 pr4.
It worked for me. I saw a bug report dated earlier in feb 2012 (mentioning here for posterity's sake)
that quantity updating via import has some bugs that seem to turn off inventory tracking
so you have to specify tracking, low stock, out of stock and hide out of stock to all be yes to prevent the import bug.
Also saw that miva says it is fixed in pr5 in house, but pr5 isn't released to the public yet.
the following worked fine for me to update inventory quantities. (i am being on the safe side specify all the yes's)
Code:<InventoryProductSettings_Update product_code="AA315"> <CurrentStock>50</CurrentStock> <TrackProduct>Yes</TrackProduct> <TrackLowStockLevel>Yes</TrackLowStockLevel> <TrackOutOfStockLevel>Yes</TrackOutOfStockLevel> <HideOutOfStockProducts>Yes</HideOutOfStockProducts> </InventoryProductSettings_Update>
Code:<Product_Update code="AA315"> <Weight>1.23</Weight> </Product_Update>
Last edited by kayakbabe; 03-01-12, 12:34 AM.
Comment
-
Re: Update Product Via Provide.xml
Hey guys, I know I'm chiming in here a little late but here we go...
Is there a way to add new and update existing at the same time? In the master_provide.xml file I'm seeing
<Import_Add module="productimport">
which has the option
<Products>add|update|addupdate|replace|addreplac e</Products>
The problem is, I don't know what Import_Add module does.Jamin Jones, CEO
the Appalachian Offroad Motorcycle Company
Comment
-
Re: Update Product Via Provide.xml
That tag adds a pre-configured import to the Import Data screen. The example you quoted above is referencing the productimport module and the <Products> tag in that case controls the "Products" option for the import.
There is no single provisioning tag that would correspond to the "Add New and Update Existing Products" option for that module. What we have done in the past when we required this functionality is to output both <Product_Add> and <Product_Update> tags for the same product. If the product already exists, the add will generate an error message that can be ignored (it will not create a duplicate product).
Comment
-
Re: Update Product Via Provide.xml
How does the Provide.xml file handle custom product fields? I can't seem to get it to work like the other normal tags.
Code:<Product_Update code="AA315"> <Brand>Nike</Brand> </Product_Update>
Last edited by phishbed; 02-22-13, 11:32 AM.Jamin Jones, CEO
the Appalachian Offroad Motorcycle Company
Comment
Comment