warezliker Posted February 4, 2013 Share Posted February 4, 2013 (edited) Hi! I search on web and don't find any answer. How to remove "Save" button from cart? I create new order-opc-new-account.tpl file with few tabs, that allows log in, do quick and simple order (for lazy customers, who don't want fill in lot of fields and for users, who want to register in shop). Problem with fields was succesfully resolved and I removed extra fields (I want to leave only customer name, phone, and additional info), but I don't understand how to remove this button. I think it must be configured in js/order-opc.js or in some way this functionality of "save" button must be added to payment buttons. If someone resolved this problem, please tell me how do you did this. Thank you! Edited February 4, 2013 by warezliker (see edit history) Link to comment Share on other sites More sharing options...
warezliker Posted February 5, 2013 Author Share Posted February 5, 2013 problem is unresolved. Any help required Link to comment Share on other sites More sharing options...
PascalVG Posted February 5, 2013 Share Posted February 5, 2013 If you remove this button, how do you want to send the user field-values of name/phone/additional data back to the server to store the values into the database? This button "submits" the fields to the server, using POST The button is somewhere defined, like: <input type="submit" name="button_name" value="'.$this->l('Save').'" class="button" /> When it is clicked on, It will POST the field values back to the server, where you can then store it in the database. So before you delete this button, you have to decide how to return those values to the server... 1 Link to comment Share on other sites More sharing options...
warezliker Posted February 8, 2013 Author Share Posted February 8, 2013 I understand this moment. Thank your for help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now