PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[MODULO] contactproduct Versione 0.3

48 replies to this topic
#1
vinoalvino

    PrestaShop Addict

  • Members
  • PipPipPip
  • 841 posts
Avevo questo simpatico modulo installato nella versione precedente - consente di inviare una mail dal cliente al negozio per richiedere informazioni su di un prodotto - che non funzionava con la 1.1. L'ho sistemato e lo allego.

Attached Files


Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#2
Ehinarr

    Sir

  • Members
  • PipPipPipPip
  • 1134 posts
Semplice e molto utile. Tante grazie.
My Blog
PS v1.4.7.0

#3
cerberus22

    PrestaShop Apprentice

  • Members
  • PipPip
  • 279 posts
Very Nice,
Thanks

cerberus22
Using Prestashop V1.1

#4
PianetaModellismo

    PrestaShop Apprentice

  • Members
  • PipPip
  • 307 posts
Grazie per averlo adattato alla versione 1.1
PianetaModellismo Shop On-Line

PrestaShop™ 1.4.7.3

#5
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
did you modify this module?
http://julien.breux.....fr/prestashop/

#6
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
I've tested with v1.1, easy to install and woks perfectly.

One thing could be better: to have reference of product with title on email.

This way you can be sure about wich product customer want to talk about.

Merci d'avoir laissé la traduction française, comme cela il est directement utilisable pour une boutique en français. :coolsmile:

#7
lehangart

    PrestaShop Apprentice

  • Members
  • PipPip
  • 117 posts
It's a great module...
But it will be better if we can put an image of the product and a back link to the product...
Like the module "send to a freind".
I have try to change it but it doesn't work;
If you can help me it will be very nice!
Vente en ligne d'oeuvres d'art
HangART online shop
Galerie d'art contemporain

Prestashop Version 1.2.5.0

Hébergement 1and1 mutualisé

#8
vinoalvino

    PrestaShop Addict

  • Members
  • PipPipPip
  • 841 posts
Nuova versione (vedi primo topic).

1) se l'utente è loggato non chiede l'email ma mostra la sua (disabled)
2) in fondo all'email compare il link alla pagina prodotto

Spero siate felici :-P
Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#9
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
link in email doesnt work for me:
example:
res://ieframe.dll/syntax.htm#/boutique/decoration-asiatique/121-dragon-chinois-decoration-asiatique.html

however, very good idea !

on email product link is
Voir le produit


it should be:
Voir le produit


a return to product page could be added on "message sent" page

#10
Fabrice

    PrestaShop Fanatic

  • Moderators
  • 3147 posts
hi !
does not seem to work with last SVN version.
is an update planned for the next PS 1.2 ?
tks. :-)
Fabrice
http://www.my-deco-shop.com
Projet en cours de lancement - New fantastic module: Checkout-Pro
le meilleur outil de gestion pour Prestashop que j'utilise - best tool I use: Store Commander

#11
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
To resolve link problem (I use PS 1.1)

I've added my shop url (http://www.my-shop.com- change with your url) in code in contactproduct.php and now the product link on email is OK

it works only for my shop but it's not clean code for every body( I don't know php or smarty)
just insert your shop url.

line 104

          $mail_value = Configuration::get('PS_CONTACT_PRODUCT');
$message .= ' '.$this->l('Voir le produit').'';
if (Mail::Send(intval($cookie->id_lang), 'contact', Tools::getValue('subject'), array('{email}' => $_POST['from'], '{message}' => stripslashes($message)), $mail_value))




There is another module quite similar here

http://www.prestasho...question_module

#12
Presta-TR

    PrestaShop Addict

  • Members
  • PipPipPip
  • 544 posts
not work in v1.1 this and "Additional question module" please give me an solve

#13
lehangart

    PrestaShop Apprentice

  • Members
  • PipPip
  • 117 posts
Hello,
Have a look to http://www.prestasho...question_module
Vente en ligne d'oeuvres d'art
HangART online shop
Galerie d'art contemporain

Prestashop Version 1.2.5.0

Hébergement 1and1 mutualisé

#14
Akshan

    PrestaShop Apprentice

  • Members
  • PipPip
  • 33 posts
Very Nice,
Thanks
For see everything for Prestashop modules; http://www.muhre.com.tr

#15
citrix34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 224 posts
hi,

i would like to add more fields in the form to do an extended version.
so, that's my add to contactproduct.tpl :


<form action="{$request_uri}" method="post" class="std">

{l s='Send a message' mod='contactproduct'}




<input type="text" id="subject" name="subject" style="width: 280px;" value="{$product}" />




<input type="text" id="firm" name="firm" style="width: 280px;" value="{if isset($smarty.post.firm)}{$smarty.post.firm|escape:'htmlall'|stripslashes}{/if}" />




<input type="text" id="name" name="name" style="width: 280px;" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall'|stripslashes}{/if}" />




<input type="text" id="surname" name="surname" style="width: 280px;" value="{if isset($smarty.post.surname)}{$smarty.post.surname|escape:'htmlall'|stripslashes}{/if}" />




<input type="text" id="address" name="address" style="width: 280px;" value="{if isset($smarty.post.address)}{$smarty.post.address|escape:'htmlall'|stripslashes}{/if}" />




<input type="text" id="postcode" name="postcode" style="width: 280px;" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode|escape:'htmlall'|stripslashes}{/if}" />




<input type="text" id="town" name="town" style="width: 280px;" value="{if isset($smarty.post.town)}{$smarty.post.town|escape:'htmlall'|stripslashes}{/if}" />




{if $id_customer > 0}
<input type="text" name="from_customer" style="width: 280px;" value="{$email_customer}" disabled="disabled" />
<input type="hidden" id="email" name="from" value="{$email_customer}" />
{else}
<input type="text" id="email" name="from" style="width: 280px;" value="{if isset($smarty.post.from)}{$smarty.post.from|escape:'htmlall'|stripslashes}{/if}" />
{/if}




<input type="text" id="phone" name="phone" style="width: 280px;" value="{if isset($smarty.post.phone)}{$smarty.post.phone|escape:'htmlall'|stripslashes}{/if}" />





<textarea id="message" name="message" rows="7" cols="41">{if isset($smarty.post.message)}{$smarty.post.message|escape:'htmlall'|stripslashes}{/if}</textarea>


<input type="hidden" name="goToProduct" value="{$goToProduct}" />


<input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send' mod='contactproduct'}" class="button_large" />



</form>
{/if}




Cool.. the forms appears well.
but how to modify contactproduct.php to send me the additionnal details ?
i try different adds but i receive every time only the default fields on this module ...

Thanks for your help !!!

ps: i add in the TPL file a gotoproduct witch works well now
Mephivio, créateur de sites internet et plateformes e-commerce à base de technologies Open Source et travaux d'infographie pour la communication visuelle des entreprises.

Boutique en ligne (Software) : Mephishop
Blog IT : Veille Techno IT

#16
ilsaro

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
io non riesco a farlo funzionare......
non mi appere il link

#17
vinoalvino

    PrestaShop Addict

  • Members
  • PipPipPip
  • 841 posts

From 1239281523:

io non riesco a farlo funzionare......
non mi appere il link


Che versione di prestashop usi?
Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#18
ilsaro

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
l ultima versione, scaricata stamattina

#19
ilsaro

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
inutile non riesco...

#20
Germanoufo

    PrestaShop Fanatic

  • Moderators
  • 2930 posts
I permessi sulla cartella ?

se hai caricato la cartella via FTP sicuramente non ha i permessi giusti

Ciao ;-)