kurzor Posted March 7, 2016 Share Posted March 7, 2016 Hello prestashop masters, I have problem with my contact form in themes/default-bootstrap/product.tpl, which aren't sending email.. code added to default tpl <form action ="{$base_dir}usb/themes/default-bootstrap/mail.php" method="post"> <label class="attribute_label">Produkt </label><br/> <input id="dopyt" class="form-control" type="text" name="dopyt" value="{$product->name|escape:'html':'UTF-8'}"style="margin-top:-5px; margin-bottom:10px;"> <label class="attribute_label">Množstvo* </label><br/> <input class="form-control" type="text" name="mnozstvo" placeholder="Min.30ks"style="margin-top:-5px; margin-bottom:10px;"> <label class="attribute_label">Meno* </label><br/> <input class="form-control" type="text" name="meno" placeholder="Vaše meno" style="margin-top:-5px; margin-bottom:10px;"> <label class="attribute_label">Firma </label><br/> <input class="form-control" type="text" name="firma" placeholder="Vaša firma" style="margin-top:-5px; margin-bottom:10px;"> <label class="attribute_label">Email* </label><br/> <input type="text"class="form-control" name="email" placeholder="Váš email" style="margin-top:-5px; margin-bottom:10px;"> <label class="attribute_label">Telefón* </label><br/> <input type="text" class="form-control" name="tel" placeholder="Váš telefón" style="margin-top:-5px; margin-bottom:10px;"> <label class="attribute_label">Potlač* </label><br/> <input type="radio" class="attribute_radio" name="potlac" value="ano"><span>Áno</span> <input type="radio" class="attribute_radio" name="potlac" value="nie"><span>Nie</span> <br/> <label class="attribute_label" style="margin-top:5px;">Veľkost USB* </label><br/> <select name="usb" class="form-control"> <option value="512mb">512MB</option> <option value="1gb">1GB</option> <option value="2gb">2GB</option> <option value="4gb">4GB</option> <option value="8gb">8GB</option> <option value="16gb">16GB</option> <option value="32gb">32GB</option> <option value="64gb">64GB</option> </select> <textarea id="message" rows="4" cols="10" name="message" placeholder="Poznámka" class="form-control" style="margin-top:10px;"></textarea><br /> <button type="submit" name="submit">Odoslať správu</button></div> </form> but when i click send message button email will not sent.redirects me to the page where it says 1 Error 1. You have the maximum quantity available for this product. Link to comment Share on other sites More sharing options...
NemoPS Posted March 8, 2016 Share Posted March 8, 2016 Make sure you did not add your form inside the buy_block form Link to comment Share on other sites More sharing options...
kurzor Posted March 8, 2016 Author Share Posted March 8, 2016 Good remark, thank you Nemo. But when i have radio box in my own form and i choose one value its says The combination for this product exist. Please choose another. Link to comment Share on other sites More sharing options...
NemoPS Posted March 9, 2016 Share Posted March 9, 2016 Because it's targeting attribute_radio. Change your classes to something else 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