Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attributes modifications


mongoose

Recommended Posts

Posted

I am trying to modify the store to allow for textarea attributes. Basically customers need to enter their engraving choice, which calculates a price based on the number of characters, and other options.

 

I've got the front end worked out, you can go to the store and enter some engraving info, and it'll calculate it correctly.

 

I'm stuck on how to enter the info into the database. I'd like to modify the current process as little as possible (for obvious reasons.)

 

Currently I'm confused about how add_cart function in shopping_cart.php works.

 

Anyone have any suggestions?

 

Thanks

Gene

Posted

how about you simply create a product that is based on one (1) character, then when the customer enters in what they want engraved... what they purchae is then a multiple of that product.

 

You could then pass through what they want engraved as the comments in the checkout process.

Posted

It's really not that simple. Sometimes product costs are calculated based on #'s of Chars, sometimes based on #'s of lines, sometimes both, and of course there are limitations. Sometimes you can have 30 chars, sometimes 3 lines, etc ...

 

I have most of the database modifications done, and as I've said the front end of the site now works beautifully. The question now is, how do I insert my 2 new fields into the database during the add_cart and checkout phases.

 

I know it happens in application_top in the add_cart function, but I'm having a hard time deciphering the code.

  • 7 months later...
Posted

I tried to solve the problem exactly the way Adam described. But that is very hard to understand for the customers. In our candle-shop http://www.feierlicht.de almost 2 or 3 orders of 10 are wrong because the customers omit to enter the right number of characters in the cart or they forget to update the cart after entering the number. I got in contact with Eugene who had started to write a solution and perhaps together we can bring this to a contribution... Anybody else interested in working on this?

 

Gerold

Archived

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

×
×
  • Create New...