Accessing Attributes (basic question)

Al66 <[email protected]>
Newsgroups gmane.comp.web.oscommerce.general
Message-ID <05d940a9c8514e2b994829b649fc51a0@osCommerce-Forums>
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=227828#227828
----------------------------------------------------------------

I want to be able to directly access the attribute data for a specific product within the code. Can any one provide examples of code? 

What I'm trying to do: 
- We sell a product. 
- one of the attributes defines a cost which varies depending on quantity. 
- as it stands the customer chooses the attribute him/herself. 
- trouble is they can (and do) choose the wrong option. 
- I want to use the product quantity to automatically set this attribute 

I'm guessing this is just a case of someone telling me what file(s) to REQUIRE and a line of code that I can copy and paste and muck around with.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.