benkingery
Registered User.
- Local time
- Yesterday, 18:48
- Joined
- Jul 15, 2008
- Messages
- 153
We often need to create product records in our item database and it gets very time consuming. I want to create a product matrix that will help me automatically build the product listings. I want to be able to enter this information into a 3 column table:
Style
-----
M1122
Colors
------
Black
Brown
Green
Sizes
-----
5.5
6
6.5
7
7.5
8
8.5
9
10
And then, get inserts into my product table for all possible products under the matrix. In this instance, it would be:
M1122-Black-5.5
M1122-Black-6
M1122-Black-6.5
M1122-Black-7
M1122-Black-7.5
M1122-Black-8
M1122-Black-8.5
M1122-Black-9
M1122-Black-10
M1122-Brown-5.5
M1122-Brown-6
Etc, etc.
I just need help with some logic on how to proceed with making the procedure loops through each possibility and appending those values to the product table.
Anyone have any ideas?
Style
-----
M1122
Colors
------
Black
Brown
Green
Sizes
-----
5.5
6
6.5
7
7.5
8
8.5
9
10
And then, get inserts into my product table for all possible products under the matrix. In this instance, it would be:
M1122-Black-5.5
M1122-Black-6
M1122-Black-6.5
M1122-Black-7
M1122-Black-7.5
M1122-Black-8
M1122-Black-8.5
M1122-Black-9
M1122-Black-10
M1122-Brown-5.5
M1122-Brown-6
Etc, etc.
I just need help with some logic on how to proceed with making the procedure loops through each possibility and appending those values to the product table.
Anyone have any ideas?