[Development] Products Specifications
#1
Posted 24 May 2009 - 12:38 AM
specifications to the site's products. These can be used for:
1. A table of specifications on the Product Info page.
2. A comparison table showing the specifications of a group of products.
3. A set of filters to allow the customer to show only products that meet
certain criteria. This could be all AGP video cards with 256MB of memory, the
parts for a 1992 Yugo, or anything else you might want to set up.
================================================================================
*****WARNING****
-=Development Code=-
This code is currently under development. Consider this an early Alpha release
at best. Parts of the code are extremely buggy, and the rest is incomplete. Or
missing altogether. Don't even think of installing this on anything except a
development machine. Also, don't install it if you are not at least moderately
familiar with PHP and MySQL and willing to at least look at both. This addon
will be replaced with a new one when the code is ready for release.
================================================================================
Code in a minute....
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#2
Posted 24 May 2009 - 12:55 AM
Please post any suggestions, code snippets, and things you might want to do with this. I promise to consider any additional requirements (although I don't promise to code them.) I also welcome anyone who wants to help with this project.
I think this could be useful to anyone who sells technical products, from computers to auto parts to whatever. If you fit in this category, please participate. You won't necessarily get the features that you need if I don't know about them. I am trying to make this as generic as possible, but I can't think of everything.
Currently, the database design is done (lthough subject to change.) The SQL and a relation diagram are included. The Specifications display on the products Info page should work. The Admin pages are mostly done but buggy. The Comparison page is barely started. The Filters code is mostly just prototype code (based on an older mod that wasn't all that versatile.)
Yes. there's still a lot of work to do here. I'm doing this in my spare (hah!) time, so don't expect it tomorrow.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#3
Posted 26 May 2009 - 01:55 PM
thanks for starting up this project. i think this addon will be in top 10 when it becomes stable. i will try current code base in my local development server and throw some early comments here afterwards. also i can contribute to this project
Regards,
Snowbird
#4
Posted 26 May 2009 - 03:58 PM
What I really need right now is requirements. What do you need this to do? What features would you like to see? Options? Anything at all to help guide the process. I've got a bunch of ideas, but I don't know if I'm the only one who wants those. I'd much rather design things in than find out after it's all done and have to make major changes.
Help with the coding will also be quite welcome. There are pages that could be developed separately, once I get the database design stable that is. If you'd be willing to work on something like the Comparison page, just let me know.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#5 ONLINE
Posted 26 May 2009 - 04:10 PM
Linked Options/Attributes - possible? Eg; colour red only available in size L. THerefore if they choose M as the size, red should disappear.
#6
Posted 26 May 2009 - 04:18 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#7
Posted 26 May 2009 - 05:38 PM
The database design has been changed to make filters a bit more rational. This is not final by any means, but it's getting there. I've also done some more work on the Admin side.
Comments or questions on the design are still welcome. Please let us know what you think.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#8
Posted 26 May 2009 - 05:47 PM
Carine Bruyndoncx
PS frustraded by the lack of feedback
<!--
Did you know 99% of all people benefiting from my posts, won't bother to repay the favor.
Wouldn't it be great if you are part of that exclusive 1% ?
post your findings in my responsive liive shop review thread ?
-->
#9
Posted 26 May 2009 - 06:05 PM
Category Fields lacks the ability to generate a comparison page for the products in a category. It also lacks the filters that can be used to restrict the product listing to only those products meeting customer-selected criteria. These two features were the reason I decided to code this monster. I've done similar modifications before, but they weren't generic enough to be reusable. I'm tired of custom coding these things, so I decided to create something that can be reused for a variety of different sites.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#10
Posted 26 May 2009 - 06:29 PM
kymation, on May 26 2009, 08:05 PM, said:
Quote
Filters (my version works but sucks as it is too memory intensive) I personally would like it so they can be bookmarked, and some ajax UI functions to cut down on long lists.
I've been pondering to add category fields or not, I have currently static attributes which I can use easily for fixed text fields.
Haven't looked at your code yet, been busy, but I'll definitely following this thread,
Carine
Carine Bruyndoncx
PS frustraded by the lack of feedback
<!--
Did you know 99% of all people benefiting from my posts, won't bother to repay the favor.
Wouldn't it be great if you are part of that exclusive 1% ?
post your findings in my responsive liive shop review thread ?
-->
#11
Posted 01 June 2009 - 04:30 PM
I have a few ideas
Adding a hint field to the specification_description table could make more friendly in understanding that extra specification
Also specification field can be dropdown, checkbox,etc type various form input element. By adding extra table field for this?
Regards,
Snowbird
#12
Posted 01 June 2009 - 06:27 PM
snowbird, on Jun 1 2009, 09:30 AM, said:
I have a few ideas
Adding a hint field to the specification_description table could make more friendly in understanding that extra specification
Quote
Thanks for the ideas!
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#13
Posted 03 June 2009 - 03:09 PM
For the hint text using specification_description field is okay, thats good.
For the 2nd idea field type can be set and has fixed content in admin entry by adding something seperated ie. "dropdown:256MB|512MB|1024MB" or "checkbox:"Yes|No" for multiple fixed choices in admin product update for the product entry operators.
Otherwise ie. if we add a label like "Memory Size" then operators who add/update product in admin can enter 256MB or 256 MB by hand for the same category products by accident. We have to fix the selection items for them. Off course you are right, just for the short list of items can be useful and practical.
Edited by snowbird, 03 June 2009 - 03:24 PM.
Regards,
Snowbird
#14
Posted 03 June 2009 - 06:42 PM
Thanks for the good comments. If you have any more good ideas, please pass them on.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#15
Posted 04 June 2009 - 09:22 AM
Regards,
Snowbird
#16
Posted 04 June 2009 - 04:49 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#17
Posted 09 June 2009 - 10:40 PM
First off, thanks for starting this contribution. It is exactly what I've been looking for.
I am the webmaster of our own webstore in maternity fashion. My GF, who is the owner of the store, is asking for a smart filtering system. She means: tick several specifications from a menu and only the clothes matching the specifications will be displayed. Naturaly clothes are divided in types, like trousers and skirts. However, if you want all red clothing in size XL the selection is not possible. ... I am sure you know what I mean ...
I understand your contribution is still in development and not to be used in our live store. Sort of speak a "pre-alpha release". I installed the contribution on my development machine and have to say it is very promissing. I surely want to contribute in testing with you and help with the development. Not in the least because I would be able to make sure the contribution fits my needs
But of course that's not the primary reason, OsCommerce has become some kind of hobby.
My configuration on the development machine:
Operating System: Windows Vistaâ„¢ Home Premium (6.0, Build 6002) Service Pack 2
HTTP Server: Apache/2.2.11 (Win32)
PHP Version: 5.2.9-2 (Zend: 2.2.0)
Database: MySQL 5.1.34-community
OsCommerce: oscommerce-2.2rc2a
Register_globals = off (other Apache/PHP variables on request)
Amount of Contributions: 53 (can make a list if you want). If nescessary i can make a clean install for this contribution alone.
-------
First observation:
During installation I have imported the SQL file. As you stated (warned) the options in table CONFIGURATION where added under configuration_group_id = 1610. However, in my version of MySQL, configuration_group_id 888006 was added to table CONFIGURATION_GROUP. 888006 happened to be the auto_increment number in this table. In other words: the SQL script is not in line with the auto_increment rules of my MySQL configuration/version.
After installation, I corrected the database and was able to set the configuration options of this contribution. However with:
if (SPECIFICATION_SHOW_TITLE_PRODUCTS == 'True' && (SPECIFICATIONS_BOX_FRAME_STYLE == 'Plain' || SPECIFICATIONS_BOX_FRAME_STYLE == 'Simple') ) {
echo '<b>' . $specification_box_heading[0]['text'] . '</b>';
}
I would expect to see at least something with the options set accordingly.
------
OK, found your contribution today so I still have to digg into the code. As well, I am not a PHP expert but tryinmg to be a good amature. If it is possible for you to give us the basics about how you have structured your coding, or.. your intended structure of building this contribution, it will be helpfull to test and give feedback.
Regards,
Jerome
#18
Posted 10 June 2009 - 01:24 AM
The warning in the SQL file is there for good reason: this happens a lot on modified stores. Some people write PHP scripts to take care of it automatically, but that depends on running your store database with full privileges, which I don't recommend. So I just put a warning in the SQL file and the Readme and leave it up to the person doing the install to change it if needed.
Unfortunately the code you quoted is still badly broken. I've been trying to get the Admin side working, at least for basic functions, before I go write the front end code. I did write a prototype of this, so you'll see some code in there, but it was too specific to the store it was written for. I want something that is general enough to be used for a wide variety of businesses, so that code will need to be rewritten. It's mostly there to remind me of what I wanted to do.
Equally unfortunately, the design is mostly in my head. I posted here to get input from folks like you, so I didn't miss something obvious in my design. This seems to be working well; I've had several helpful suggestions. Getting me to write out a design will be much harder. I did do a database design, which is about as far as it got. That's likely to change a bit based on suggestions above. The coding style is intended to match osCommerce as much as possible. I try to comment things as I go, so you can get some idea from reading the code.
From what you've said, this should work well for your store. That's pretty much what I had in mind for the filters. If you want to see my prototype store with the filters, PM me and I'll give you a link. If you'd like to write up a requirements list, feel free to send it to me or post here.
I haven't been working on this much; life has been getting in the way. I hope to do some more this evening. I'll post an updated version as soon as it's working well enough to be worth doing.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#19
Posted 10 June 2009 - 09:24 AM
As you recommended I have made a new install of osCommerce for testing this contribution.
During installation I saw the following in the SQL script:
INSERT INTO `configuration_group` (`configuration_group_id`, `configuration_group_title`, `configuration_group_description`, `sort_order`,`visible`) VALUES ( NULL , 'Products Specifications', 'Products Specifications configuration options', '1610', '1');
This script does not assign the value '1610' to 'configuration_group_id' but to 'sort_order'. Value 'NULL' which is used in the script results in an auto_increment of 'configuration_group_id'. To make sure 1610 is used, the correct script should be:
INSERT INTO `configuration_group` (`configuration_group_id`, `configuration_group_title`, `configuration_group_description`, `sort_order`,`visible`) VALUES ( '1610' , 'Products Specifications', 'Products Specifications configuration options', '1610', '1');
OK, this was a minor. Hope you'll find time to continue your work on this contribution.
Regards,
Jerome
#20
Posted 10 June 2009 - 04:02 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support









