close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Size and Color charts

Thread began 8/23/2010 3:59 pm by bill173836 | Last modified 8/25/2010 1:20 pm by bill173836 | 1787 views | 21 replies

bill173836

That didn't work.

The product in the database has the fields color, size and style. When a product is created the color field gets an prodColor id number that corresponds to the size matrix. etc.
I need each list to be created by sorting the colorsGroupID = prodColor. colorsGroupID field I sort colors that need to be grouped together.


Here is msql for the product database:

CREATE TABLE `products` (
`prodID` int(11) NOT NULL auto_increment,
`prodName` varchar(100) NOT NULL,
`prodPicture` varchar(100) NOT NULL,
`prodDescription` text NOT NULL,
`prodThumb` varchar(100) NOT NULL,
`prodShortDescription` varchar(250) NOT NULL,
`prodPrice` decimal(10,2) NOT NULL,
`prodType` int(11) NOT NULL,
`prodSKU` varchar(50) NOT NULL,
`prodColor` int(11) NOT NULL,
`prodSize` int(11) NOT NULL,
`prodCategory` int(11) NOT NULL,
`prodWeight` double NOT NULL,
PRIMARY KEY (`prodID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `products`
--

INSERT INTO `products` VALUES(1, 'University of MOM', 'UofMOM.png', 'Women''s Unviersity of MOM tee shirt.<br>100% cotton.', 'UofMom_thumb.png', 'University of MOM', 19.95, 1, 'HSL-001', '1', 1, 3, 0);
INSERT INTO `products` VALUES(2, 'University of MOM', 'UofMOM.png', 'Women''s Unviersity of MOM tee shirt.<br>100% cotton.', 'UofMom_thumb.png', 'University of MOM', 19.95, 1, 'HSL-001', '2', 2, 3, 0);
INSERT INTO `products` VALUES(3, 'University of MOM', 'UofMOM.png', 'Women''s Unviersity of MOM tee shirt.<br>100% cotton.', 'UofMom_thumb.png', 'University of MOM', 19.95, 1, 'HSL-001', '1', 1, 3, 0);

And here is the msql for the color table:

CREATE TABLE `productcolormatrix` (
`colorID` int(11) NOT NULL auto_increment,
`colorGroupID` int(11) default NULL,
`color` varchar(20) default NULL,
PRIMARY KEY (`colorID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;

--
-- Dumping data for table `productcolormatrix`
--

INSERT INTO `productcolormatrix` VALUES(1, 1, 'White');
INSERT INTO `productcolormatrix` VALUES(2, 1, 'Black');
INSERT INTO `productcolormatrix` VALUES(3, 1, 'Grey');
INSERT INTO `productcolormatrix` VALUES(4, 1, 'Red');
INSERT INTO `productcolormatrix` VALUES(5, 1, 'Navy Blue');
INSERT INTO `productcolormatrix` VALUES(6, 2, 'Pink');
INSERT INTO `productcolormatrix` VALUES(7, 2, 'Green');

How do I get productcolormatrix.colorGroupID = products.prodColor dynamically in eCart? This would be the same for the other 2 items.

Attached Files
store.php.zip

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...