Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is this the impossible attribute?


pilot1

Recommended Posts

did you manually add the contrib or upload and overwrite the files? if the former, then you just missed some code (i did this). if you overwrote the files, then you messed something up in the admin setup.

 

otherwise,

the line of code that outputs the option is in /catalog/includes/modules/order_details.php

echo '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';

 

$products[$i][$option]['products_options_name']
is the variable holding the option name.

it gets pulled from the db in /catalog/shopping_cart.php...

$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix

                                     from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa

                                     where pa.products_id = '" . $products[$i]['id'] . "' 

                                      and pa.options_id = '" . $option . "'

                                      and pa.options_id = popt.products_options_id

                                      and pa.options_values_id = '" . $value . "'

                                      and pa.options_values_id = poval.products_options_values_id

                                      and popt.language_id = '" . $languages_id . "'

                                      and poval.language_id = '" . $languages_id . "'");

$attributes_values = tep_db_fetch_array($attributes);

and assigned to the above variable with

$products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];

 

it is also very possible that the problem is in the /catalog/includes/classes/shopping_cart.php file which does the actual adding of the products to the cart and retrieving of the contents, but i would have to see your code. let me know if you need help.

 
Link to comment
Share on other sites

Josheli (David),

 

 

Thanks for your reply. I did in fact manually change my files. So, I will go check this out and report back to all. Thanks for your input.

 

I do appreciate the help!

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

SURE!

 

By the way,

 

i checked all my files and code as you suggested and all is as you show it should be?? So, I'm at a loss again. Could I or should I send you my Configure.php file and let you take a look at it? or another file?

 

 

thanks,

 

David

 

p.s. are you a full size pilot? or do you fly R/C??

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

I will take a look at my files later , you have to excuse me but I'm in the middle of a big project at the moment. I wil look later.

 

p.s. are you a full size pilot? or do you fly R/C??

 

As a hobby I fly a cherokee piper sometimes I could do with a R/C !!

What goes up MUST come down

Link to comment
Share on other sites

i would need to see all the touched files in the catalog.

configure.php

product_info.php

shopping_cart.php

includes/classes/shopping_cart.php

includes/classes/order.php

includes/functions/general.php

 

or to do it yourself, get a copy of Beyond Compare or WinMerge and compare your files to the contrib files. or search for "CLR" and "Dogu" in each file.

 
Link to comment
Share on other sites

Hi Josheli (David)

 

How would you like me to send the files? Email? if so, what email would you like me to send them too?

 

 

thanks in advance,

 

Eagle-Eye

David Whitford

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

Just an Update!@

 

All is working fine now! thanks for everyone's input and help.

 

now onto the next problem... if there is any....

 

 

thanks again.

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

  • 3 weeks later...

ooh, where can I find the combined Chandra/Conte mod? Having to mix the two was just what I was dreading! (Unless I'm being stupid -the text option on Conte's current mod seems to just add text rather than a text input field)

 

thanks for your help!

Link to comment
Share on other sites

ooh, where can I find the combined Chandra/Conte mod? Having to mix the two was just what I was dreading! (Unless I'm being stupid -the text option on Conte's current mod seems to just add text rather than a text input field)

 

thanks for your help!

***********************************

 

Have a look at:

http://www.oscommerce.com/community/contributions,160

 

this is the one that I am using and I love it, works great. if you need any help let me know.

 

David

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

Hi,

I was using Chandra's for including text input fields, but then I saw Conte's mod so installed that instead to get the radio button and check box options. But then I realised that it didn't seem to have a proper text input field option. So I will probably go back to Chandra's mod -but have no idea how to add different option types like the ones available with Conte's mod (I noticed Chandra says they should be addable without too much difficulty -but I have no coding experience so wouldn't know where to start...)

 

Have you added different option types? -Could you give any advice?

 

Thanks. This is my last hurdle to get my cart just how I need it!

 

Alastair

Link to comment
Share on other sites

(I noticed Chandra says they should be addable without too much difficulty -but I have no coding experience so wouldn't know where to start...)

 

Have you added different option types? -Could you give any advice?

 

Thanks. This is my last hurdle to get my cart just how I need it!

 

Alastair[/quote

 

******************]

 

No, i haven't added those other types of options. I am currently only using "SELECT" and "TEXT" Can you not use the Select typ to do what you want? explain an example of what you'd like to do with it.

 

David

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

technically I probably could -I'm thinking mainly of layout/user-interface issues. My site sells individually customisable charity Christmas cards where you have to select a layout for your details, number of colours, and so forth and I wanted to avoid just having a laundry list of select options. Plus Conte's mod has options for setting minimum quantities and price and a few other useful features that I could really use as well.

 

But ultimately I need, most of all, to allow users to input specific details on the product page for printing on the final christmas card. So I may just have to use Chandra's mod until someone merges it with Conte's. I thought this might have been done (someone mentions it at the start of this thread) -but apparently not.....

 

thanks for your input though!

 

Alastair.

Link to comment
Share on other sites

Sorry i couldn't help more. If you do find something let me know cuz I might go ahead and add it to my Cart as well. never know when I might need it and if I find one with a merge I will contact you as well.

 

David

Thanks in Advance!,

 

David Whitford

Take Offs are Optional, Landings are Mandatory!

Link to comment
Share on other sites

  • 2 years later...
Just an Update!@

All is working fine now!  thanks for everyone's input and help.

now onto the next problem... if there is any....

thanks again.

 

I was just wondering how you fixed that problem. Any help would be appreciated. I'm having the same issue and I can't seem to find a solution. My Option fields work when I give the user an Option to Select from a drop down, however if I elect to give a text field to enter information, the field name does not get carried over at check out.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...