Jump to content



Latest News: (loading..)

* * * * * 2 votes

[Contribution] Option Types v2


  • Please log in to reply
914 replies to this topic

#781   dailce

dailce
  • Members
  • 519 posts
  • Real Name:Ilchy
  • Gender:Male

Posted 04 July 2012 - 02:22 AM

I decided to use the latest attributes manager, I found the issue was in attributeManager.class.php.  I included the original attributeManager.class.php file from OptionTypes in the latest version of the attributes manager folder, and it seems to be working well.


View Postmultimixer, on 03 July 2012 - 03:41 PM, said:

@dailce

I would suggest you use the attribute manager files from the option types package, because they work just fine for me

You need to create the options for text etc, using the regular attributes page. Once this is done, you can use the attribute manager to add that options to any product, the value that appear is CUSTOMER_INPUT

If you have issues with this, then maybe something else is wrong


#782   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,398 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 04 July 2012 - 05:00 AM

@dailce

I would suggest you use the complete folder for attribute manager that came with option types.

This does not include improvements and corrections I posted to this topic a year ago, maybe even longer

#783   Mort-lemur

Mort-lemur
  • Members
  • 1,197 posts
  • Real Name:Heather
  • Gender:Female
  • Location:UK

Posted 04 July 2012 - 10:10 AM

Hi George,

I didnt have these problems when installing on 2.2....

I sorted out the product_info.php problem, but now have a problem with catalog/shopping_cart.php.

When I add the code, or use the drop on top file the shopping cart page loses the quantity box + the remove + update buttons.

Have tried using the contributions from zappo for this file with the same result....

Any Ideas?

Thanks
Now my store is the way I want it - Secure, working well, and good Google Ranks - Thanks to all for the help given.

If you want to see the mods I have installed, then see my profile.

#784   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,398 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 04 July 2012 - 10:20 AM

Heather,

I would suggest not to "drop on top" anything. What I would do is
- compare file from zappos package with rc2a file
- figure out the chages
- apply changes accordingly to the 2.3.1 file

#785   Finwood

Finwood
  • Members
  • 12 posts
  • Real Name:Darin

Posted 10 July 2012 - 06:42 PM

Remove from cart, and update buttons missing from the shopping cart screen.

Any ideas?

#786   Blaise

Blaise
  • Members
  • 5 posts
  • Real Name:Chris Canty
  • Gender:Male
  • Location:Sydney, Australia

Posted 12 July 2012 - 02:56 PM

Hi there, firstly thanks for such a great contribution (after managing to get it to finally work). I thought I'd share a little script I added to catalog/includes/modules/option_types.php for the radio button attributes. I wanted to have the first radio button of a group checked by default when the product was first opened (well, as a radio group, one item should be selected at all times). It checked if anything is checked first as a customer might click on the product from the shopping chart.

Add this just before end of the OPTION_TYPE_RADIO switch statement.
// jscript to "check" the first radio button if nothing is checked - Chris 13/07/2012
$tmp_html .= '<script>' .
 '  $(function() {' .
'	if ($(\'input:radio[name=id[' . $ProdOpt_ID . ']]:checked\').val() == undefined) {' .
'	  $(\'input:radio[name=id[' . $ProdOpt_ID . ']]:nth(0)\').prop(\'checked\',true);' .
'	}' .
'  });' .
'</script>';

Hope this is of use to others.

Edited by Blaise, 12 July 2012 - 02:57 PM.


#787   maritrench

maritrench
  • Members
  • 3 posts
  • Real Name:Stacey

Posted 13 July 2012 - 02:54 PM

I have a 2.3 install with several contributions. I tried to add Option Types, going through all of the changes outlined in the install file manually, so as not to disturb my other contribs. My admin area is working fine and I seem able to add (for example) text areas with no problem... except that my site has gone completely blank. Nothing outside the admin area will open. My best guess is it's to do with includes/application_top.php. Has anyone else had this problem, and if so how did you solve it? I'm going to compare my changes to the drop-on-top files included in the download to see if something in the install file had a typo or if I replaced a wrong something, but if someone else has had this problem and can respond sooner than I can read through all those lines of code, that would be awesome and thanks in advance!

#788   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,398 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 13 July 2012 - 02:58 PM

@maritrench

Most possible is that you did some mistake during installation, something like a systax error etc, that you cant see because you have error reporting off

Go through all files and check again each step

If you have a blank page everywhere, then possible pages to check first are
includes/application_top.php
includes/classes/shopping_cart.php

#789   billcbos

billcbos
  • Members
  • 28 posts
  • Real Name:Bill Champitto
  • Gender:Male
  • Location:Boston, MA, USA

Posted 18 July 2012 - 04:56 PM

I've managed to get this mostly working except right now my shopping cart is not getting populated at all. I can view the product, I get the correct options including the text input field, but when I click add to cart I am sent to an empty shopping cart. Any ideas or thoughts?

If this is too vague of an issue, then please elaborate on the appropriate installation procedures. You download includes two main directories, and two different instruction files (txt and html). I initially followed the txt file instructions and reviewed the directories but am confused. The directories include duplicate files, would overwrite my configuration files with incorrect parameters and negate the changes made by following the txt file instructions.

I uploaded your catalog directory and then re-applied the changes made using your txt file and html file, but now I am at a state where the shopping cart isn't getting populated. If I have to start over from the top I would like to know the correct installation procedure to follow.

Also, I have made changes to the application_top, stylesheet and header files to accommodate a design. So I would prefer to use a process like the instructions in the txt file rather than simply replacing those files.

Whatever you can do to help me resolve this I would appreciate.

#790   Dr.Winters

Dr.Winters
  • Members
  • 1 posts
  • Real Name:Tobias Noll

Posted 24 July 2012 - 10:25 PM

Hello, I have now installed the optiontypes231 to regret has to realize they were when I want to do in the basket, told me that no goods are splashing around in the cart. Why is das.

I can only conclude that it is up to the product_info.php.

would be nice if I can help.

ps. my English is not good, and sorry to see use of Google Translate.

#791   joli1811

joli1811
  • Community Sponsor
  • 768 posts
  • Real Name:john dunlop
  • Gender:Male
  • Location:Ireland

Posted 25 July 2012 - 11:57 PM

Hi Tobias

would take a look at includes/classes/shopping_cart.php  read the forums I used the original shopping_cart.php from rc2 could not get it to work with update to 2.31/2 have not had time to find out why but the old shopping_cart.php works fine not many changes there!

John

#792   jdog2004

jdog2004
  • Members
  • 18 posts
  • Real Name:John Coleman

Posted 27 July 2012 - 10:36 PM

Ive read throught most of the forum and did several searches but cant find the answer to my problem. Does anyone know how to make the Dynamic ForceAttribute work with this option ype mod. Or is there another mod out there that will force an attribute selection?

Thank You !

#793   hazard1988

hazard1988
  • Members
  • 6 posts

Posted 29 July 2012 - 05:46 PM

Does anybody know how to remove the counter that counts how many text spaces you have left?

#794   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,398 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 30 July 2012 - 03:50 PM

@hazard1988

In admin>configuration>option types, you have a setting to add or remove this for text/text area

#795   DenominatorX

DenominatorX
  • Members
  • 52 posts
  • Real Name:Kevin
  • Gender:Male

Posted 04 August 2012 - 11:41 PM

I have a heavily modded OSCommerce site and I am looking to add something like this, however I use Attribute Sets and as I am trying to install this add-on, I see that the Attribute Sets add-on mixes code.

This seems like it will be extremely difficult, however I am wondering if anyone has incorporated this add-on while also using Attribute Sets Plus, and/or if there are any suggestions.

#796   billcbos

billcbos
  • Members
  • 28 posts
  • Real Name:Bill Champitto
  • Gender:Male
  • Location:Boston, MA, USA

Posted 07 August 2012 - 06:19 PM

I would have liked a response to this post. I have installed the constribution but now products are not being added to the shopping cart. Has anyone experienced this? I've gone through line by line to check the files that I think would be causing this issue and can not find an issue. Any direction would be helpful.

View Postbillcbos, on 18 July 2012 - 04:56 PM, said:

I've managed to get this mostly working except right now my shopping cart is not getting populated at all. I can view the product, I get the correct options including the text input field, but when I click add to cart I am sent to an empty shopping cart. Any ideas or thoughts? If this is too vague of an issue, then please elaborate on the appropriate installation procedures. You download includes two main directories, and two different instruction files (txt and html). I initially followed the txt file instructions and reviewed the directories but am confused. The directories include duplicate files, would overwrite my configuration files with incorrect parameters and negate the changes made by following the txt file instructions. I uploaded your catalog directory and then re-applied the changes made using your txt file and html file, but now I am at a state where the shopping cart isn't getting populated. If I have to start over from the top I would like to know the correct installation procedure to follow. Also, I have made changes to the application_top, stylesheet and header files to accommodate a design. So I would prefer to use a process like the instructions in the txt file rather than simply replacing those files. Whatever you can do to help me resolve this I would appreciate.


#797   dionns

dionns
  • Members
  • 3 posts
  • Real Name:Dionn Schaffner

Posted 08 August 2012 - 12:28 AM

I've recently come back to osCommerce after a couple years and am glad to find this great contribution revised! I'm in the processing of installing it on a clean oscommerce version, but I feel like I'm missing some install instructions somewhere?

I didn't see the place where I was told to add the 3 image directories, and I'm also unsure on how I can utilize the drop in files vs the find and replace instructions listed in the install document?

Also, I had to move all the define(OPTION_TYPE.... declarations out of admin/include/configure.php and into english.php for the administrative screens to pick it up. Or have I missed something else.

Any help would be greatly appreciated! Thanks!

#798   dionns

dionns
  • Members
  • 3 posts
  • Real Name:Dionn Schaffner

Posted 08 August 2012 - 01:09 PM

I am having the same issue. I cannot add a product to the shopping cart if it has options? It just says Cart is Empty. Any help here would be appreciated!

View Postbillcbos, on 07 August 2012 - 06:19 PM, said:

I would have liked a response to this post. I have installed the constribution but now products are not being added to the shopping cart. Has anyone experienced this? I've gone through line by line to check the files that I think would be causing this issue and can not find an issue. Any direction would be helpful.


#799   dionns

dionns
  • Members
  • 3 posts
  • Real Name:Dionn Schaffner

Posted 08 August 2012 - 01:13 PM

Same problem. Any Ideas? I used the drop on top files from the contribution onto a clean installation. No other changes have been made.

View PostFinwood, on 10 July 2012 - 06:42 PM, said:

Remove from cart, and update buttons missing from the shopping cart screen.

Any ideas?


#800   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 09 August 2012 - 10:03 AM

Hi,

I just encounterd this message:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_DISPLAY_ALLMANUFACTURERS' at line 1
select manufacturers_name, manufacturers_id, manufacturers_image from manufacturers order by manufacturers_name limit -0, MAX_DISPLAY_ALLMANUFACTURERS
[TEP STOP]

Edit ; i do not have a line in my database that says : MAX_DISPLAY_ALLMANUFACTURERS  , but should there be one?

Thats not good.

Can anybody help me to resolve this please?

Thanks in advance,

Rob

Edited by CrazyCarzCustoms, 09 August 2012 - 10:06 AM.