SearchFit - Ecommerce Platform Live Chat Call Us Today! 888.398.4703

Stone Edge mass inventory download

 
Post new topic   Reply to topic    forums.searchfit.com Forum Index -> SearchFit Questions and Suggestions
View previous topic :: View next topic  
Author Message
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Sat Dec 26, 2009 7:33 am GMT    Post subject: Stone Edge mass inventory download Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Sat Dec 26, 2009 12:51 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Sun Dec 27, 2009 6:50 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Sun Dec 27, 2009 7:28 am GMT    Post subject: Reply with quote

When downloading products, here is the SF URL that SE invokes:

https://www.101order.org/jewishbazaar.com/scart/public/services/service_stoneEdge.php?LeaveOnServer=1&setiuser=bazaar&password=XXX&setifunction=downloadprods

Just replace the XXX with your password (Web Services Key).
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Sun Dec 27, 2009 4:02 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Sun Dec 27, 2009 5:06 pm GMT    Post subject: Reply with quote

Just specify the batchsize argument like

https://www.101order.org/jewishbazaar.com/scart/public/services/service_stoneEdge.php?LeaveOnServer=1&setiuser=bazaar&password=XXX&setifunction=downloadprods&batchsize=500
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Sun Dec 27, 2009 6:19 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Sun Dec 27, 2009 6:50 pm GMT    Post subject: Reply with quote

I noticed that SF data for "OptionValue" is missing "Price" and "Cost".
Back to top
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Mon Dec 28, 2009 5:50 am GMT    Post subject: Reply with quote

We will add Price and Cost if missing, but you have to check with SE to see why the options are missing on their side.
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Mon Dec 28, 2009 6:20 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Mon Dec 28, 2009 6:24 am GMT    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Mon Dec 28, 2009 6:32 am GMT    Post subject: Reply with quote

I looked at the generated XML and this code does not get generated.
Back to top
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Mon Dec 28, 2009 6:36 am GMT    Post subject: Reply with quote

It is generated only for options that use prices. Give me a product of yours that has options with prices?
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Mon Dec 28, 2009 8:32 am GMT    Post subject: Reply with quote

Look at www.giftsofart.com and any item stating with ks-
Back to top
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Mon Dec 28, 2009 4:30 pm GMT    Post subject: Reply with quote

It is time consuming for me to browse your website, please give me an id of a product that I can analyse.
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Mon Dec 28, 2009 6:31 pm GMT    Post subject: Reply with quote

Web site www.giftsofart.com
Item KS-Partners Foreign ID 178
Back to top
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Mon Dec 28, 2009 7:44 pm GMT    Post subject: Reply with quote

Found it.

There were really problems with the option prices. I fixed them and updated your server.

Can you please try now?
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Tue Dec 29, 2009 7:44 am GMT    Post subject: Reply with quote

Works great, thank you.
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Thu Jan 07, 2010 10:31 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Thu Jan 07, 2010 11:02 am GMT    Post subject: Reply with quote

If we don't include the links, are the orders that have product links are actually going to be associated with the regular products by SKU?
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Thu Jan 07, 2010 11:06 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Thu Jan 07, 2010 11:35 am GMT    Post subject: Reply with quote

For now, we will probably fix the links to include the options as well, because some customers might have product links only for some categories.
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Thu Jan 07, 2010 11:44 am GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Thu Jan 07, 2010 12:06 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Thu Jan 07, 2010 12:13 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Thu Jan 07, 2010 12:32 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Thu Jan 07, 2010 12:55 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Thu Jan 07, 2010 1:08 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Thu Jan 07, 2010 1:55 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 884

PostPosted: Mon Feb 08, 2010 10:25 am GMT    Post subject: Reply with quote

Any idea when next release will be available?
I am waiting on a solution for this issue.
Back to top
View user's profile Send private message
stanley@searchfit
2


Joined: 23 Jan 2003
Posts: 6423
Location: Austin, TX

PostPosted: Mon Feb 08, 2010 10:57 am GMT    Post subject: Reply with quote

This was resolved and next release is scheduled mid March for now.
_________________
Stanley Stanev
SearchFit Architect
www.searchfit.com
www.searchfit.us.com
www.stanev.com
www.yordanova.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.searchfit.com Forum Index -> SearchFit Questions and Suggestions All times are GMT - 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum