Hello there !
i'm trying to add a simple contact form into a page generated by catalog, in the same page as the reader actually.
so you will have the description and photos of a company and after on the same page, a contact form to contact this company.
i thought that modifying catalog_notify would be a good idea, actually i think i only have to change the recipient in the code but my lack of knowledge in php is a problem.
I tried many things :
- in the configuration of the module i tried to write {{catalog::mail}} as the recipient but it doesn't work
- in the modulecatalognotify.php i tried to rewrite the code and replace
Code:
$objEmail->sendTo($recipient);
by
Code:
$objEmail->sendTo({{catalog::mail}} );
or
Code:
$objEmail->sendTo( ##mail##);
or add this :
Code:
$objEmail->sendTo = $this->replaceCatalogTags($this->catalog_recipients, $arrCatalog);
to add {{catalog::mail}} in the backend.
i know i'm trying write impossible syntax things but i think something like that would maybe work...
If it makes sense for someone please let me know, i would be really happy :D
Thx !
Bookmarks