GetSirius Posted May 27, 2018 Share Posted May 27, 2018 Hi, Is there a way to automatically select a Product's Attributes? What I want to do is allow a file download on every product. It would be nice if the customer did not have to select that they want a download, I would like that automatically selected. I might even hide the selection block as it should not be needed if there is only one Product Attribute. A little off topic, but it would be nice if I could add the file to be downloaded on the same page used when adding/editing products... thanks in advance, Chuck Link to comment Share on other sites More sharing options...
♥raiwa Posted May 27, 2018 Share Posted May 27, 2018 About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
GetSirius Posted May 27, 2018 Author Share Posted May 27, 2018 Thanks for the tip raiwa, forgot to mention what I am working on! I have searched both forums and google but did not find my answer. Recent install of V2.3.4.1 BS Edge, very little modification, mostly just language file changes. Link to comment Share on other sites More sharing options...
♥raiwa Posted May 28, 2018 Share Posted May 28, 2018 Hello Chuck @GetSirius, 1. remove the attributes menu default option "Please Select" this is done in "product_info.php" or if your product info page is modularized, switch off the default text in the attributes module. (now you may see why I asked for details of your exact version) Like this the download option will be selected by default if its the only option/attribute. 2. to hide the options, in product_info.php or cm_pi_options_attributes.php module, add to "<div class="form-group' . $fr_feedback . '">" style="display:none;" should look like this: "<div class="form-group' . $fr_feedback . '" style="display:none;">" The menu must still be included to pass the attribute to cart and order class. 3. then you can do the same to hide the options/attributes display in shopping-cart.php, checkout_confirmation.php and the order e-mail confirmation 4. there is the Ajax Attributes Manager: https://apps.oscommerce.com/mKsGy&ajax-attribute-manager-bs It allows to add and define options/attributes on the product page in admin, including the filenam for downloadable products. Although the file itself must still be uploaded separate via ftp About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
GetSirius Posted May 28, 2018 Author Share Posted May 28, 2018 Thank you raiwa! All sounds like it is just what I wanted. I will implement your suggestions soon and reply with my results. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.