Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Products Specifications


kymation

Recommended Posts

could somebody explain me in catalog/product_info.php

 

I refer to the lines in PS

 

on line 55 is desactivated a line, but it was not there before, so why is there that line?

// echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'));

 

after line 88 is taken away line 55 from the original file

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>

why?

 

the bigest problem for other addons is on line 193 of the original file

 

<div class="buttonSet">

<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?>

</div>

 

is changed into

 

<div class="buttonSet">

<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

</div>

<div style="clear: both;"></div>

 

but it is also put higher, that means now before

 

?>

<div style="clear: both;"></div>

<?php

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<p style="text-align: center;"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></p>

<?php

}

?>

</div>

<?php

$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and reviews_status = 1");

$reviews = tep_db_fetch_array($reviews_query);

?>

 

in the original file it was after this block

is this change of place important and necessary?

Link to comment
Share on other sites

is it possible to mix this addon of "Products Specifications" with the addon of "Master Products for V2.3x V2.1 " (http://addons.oscommerce.com/info/1681)

I'm trying in several ways buth I always get stuck with this parts

 

// Start Products Specifications

if (SPECIFICATIONS_BOX_FRAME_STYLE == 'Tabs') {

// Insert the javascript for the tabs

and

 

// Master Products

$master_status_query = tep_db_query("select products_id, products_master_status, products_master from " . TABLE_PRODUCTS . " where products_status = '1' and products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");

$master_check = tep_db_fetch_array($master_status_query);

 

if ($master_check['products_master_status'] > 0) {

echo tep_draw_form('buy_now_', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_slave', 'NONSSL'));

} else {

// this line should be disactivated by PRODUCTS SPECIFICATIONS

echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'));

}

// Master Products EOF

 

 

Hi,

 

Yes it is possible, but before need to fix tabs for page navigation and correct return position. As specification contribution will be stabilised (now work with cookies for me) I will do it. It looks like working for every extra contributions.

 

There are more possibilities for stabilisation but first need some discussions. The simple Jquery cookies stabilized for all pages at the same time. I think it would be better to fix for unique pages.

My opinion that need to pass the fix as session variable.

 

Regads,

Gergely

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

Hi

 

 

Please for small help.

 

I have a problem with tell_a_friend.php.

 

Link to the article in the sent e-mail.

 

http://xxxxxxxx/product_info.php?products_id=

 

 

The product ID is missing. I do not know why. I think this is a bug in the code.

 

2nd

 

I have the same problem as that of Gemma ask_a_question.php

 

When I press sending, nothing happens. No e-mail.

 

 

Thank you for your help

 

Joze

Link to comment
Share on other sites

@Gergely

do I wait for further reply or ...or what needs to be done?

I tried to merge, but there was also QPBPP involved, it took me 3 full days !!

I send you the 2 files that where very difficult to merge: catalog/admin/categories.php and catalog/product_info.php, could you check if they are ok?

I was very carefully, but some parts were very uncertain

could you check them?

thanks

categories.php

product_info.php

Link to comment
Share on other sites

In your first link, I believe yo have your filters set incorrectly. All I can see is filters that don't work, so I can only guess at the cause.

 

I think I have the second one figured out. Find this code in catalog/includes/modules/comparison.php (two places)

 

		echo TEXT_NO_COMPARISON_AVAILABLE . PHP_EOL;

and replace it with this:

 

	echo TEXT_NO_COMPARISON_AVAILABLE . PHP_EOL;
	echo '  </div>' . PHP_EOL;
	echo '</div>' . PHP_EOL;

Regards

Jim

 

 

Hi JIM look on the page sklep.emcmoda.pl, when i click link categories or subcategories, the page is

shifted to the left.

 

Can you help me

 

using os 2.3.1 ps1.1.11

 

 

All filters is disable

Edited by emcmoda
Link to comment
Share on other sites

I don't see anything at that site that looks like an osCommerce store.

 

Regards

Jim

 

 

here you are good link

http://www.sklep.emcmoda.pl/plaszcze-damskie-c-23.html

 

look the right enad left column are shifted to the left

Edited by emcmoda
Link to comment
Share on other sites

Hi Jim,

 

I am still confused as of how to get the filters to show how I need them too, see attached.

 

filtersquery.png

 

I want it like that but after selected multiple options it needs to return products with just those features.

 

It could also be a set of radio buttons but it would need to apply them all. I know we can do this with loads of seprerate filters but I want a collection of them like in the image.

 

The best way I can think of doing it at the moment is having them as seperate filters set as radio buttons then checking if the prefix == 'multi' and then if it is remove the title, this will allow mulitple filters to appear as one if the prefix is set to multi (obviously I would need to remove echo prefix and just use it as a handle to remove the filter title)

 

Please help. Thank you.

Edited by StephenAdrianRathbone
Link to comment
Share on other sites

here you are good link
 http://www.sklep.emcmoda.pl/plaszcze-damskie-c-23.html 

look the right enad left column are shifted to the left

You have an empty comparison page. That should never happen, so the messed-up page is understandable. You need to fix your settings so that you are providing some Specifications to compare, or turn off the Comparison in Index setting (see Section 4.1.21 in the User's Manual.)

 

Regards

Jim

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

Link to comment
Share on other sites

Hi Jim, I am still confused as of how to get the filters to show how I need them too, <snip>.

You have the right idea. What you want will require some custom coding. The filters will do what I see in your example, but you will need to change the formatting to get it to look like that.

 

That is beyond what this forum is for. You'll need to do that part yourself.

 

Regards

Jim

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

Link to comment
Share on other sites

Can some one explain how to add a munufactureers list -

 

Set up a Manufacturer filter and import the manufacturers list.

 

I need my hand held as im as thick as shit..

 

Please.

1. Add a new Specification with the name Manufacturer (or whatever you want to call it.)

2. Enable Filters for that specification.

3. Set Use Existing Database Field to Manufacturer.

4. Set Filter Class to Exact.

5. Set Display the Filter as to whatever you want (Pulldown works best in most cases).

6. Set Filter Show All to whatever you want (True is recommended.)

7. Save that.

8. Click the yellow folder icon next to the Specification name.

9. Create a filter for each Manufacturer in your list.

 

We used to have a button that did #9 for you. It was in Version 0.5.1 according to my records. It isn't there now. That's what is called a regression bug. I'll have to fix that. Thanks for pointing that out.

 

Regards

Jim

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

Link to comment
Share on other sites

Hi Jim thx for solution

 

Next problem

 

When i want ask seller a questions (admin Show Question Tab) insted of send a email the products add to bin.

 

end second quastion:

 

in tab i use ckeditor end char "ENTER" looks that

<p> �</p><p> �</p><p> �</p><p> �</p>				 

 

why?

 

a can't find editor tinyMCE for os 2.3.1

 

 

 

BR

MICHAL

Link to comment
Share on other sites

I've uploaded a new version to the usual location. It will be available as soon as a moderator approves it.

 

Most of the bugs are fixed in this version, and two new tabs were added to the optional Product Info page. There are still features to be added, but I ran out of time to do anything more. I think it's better to release something that's not perfect rather than release nothing at all. So here it is. Thanks to everyone who reported bugs and offered code.

 

Requests for installation support should be posted here. Any new bug reports, code, or grand ideas should be posted in the development thread.

 

Regards

Jim

Hello Jim

 

Thank you for the work you have put into this contribution

 

Reading through the instruction it looks like to the spec fields have to be added through the admin?

 

Also, the SQL creates a new table for the specs data, it does not use the products_description table?

 

If you could please confirm

Link to comment
Share on other sites

Hi Jim thx for solution Next problem When i want ask seller a questions (admin Show Question Tab) insted of send a email the products add to bin. end second quastion: in tab i use ckeditor end char "ENTER" looks that
 <p> �</p><p> �</p><p> �</p><p> �</p> 

why? a can't find editor tinyMCE for os 2.3.1 BR MICHAL

1. You have made an error in modifying products_info.php. The <form> tags are overlapping. You need to find the incorrect tags and fix them.

 

2. This could be a problem with ckeditor, or it could be incorrect encoding in your database. I can't tell from here.

 

Regards

Jim

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

Link to comment
Share on other sites

Hello Jim Thank you for the work you have put into this contribution Reading through the instruction it looks like to the spec fields have to be added through the admin? Also, the SQL creates a new table for the specs data, it does not use the products_description table? If you could please confirm

Yes, your understanding is correct.

 

Regards

Jim

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

Link to comment
Share on other sites

Hi Jim thx for above solution,

 

I have another problem with header's

 

 

%s Porównanie = comparassion

 

Header insted of tilte page i have the same text "%s Porównanie

 

looks:

http://www.sklep.emcmoda.pl/privacy.php
[url="http://www.sklep.emcmoda.pl/shopping_cart.php"]http://www.sklep.emcmoda.pl/shopping_cart.php[/url]

 

 

BR

Michał

Edited by emcmoda
Link to comment
Share on other sites

Hi Jim thx for solution

 

Next problem

 

When i want ask seller a questions (admin Show Question Tab) insted of send a email the products add to bin.

 

end second quastion:

 

in tab i use ckeditor end char "ENTER" looks that

<p> �</p><p> �</p><p> �</p><p> �</p>				

 

why?

 

a can't find editor tinyMCE for os 2.3.1

 

 

 

BR

MICHAL

 

in database a have utf8_Polish_ci

 

I thing that the editor working in other Collation

 

Can you know any idea ?

But into table in field products_description i don.t have polish char when i use any editor :/

Kostium jednego z najbardziej seksownych zawodów świata - stewardessy. Sukieneczka ma stójkę, przymarszczone krótkie rękawki i imitację zapięcia na patki co nadaje jej

 

BR

Michał

Link to comment
Share on other sites

This could be an issue with the collation, but that's something I have no experience with. I've only used the utf8_general_ui collation.

 

There is an Addon for CKeditor for 2.3.1. I don't know if that would work for you, but it might be worth trying.

 

Regards

Jim

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...