Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Option Type Feature v1.6 (for osc 2.2 MS2)


Guest

Recommended Posts

My install works fine EXCEPT...

the field lables don't show up in the shopping cart, admin pages, ect...

and the field sort order seems entirely random. They show up in a different order every time.

 

I've read through and tried everything I could find about Option Type Feature, checked all my files again, but no luck.

I'm using v1.6 and osc2.2ms2

 

Anyone out there solved this problem??

thanks!

 

Hi,

 

I was wondering if you found anyone to help you on this. I'm having the sme problem.

 

Regards,

Libman

[email protected]

Thanks,

Libman

Link to comment
Share on other sites

  • Replies 799
  • Created
  • Last Reply

Top Posters In This Topic

I was wondering if you found anyone to help you on this. I'm having the sme problem.

I just did a new install of this feature on a new site and ran into the same situation. Using WinMerge I went through each file again and found that I had neglected to add code to checkout_process.php.

cdickson

Link to comment
Share on other sites

Images for radio buttons you have just to put html code for insert image in the text field

<img src=images/image.jpg> nameoptional

 

Can anyone please explain exactly how and in what text field? <_<

Link to comment
Share on other sites

Thank you for the contribuition below. It works almost perfectly with PayPal IPN V1.1, however I am having problems with the email being sent. The email being sent does not show the OPTION NAME such as

 

 

- Custom Line #3: CCCCCCCCCCCCCC

- Custom Line #2: GGGGGGGGGGGGG

- Custom Line #1: XXXXXXXXXXXXXXX

 

Instead it shows:

 

CCCCCCCCCCCCCC

GGGGGGGGGGGGG

XXXXXXXXXXXXXXX

 

this only happens on the email side. I do get everything working during checkout. Does anyone know how I can get this fixed?

 

Your help would be greatly appreciated.

 

Ski

 

Ok, Here is the solution I found by JGofGFS so that your order emails and the admin side says the option choices and not just 'TEXT' when checking out with paypal.

in catalog/paypal.ipn (I changed includes/modules/payment/paypal_ipn.php it fixed it)

 

change this line:

'products_options_values' => $attributes_values['products_options_values_name'],

 

to this:

 

'products_options_values' => $order->products[$i]['attributes'][$j]['value'],

 

change this line:

 

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name'];

 

to this:

 

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . tep_decode_specialchars($order->products[$i]['attributes'][$j]['value']);

I really hope this helps someone, because the options contrib is really helpful for a lot of folks and the paypal ipn not pulling the info is the only set back.

 

Good luck.

Link to comment
Share on other sites

  • 2 weeks later...

I have spent considerable time on the osC forum with no luck.

 

I'm using Options Type Feature v1.71 on several stores successfully. These stores are using MySQL 4.0.17

 

I recently moved a store from this server to a new server with updated MySQL -- MySQL 4.1.11

 

Now all the options show as "selects" rather than "text", "radio", etc.

 

Any help would be greatly appreciated.

 

Thanks, Jody

Jody Graves ~~~~ Data~Creek Creative

Link to comment
Share on other sites

I have spent considerable time on the osC forum with no luck.

 

I'm using Options Type Feature v1.71 on several stores successfully. These stores are using MySQL 4.0.17

 

I recently moved a store from this server to a new server with updated MySQL -- MySQL 4.1.11

 

Now all the options show as "selects" rather than "text", "radio", etc.

 

 

Any help would be greatly appreciated.

 

Thanks, Jody

 

I just wanted to add that all id's are correct in the database. I think this has to do with updated MySQL.

Jody Graves ~~~~ Data~Creek Creative

Link to comment
Share on other sites

I just wanted to add that all id's are correct in the database. I think this has to do with updated MySQL.

I figured it out and boy do I feel stupid. Had nothing to do with updated MySql. The proper code was not in configure.php -- I could have sworn I had checked this (probably a configure.php from another store). Anyway, this great contrib works fine with 4.1x MySql.

Jody Graves ~~~~ Data~Creek Creative

Link to comment
Share on other sites

I think i narrowed down the problem of not getting the inputted text from a text box or text input box passed to the database

 

in configure where it says this:

 

define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES

 

what does that mean ?

 

the table is updated continually whenever a new attribute is added so how can i set this to an id, if i dont know what the id will be in the future ?

 

Or am i missing something here ?

Link to comment
Share on other sites

I think i narrowed down the problem of not getting the inputted text from a text box or text input box passed to the database

 

in configure where it says this:

 

define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES

 

what does that mean ?

 

the table is updated continually whenever a new attribute is added so how can i set this to an id, if i dont know what the id will be in the future ?

 

Or am i missing something here ?

 

 

Is this contribution still being supported ?

Link to comment
Share on other sites

have searched all over for an answer to this and still not found it:

 

what should this be set too ?

define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0);

 

if it is linked to db, what table should i be looking in ?

 

if it is linked to the db will it still work if a new attribute is added later on ?

 

The problem i have is that whatever is typed into a textbox or text input field is not being added to db or order

Link to comment
Share on other sites

have searched all over for an answer to this and still not found it:

 

what should this be set too ?

define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0);

 

if it is linked to db, what table should i be looking in ?

 

if it is linked to the db will it still work if a new attribute is added later on ?

 

The problem i have is that whatever is typed into a textbox or text input field is not being added to db or order

 

 

The answers to your question is in this forum. With respect to your "define . . ." question, see post #24 or #57 (for a more detailed explanation). As far as showing your text in your orders, make sure you have made the modifications explained on post #171 (page 9). Now your text may still not work 100%, but that may be due to other modules you may have installed (i.e. OSC PayPal IPN). These modification, I hope, will at least get you started. Chandra's module is an awesome addition to OSC, don't give up.

 

Good luck.

 

ski

Link to comment
Share on other sites

The answers to your question is in this forum. With respect to your "define . . ." question, see post #24 or #57 (for a more detailed explanation). As far as showing your text in your orders, make sure you have made the modifications explained on post #171 (page 9). Now your text may still not work 100%, but that may be due to other modules you may have installed (i.e. OSC PayPal IPN). These modification, I hope, will at least get you started. Chandra's module is an awesome addition to OSC, don't give up.

 

Good luck.

 

ski

 

 

thankyou for the reply, i dont have paypal ipn contrib installed so im not having issues with that.

 

 

One question the define thing is looking at the product_options_values table yes or no ?

 

There will be a problem then, if my client adds a new option down the line i will have to update this line in the configure file ?

Surely that is not good coding, why does it need to check a value in the db that can be updated at any time ?

 

i must be missing something here ?

i am very experienced with php and yes this contribution is good, if only it would work.

Link to comment
Share on other sites

Was just about to write about a problem, but figured it out... Will still post in case someone else is having troubles...

 

I uploaded everything, had everything in place, ran the SQL's and started playing with the options in admin area. Set a product to have a couple of attributes (e.g. radio buttons, checkboxes etc). Went to the shopfront, looked at my product - and everything was listed as select lists, ahh! :o

 

After going through everything, I found that even though I had changed and saved my configure.php file, it was uploading properly to the server. Had to delete the old configure.php file and upload the new one, is working now.

 

Thanks for a great contrib!

 

~Barbara~

Link to comment
Share on other sites

  • 2 weeks later...

hello,

 

I installed the contrib standard Option feature 1.71 and it 's ok.

 

I would wish to oblige my customers to fill the attributes texts before the addition with the basket, because it happens that they forget to fill them.

 

that must be a Javascript to be added but i don't know how to do.

 

If somebody can help me?

Link to comment
Share on other sites

  • 1 month later...

Hi

 

I have 1.71 Option Type Feature installed and make use of Text attributes. Everyhing is working well, except when a customer uses an apostrophe in the entered text - e.g enter the text " I'm chipped" in product http://www.collarsandtags.co.uk/k9-top-dog...-tag-p-156.html of a live site I have.

 

This product can not know be removed from the customers basket.

 

Does anybody have a solution to the problem. I understand the apostrophe in somportant in php but have no idea on a solution. Many customers compain about this problem and I have to resolve by deleting items in mysql.

 

Thanks in advance for any guidance.

Link to comment
Share on other sites

Hi,

 

On my site I can not add the same product (but with different options) to the cart, it simply increments the quantity.

 

I'm using the latest Option Type contribution on 2.2MS2.

 

I probably haven't followed an installation step properly or the alike but I just can find it.

 

I've drawn a blank when searching the forums so any pointers to which file I should looking into would be most appreciated.

 

Regards,

JSA

Edited by JSA
Link to comment
Share on other sites

Hi,

 

On my site I can not add the same product (but with different options) to the cart, it simply increments the quantity.

 

I'm using the latest Option Type contribution on 2.2MS2.

 

I probably haven't followed an installation step properly or the alike but I just can find it.

 

I've drawn a blank when searching the forums so any pointers to which file I should looking into would be most appreciated.

 

Regards,

JSA

 

I too had this problem. I had an earlier 2.2MS2 installation and updated that site with the last release update. Within that update (and included in your release) was a bug fix:"Adding Non-Existing Products To Cart" http://www.oscommerce.com/community/bugs,1617. Something in this causes the problems. I am not a php programmer so I ended up backing out that bug fix and the problem was eliminated - same product can be added with different attributes.

 

 

I think the issue is that Option Type Feature, excellent as the contribution is, has not been maintained.

 

 

Could you let me know if you can enter a product with an apostrophe as a text entry and see if you can then remove the item from your cart. This is a big problem on my live site

Edited by allrightpet
Link to comment
Share on other sites

I too had this problem. I had an earlier 2.2MS2 installation and updated that site with the last release update. Within that update (and included in your release) was a bug fix:"Adding Non-Existing Products To Cart" http://www.oscommerce.com/community/bugs,1617. Something in this causes the problems. I am not a php programmer so I ended up backing out that bug fix and the problem was eliminated - same product can be added with different attributes

 

Ah, looks a little too complex for my php skills, is there any chance you could paste or PM me your files?

 

Could you let me know if you can enter a product with an apostrophe as a text entry and see if you can then remove the item from your cart. This is a big problem on my live site

 

Yep no issue on my install. I have 4 text boxes in my product and I tried both

I'm chip

and

"I'm chip too"

in the same order, and was able remove it from my basket without problem.

 

Regards,

JSA

Link to comment
Share on other sites

Hello

 

I would be grateful if someone could provide me with a look at their code. Anyone who has osCommerce 2.2 Milestone 2 including Update 051113, and who has also implemented Option Type Feature - please could you share the following files:

 

 

catalog/includes/classes/shopping_cart.php

 

catalog/includes/functions/general.php.

 

 

I would appreciate if you could reply or PM me with the code.

 

Thanks

Link to comment
Share on other sites

Hello

 

I would be grateful if someone could provide me with a look at their code. Anyone who has osCommerce 2.2 Milestone 2 including Update 051113, and who has also implemented Option Type Feature - please could you share the following files:

catalog/includes/classes/shopping_cart.php

 

catalog/includes/functions/general.php.

I would appreciate if you could reply or PM me with the code.

 

Thanks

 

I've PM'ed you mine, can you please PM me yours.

 

Regards,

JSA

Link to comment
Share on other sites

I decided to install this on a fresh install to check functionality and compatability before I started to play around with my highly modded store.

 

I am impressed on the customer end look and functions.

 

Once installed I found no problems with this contribution but am very disappointed about two things:

 

i) There is no way to track the stock attributes like QTPro. There is the actual catagories page which allows you to put '5' items as stock available but if you have 1xsmall, red and 3xmedium, green and 1xlarge, black then it isn't much good to you.

 

With QTPro there is a 'stock' page added via the categories page which allows you to input stock per attribute... it's a shame it isn't here.

 

ii) No matter which way I played with the attributes I can't control the order of the listings. When I added attributes I can't get the 'sizes' dropbox at the top and the colours at the bottom. The instructions html page attached with the contribution download shows the sizes box at the top but I can'tsee how to control the display.

 

Does anyone have any modifications that allow the stock attributes to be added?

Edited by chooch

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Link to comment
Share on other sites

I've installed this mod line by line from the readme file including the sql changes. The admin portion seems to work as advertised, but when I go to the store address, I get the following error:

 

Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /home/crossing/public_html/crosst/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

-Of course the file database.php isn't changed in the install, so that should file should be fine. I made sure that I was careful in merging the files (i'm using MS2)

 

Any help?

 

-Ken :thumbsup:

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...