Anthony Tran Posted January 30, 2017 Share Posted January 30, 2017 Hi, I'm french my english is not very well. I want to add a custom field before "add cart" button. I explain : when i add a product customisation i have a new tab under the product info but i want to add this field before the add cart button (or near) I think about a customer. When they click, they see a warning message for dont let the field empty. And they need to scroll down to see the tabs (or maybe click in the tab). Thanks for your help ! Link to comment Share on other sites More sharing options...
NemoPS Posted January 30, 2017 Share Posted January 30, 2017 You mean you want to move the customization tab? Can you share a screenshot, or your site url, of where exactly you want it? You can't have it inside the buy block (it's another form) but you can place it before. You will have to edit product.tpl for this, check where it mentions customization {if isset($product) && $product->customizable} <!--Customization --> Link to comment Share on other sites More sharing options...
Anthony Tran Posted February 4, 2017 Author Share Posted February 4, 2017 (edited) Thank you Now i just need to customise my code I don't know how to make this post solved Edited February 4, 2017 by Galitul (see edit history) Link to comment Share on other sites More sharing options...
sharkooon Posted August 15, 2017 Share Posted August 15, 2017 Well that is quite stupid solution. Why not add it default in add-cart form? Magento2 offers a whole list of custom fields that can be added in add-to cart form. No visitors first have to save a custom field form before add to cart... 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