Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

XSell/Cross-Sell - ID number, how is it generated?


Pinball

Recommended Posts

Does anyone know how the numbers for the "ID" (Primary) of XSell in products_xsell are generated? If they are simply adding one to the previous number that is great, but I see large gaps in the number sequence so was trying to figure out what made it. I do know that products_id is the number of the 1st product item, and that xsell_id is the cross-reference to the other items products_id, and finally that sort_order is, well, the order several items are show if there is more than one XSell item (each is linked to the next until you reach the end of the chain).

 

I am working on an open source database manager using LibreOffice BASE (OpenOffice BASE didn't work so well when I tried it earlier this year) and this question popped up on me while experimenting with displaying the XSell data relative to the Product ID.

 

I could read through the XSell code I guess, but was hoping someone knew off the top of their head what the answer is.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...