Jump to content

Recommended Posts

Hello,

 

Lately, i had some jobs with some clients that want a shop where they will only have a product enquiry button. So i had the idea to create a module which can handle this job. The module is based on sendtofriend, and uses a popup window to open the enquiry form. 

 

To make this module work you need to change the add to cart button in the product.tpl with those lines :

 

 

For example if you have this code as add to cart :

 

<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block">
<span></span>
<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
</p>

 

 

change it with :

 

 

{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}
                {hook h='displayEnquiryButton'}
 
{else}
                 
            <p id="add_to_cart" class="cta-button">
                <input type="submit" name="Submit" value="{l s='Add to cart'}" class="button" />
           </p>
{/if}
 
Also you can customize the button that will be displayed in the enquiryproduct-extra.tpl
 
If you want anything about this module feel free to contact me. 
 
For latest Update Please check this link http://www.getnewtheme.com/enquiry-product-prestashop/
 
Kind regards
 
AQEL Y.

enquiryProduct Module.zip

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

  • 4 weeks later...

Hello

I'm using presta V1.5.6.2

I have tried to install but nothing is dispay into module list

can you tell me is this module doesnt need to be installed ( and just need to fork the product page ?)

 

can you tell me if the enquiry module will work ?  ( just as standard enquiry module not to remplace add to cart)

 

all those I have tested doesn't sent the email and not confirm to the visitor if his mail is gone

Edited by bretweb (see edit history)
Link to comment
Share on other sites

Hello,

 

Thanks for your question. As you can notice in the code i've mentionned in the first post. the module work with a custom hook  {hook h='displayEnquiryButton'} So you need to add this wherever you want to display the module. 

Also there is something else. you need to cutomize the email template depending on your needs.

You'll find them under emails directory.

Please Ask me if you need something else.

 

Kind regards.

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

  • 3 weeks later...

Hello,

 

Thanks for your question. the mail function is it enabled on your server or not. 

Please if you have firbug (mozilla firefox) -> network -> xhr go to this tab and send me the response that you have.

Or using Chrome -> network.

So i can see the error. i've tested the module many times before posting it.

And here another version of this module that can be used as a quote product: http://www.getnewtheme.com/enquiry-product-prestashop

 

Kind regards.

Link to comment
Share on other sites

hello yazidaqel

 

my english is not very good.

 

your new update have the same error

 

 

 

 

send enquiry

Your e-mail could not be sent. Please check the e-mail address and try again

 

 

please canyou check it ?

 

http://industriadelenvase.com/es/apicultura/169-aceite-de-linaza.html

 

The link to enquiry is over de "CANTIDAD"

 

very thanks

 

 

 

 

 

I clean Cache and smarty

and i I deleted the old plugin an install the new but.....................

Link to comment
Share on other sites

Hello,

 

Sorry if i wasn't able to response yesterday. did you check the email where you want to send the enquiry??

Here you can find an implementation of this module

 

If the problem persist please send me your ftp and backoffice access via private message.

 

Kind regards.

Edited by yazidaqel (see edit history)
Link to comment
Share on other sites

  • 2 months later...

Hello Sanjeev,

 

Sorry for the delay can send me the link of your website so i can see where did you add the code. i'm working on adding some powerfull things to the module it will be updated the next week.

 

Kind regards.

 

AQEL Y.

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

Sorry for the delay, i wasn't able to respond this morning. honnestly i didn't test the module in the latest version, let see what i can do for you.

the product.tpl file can be found in /themes/your_current_theme/product.tpl

 

Kind regards.

Link to comment
Share on other sites

Hi,

        yazidaquel

 

<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block">
<span></span>
<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
</p>

this code i did not found in prestashop1.6 default thememe in product.tpl

 

there i found two codes which is looking same but when i replace the old code by your code my products became invisible

 

the two codes are like that

first code is

<p id="add_to_cart" class="buttons_bottom_block no-print">
<button type="submit" name="Submit" class="exclusive">
<span>{l s='Add to cart'}</span>
</button>
</p>
 
second code is
 
<a class="exclusive button ajax_add_to_cart_button" href="{$link->getPageLink('cart', true, NULL, "qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add")|escape:'html':'UTF-8'}" data-id-product="{$accessory.id_product|intval}" title="{l s='Add to cart'}">
<span>{l s='Add to cart'}</span>
</a>
 
i tried to make change in first code replace by your code but products became invisible
 
can you please help me out for prestashop 1.6 default theme
this is a humble request
 
Thanks
Link to comment
Share on other sites

  • 1 month later...

Thaks all,...

After hours of work I've mnaged to make it functional in 1.609

The main problem is in Apostrophe here   {hook h='displayEnquiryButton'}

These are a bit narrow,... it's more obvious in DW and AQUEL's website

 

Lines 232-235

 

{l s='Print'}
                        </a>
                    </li>
                   <li class="sendtofriend"> {hook h='displayEnquiryButton'}</li>

 

I've placed it under "print" button and add a class from "sendtofriend" with envelope icon

For example at my website> http://conteart.com/en/oil-paintings/21-by-the-seaside-oil-painting.html

 

I've changed also telephone instead of that in mail and front office "Country" is shown

 

Module has a problem with code... Customer Message is not Shown in the eMail!

I've managed to correct that as well :rolleyes:

 

Regards,

Darko

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 7 months later...

Hi


 


This module/addon may help and now available, compatible with the latest versions of Prestashop and FULLY supported:


 


Find it here:  Product Enquiry Pro


 


Product Enquiry Pro will feed all your product enquires to Prestashop's customer service section (Customers/Customer Service). So all replies can be answered via Prestashop's back office customer messaging system, not your external e-mail client. Keeping all your product enquiries in one place.! 


 


Each product enquiry will contain the details of the product that the customer is asking about, within the message saved in your BO Customer Service section. 


 


As an added feature, the enquiry button on the product page can be styled to your liking via the module configuration page. Change the button colour, shape and design in just a few clicks. Alternatively you can use Prestashop's default Bootstrap button design. 


 


Take a look at our demo and install video today.. 


Link to comment
Share on other sites

×
×
  • Create New...