4 replies [Last post]
engine's picture
Offline
Joined: 12/08/2007
Juice: 18
Was this information Helpful?

Hello,

I am making xml file in order to mass import products to ubercart.
Inside xml there is <unique_hash> tag.
Is it important to create one?

Also I got confused when I tried to create one
because in uc_importer.module nodeID is used as part of hashed string.
There is no way for me to know nodeid at that point.

If it is important to have <unique_hash>,
can I use id from original system insetad nodeID?

Thank you in advance,

engine

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6854
Re: xml importer -hash string question

It took me a minute to see the <unique_hash> tags because the HTML filter took them out. Use &lt; and &gt; instead of < and >, ok?

No, the <unique_hash> tag is not required. If it's not provided, the importer generates one for you. The exporter that also comes with this module does put that tag in so that you can update specific nodes on other sites which will probably have different node ids from the first site.

engine's picture
Offline
Joined: 12/08/2007
Juice: 18
Thank you for answer. enigne

Thank you for answer.

enigne

engine's picture
Offline
Joined: 12/08/2007
Juice: 18
Hi again I had some

Hi again Smiling

I had some problems importing products using xml file.
All products were assigned same nid in uc_products table
and there was only 1 new node in node table.

Problem was fixed after I put some unique value inside <unique_hash>.
That means that it is not advisable to leave hash tag empty.

From another side when I tried to exclude hash tag from xml
I was getting error in importer moduel.

is it default behaviour or a bug maybe?

engine

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6854
Re: Hi again I had some

How is the importer module set to handle duplicates? If it's generating the same unique_hash for each of your products (but it shouldn't) it might be thinking that they're all duplicates and should overwrite each other.