Guest Posted November 6, 2009 Posted November 6, 2009 Hello! Newbie here! I am interested in using osCommerce. However, I need the ability to be able to compute total price based on selections that the customer makes in either a text field or check box. For example (this is just a hypothetical), if I am selling rocks at $500/lb., the customer would need to be able to enter the number of pounds of rocks he would like to purchase, and the price calculator would calculate the total automatically based on a simple formula that I input. I was wondering if OSC cart has this ability to do this, such as multiply, divide, add, and subtratct (like a price calculator). And if not, do you happen to know of a cart that can? Many thanks for any information you can provide. -Davide
GemRock Posted November 7, 2009 Posted November 7, 2009 sure, i happen to know of a cart that is called osCommerce can do it. Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
Guest Posted November 7, 2009 Posted November 7, 2009 sure, i happen to know of a cart that is called osCommerce can do it. Ken Great! How can I find out more about how to do this?
GemRock Posted November 7, 2009 Posted November 7, 2009 simple. get your hands dirty to set up one and play around with it. it takes 10mins on average to set it up. spend some time reading the knowledge base before asking any question. Good luck! Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
sky_diver Posted November 8, 2009 Posted November 8, 2009 So as not to give you another elementary answer, what you ask for is the basic mathematics that can be applied with any code language. You must code the appropriate parts of osc to do the math you require. A simple way to achieve what you set as an example would be to add a quantity box to your product listing. Then once the customer adds the number( of pounds in this case)and hits add to cart, the cart will show the calculated price. IF you wanted the price reduced per so many pounds ordered, this could be achieved with a quantity discount schema.
GemRock Posted November 8, 2009 Posted November 8, 2009 So as not to give you another elementary answer... so you reckon the OP would understand what you are referring to w/o setting up an osc shop? the OP is obviously at "elementary" level so any "high school level" answer would simply be missing the point. there is no such thing as a "calculator". the math functions are all built in the shop where it is necessary. or you reckon the osc developers are stupid and dont know what they are doing, and all the 10s of 1000s shop owners do not use any of these basic math functions? Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
♥geoffreywalton Posted November 8, 2009 Posted November 8, 2009 The answer is Yes, it can multiply unit cost by quantity and it will add the cost of buying 2 or more different product in one order together. No, it does not divide or subtract but a shop does not need to do this. Have a look at http://demo.oscommerce.com/ for a basic shop but be aware there are thousands of add-ons that can be installed to change the functionality. Enjoy G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
♥FWR Media Posted November 8, 2009 Posted November 8, 2009 What sky_diver said basically. if I am selling rocks at $500/lb Well let's assume that you wouldn't sell $1 of rocks as that would be daft the product may be entered when set up as $100 of rocks - priced at (surprisingly) $100. Scenario 1: (no attributes) Customer adds product $100 of rocks to cart, when at the cart they can adjust the quantity to 5. They are therefore buying $500 of rocks. Scenarion 2: (you set up attributes as follows) Attribute 1 > $100 rocks ( adds to price $0.00 ) Attribute 2 > $200 rocks ( adds to price $100 ) Attribute 3 > $500 rocks ( adds to price $400 ) Attribute 3 > $1000 rocks ( adds to price $900 ) Customer adds the product $100 rocks to cart but chooses the attribute $500 rocks They are therefore buying $500 rocks. This is standard osCommerce functionality and needs no additional coding. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
sky_diver Posted November 8, 2009 Posted November 8, 2009 so you reckon the OP would understand what you are referring to w/o setting up an osc shop? the OP is obviously at "elementary" level so any "high school level" answer would simply be missing the point. there is no such thing as a "calculator". the math functions are all built in the shop where it is necessary. or you reckon the osc developers are stupid and dont know what they are doing, and all the 10s of 1000s shop owners do not use any of these basic math functions? Ken Do you think because someone is "new" it means they have no sense? He asked a valid question and I gave him a valid solution that clearly stated how he can make the math work in his example. Your statement about math problems is pure rubbish as well. Math is the basic underlying principle behind any programming language. One can solve any variety of mathematical equations they desire with standard functions used by the PHP language. If you are an osc developer then I "reckon" your statement is valid upon your personal reflection. But speak for yourself, you've done a great job so far.
GemRock Posted November 8, 2009 Posted November 8, 2009 ...I gave him a valid solution ... what a wonderful "valid solution": You must code the appropriate parts of osc to do the math you require if the OP can code then i reckon he, like me, would never ask question here. what a useless solution/suggestion. worse than rubbish. Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
sky_diver Posted November 8, 2009 Posted November 8, 2009 Why try to defend yourself now? Your answers are above, as clear as mud to even an experienced user, let alone one that honestly seeks help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.