Jump to content
kymation

[Contribution] Products Specifications

Recommended Posts

product_info.php

 

Go read the User's Manual. It explains how to set up Specifications. I know it's long, but that's the only way you'll learn to use this addon.

 

Regards

Jim

 

This file is clean, i replaced it by the addon one and i still have duplicated information both in the description tab and in the page.

Share this post


Link to post
Share on other sites

Find this line in product_info.php:

 

<?php //echo stripslashes($product_info['products_description']); ?> 

 

That's what echos the description above the tabs. See those slashes before the echo? That means the code is commented out. It can't be displaying the description because it can't run.

 

You'll never see what this really looks like if you have cache enabled. That's the only explanation I can think of. If that's not it you are doing the impossible.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Find this line in product_info.php:

 

<?php //echo stripslashes($product_info['products_description']); ?> 

 

That's what echos the description above the tabs. See those slashes before the echo? That means the code is commented out. It can't be displaying the description because it can't run.

 

You'll never see what this really looks like if you have cache enabled. That's the only explanation I can think of. If that's not it you are doing the impossible.

 

Regards

Jim

 

Hi Jim, thanks a lot for your help.It was that. Since i commented out the code, everything works fine. Thanks and great job with your addon.

Share this post


Link to post
Share on other sites

Hi Jim,

 

I'm just installing the Product Specifications module.

 

Now there is line in the manual which shouldn't be there I guess.

 

Section 2.4.4 New files.

catalog/includes/boxes/products_filter.php

 

Is this the same file as: catalog/includes/modules/boxes/bm_products_filter.php

 

as there is no "boxes" folder under includes, not in your package and of course not on the site.

 

Regards,

 

Gerhard


Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

Yes, that's an error in the instructions. It should be catalog/includes/modules/boxes/bm_products_filter.php. Thanks for pointing out the bug.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hi Jim,

 

Is this addon compatible with the "Product field groups" addon?

 

It looks like the tabs are messing up on the tabs, I could have made some mistakes as well as it was not so easy to implemend it in a modified store, especially the admin/catogories and the product_info.

 

Regards,

 

Gerhard


Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

Hi Jim,

 

I got the error TABLE_PRODUCTS_TO_DOCUMENTS doesn't exist

 

This table is being called for in the file products_tabs.php.

 

This table isn't in the sql file.

 

Regards,

 

Gerhard


Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

Products Specifications is not compatible with any "extra fields" addons. Extra fields are added within PS.

 

I can't help with the tabs unless you tell me what "messing up" means.

 

Go to the configuration screen for Products Specifications and set Show Documents Tab to False.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hi Jim,

 

Sorry for the confusion, I'll have a look at it myself.

It wasn't meant as a question, if it was, I'd support it with code.

 

I'm thinking about using this addon instead of the product fields group as I think this one has more options and is more complete.

 

Is there a website with an example on what the tabs look like?

 

What about my second messages?

 

Hi Jim,

 

I got the error TABLE_PRODUCTS_TO_DOCUMENTS doesn't exist

 

This table is being called for in the file products_tabs.php.

 

This table isn't in the sql file.

 

Regards,

 

Gerhard

 

Have I overlooked something or is this table really missing in the sql file?

 

Thanks for the help.

 

Regards,

 

Gerhard


Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

@@kymation,

 

I have to appologize for my last post, forget about it.

I overlooked it in the manual.

 

It must have been late, usually I don't ask these kind of questions as I try to find the solution myself first.

 

Sorry about that, I take the blame :x

 

1 question: I saw that both X-Sell and document manager have been listed under the addons for v2.2.

I found X-Sell for 2.3.1 (http://addons.oscommerce.com/info/8330/v,23) but I didn't find the Document manager for 2.3.1.

 

Are both addons compatible with 2.3.1 or not yet (as you used them in your addon).?

 

Regards,

 

Gerhard.


Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

Document Manager is not yet available for 2.3x, but it's easy to modify the one page that it needs. I may already have this code available. Post here if you want to use it and I'll take a look.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hello,

 

i installed the latest Version 1.1.11 with osc 2.3.1 - it works good... but i have some problems on the admin site. If i want to edit a Specification, for example to change the Justification, all made presets are gone and i must refill all data again to save it... something must be wrong in the case "edit_specification"

 

Can anyone help?

Edited by tt2k

Share this post


Link to post
Share on other sites

There is a known bug that prevents the justification entry from showing the stored value. All other values should show correctly on editing. This works in my test store, so I don't understand why yours would not work.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

I fixed it... in all Packages above 1.1.7 there is missing a line in the admin/products_specifications.php

 

Add (Line 2495)

 

	  $specification_data = array_merge ( (array) $specification_fixed_data, (array) $specification_data);

 

Now it looks like:

 

    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
	  $specification_query_raw = "select specification_name,
										 specification_description,
										 specification_prefix,
										 specification_suffix
								  from " . TABLE_SPECIFICATION_DESCRIPTION . "
								  where language_id = '" . $languages[$i]['id'] . "'
								    and specifications_id = '" . $sInfo->specifications_id . "'
								  limit 1";
	  // print $specifications_query_raw . "<br>\n";
	  $specification_query = tep_db_query ($specification_query_raw);
	  $specification_data = tep_db_fetch_array ($specification_query);
	  $specification_data = array_merge ( (array) $specification_fixed_data, (array) $specification_data);
	  $specification_name_string .= '<br>' . tep_image (DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field ('specification_name[' . $languages[$i]['id'] . ']', $specification_data['specification_name'] );
	  $specification_description_string .= '<br>' . tep_image (DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field ('specification_description[' . $languages[$i]['id'] . ']', 'soft', '40', '5', $specification_data['specification_description'] );
	  $specification_prefix_string .= '<br>' . tep_image (DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field ('specification_prefix[' . $languages[$i]['id'] . ']', $specification_data['specification_prefix'] );
	  $specification_suffix_string .= '<br>' . tep_image (DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field ('specification_suffix[' . $languages[$i]['id'] . ']', $specification_data['specification_suffix'] );
    }

Share this post


Link to post
Share on other sites

I don't see where that would work. The arrays $specification_fixed_data and $specification_data are each used where appropriate to retrieve the value from that array. Combining the arrays should do nothing.

 

I did find the justify bug though. Find this code (line 2468):

    $specification_query_raw = "select products_column_name,
									   specification_sort_order,
									   show_filter,
									   filter_class,
									   filter_show_all,
									   filter_display,
									   enter_values

 

and change it to:

 

    $specification_query_raw = "select products_column_name,
									   specification_sort_order,
									   show_filter,
									   filter_class,
									   filter_show_all,
									   filter_display,
									   enter_values,
									   column_justify

 

Can't believe I missed that one. Thanks for reporting the bug, and I'm glad that worked out for you.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hi Jim,

 

This is a great addon, and I'm happy, I removed the "products fields groups" addon, everything works fine exept for a few things.

 

Is there gonna be a version 1.2?, I've installed version 1.1.11, but pretty much all the bugs discussed in the forum were still in this version. and the manual has to be reviewed.

 

Now, after reading the forum several times, I've still got one problem. The "review tab", "ask a question tab" and "tell a friend tab" are not functioning 100%

 

After submitting, it returns to the product_info.php but not to the right tab (just to the standard product_info.php with the description tab to be the first tab to show..

 

The "tell a friend" tab returns the success and error messages, but doesn't show the assigned definitions while they are defined.

 

If I move the </form> tag up, the "add to cart" button isn't working anymore.

I tried moving

<p>




			
				


	Edited  by srirahandcraft
	
	

			
		

Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

Hi Jim,

<p>




			
		

Addons installed on my website:

 

- Addons Installed

- Advanced Special Offer Discounts

- AJAX-Attribute Manager for osc 2.3.1

- Banner box v1.1.1

- Dutch Language Pack

- Extra Pages-info box with admin for OSC2.3

- German Language Pack

- Login Box

- Multi-language Support for Configuration

- Multiple products manager

- Order Editor

- OSC PDF Catalogue 2.1

- PDF-Datasheet

- product Field Groups

- Quickly Update Product Stock

- Unit of weight

- YAG (Yet another Guestbook)

Share this post


Link to post
Share on other sites

There will be a version 1.2. Someday. I've been working on it, and that was probably a mistake. I should have been doing bugfixes instead. My bad.

 

I'll take a look at the tabs. I seem to remember that there was some simple error that made that stop working.

 

You moved the </form> tag to the wrong place. It needs to enclose all of the form elements, including the Add to Cart button.

 

This is a very large addon that is of interest to very few people. I have very limited time to spend on these things. You can help by being specific when you find a bug. "the manual has to be reviewed" is completely non-helpful. Am I supposed to spend a day or two going over every word to find out what's not right?

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

I fix the same problem, by other way, because the spec name falls out from form tag :

In functions/product_specifications.php

I make new function:

function tep_get_filter_string_new ($display_type, $display_name, $filters_select_array, $target, $filter_name, $filter_value)

(using original function tep_get_filter_string). Added parm $display_name

After each row:

$box_text .= tep_draw_form('filter', $target, 'get');

I added:

$box_text .= "<b>" . $display_name . "</b><br>";

 

In file \includes\modules\boxes\bm_products_filter.php make some changes:

At row 119 original:

$box_label .= '<b>' . $specs_array['specification_name'] . '</b><br>';

change

//$box_label .= '<b>' . $specs_array['specification_name'] . '</b><br>';

At row 183 original:

$box_text .= tep_get_filter_string($specs_array['filter_display'], $filters_select_array, FILENAME_PRODUCTS_FILTERS, $var, $$var);

I change with:

$box_text .= tep_get_filter_string_new($specs_array['filter_display'], $specs_array['specification_name'], $filters_select_array, FILENAME_PRODUCTS_FILTERS, $var, $$var);

 

Thanks for this post, because without THIS POST I don't decided problem.

Share this post


Link to post
Share on other sites

My previous post is for follow problem of http://forums.oscommerce.com/user/313121-willer2k/:

 

It happens when I pick a filter, then I pick another filter, (like HONDA, then ACCORD), filter works fine, filters everything out, but I get this error message at the top of the screen, cant be good right? :/

 

Also, I cant give titles to my filters like such:

 

I need it like this:

 

Select make of your vehicle

[pulldown box]

 

Select model of your vehicle

[pulldown box]

 

Select year of your vehicle

[pulldown box]

 

Instead, I have this at the moment:

 

Make

Model

Year

Make

Model

Make

[Pulldown box]

[Pulldown box]

[Pulldown box]

 

Any suggestions?? :(

Share this post


Link to post
Share on other sites

That's a bug caused by the conversion from 2.2 to 2.3. I believe that there was a fix posted here or in the development thread, but I'm too sick to go looking for it.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

jim, thank you for your product specifications contribution.

 

Just wanted to find out, is it possible to have filters like the attached image on the category pages?

 

thanks once again for your continued support...

post-193464-0-04249600-1365874793_thumb.jpg

Edited by aftabn10

Share this post


Link to post
Share on other sites

Yes, set your filters to link style. You will probably need to fiddle with the styling to make it look right, but it will work.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Thanks kymation, just installed the contribution so going through the instructions, but thot I'd ask before I make any changes to the code..

Share this post


Link to post
Share on other sites

@@kymation, sorry might be a silly question (prob not thinking straight lol). I have managed to create a new spec group called colour, and linked that to 1 of the categories. I then created a specification called Product Colour and set the display filter as links. Lastly I added a filter called Shop by Door Colour and added colour values within every product.

 

The problem is that I can see the colour values in the product info page but the filters arent showing up on the category page ( I have installed the product filters modules under boxes). Am i missing something? Also just noticed that the settings within the specification seem to change as when I go back and forth the display filter goes back to default.

 

Sorry to trouble btw...

Edited by aftabn10

Share this post


Link to post
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

×