Guest Posted December 7, 2011 Posted December 7, 2011 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 :-( )
Guest Posted December 7, 2011 Posted December 7, 2011 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
♥toyicebear Posted December 7, 2011 Posted December 7, 2011 Click me>> Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Guest Posted December 7, 2011 Posted December 7, 2011 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!!!!
Guest Posted December 7, 2011 Posted December 7, 2011 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
Guest Posted December 8, 2011 Posted December 8, 2011 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!
Guest Posted December 8, 2011 Posted December 8, 2011 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!
♥toyicebear Posted December 8, 2011 Posted December 8, 2011 Read the posts carefully and you will see the instructions on how to correct the first code posted so that it works. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Guest Posted December 28, 2011 Posted December 28, 2011 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
♥toyicebear Posted December 29, 2011 Posted December 29, 2011 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... Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Guest Posted December 29, 2011 Posted December 29, 2011 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...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.