Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help getting rid of the annoying "Available Options" + dropdown menu


Squizzix

Recommended Posts

Posted

I've got this site for video downloads and I went through and set up the download option for the item but now on the product details page but now there's an annoying "Available Options" with a dropdown menu attached that only has one option (yes). I tried deleting the code from products.php but I got a "failure to connect to server database" error so apparently I can't just get rid of it.

 

For example:

(http://stock-aid.com.whsites.net/catalog/product_info.php?cPath=23_30&products_id=37)

 

What's the deal? And, more importantly, how do I get rid of this damn option?!

Posted

You will find this code around line 125 in the products_info.php:

if ($products_attributes['total'] > 0) {

 

This test to see if there is any attributes for the product.

 

You could change it to something like this:

$myattributes = false;

if (($products_attributes['total'] > 0) && ($myattributes == true)) {

 

This way if you ever change you mind, all you have to do is change:

$myattributes = true;

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Posted

Fixed it like a charm dude. Thanks!

 

 

You will find this code around line 125 in the products_info.php:

This test to see if there is any attributes for the product.

 

You could change it to something like this:

This way if you ever change you mind, all you have to do is change:

Posted

Thanks for the fix! I didn't think of this, but it makes the poducts look much cleaner! Happy someone thought of this so I can cash in on a great solution!

Archived

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

×
×
  • Create New...