Jim,
We are using shopsite as part of our hosting package from verio. whenever I
manage our store database, I login to the shopsite backend where you can add
products, pages, templates etc. when I "Edit Product Info", and publish the
store, I take note of the numbers that are printed in the screen. it says:
----------------------------------------------------
Indexing Product [108:Rio Nitrus mp3 player] ...
Indexing Page [181:Audio - MP3 Players ] ...
End of Partial Reindex.
Generating Page [181: Audio - ....
----------------------------------------------------
I assume the 108 means product ID as it's recorded in the database, no?
then when I access my store's database through
a mysql client for example and do "SELECT ID, Name, Price from Products
where ID=181" the resulting product is
NOT the Rio Nitrus but something else. What do these numbers mean?
Thanks for any help in advance. It would make my life simpler to be able to
query the db for my own purpose like creating reports
of what we have in stock and what we don't. or what products are priced
above or below a certain treshold or whatever.
- EC
"Jim" <jstavast@xmission.com> wrote in message
news:bunh3h$4hl$1@support.shopsite.com...
Andrew,
What do you mean by the following:
"on the product database itself, ID for one of
my products is 441, and on the shopsite store manager, I get 497."
How are you looking at the "products database itself" and what is the
"shopsite store manager". Also a couple of times you mention "query"
how are you doing that?
It is entirely possible that a product in the database will have a
different id than the order it was entered into the database. When
products are deleted they leave holes in the database that may be filled
with new products as they are added. For example if you add 3 products
and then delete the first one and then add a new one, the new one will
probably be placed where the first one was and will have a record number
of 1 not 4. Products that are deleted aren't actually removed from the
database until after the store is published so that might account for
some difference in record numbers and how many product you actually have.
Jim
Andrew G wrote:
here's what I don't understand. when I log into shopsite manager, I
have
986 products. when I do a query for all products in the database, I get
894. another thing is that the IDs that I get from accessing the db
outside
are different from that shown whenever I publish or edit a product page
(the
numbers under store generation page). so if I want to query the record
for
a particular product using the ID, I actually get another product's
records.
any suggestions? for example, on the product database itself, ID for one
of
my products is 441, and on the shopsite store manager, I get 497.
weired...
thanx for the help guys.