Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I do NOT want a drop-down menu


Guest

Recommended Posts

Posted

Hi!

 

I sell only downloads, all in ZIP format. SO I do not need the drop-down menu on product_info.php. I thought that commenting out the code would work but I just realized my "add to cart" buttons stopped working if I did that. I also tried a variety of other "tep draws" that I have seen, only to get errors. I have tried changing the font size and color to make it invisible. Nothing.

 

Any thoughts?

 

Thanks in advance for your help.

(I was soooo close :-( )

Posted

Veronica,

 

The product_info.php file is where you will need to edit the code to remove the

 

<p><?php echo TEXT_PRODUCT_OPTIONS; ?></p>

 

so the option is not displayed. This is only effective if you only sell single, no option products. Changing this will not affect your add to cart button.

 

 

Chris

Posted

Chris, that still shows the menu, only that it is not a drop-down. (Some progress...)

I will look at what Nick sent next.

 

Thank you, both!!!!

Posted

Veronica,

 

Comment this out as well:

 

<strong><?php echo $products_options_name['products_options_name'] . ':'; ?></strong><br /><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?><br />

 

 

 

Chris

Posted

Thanks again, Chris! I will try that next. Basically, I'm commenting out the first line of code you sent yesterday plus this one, right?

 

Nick, I am hoping Chris's suggestion works since it's much simpler, and also the forum you sent doesn't seem to have a resolution yet.

 

Thanks all!

Posted

It does not work. :-(

It's pretty much the same I was trying before I posted, I just thought to try again in case I was doing something wrong. Without all that code, nothing gets added to the cart. I do have one product option, but here's that screen, in case I'm not seeing something obvious:

 

 

I have changed the name of the option so that when I get rid of the drop-down menu, it is still clear to all guests that this is what they're getting.

 

THANKS for your help!

Posted

Read the posts carefully and you will see the instructions on how to correct the first code posted so that it works.

  • 3 weeks later...
Posted

Hi Nick,

 

I have tried everything on the other post you directed me to. I believe I'm using a different version than the one they discuss, but I read each piece of code carefully to make the correct replacements. I had no luck with either the "if" statement (the drop-down menu disappeared, but I could not add anything to the cart) or the "tep_draw_not" function (resulted in errors--and yes, I did carefully read about others' errors.)

 

Any other ideas?

 

Thanks!

Verónica

Posted

You need to create a new "text only" function in includes/functions/html_output.php and then replace the "dropdown" function for the attributes with the new text only function in product_info.php

 

But you can not just past the function from the link sent..the forum software is changing it slightly.....you need to do the changes as described in that tread or you will get errors...

Posted

Thanks, Nick! I tried everything from that forum. And even made the changes recommended when others had errors, and added brackets and parentheses and colons as needed. I think I'm one of those "mid-level" (or low?) programmers, as I can understand the code enough to make changes and interpret what has been posted by others and make corrections when something's missing, but not good enough to go beyond that. :-(

I will give it another shot...

Archived

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

×
×
  • Create New...