Jump to content

Add a "ask for a price" button


Recommended Posts

Hey guys,


I want to add a button for not buyable products.

I have the button itself and its opening a popup with a new contact form:




Working so far.


I´ve done a small change at the product-add-to-cart.tpl to show the button if you choose it to be not buyable:

{if !$product.add_to_cart_url}
	<a class="btn btn-primary add-to-cart enlace fancybox fancybox.iframe" href="http://testshop.displayandpack.com/de/forms/1/kontakt?content_only=1">
		<i class="material-icons shopping-cart"></i>
		Produkt anfragen

What should I do to use the prestashop included jquery? And where do I have to place the javascript from the jsfiddle link?

Edited by Shad86 (see edit history)
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...