madmike1 Posted October 24, 2018 Share Posted October 24, 2018 (edited) Dear all, I am looking for days, and weeks for a solution for the next thing: (i checked the addon directory but could not find anything what looks like this). I have a categorie (X) with "danger" products. If the customer wants to buy one or more products from THIS (X) category, OSC must add automaticly safety glasses (€2,00) to the shopping cart for protecting the eyes. It's neccesairy that the customer can NOT delete the safety glasses product from shopping cart when there are still danger products in shopping cart from that category X. The only possibility to delete the glasses is when the customer delete the product/products from danger category X out of the shopping cart. Is this possible in, maybe, a realitive simple way? For example: Customer buys 1 product from category A (No danger goods) -> nothing happens Than customer buys 1 product from category X (danger goods) -> safety glasses automaticly added in shopping cart If the customer buys more danger goods, the safety glasses have to stay at one piece. Not changeable to other amounts. Max and minimal 1 piece of glasses! Hope someone can help me, i am not a professional in scripting, so now it's very difficult! I still use OSC V2.2 Edited October 24, 2018 by madmike1 Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 24, 2018 Share Posted October 24, 2018 Not sure if what you are asking is strictly legal! No one should be forced to by something they don’t need. How do you know they don’t already have safety equipment? If its that important then simply add the item to each danger product and sell them as a bundle. You could look at one of the many cross sell add-ons to see if you can get that to work as you need. https://apps.oscommerce.com/aSd8g&better-together https://apps.oscommerce.com/BZ2FO&bundled-products https://apps.oscommerce.com/H32JO&x-sell-v2-ms2-cross-sell-for-ms2 If not post in the commercial section to see if one of the developers can help. Quote Link to comment Share on other sites More sharing options...
burt Posted October 24, 2018 Share Posted October 24, 2018 https://www.clubosc.com/required-product-that-must-be-purchased.html there's some further reading. Quote Link to comment Share on other sites More sharing options...
MrPhil Posted October 24, 2018 Share Posted October 24, 2018 If I already owned a collection of quality safety glasses or goggles, I would be quite annoyed if you forced me to buy yet another pair. Is this some EU law, rather than just letting you add "HAZARD! Use only with good safety glasses (such as this pair you can buy here)."? If they're cheap glasses, consider just throwing them in as a gift. Or is this just an example you thought of off the top of your head? If it's essential that the customer buy "B" to go along with "A", and "B" is cheap enough, it might be easier to just throw "B" in with "A". If "B" was expensive enough, that could be a problem (the customer would want to buy only one). I still use OSC V2.2 Ack! Please strongly consider upgrading to the current version, 2.3.4.1BS Edge/CE/Frozen. You're making so much extra work for yourself, and some day your site will crash badly when your host upgrades something. Quote Link to comment Share on other sites More sharing options...
madmike1 Posted October 25, 2018 Author Share Posted October 25, 2018 (edited) https://www.clubosc.com/required-product-that-must-be-purchased.html there's some further reading. ---- This one looks good! How to buy this one, i cant found anything about contact with the maker on the page. Edited October 25, 2018 by madmike1 Quote Link to comment Share on other sites More sharing options...
Mikepo Posted October 25, 2018 Share Posted October 25, 2018 send a PM to @burt , he is the code writer Quote osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
♥14steve14 Posted October 25, 2018 Share Posted October 25, 2018 Although there are bundled products addons available you may be better off using a cross sell addon, or something that allows a customer to buy two items together at a discount price. Something like the better together addon, but it may require some code changes to bring it up to date. May be do a starter bundle that includes all the safety gear that is needed for a particular product. Forcing someone to buy something that they may already have will loose you customers, but its up to you what you try to increase sales. Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 25, 2018 Share Posted October 25, 2018 Actually if you are able to get over forcing someone to buy then the product attributes will do everything you need. Simply add the safety gear as an option on each danger product. Then the customer is free to buy with or with out. Quote Link to comment Share on other sites More sharing options...
Dan Cole Posted October 25, 2018 Share Posted October 25, 2018 The other option, if you are required to do this for some reason, is just to include it and build the cost into the goods. Dan Quote Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
burt Posted October 25, 2018 Share Posted October 25, 2018 6 hours ago, madmike1 said: This one looks good! How to buy this one, i cant found anything about contact with the maker on the page. Your osCommerce version is too old. That was just for further reading so you can see it can be done (and easily; "upload, turn on module, set parameters, forget") in modern (ie within last 5 years) versions of osCommerce. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.