Jump to content

Features and Attributes


PuzzleDecimalLda

Recommended Posts

Hi there, i'm kind a new in prestashop, i'm developing a software to auto sync our product database with prestashop, i already done the part of sync the products, images, tags, categories. i have 2 questions, the first one is a bit dumb maybe... the software was developed in VB.NET and i'm stressing with the manufacturers, the code:

  Dim ManufacturerIDFinder As New MySqlCommand(String.Format("SELECT id_manufacturer FROM " & Perfix & "manufacturer WHERE name ='" & Manufacturer & "'"), Conn)
  ManufacturerID = CInt(ManufacturerIDFinder.ExecuteScalar)

sometimes returns the wrong ID, and when it does it gives a +1 index, example, if the ID would be 1000, it returns 1001. Any ideas?

the most important question, now is... 

What should be the queries to insert features and attributes to each product?

thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...