Announcement

Collapse
No announcement yet.

On-the-fly attributes & BasketOptions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    On-the-fly attributes & BasketOptions

    Hi folks,

    I have a situation where a client wants their store to collect some info (length of a cable) from the customer each time they put an item in the basket. A product attribute would be fine for this ... except that the store has hundreds of products, and it would be tedious to add an attribute to all of them, as well as to every new product that they create.

    I've written modules in the past, and I think others have too, that create BasketOptions on the fly when a product goes into the basket. These BasketOptions have an attr_id of zero, or maybe -1, since they aren't tied to any actual attribute. But they can still carry useful information; and the last time I checked, they would go thru checkout and into the OrderOptions table without causing a problem. And I know that admin users can do pretty-much the same thing when creating a new order on the admin page. But does this trick still work on the shopping pages in version 9? Is it likely to cause problems during discount calculations, when the store is manipulating BasketItems?

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Re: On-the-fly attributes & BasketOptions

    It should continue to work just fine.

    Comment

    Working...
    X