circusClown Posted July 27, 2008 Posted July 27, 2008 Hi all :) i've been customising my oscommerce install quite heavily and with all the info on here it's been goin well :) i've hit on quite a problem now though and would appreciate any help you could offer me. Basically my site needs to calculate the price for a product dynamically based on selections made in 5 different select boxes. I then want to use this price as the final product price everywhere and list the options selected in the cart + everywhere else as well. I have thought about rewriting the shoppingcart class to hold this info/update the database etc but i need the standard attributes method for other products as well. I have also thought about adding functions into the class to deal with this info but the way the product info gets passed to the cart is not your average html form so it looks like it's going to be difficult to add my options. I am more inclined to just write the data i want into the database and just get the it out if the product is in a certain group / a flag is set but this will cause knockon problems everywhere the product is displayed (admin, orders list, invoices etc) and a major amount of pages to be changed :( if anyone could help me with a good method of passing vars from the productInfo page through to the shopping cart when the add to cart button is pressed i would appreciate it. Any other ideas on ways round this problem would also be very gratefully recieved :) cheers!!!!!!!!!!!
satish Posted July 27, 2008 Posted July 27, 2008 Do You want a visitor to select options or admin will select options while adding a product. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
circusClown Posted July 27, 2008 Author Posted July 27, 2008 thanks for your response!! :) the visitor needs to select the options and then the price is calculated. I have all ready sorted this part of the problem out but my issue is passing the options and price into the cart so it exists for both the customer and the admin from then on. I have had to totally rule out the standard attributes method as each item has over 1000 seperate prices which can change regularly so with even a small set of products the database is gonna be bloated and admin will be a nightmare. thanks in advance :)
satish Posted July 28, 2008 Posted July 28, 2008 If You want to bypass attributes concept. I would like to know: 1)Can we have some attributes and prices universal: Implies applicable to all. I would not recommend bypassing attribute system. Though with some logic the db wil not get bloated. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.