Post by LeorLindel » Wed Nov 10, 2010 3:15 am

For multi-languages

In catalog/controller/account/create.php

After:

Code: Select all

		$this->data['text_newsletter'] = $this->language->get('text_newsletter');
Add:

Code: Select all

		$this->data['text_registration'] = $this->language->get('text_registration');
		$this->data['text_new_registration'] = $this->language->get('text_new_registration');

After:

Code: Select all

$mail->send();
Add:

Code: Select all

      //Q: Send additional email to store owner.
      $this->load->model('localisation/country');
       $this->load->model('localisation/zone');
        $country = $this->model_localisation_country->getCountry($this->request->post['country_id']);
        $zone = $this->model_localisation_zone->getZone($this->request->post['zone_id']);
   
        $subject = $this->language->get('text_registration') . ' ' . $this->request->post['firstname'] . ' ' . $this->request->post['lastname'];
        $message = $this->language->get('text_new_registration') . ' ' . $this->config->get('config_name') . '.' . "\n\n";
        $message .= $this->language->get('entry_firstname') . ' ' . $this->request->post['firstname'] . "\n";
        $message .= $this->language->get('entry_lastname') . ' ' . $this->request->post['lastname'] . "\n";
        $message .= $this->language->get('entry_email') . ' ' . $this->request->post['email'] . "\n";
        $message .= $this->language->get('entry_telephone') . ' ' . $this->request->post['telephone'] . "\n";
        $message .= $this->language->get('entry_fax') . ' ' . $this->request->post['fax'] . "\n";
        $message .= $this->language->get('entry_company') . ' ' . $this->request->post['company'] . "\n";
        $message .= $this->language->get('entry_address_1') . ' ' . $this->request->post['address_1'] . "\n";
        $message .= $this->language->get('entry_address_2') . ' ' . $this->request->post['address_2'] . "\n";
        $message .= $this->language->get('entry_city') . ' ' . $this->request->post['city'] . "\n";
        $message .= $this->language->get('entry_zone') . ' ' . $zone['name'] . "\n";
        $message .= $this->language->get('entry_postcode') . ' ' . $this->request->post['postcode'] . "\n";
        $message .= $this->language->get('entry_country') . ' ' . $country['name'] . "\n";
        $message .= ($this->request->post['newsletter']) ? $this->language->get('entry_newsletter') . ' ' . $this->language->get('text_yes') : $this->language->get('entry_newsletter') . ' ' . $this->language->get('text_no');

        $mail->setSubject($subject);
        $mail->setText(html_entity_decode($message, ENT_QUOTES, 'UTF-8'));
        $mail->setTo($this->config->get('config_email'));
        $mail->send();
In catalog/language/english/account/create.php

After:

Code: Select all

$_['text_agree']           = 'I have read and agree to the <a class="thickbox" href="index.php?route=information/information/loadInfo&create=1" alt="%s"><b>%s</b></a>';
Add:

Code: Select all

$_['text_registration']	   = 'New Customer Registration:';
$_['text_new_registration']= 'A new customer just registered at';
Last edited by i2Paq on Sun Jan 09, 2011 12:15 am, edited 2 times in total.
Reason: Updated the instructions.

Tous les packs de langues Française depuis la v1.4.7 et toutes les versions intégrales 100 % Français sont disponibles sur le Portail Officiel Français.

Image


User avatar
Active Member

Posts

Joined
Mon Feb 22, 2010 8:05 pm

Post by i2Paq » Wed Nov 10, 2010 6:31 am

Thanks, will give it a go!

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by i2Paq » Thu Nov 11, 2010 6:51 pm

Works like a charm.

Just one question, how do I change the Subject of the e-mail send to the Store-owner, it now uses the one that goes to the customer: "Store-name - Thank you for registering!"

I would like it to show: "New customer registration at - Store-name"

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by thegeekz » Wed Dec 08, 2010 12:24 pm

Hmm, this should be added to the OpenCart system programme... as a mainstay.... instead of having to mod the codes... I'm sure most of the users here of Open Cart, support this!

No more using Apsona, as they are not updated.

  • Every upgrade -- rem. 2 reinstall vqmod & mindful of modules w/ VQmod -- E.g Import / Export Tool by MHC


Active Member

Posts

Joined
Tue Nov 02, 2010 10:24 am

Post by broadsighted » Wed Jan 19, 2011 5:20 am

sonofrodrigo wrote:
Qphoria wrote:1. EDIT: catalog/controller/account/create.php

2. FIND:

Code: Select all

$mail->send();
3. AFTER, ADD:

Code: Select all

//Q: Send additional email to store owner.
$mail->setTo($this->config->get('config_email'));
$mail->send();
To get the name of the new customer, add the following (substituted for step #3 above):

Code: Select all

//Q: Send additional email to store owner.
$new_subject = 'New Customer Registration: ' . $this->request->post['firstname'] . ' ' . $this->request->post['lastname'];
$mail->setSubject($new_subject);
$mail->setTo($this->config->get('config_email'));
  $mail->send();
You'll receive the same email the customer does, but the subject line will instead read "New Customer Registration: Firstname Lastname".
Both of you: thank you so much! This did the trick.

Image


Newbie

Posts

Joined
Tue Nov 30, 2010 4:27 am
Location - Denver, CO

Post by werepair » Sat May 28, 2011 2:55 pm

works like a charm in 1.4.9.5 8)

User avatar
Active Member

Posts

Joined
Sat May 28, 2011 2:54 pm
Location - United Kingdom

Post by opencartisalright » Wed Jun 01, 2011 5:42 am

Anyone know how to get this mod working in OC 1.5? I checked and there is no catalog/controller/account/create.php file to edit.

Thanks.

Active Member

Posts

Joined
Mon Feb 21, 2011 4:09 am

Post by celestial » Wed Jun 01, 2011 6:02 am

\catalog\language\english\mail\customer.php and \catalog\model\account\customer.php

Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica


User avatar
Expert Member

Posts

Joined
Sat Mar 20, 2010 4:19 am
Location - Costa Rica

Post by i2Paq » Thu Jun 02, 2011 4:54 am

It is already sending a registration e-mail.
The down side is that you get an e-mail with an link only..., not very useful.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by opencartisalright » Fri Jun 03, 2011 3:28 am

celestial wrote:\catalog\language\english\mail\customer.php and \catalog\model\account\customer.php
Awesome. Thank you so much for pointing this out! :)

Active Member

Posts

Joined
Mon Feb 21, 2011 4:09 am

Post by opencartisalright » Fri Jun 03, 2011 3:29 am

i2Paq wrote:The down side is that you get an e-mail with an link only..., not very useful.
Yeah but if you follow the instructions in this thread you can expand the registration e-mail to include a lot of information. It works on 1.5 too, I just couldn't find the file to edit. Thanks to celestial for pointing out where it was.

Active Member

Posts

Joined
Mon Feb 21, 2011 4:09 am

Post by i2Paq » Fri Jun 03, 2011 5:52 pm

opencartisalright wrote:
i2Paq wrote:The down side is that you get an e-mail with an link only..., not very useful.
Yeah but if you follow the instructions in this thread you can expand the registration e-mail to include a lot of information. It works on 1.5 too, I just couldn't find the file to edit. Thanks to celestial for pointing out where it was.
I know, I have this mod in my current store and will use it when I move to 1.5.x in January 2011.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by amanda26 » Sat Jul 23, 2011 3:55 am

I'm using the code posted by d7a7z7e7d ... http://forum.opencart.com/viewtopic.php ... 14#p100192

I've received several alert emails for registrations requiring approval however, one customer registered while I was signed in to the administration area. I noticed the new, un-approved account show up under Customers but did NOT receive the alert email. Is there something in the code that doesn't allow alerts to be sent while logged in to administration?

Newbie

Posts

Joined
Sat Jul 23, 2011 3:41 am

Post by markman-b » Mon Sep 19, 2011 6:20 pm

Dear OC users,

I'm using OC 1.5.1.2. Can this step be skipped for for OC 1.5.1.2 users?

After:

Code: Select all

$this->data['text_newsletter'] = $this->language->get('text_newsletter');
Add:

Code: Select all

$this->data['text_registration'] = $this->language->get('text_registration');
$this->data['text_new_registration'] = $this->language->get('text_new_registration');
I skipped it because I could not find:

Code: Select all

$this->data['text_newsletter'] = $this->language->get('text_newsletter');
in catalog\model\account\customer.php

I just made a new customer testaccount. Everything seems to work fine, but it would be nice if someone is willing to confirm my question to avoid SQL problems in future.

kind regards,
Markman-B

OC version 1.5.4.1


Active Member

Posts

Joined
Wed Aug 24, 2011 7:13 pm

Post by badboybackagain » Mon Jan 16, 2012 11:46 am

I would be very thankful if someone from us can creat a vqmod for OC 1.5.1.3. Its bit confusing. Please help.

New member

Posts

Joined
Wed May 18, 2011 10:40 pm

Post by LeorLindel » Mon Jan 16, 2012 12:24 pm

It's here.

Tous les packs de langues Française depuis la v1.4.7 et toutes les versions intégrales 100 % Français sont disponibles sur le Portail Officiel Français.

Image


User avatar
Active Member

Posts

Joined
Mon Feb 22, 2010 8:05 pm

Post by badboybackagain » Mon Jan 16, 2012 1:07 pm

thanks LeorLindel....but its not free :( ....anyways thanks a ton for your reply...

New member

Posts

Joined
Wed May 18, 2011 10:40 pm

Post by eddie_d » Fri Feb 03, 2012 6:37 am

d7a7z7e7d wrote:Here is the code to add more details to the e-mail.

After:

Code: Select all

$mail->send();
Add:

Code: Select all

//Q: Send additional email to store owner.
$this->load->model('localisation/country');
$this->load->model('localisation/zone');
$country = $this->model_localisation_country->getCountry($this->request->post['country_id']);
$zone = $this->model_localisation_zone->getZone($this->request->post['zone_id']);
	
$subject = 'New Customer Registration: ' . $this->request->post['firstname'] . ' ' . $this->request->post['lastname'];
$message = 'A new customer just registered at ' . $this->config->get('config_name') . '.' . "\n\n";
$message .= 'First Name: ' . $this->request->post['firstname'] . "\n";
$message .= 'Last Name: ' . $this->request->post['lastname'] . "\n";
$message .= 'E-Mail: ' . $this->request->post['email'] . "\n";
$message .= 'Phone: ' . $this->request->post['telephone'] . "\n";
$message .= 'Fax: ' . $this->request->post['fax'] . "\n";
$message .= 'Company: ' . $this->request->post['company'] . "\n";
$message .= 'Address 1: ' . $this->request->post['address_1'] . "\n";
$message .= 'Address 2: ' . $this->request->post['address_2'] . "\n";
$message .= 'City: ' . $this->request->post['city'] . "\n";
$message .= 'Region/State: ' . $zone['name'] . "\n";
$message .= 'Post Code: ' . $this->request->post['postcode'] . "\n";
$message .= 'Country: ' . $country['name'] . "\n";
$message .= ($this->request->post['newsletter']) ? 'Newsletter: Yes' : 'Newsletter: No';
			
$mail->setSubject($subject);
$mail->setText(html_entity_decode($message, ENT_QUOTES, 'UTF-8'));
$mail->setTo($this->config->get('config_email'));
$mail->send();
Hi, I know it's been a while since the last post on this topic but I am new to opencart. I am using ver1.5.1.3 which does not have catalog/controller/account/create.php as stated but looking at \catalog\language\english\mail\customer.php and \catalog\model\account\customer.php the above is not in either customer.php file so where does it go?

please help.

Regards

Our online shop using OpenCart http://www.enscomputers.co.uk


New member

Posts

Joined
Fri Feb 03, 2012 4:28 am
Location - Somerset UK

Post by distvan » Fri Feb 10, 2012 6:53 pm

My question is connecting to here:

When I set on the admin page 'Approve new Customers' and registered a test user I get the following message: You will be notified by email once your account has been activated by the store owner.

The store owner how and where can activate the registered user on the admin in opencart version 1.5.1.3.1 ??

Newbie

Posts

Joined
Fri May 14, 2010 7:03 pm
Location - Hungary, Gödöllő

Post by Qphoria » Sat Feb 11, 2012 10:15 am

This is a very old thread. Send alert on registration has been added since v1.4.9.4 and already exists in all versions of 1.5.x. It is on the system-settings area on the mail tab "New Account Alert Email"

This mod is likely very outdated and not meant for 1.5.x

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 6 guests