Jump to content
maofree

[MODULES] maofree_foundbetterprice and maofree_sendtoafriend (CAPTCHA)

Recommended Posts

Hi

With this module, a visitor can request a lower price if he has seen it in another store.

In this topic I've also added sendtoafriend module by adding the security code.

They both have the same settings from the BO.

To install sendtoafriend, you must first remove the one already present in prestashop and then proceed as usual.

It should run on all versions of PrestaShop.

I hope you enjoy.

 

Dutch translation was made by ysco.

German translation was made by leandro2007.

Lithuanian translation was made by E=mc^2

Spanish translation was made by @lbert MR

French translation was made by jolvil

 

Added:

compatibility with all 1.3

choice writting position in product's page from BO

automatic choice of currency symbol (FO and email), chosen by visitor

Customizable captcha from BO (with random color, left position ......)(now it's possible to disable it)

limiter of characters in the message (number selected from BO)

name and email fields vanish if using it is a registered

the code has been completely redone

ste0024's problem solved

date_default_timezone_set() problem solved

solved a problem of character encoding

 

Other similar module

Askmoreinfo and Securecontactform

 

REMEMBER these kind of modules work well for default prestashop languages

eg. if you use the Polish language you should create a new folder pl in module's mails with two files like for the other languages

 

You can find these and other modules for prestashop 1.4 on my website

maofree's website

 

Any donations are always welcome.

 

byee

34443_UyVN7a3vP5WDZjaQ21Eu_t

34743_ElnGNBpahCaApTR190BI_t

34624_R5C9dqVqHCMB40yhufU0_t

  • Like 3

Share this post


Link to post
Share on other sites

Hello maofree,

Thats a interesting module, will try it out later tonight.
Many thanks for sharing it here ;)

ysco..

Share this post


Link to post
Share on other sites

Thank you - very nice module to help online price matching etc.

Thanks again :)

Ian

Share this post


Link to post
Share on other sites

Thanx m8, works great. One tiny problem though.... unlike the contact and sendtoafriend form ... this email came into my standard SPAM map in outlook ... any idea why? Just curious :).

Share this post


Link to post
Share on other sites

Hi to all
I've updated these modules for prestashop 1.4 with some new features and bugfix

byeee

Share this post


Link to post
Share on other sites

Hello maofree,

Just installed the module yesterday and it is a great module and a must have.
Thanks for sharing it.

I have translated the the php and tpl file for dutch customers as well the email template, is it alright with you that i post the translated version here ?

Best regards,

ysco..

Share this post


Link to post
Share on other sites

Thanks alot just installed the module... Looks great!

I will translate try to make a danish translation

Share this post


Link to post
Share on other sites

Hi Homeshop.dk
Remember to give me (in PM) dk.php and the dk mails folder with 2 files

bye bye

Share this post


Link to post
Share on other sites

Hi,


thanks for this incredieble Modul but i have a problem.

when klick the button found better price comes eror page 500

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.


More information about this error may be available in the server error log.

modules/foundbetterprice/foundbetterprice-form.php?id_product=40

i not found the problem with module ...have you any idea??

thanks
leandro

great work

Share this post


Link to post
Share on other sites

Hi leandro2007
local server or hosting?
Can you give me an URL?
Strange error, because this module has been downloaded more than 170 times without any big problem.
Test it in a different server.
module's folder has the proper permissions? (777)
I think this isn't a problem from this module, try with a similar module like productquestion, to see if you get the same error

byeeee

Share this post


Link to post
Share on other sites

Hi projectpb
I've changed this module for you with $ instead of €

byeee

Share this post


Link to post
Share on other sites

Hey ,


i have solved my problem ... i have hosting package and all modules is chomd 755 and not 777 because my provider blocked the security paremter 777.

maro free you are the best ;-)

thanks for this big feature modul you have very nice support ;-).

bye

Share this post


Link to post
Share on other sites
Hi
With this module, a visitor can request a lower price if he has seen it in another store.
It should run on all versions of PrestaShop.
I hope you enjoy.

Dutch translation was made by ysco.
German translation was made by leandro2007.

Ciaooo



Thax for this cute module...

i use it and goes very fine... only i have seen a problem. Google Webmaster tools says me that this module cause duplicate metadescriptions with the original url of product.

Do you know how can it be resolved???

thanks a lot!

Share this post


Link to post
Share on other sites

Hi reydrogo
I've looked and you are right, but it's the same for similar modules like sendtoafriend or productquestion. There is the same meta header of product page. When I have some spare time, I'll study a solution.
(I haven't any problem with Google Webmaster tools)

byee

Share this post


Link to post
Share on other sites

Dont show security image :(

On image link i have got an error

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in modules/foundbetterprice/createsecureimage.inc.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /modules/foundbetterprice/createsecureimage.inc.php:6) in modules/foundbetterprice/createsecureimage.inc.php on line 83

Share this post


Link to post
Share on other sites

Hi

I think this is a security problem of your hosting, I'll try to solved it (I'll send you some files with PM)

bye

Share this post


Link to post
Share on other sites

Problem is Solved.

Thaks for maofree.

At createsecureimage.inc.php line 6 change code:

$datekey = date("F j");


to

$datekey = date_default_timezone_set('Europe/Helsinki');




At foundbetterprice.php change line 53 sode:

$datekey = date("F j");


to

$datekey = date_default_timezone_set('Europe/Helsinki');

Share this post


Link to post
Share on other sites

Hello this module is very good!! Congratulations!

I need help from you, because here in Brazil the figures in Reais R$ are written as:

R$ 10,00 (separated by commas and no point)

how much in Euro or Dollar is as follows:

€ 10.00
$ 10.00

therefore when the customer places the value of the bidder in separate (,) COMMA, then when you send gives the following error:

There is an error:
The price is invalid.

Can someone help me!

thanks

Edú
using version 1.3.1

Share this post


Link to post
Share on other sites

Hi Edúbenavi
I've found a good solution for both point and comma
edit classes/Validate.php at line 240
and change like this

static public function isPrice($price)
{
   return preg_match('/^[0-9]{1,10}([.|,][0-9]{1,9})?$/ui', $price);
}


Just replace \. with [.|,]

byeeeeeeeee

Share this post


Link to post
Share on other sites

Hi E=mc^2
if you want I can add your translation to my zip like ysco and leandro2007, but I also need your mails/lt folder, with two files (.html and txt) translated in your language

byeee

Share this post


Link to post
Share on other sites

somebody can help me, when writte all data and click send say error 5 digits key and im writte ok, but not pass never

Share this post


Link to post
Share on other sites

Hi @lbert MR
try to replace $datekey = date("F j"); in
createsecureimage.inc.php line 6
and in
foundbetterprice.php change line 53
Do the opposite of E=mc^2 write above

bye

Share this post


Link to post
Share on other sites

hi

i have install module and do mail in email but i have error when i send message

Erreur - La template mail suivante n'existe pas : /homepages/9/d326792137/htdocs/shop/modules/foundbetterprice/mails/fr/send_pricerequest.txt


send_pricerequest.txt exist in email FR

when i can resolve

thank you

it s on PS 1.2.5

EDIT i resend file and it s ok

Share this post


Link to post
Share on other sites

bonjour,
désolé je ne parle que le français, existe il une traduction en Français pour ce super module
merci
jean-paul

Share this post


Link to post
Share on other sites

bonjour

si tu attend 1 heure j aurai fini la traduction. il me reste juste le mail a mettre en FR

@++

Share this post


Link to post
Share on other sites

Hi
you should watch at other translations as example. Then go in BO in tools --- translations then select module translations and search foundbetterprice's section.
After make a folder named fr with two files named send_pricerequest.html and send_pricerequest.txt and edit those files like the others but in french

byeee

Share this post


Link to post
Share on other sites

Sympa la traduction,

3 lignes ne me semblent pas justes:

Dites-nous où et à quel prix vous avez trouvez ce produit et nous vous informerons si nous sommes capables d\'offrir un prix plus bas'; (accord: trouvé)

'Les 5 chiffres du code de sécurité ne correspond pas.'; (accord: correspondent)

'Retapez le chiffre 5 clés'; (faux sens)

Share this post


Link to post
Share on other sites

je corrige sa mais l orthographe est pas mon fort.

++

edit : pour ca ‘Retapez le chiffre 5 clés’; (faux sens) tu mettrai quoi

‘Retapez les 5 chiffre clés’ ?

fr.php

mail fr.zip

Share this post


Link to post
Share on other sites

bonjour,
jr souhaiterai afficher ce module juste en dessous du prix, qqu un saurait m aider?

Share this post


Link to post
Share on other sites

Hi
I've added french translation to this module
Can you write in english? I can't help you if you write in french

byeee

Share this post


Link to post
Share on other sites
Hi
I've added the french translation to this module
Can you write in english? I can't help you if you write in french

byeee


ok thank you for add french translation.

no problem i can write in english. for me no problem module work fine

++

Share this post


Link to post
Share on other sites
Retapez les 5 chiffre clés

oui mais avec un s à chiffres

en fait ce serait mieux: "retapez les 5 chiffres du code" ou plus simple " retapez le code "

ici key a plus le sens de code que de clé

Sorry to speak french but it's about french language

Share this post


Link to post
Share on other sites

ok je viens de modifie par retapez les 5 chiffres du code

ci joint le fichier modifie.

new french translation add

fr.php

Share this post


Link to post
Share on other sites

merci pour la traduction en français j'avais pas eu le temps de réinstaller le module,
et tout fonctionne bien chez moi.
beau travail.

ps: c'est vrai que si on pouvez le rendre plus visible sur la fiche produit on gagnerait en efficacité.
par exemple en dessous "ajouter au panier".
Si la modif n'est pas trop difficile biensure.

A+
jean-paul

Share this post


Link to post
Share on other sites

Hi voiture
I made a simple solution for your request
instructions:
1)
disable this module from BO
2)
replace these two files in module's folder by ftp
3)
enable this module from BO

Sorry I need more time for a better solution, now I'm very busy. I'll add some changes to this module in future.

I've added the second fr.php

byeee

33938_3mv2nJT4I2mPe5gUXj1T_t

Share this post


Link to post
Share on other sites

Hi
Added some option in this module, you can look at the first page

The php of your language need a new translation

I hope you like it

byeee

Share this post


Link to post
Share on other sites

Here is a new fr file

a little mistake in english text:

If a visitor had found a cheaper product price on another webesite, he can send an email highlighting the website to request a better price.

Share this post


Link to post
Share on other sites

hello

thank for new module

when i choise left or right i have

Fatal error: Call to undefined method foundbetterprice::isRegisteredInHook() in /homepages/9/d326792137/htdocs/shop/modules/foundbetterprice/foundbetterprice.php on line 62

thank you

Share this post


Link to post
Share on other sites

Hello everyone
I've finished a new version of this module, all the code is different with a customizable captcha from BO. The only thing missing is the customization from BO, but in a few days I'll do it. From this new version I'll make others modules like send to a friend and contact-form ...

byeee

34175_iVpzvzjzOrXM408TY8lr_t

34174_Klhf0A5F1a7MSTwYEBmB_t

Share this post


Link to post
Share on other sites

Hi
I've finally finished to update this module completely after several days, with alot of bugs fix and new features.
I hope you like it
(the translations must be redone)

byeeee

Share this post


Link to post
Share on other sites

{l s='Your message has been successfully sent to our team.'} is not translated
mod='foundbetterprice' = is missing

default: is not translated

In Module BO, it could be better to separate Captcha settings than module settings.

Why put a signature in captcha?

fr translation is coming

Share this post


Link to post
Share on other sites

First of all I wanna thank you for all the hard work and I cant wait for the other forms like the contact form that works like this.

I found some bugs though:

- Error messages and the front end text are not translated and stay in english no matter what language the webshop is. (checked this for all languages).

- URL is not being checked on www or .com etc. For example if I filll in the text "noidea" in the URL field, the forms will still be send even though the url is not correct.

Keep up the good work and thx again!

Share this post


Link to post
Share on other sites

Hi jolvil and Crisp
If you leave blank you remove the signature (added explanation in BO)
fixed translation Your message has been successfully sent to our team.
I prefer group settings for type of configuration (I've fixed a little)
The translation now is only in italian english and french, the others must be redone
About URL for me is a problem, because I still do not know how to change meta tags and url-friendly in prestashop and nobody help me to find this solution (I don't know why there are only few people to help me)

In some days I remake all the prestashop's form

Share this post


Link to post
Share on other sites
- URL is not being checked on www or .com etc. For example if I filll in the text “noidea” in the URL field, the forms will still be send even though the url is not correct.

I've checked, but this problem is in all prestashop's page (if you don't use url-friendly), it's not a problem of this module


bye

Share this post


Link to post
Share on other sites

fr translation with last changes
in: (incrémentation de 1): (default: 5) is still not translated

If you want to add it: default (english) = défaut (french)


I have still a problem with Your message has been successfully sent to our team. translation. The sentence is not translated

Share this post


Link to post
Share on other sites

translation fixed with default (I thought it's simple understant its meaning)

bye professor jolvil :lol:

Share this post


Link to post
Share on other sites

try to use html format (change it in your BO)
(I've tested with fr en it and in my server I haven't any problems)

Share this post


Link to post
Share on other sites

see you soon !

Sorry to come back but (default: FFFFFF)..etc 4 lines are not translated

Share this post


Link to post
Share on other sites

shaka's problem is fixed

I hope I hope I hope I hope I hope to have finished these translations (I'm going on holidays for a few days, I'm too stressed) :lol:

Share this post


Link to post
Share on other sites

Hi
I've added another module with captcha "SENDTOAFRIEND", you find it at the first page
Added others corrections to foundbetterprice

byeee

(jolvil, the french translation is inside, thanks alot for your translation support)

Share this post


Link to post
Share on other sites

In the same family " ask more info about a product " is very usefull, perhaps more usefull than other !

Thanks for your hard work !

Share this post


Link to post
Share on other sites

cool, I cant wait for them. Thx again 4 all the hard work.

Share this post


Link to post
Share on other sites

I don't know why

try to download a new zip and reinstall this module

bye

34684_5x3T13qIKFTQrulB71pF_t

Share this post


Link to post
Share on other sites
I don’t know why message is still not translated


It was a smarty compile problem, I deleted files in tools/smarty/compile/*.* ( no index.php ), and now it's OK

Share this post


Link to post
Share on other sites

Now I've added the possibility to disable the captcha from BO

byee

Share this post


Link to post
Share on other sites

I've solved a problem of character encoding
I suggest to everybody to install the new zip

byee

Share this post


Link to post
Share on other sites

Hiiii
I made the last of these form with captcha, its name is Securecontactform
It replaces the default contact-form with a new one with captcha

byeeee

Share this post


Link to post
Share on other sites
Great work mao! thx for all the captcha forms. One question though ... in my old contact form I added a google maps script that appeared above the actual form. I tried to do the same with your securecontactform, by inserting the google script into the tpl file but its not working. Its showing a blank page. Maybe I'm inserting the google map script in the wrong position. Do you have any idea how I can succesfuly insert the script in your contactform so it shows just above the contactform?
Thanx


Well I just tried it again and I apparantly missed some pieces of code from the script last time I tried it because its working now :).

Thanx anyway for your quick response Mao.

What about your captcha for the user registration form, is that managable aswell?

Share this post


Link to post
Share on other sites

Hi
yes it's possible, but now I prefer made some other modules for other purposes and add other features on some my modules
I'll think about your suggestion

Share this post


Link to post
Share on other sites

It would be much easier if the "Found a better price?" appear directly below the price.

Share this post


Link to post
Share on other sites

You should say better and not easier, because your solution add compatibility problems with each prestashop's versions and with modified themes and time for me to spend on these modules.

For your necessity:
1)Open hook.tpl and clean all code and then save it
2)After open your product.tpl and find
<!-- prices --> between this and this <!-- quantity wanted --> insert this line

{l s='Found a better price?' mod='foundbetterprice'}



I prefer above this line {if isset($groups)}



byee

35373_7eeideBiVL4xnB68flyt_t

Share this post


Link to post
Share on other sites
You should say better and not easier, because your solution add compatibility problems with each prestashop's versions and with modified themes and time for me to spend on these modules.

For your necessity:
1)Open hook.tpl and clean all code and then save it
2)After open your product.tpl and find
<!-- prices --> between this and this <!-- quantity wanted --> insert this line
{l s='Found a better price?' mod='foundbetterprice'}



I prefer above this line {if isset($groups)}



byee



Hi,

It doesn't work for me.
What do you mean by "clean all code in the hook.tpl"
Is it possible to get the text in red and bigger ?

Thank

Guillaume

Share this post


Link to post
Share on other sites

Hi guitou22

“clean all code in the hook.tpl” means remove all code and leave that file void, than follow the point 2)
write here your URL and your product.tpl
Is it possible to get the text in red and bigger ?
you must edit global.css and use tools like firebug for firefox or similar for the others browser

byeee

Share this post


Link to post
Share on other sites
You should say better and not easier, because your solution add compatibility problems with each prestashop's versions and with modified themes and time for me to spend on these modules.



byee


Sorry for the wrong word. I mean "comfortable" but Google used the word "easier". I was able to insert a link, but I have 2 languages, as I understand it, this method is suitable only for one language. Maybe this can be done on the likeness of this module? http://www.prestashop.com/forums/viewthread/32515/module_i_teme/modul_askinfoproduct_dot_v0_dot_3__updated

In any case, thank you very much for your work!

Share this post


Link to post
Share on other sites

Hi Gerra
I don't know that module,
Now I'm remaking all my modules and some others for the new 1.4. I can add this option in the new version. I haven't time to develop all these modules and make other works

byee

Share this post


Link to post
Share on other sites

Hi Gerra
I think this solution is good for both your languages, because with this line
{l s='Found a better price?' mod='foundbetterprice'}
you can translate Found a better price? in your languages, spanish language isn't translate look in the tanslation page in your BO

byee

Share this post


Link to post
Share on other sites

Hi Gerra
I've add a new position under 'add to cart', choosing from BO
but I'll release this modification for the new version of prestshop, together with other modules
(I prefer do so, because I haven't time to develop these modules for all versions of prestashop, I suggest you to upgrade to 1.4, it'll be much better than 1.3) (with little modifications is possible to adapt to the previous versions)

byeee

Share this post


Link to post
Share on other sites
Hey ,


i have solved my problem ... i have hosting package and all modules is chomd 755 and not 777 because my provider blocked the security paremter 777.

maro free you are the best ;-)

thanks for this big feature modul you have very nice support ;-).

bye



Hi I am

Share this post


Link to post
Share on other sites

Hi Mate awesome module. Only if I could get it to work.

"internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@dealbusters.co.nz and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
"

Thanks

Share this post


Link to post
Share on other sites

Hi
I've updated these modules for prestashop 1.4

byeee

Share this post


Link to post
Share on other sites