osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | OTHER | 3776   


oscommerce JustOneAttribute
[3776]
 
 
box_bg_l.gif.
"JustOneAttribute by SuperSewist AKA Carol Hawkey, Wyoming, USA.
My first contrib as a newbie in osC & php !
this was driving me crazy to see the drop-down box
when there was only one attribute.

Now it may seem silly as if there's only one, it should just be described with the product,
and there's no need for an attribute in the first place.
BUT
if it is a *download*, it must be designated as a version/attribute attached to the product,
in order to make the download function work,
and there is only one version, in my case a pdf ebook.
and just listing doesn't work,
the attribute has to be set through the input fields for the download to pass to the cart.

This Mod will list "Version: *your attribute text*" and set a hidden field for the value,
if there is only one version,
and will create the default heading and drop-down box if there's more than one attribute.
This is just on the product info page.
The behavior of options/attributes on other pages isn't changed by this Mod.

My own install is much different as I've heavily edited the product_info page for look&feel.
It is so nice that I pulled up the osCommerce 2.2-MS2 clean version
and marked it for others to use.
just change the lines below, it's easy, one section, one file.
I zipped in a fresh product_info.php in case you have a clean install (haha)
then you can just upload the new file and you're done.

usual disclaimers, use at your own risk,
works on clean install, yadayada.
Have fun with it!"

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers