| View previous topic :: View next topic |
| Author |
Message |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Sat Dec 26, 2009 7:33 am GMT Post subject: Stone Edge mass inventory download |
|
|
When I try to perform a mass download of inventory items, it looks like for items that have options, options information does not get created. This information is importent to build all options parameters in SE. This code is easy to write, I wrote some of it and then found out that I can not import XML code to SE. Some of the code looks like this:
<foreach_group_options>
<OptionLists>
<Name>PRODUCT_OPTION_GROUP_NAME</Name>
<foreach_option>
<OptionValue>
<Name>
PRODUCT_OPTION_NUMBER
</Name>
<Prompt>
PRODUCT_OPTION_NAME
</Prompt>
</OptionValue>
</foreach_option>
</OptionLists>
</foreach_group_options>
I will appreciate it if you could add it to your code. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
Posted: Sat Dec 26, 2009 12:51 pm GMT Post subject: |
|
|
SearchFit does provide the options together with the products when SE requests SF via the "downloadprods" action. I just checked and here is a portion of the XML that SF returns to SE for downloadprods. Notice that for your "Soprano Wind Chime" product, SF provides all its options to SE:
| Code: |
...
<Product>
<Code>MS-Soprano</Code>
<WebID>87</WebID>
<Name>Soprano Wind Chime</Name>
<Price>78</Price>
<Cost>0.0000</Cost>
<Description>[Click to hear available tunings]</Description>
<Weight>2.000</Weight>
<Thumb>
https://www.101order.org/jewishbazaar.com/scart/public/database/product/images_products/soprano-wind-chime-t87.jpg</Thumb>
<Image>
https://www.101order.org/jewishbazaar.com/scart/public/database/product/images_products/soprano-wind-chime-b87.jpg</Image>
<Taxable>Yes</Taxable>
<Discontinued>No</Discontinued>
<QOH>0</QOH>
<OptionLists>
<ProductOption>
<WebID>164</WebID>
<Name>Tuning:</Name>
<Prompt>Tuning:</Prompt>
<Type>select</Type>
<default>0</default>
<Required>Yes</Required>
<OptionValue>
<WebID>165</WebID>
<Name>Select</Name>
<Prompt>Select</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>166</WebID>
<Name>Pentatonic</Name>
<Prompt>Pentatonic</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>167</WebID>
<Name>Quartal</Name>
<Prompt>Quartal</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>168</WebID>
<Name>Chinese</Name>
<Prompt>Chinese</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>169</WebID>
<Name>Mongolian</Name>
<Prompt>Mongolian</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>170</WebID>
<Name>Aquarian</Name>
<Prompt>Aquarian</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>171</WebID>
<Name>Gypsy</Name>
<Prompt>Gypsy</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>172</WebID>
<Name>Hawaiian</Name>
<Prompt>Hawaiian</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>173</WebID>
<Name>Balinese</Name>
<Prompt>Balinese</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>174</WebID>
<Name>Japanese</Name>
<Prompt>Japanese</Prompt>
<Weight>2.000</Weight>
</OptionValue>
<OptionValue>
<WebID>175</WebID>
<Name>Whole Tone</Name>
<Prompt>Whole Tone</Prompt>
<Weight>2.000</Weight>
</OptionValue>
</ProductOption>
</OptionLists>
</Product>
...
|
_________________ Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Sun Dec 27, 2009 6:50 am GMT Post subject: |
|
|
You are absolutely correct on this one. I checked the product and all worked out perfectly on this one.
There are many other products that the options do not transfer.
How do I debug these conditions? Is there a log somewhere?
How can I see the generted XML like the one you provided?
It is importent to have some for of log or error report.
By looking at some products randomely I was under the impression that the code is not there. Now I know that the code is there and is working, but many products do not work properly.
There was another case which I reported when you upload information that alwas has a status of OK which does not allow me to figure out why some data does not upload. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Sun Dec 27, 2009 4:02 pm GMT Post subject: |
|
|
Thanks for the link, that was very helpful. Viewing data always gets you close to a solution. I thing I found the cuase of this problem. When I looked at the data it seemed that the list is too short, so I counted the items in the output and there are exactly 50 items. This meand that you go thru your code only once and finish.
The last statement is </SETIProducts> which means that you go thru your end of input logic.
I believe this is enough information to fix the problem.
When I looked again at a mass import I see more products being imported than 50. How can I see more than 50 items? |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Sun Dec 27, 2009 6:19 pm GMT Post subject: |
|
|
That works great. I am convinced that the data that SF creates is good and the problem is on the SE side. I can see SF data that contains options information and it looks good but when the data gets imported to SE I get only product data without options data.
The first items like this is the following and I can not see any problem with it.
- <Product>
<Code>KS-Golfer</Code>
<WebID>177</WebID>
<Name>Golfer - STEEL Sculpture</Name>
<Price>155</Price>
<Cost>0.0000</Cost>
<Description>Each sculpture is hand forged and unique,varying slightly,in shape,surface texture and expression. Made of low carbon Steel</Description>
<Weight>0.000</Weight>
<Thumb>https://www.101order.org/jewishbazaar.com/scart/public/database/product/images_products/golfer-steel-couple-sculpture-t177.jpg</Thumb>
<Image>https://www.101order.org/jewishbazaar.com/scart/public/database/product/images_products/golfer-steel-couple-sculpture-l177.jpg</Image>
<Taxable>Yes</Taxable>
<Discontinued>No</Discontinued>
<QOH>0</QOH>
- <OptionLists>
- <ProductOption>
<WebID>24</WebID>
<Name>Size</Name>
<Prompt>Size</Prompt>
<Type>select</Type>
<default>0</default>
<Required>Yes</Required>
- <OptionValue>
<WebID>28</WebID>
<Name>Select</Name>
<Prompt>Select</Prompt>
<Weight>0.000</Weight>
</OptionValue>
- <OptionValue>
<WebID>25</WebID>
<Name>10 inch</Name>
<Prompt>10 inch</Prompt>
<Code>10</Code>
<Weight>0.000</Weight>
</OptionValue>
- <OptionValue>
<WebID>26</WebID>
<Name>12 inch</Name>
<Prompt>12 inch</Prompt>
<Code>12</Code>
<Weight>0.000</Weight>
</OptionValue>
- <OptionValue>
<WebID>27</WebID>
<Name>14 inch</Name>
<Prompt>14 inch</Prompt>
<Code>14</Code>
<Weight>0.000</Weight>
</OptionValue>
</ProductOption>
</OptionLists>
</Product> |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Sun Dec 27, 2009 6:50 pm GMT Post subject: |
|
|
| I noticed that SF data for "OptionValue" is missing "Price" and "Cost". |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Mon Dec 28, 2009 6:20 am GMT Post subject: |
|
|
I looked at their developer documentation before I did the post and it shows these fields.
I would love to see additional fields but they are in the documentation, so I do not mention them. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
Posted: Mon Dec 28, 2009 6:24 am GMT Post subject: |
|
|
I can see in our code that the SF developer handles the Price and Cost elements when the option is configured to have prices. I will need to see later today if they really work. _________________ Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Mon Dec 28, 2009 6:32 am GMT Post subject: |
|
|
| I looked at the generated XML and this code does not get generated. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Mon Dec 28, 2009 8:32 am GMT Post subject: |
|
|
| Look at www.giftsofart.com and any item stating with ks- |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Mon Dec 28, 2009 6:31 pm GMT Post subject: |
|
|
Web site www.giftsofart.com
Item KS-Partners Foreign ID 178 |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Tue Dec 29, 2009 7:44 am GMT Post subject: |
|
|
| Works great, thank you. |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Thu Jan 07, 2010 10:31 am GMT Post subject: |
|
|
| zeev wrote: |
You are absolutely correct on this one. I checked the product and all worked out perfectly on this one.
There are many other products that the options do not transfer. |
Stanley, I worked with SE support on this issue of some Options that do not get created on a mass download and they found out the problem, it is on the SF side.
It looks like SF creates Items with Options properly for regular items and later on creates items without options for every link that exists.
For example, look at item "KS-Encounter" foreign ID is 179 and it generates options as expected. Later on the code also generates XML for links ID 946 2329 and 2452, these do not have Options and since they are generated after the main item, they overlay the original good data.
The fix is simple do not generate XML code at all for Links. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Thu Jan 07, 2010 11:06 am GMT Post subject: |
|
|
| Once a customer places an order, the order contains only SKU information. It makes no difference if the original item was an item or a link. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Thu Jan 07, 2010 11:44 am GMT Post subject: |
|
|
| When I download products from one web site, all products from all web sites get downloaded. In other words all web sites are treated as one web site. If this is how it was designed then downloading only the base product is enough. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
Posted: Thu Jan 07, 2010 12:06 pm GMT Post subject: |
|
|
No, that is not true. If you are downloading them all with the same SF user then that is correct. You have to use different user names for each of your websites in order to ask SF to send the appropriate products only. _________________ Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Thu Jan 07, 2010 12:13 pm GMT Post subject: |
|
|
| I expected it to work the way you describe it, but it does not. All web sites are treated as one, maybe this is a bug in the software, but that is how it works. I reported a similar issue with inventory updates. When I activated all 4 web sites, I got 4 SF updates for each SE update. My solution was to enable only the main web site and things work OK. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
Posted: Thu Jan 07, 2010 12:32 pm GMT Post subject: |
|
|
I don't know how SE works, but SF will provide the products based on the username that is trying to access that SF URL that SE uses to retrieve the products.
If SE uses the proper username then only the products for that username (think website) will be provided. _________________ Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Thu Jan 07, 2010 12:55 pm GMT Post subject: |
|
|
I setup 4 user names in SE, one for each web site. I use them to download orders and separate them by user id (web site). This works OK. Orders get downloaded separately for each user id. There is also a parameter in per user that allows each user to download orders that belong only to that user.
All other functionality of the SE/SF interface does not seem to be user id sensitive. It sounds like this was not by design (I kind of like it the way it works).
When I ask to perform a function in SE I have to specify which user id/password to use, so SE is userid aware and probaly passes the right information to SF. Note that products in SE are not userid sensitive, only orders are userid sensitive. When information is uploaded to SF then all information for all users will be uploaded and it is SF responsibility to update the right items (I am not sure this can be done). When downloading products to SE, it is SF responsibility to download the correct items (this is not being done, all items are being downloaded).
My guess is that the problem is in SF. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
Posted: Thu Jan 07, 2010 1:08 pm GMT Post subject: |
|
|
SF is designed to go by username and will return only those products for the website.
What is the SF URL you are using?
It does not have to have any uid parameter to allow the passed username to take effect _________________ Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Thu Jan 07, 2010 1:55 pm GMT Post subject: |
|
|
For inventory synchronization I use userid of bazaar. (If I enable more userid I get multiple updates).
For any other functionality I use any userid of the four I have. Most of the time I use userid bazaar. |
|
| Back to top |
|
 |
zeev 2
Joined: 09 Feb 2007 Posts: 881
|
Posted: Mon Feb 08, 2010 10:25 am GMT Post subject: |
|
|
Any idea when next release will be available?
I am waiting on a solution for this issue. |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6214 Location: Austin, TX
|
|
| Back to top |
|
 |
|