Jump to content



Latest News: (loading..)

* * * * * 1 votes

[Contribution] Products Specifications


  • Please log in to reply
704 replies to this topic

#41 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 26 November 2009 - 05:55 PM

I didn't make the filters work with more than one language. I'll add that to the wish list, but it's unlikely to get fixed before the end of the year.

Regards
Jim
My Addons

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

#42   mayo23

mayo23
  • Members
  • 29 posts
  • Real Name:Lawrence May
  • Gender:Male

Posted 05 December 2009 - 01:54 AM

Am very interested to see this contribution in action.

Has anyone got an example to look at?

Would be greatly appreciated.
My latest osCommerce work in progress

no outside links in signatures allowed, see PM

#43   Zane86

Zane86
  • Members
  • 63 posts
  • Real Name:Anders

Posted 01 January 2010 - 06:43 PM

Hi there.
Is it possible to add a few of the specifications i've done in product_listing.php?
Would be nice if it were possible :)

Cheers

#44 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 01 January 2010 - 06:53 PM

See sections 4.1.1 through 4.1.8 in the manual. Also section 4.5.1.

Regards
Jim
My Addons

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

#45   Zane86

Zane86
  • Members
  • 63 posts
  • Real Name:Anders

Posted 01 January 2010 - 09:49 PM

I got the part to show the comparisons and all that, but i would like to keep the osCommerce-setup for showing the products..


For exampel, if you go in you admin-system and click Product Listing, you can choose what to show...

Display Product Image 1  
Display Product Manufaturer Name 0  
Display Product Model 0  
Display Product Name 2  
Display Product Price 3  
Display Product Quantity 0  
Display Product Weight 0  
Display Buy Now column 4  
Display Category/Manufacturer Filter (0=disable; 1=enable) 1  
Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 2


...and so on. Is it possible to add for example;

Display Product Specification: Size
Display Product Specification: Color
Display Product Specification: XXXX


Hope you know what i mean =)

//Zane

#46 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 01 January 2010 - 09:55 PM

If I do understand what you mean, this is all covered in the manual. If not, you need to be a lot more explicit.

Regards
Jim
My Addons

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

#47   Zane86

Zane86
  • Members
  • 63 posts
  • Real Name:Anders

Posted 01 January 2010 - 10:02 PM

Hmm.. well, i give it a try.

This is how my product listing looks today:
[img]http://www.izd.se/001.jpg[/img]

I want to add Size from Product Specification inside this red markings:
[img]http://www.izd.se/002.jpg[/img]


If i turn on "Comparison in Index", i just get this:
[img]http://www.izd.se/003.jpg[/img]

Edited by Zane86, 01 January 2010 - 10:02 PM.


#48 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 01 January 2010 - 10:25 PM

Now I think I understand. I can think of two ways to do this:

1. Turn on Comparison in Index. Set the Comparison fields to the ones you want to appear. That would be Image, Product Name, (the one you want to add), Final Price, and Buy Now. You will need to set up these Specifications if you have not already. This will mean that you cannot have a separate comparison page.

2. Modify the code in catalog/index.php to retrieve your new specification from the database, and catalog/includes/modules/product_listing.php to display the new field.

Regards
Jim
My Addons

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

#49   Zane86

Zane86
  • Members
  • 63 posts
  • Real Name:Anders

Posted 01 January 2010 - 10:31 PM

Think i have to go with #2 then :P. But thats a lot of cracking code in a short time of period.
However, i aint using "model" at the time being - that might be a way out i guess.

Thanks for i great contrib anyway. It works really nice.

//Zane

---------------------------------
Edit:

I guess it's something like this:

in Index.php:
add
        case 'PRODUCT_LIST_SPECIFICATION':
          $select_column_list .= 'p.specification_id=50, ';  //Since id 50 is Size from the DB for me)
          break;

in product_listing.php:

      case 'PRODUCT_LIST_SPECIFICATION':
        $lc_text = TABLE_HEADING_SPECIFICATION;
        $lc_align = '';
        break;



And then alter the code on a lot of places and so on.... Short description... p
(and by the way.... php aint my biggest friend)

Cheers

Edited by Zane86, 01 January 2010 - 10:35 PM.


#50 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 January 2010 - 12:27 AM

Not quite. Specifications are stored in the products_specifications table, not the products table. Take a look at the SQL in catalog/includes/modules/products_specifications.php.

Regards
Jim
My Addons

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

#51   hoangk800

hoangk800
  • Members
  • 4 posts
  • Real Name:Le Hoang

Posted 20 January 2010 - 04:30 AM

Hi,
Your contribution is very well. But I want to change display at products_info.php as:
At the Specs  tab, I want display the same specs in each group name (ex:
- Group name 1
  -- Specs 1: specs 1 detail
  -- Specs 2: specs 2 detail
- Group name 2
  -- Specs 1: specs 1 detail
  -- Specs 2: specs 2 detail)

*default is: Specs 1, Specs 2,.... - not included in a Group

Can you help me to make this change?
Thanks & best regards,

#52 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 January 2010 - 04:40 AM

Just off the top of my head:

1. Set up two different groups and link them to the product categories you want them to appear in. Add your specifications to these groups.

2. Modify the code in catalog/includes/modules/products_specifications to group the specifications by Specification Group. Also add the Group name before each set of specifications.

Regards
Jim
My Addons

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

#53   hoangk800

hoangk800
  • Members
  • 4 posts
  • Real Name:Le Hoang

Posted 20 January 2010 - 03:55 PM

View Postkymation, on 20 January 2010 - 04:40 AM, said:

Just off the top of my head:

1. Set up two different groups and link them to the product categories you want them to appear in. Add your specifications to these groups.

2. Modify the code in catalog/includes/modules/products_specifications to group the specifications by Specification Group. Also add the Group name before each set of specifications.

Regards
Jim
I selected specs group but specs result is a loop, ex:
Group specs 1:
Specs 1: detail 1
Specs 1: detail 1
Specs 1: detail 1
Specs 2: detail 2
Specs 2: detail 2
Specs 2: detail 2

My DB code:
$specifications_query_raw = "select ps.specification, 
									  s.filter_display,
									  s.enter_values,
									  sd.specification_name, 
									  sd.specification_prefix, 
									  sd.specification_suffix
							   from " . TABLE_PRODUCTS_SPECIFICATIONS . " ps, 
									" . TABLE_SPECIFICATION . " s, 
									" . TABLE_SPECIFICATION_DESCRIPTION . " sd, 
									" . TABLE_SPECIFICATION_GROUPS . " sg,
									" . TABLE_SPECIFICATIONS_TO_CATEGORIES . " sg2c
							   where sg.show_products = 'True'
								 and s.show_products = 'True'
				and ps.specifications_id = sd.specifications_id
				and sd.specifications_id = s.specifications_id
								 and s.specification_group_id = sg.specification_group_id
				and sg.specification_group_id = '". (int) $spec_group['specification_group_id'] ."'
								 and ps.products_id = '" . (int) $_GET['products_id'] . "' 
								 and sd.language_id = '" . (int) $languages_id . "' 
								 and ps.language_id = '" . (int) $languages_id . "' 
							   order by s.specification_sort_order, 
										sd.specification_name
							 ";
Please help me to fix this error.
Tks,

#54 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 21 January 2010 - 01:54 AM

That should give you  the specifications by group, provided that your group ID is being set correctly. Try uncommenting the print line just after this code and check the SQL it prints out for errors.

Regards
Jim
My Addons

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

#55   bhbilbao

bhbilbao
  • Members
  • 291 posts
  • Real Name:BLACKHOLE
  • Gender:Male
  • Location:Spain

Posted 22 January 2010 - 06:52 PM

Installed and working.

But I have questions:
Is there a way to copy the specificatios from on product to other (or to varius products or a whole category) ??

I start working with this and I see that is a very slowly thing, inserting the specifications one by one. Also If yoy have a lot of Specifications in the product edit page the scroll down nevers end clicking them one by one.

A lot of products have the same specifications except for one specification value.

Example:
65 nm
E2220 1 MB L2 2.4 GHz 800 MHz FSB DualCore 2 65 nm Retail Boxed 3years Socket775  No  Yes  No  Yes Enhanced Intel SpeedStep® Technology◊
E2200 1 MB L2 2.2 GHz 800 MHz FSB DualCore 2 65 nm Retail Boxed 3years Socket775  No  Yes  No  Yes Enhanced Intel SpeedStep® Technology◊
E2180 1 MB L2 2 GHz 800 MHz FSB DualCore 2 65 nm Retail Boxed 3years Socket775  No  Yes  No  Yes Enhanced Intel SpeedStep® Technology◊


http://www.intel.com/products/processor/pentium_dual-core/specs.htm

#56 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 22 January 2010 - 07:15 PM

You can copy an existing product and just make the changes to the copy. If you're adding specifications to existing products, then you have to do each one individually.

Regards
Jim
My Addons

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

#57   bhbilbao

bhbilbao
  • Members
  • 291 posts
  • Real Name:BLACKHOLE
  • Gender:Male
  • Location:Spain

Posted 22 January 2010 - 10:16 PM

Thanks Jim,
I will try the maner you said. But I think the work is similar because you must change the name, product_code, image, web link, weight, etc. Same or more work.

Introducing the Specs and Filters is not problem at all, if I have time and patience. The problem is on introducing the specs one by one. From the options I think the fast way is the Checkbox Option.
Also asking you if a maner to introduce only one checkbox for all languages. I have 3 languages instaled, and for example, for a "3MB Spec" I must click and check 3 times, It should be fine to be an option to check only one spec to all languages (I saw Multidropdown but I tested it and it dont make im saying).

Im not a profesional coder like you. Im designer.

Looking the spec database of the products (products_specifications) I see that is the only one than changes, the other ones are the "base" with the specs root.

Looking this:

products_specification_id products_id specifications_id language_id specification

121 16227 49 3 2200
122 16227 50 3 2mb
125 16227 49 1 2200
126 16227 50 1 2mb
129 16227 49 2 2200
130 16227 50 2 2mb
100 16210 49 3 2400
101 16210 50 3 4mb
102 16210 49 1 2400
103 16210 50 1 4mb
104 16210 49 2 2400
105 16210 50 2 4mb
112 16230 49 3 2600
113 16230 50 3 4mb
115 16230 49 1 2600
116 16230 50 1 4mb
118 16230 49 2 2600
119 16230 50 2 4mb
114 16230 58 3 Dual Core
117 16230 58 1 Dual Core
120 16230 58 2 Dual Core
123 16227 58 3 Single Core
124 16227 59 3 AM2
127 16227 58 1 Single Core
128 16227 59 1 AM2
131 16227 58 2 Single Core
132 16227 59 2 AM2


We can see that our product (product_id #16227) has 3 specs asigned x 3 languages = total 6 specs.
I say a BUTTON to copy those specs from the product #16227 to other product of the catalog (ot to entire category).
this maner:
create a new products_specification_id (autoincrement) for the other product maintaining specifications_id language_id specification

There is other contribs that makes this in similar maner (Product Sets, Ajax Atributes or Atribute Cloner & Copier), with them you can create a sets of Atributes and copy them to other product very fast.

Thats all.
Thanks in advance.

#58 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 22 January 2010 - 10:20 PM

That sounds useful enough to add to a future update.

Regards
Jim
My Addons

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

#59   bhbilbao

bhbilbao
  • Members
  • 291 posts
  • Real Name:BLACKHOLE
  • Gender:Male
  • Location:Spain

Posted 23 January 2010 - 05:57 AM

Oh!  that sounds fantastic Jim.

For the moment I have the contribution installed but using the old categories.php and product_info.php.

You save me on using and pay for IceCat Spreadsheet.

One more thing,

I saw when integrating the code in admin/categories.php the page takes long to load (about 2-4 seconds). You scroll down the page and inmediatly goes to the begining. Its extrange to explain.
It should be interesting to take the specs menu out from the product editor and edit the specs in other page like the clasic page of the atributes. I have been trying making a categories2.php and adding other line on column_left "Products Specs" only with the code for the specs. But not tested completely.

#60 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,683 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 23 January 2010 - 06:03 AM

The Categories page does do a lot of work, but I can't see it being that slow. The Specifications page should be just as bad; is it? If not, it may be the Javascript in categories.php.

Regards
Jim
My Addons

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