This is a discussion on text field product option within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I've used osCommerce for years - this is my first ocMax installation. I know many, many people have used the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I've used osCommerce for years - this is my first ocMax installation. I know many, many people have used the product attribute text option for personalization. What am I doing wrong?? I can't get the option information passed to the order from the shopping cart. Any help is greatly appreciated! |
|
#2
| ||||
| ||||
|
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Thanks for the reply. I have already seen that post, and am using oscMax v1.7. The attributes make it into the basket fine - but they are not carried through to the order table. I have it working on standard osCommerce with the contribution... |
|
#4
| |||
| |||
| This is major - we're just getting our store opened up and realized the text fields are not being recorded. The post referenced does not address this issue. All text entered disappears from the cart during checkout and does not get passed to the database - what is going on? |
|
#5
| |||
| |||
| Okay, here's the deal. #1 There was a misspelling in my catalog/includes/configure.php. the line looked like this (at the bottom of the file in mine): define('PPRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES See the double P's in PPRODUCTS? Deleting the duplication allows the text value the customer entered to be passed to checkout/admin/email confirmation and so on. However, the text field definition is still omitted. For example, my form says "Enter custom size:". If they enter "8 inches", the checkout/email/admin order will show ":8 inches". #2 I believe the problem lies with the attribute manager. In order for the check box to be available in attribute manager, I entered some default text when setting up attributes. So for "Enter custom size:", I entered "Custom Size" in the admin under Option Values - I believe this to be the wrong procedure. The note next to the line I fixed above says the OPTIONS_VALUES must match the id for user defined TEXT. When you enter a default value for each of these attributes like I did, they end up with different id's. So, the fix is to reset all of my text fields to point to the same Option Value, "TEXT" which will all have the same id (in my case, 0). I think I'll do this via PHPadmin - but I've got a lot of products to change! In the future, you cannot use the attribute manager to assign text fields to products - they have to be assigned from the bottom of the Product Attributes in admin - this is the old way, prior to attribute manager. Does the guru agree with this? |
|
#6
| ||||
| ||||
| Not major. A glitch was introduced in one of the updates. The fix is attached here and is just a couple of lines of code. The file checkout_process.php is the only one that needs to be modified. You can either overwrite your existing file or compare the attached file to your existing one and merge the changes manually. I recommend doing it manually, as there are several different versions floating around out there. This has also been updated in the main osCMax 1.7 download as of this post.
__________________ Michael Sasek osCMax Developer
|
|
#7
| ||||
| ||||
| bdneuman, It looks like you have a couple of things going on in addition to the bugfix I posted. Before you change anything, incorporate the bugfix and see if that fixes your issue. It worked for my test store without changing anything else.
__________________ Michael Sasek osCMax Developer
|
|
#8
| |||
| |||
| The zipfile is corrupt... I'm just sitting here going through my attributes and products_options_values_to_products_options tables setting all my text fields option_values to "0". I'll hold up until I can check out your fix...be great if it works! Thanks. |
|
#9
| ||||
| ||||
| The zip is not corrupt. I just downloaded it and opened it and it works fine.
__________________ Michael Sasek osCMax Developer
|
|
#10
| |||
| |||
| I tried winzip and winrar and i keep getting this: ! Unexpected end of archive |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to add input text field in product attributes | bethphilbin | osCommerce 2.2 Modification Help | 15 | 08-07-2006 07:48 PM |
| no text field in attributes - please help! | johnr3 | osCMax v2 Installation issues | 4 | 05-16-2006 09:47 AM |
| TEXT Product Option Attribute Broken Out of the Box? | chageman | osCMax v1.7 Discussion | 1 | 09-13-2005 01:03 AM |
| product attribute text option question | SkidMark | osCMax v1.7 General Mods Discussion | 5 | 04-29-2005 10:46 AM |
| 2 questions (STMP & text field under New products) | dunik | osCommerce 2.2 Modification Help | 2 | 03-25-2005 04:30 AM |