Jump to content

Custom Form In Product.tpl Doesnt Working


Recommended Posts

Hello prestashop masters,

I have problem with my contact form in themes/default-bootstrap/product.tpl, which aren't sending email.. post-1044638-0-28136700-1457387620_thumb.png

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...