Jump to content

How to chage the redirect to the contact form after clicking on add to cart


Recommended Posts

i like to change the add to cart button in a button what direct to the contact page. and change the text of the button.

also the product don't have to be add to the cart.

 

i am using prestashop 1.6

 

i hope someone can help me on this.

 

regards

Albert

Link to comment
Share on other sites

This is what i changed.

 

In the product tpl.  i changed.

 

Line 247 in the Tpl.

            <form id="buy_block"{if $PS_CATALOG_MODE && !isset($groups) && $product->quantity > 0} class="hidden"{/if} action="{$link->getPageLink('cart')|escape:'html':'UTF-8'}" method="post">

to

            <form id="buy_block"{if $PS_CATALOG_MODE && !isset($groups) && $product->quantity > 0} class="hidden"{/if} action="{$link->getPageLink('contact')|escape:'html':'UTF-8'}" method="post">

In translations i have set the text of the button.

 

I hope it is solved at this moment El Patron

 

regards

Albert

Edited by immorent (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...