Jump to content

I want to disable the wishlist automatic mail (after making a wishlist)...


Recommended Posts

Hello!

I'm using blockwishlist module.

When the customer make a new wishlist, the e-mail "[store name ]Your wishlist's link " is sent to the customer.
I dont need that so I want to disable the wishlist automatic mail (after making a wishlist) but I can't find how to.

 

If someone knows that way, please help me!!

Thank you in advance.

 

 

note: the version of prestashop is 1.6.0.14

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 2 months later...
  • 2 weeks later...
  • 3 weeks later...

Remove this code segment from modules/blockwishlist/sendwishlist.php

 

Mail::Send(
                $context->language->id,
                'wishlist',
                sprintf(Mail::l('Message from %1$s %2$s', $context->language->id), $customer->lastname, $customer->firstname),
                array(
                    '{lastname}' => $customer->lastname,
                    '{firstname}' => $customer->firstname,
                    '{wishlist}' => $wishlist['name'],
                    '{message}' => $context->link->getModuleLink('blockwishlist', 'view', array('token' => $wishlist['token']))
                ),
                $to, $toName, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, dirname(__FILE__).'/mails/'
            );

Link to comment
Share on other sites

  • 1 year later...

hi @Scully, 

 

I just comment out the following code and the issue is solved!

						Mail::Send(
							$this->context->language->id,
							'wishlink',
							Mail::l('Your wishlist\'s link', $this->context->language->id),
							array(
							'{wishlist}' => $wishlist->name,
							'{message}' => $this->context->link->getModuleLink('blockwishlist', 'view', array('token' => $wishlist->token))
							),
							$this->context->customer->email,
							$this->context->customer->firstname.' '.$this->context->customer->lastname,
							null,
							strval(Configuration::get('PS_SHOP_NAME')),
							null,
							null,
							$this->module->getLocalPath().'mails/');

Thank you

Best Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...