+1adriankoooo wrote:It is possible to send email with user info after checkout?
"We help each other to grow". That's the opencart community!
All free mods
Home Based Ebay business Opportunity(not ads)
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Thanks
Great mod btw, thanks!
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
+1spitos wrote:Is there any way that a random password can be generated instead of using the first name of the customer to make it a bit more secure? If possible, a link to the forgotten password page could be added to the email too.
Both ideas would make this already fantastic extension a must have addition.
Many of our customers just use an initial for their firstname so the password is a single letter!
I've had a quick look at how the forgotten password section works but trying to incorporate it into this is a bit beyond me
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
You should take a look into the VQMod file. If I am right you can set the password.spitos wrote:Is there any way that a random password can be generated instead of using the first name of the customer to make it a bit more secure? If possible, a link to the forgotten password page could be added to the email too.
Great mod btw, thanks!
@ line 54: $customer_data['password'] = $data['firstname'];
And this mod just automatically creates an account for the customer so that when they come back for another purchase they don't have to enter everything again.
I changed my "Guest Checkout" text to "Express Checkout" to entice the customer further.
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
When a customer wasn't logged in and the clicked on checkout, it took them directly to Guest Checkout Step 1. There was a note on there to log in if you already have an account, otherwise the customer just continued through guest checkout (renamed to express checkout) and then the account was automatically generated at the end.
There was still an option to Register Account if a non-logged in customer clicked on "Account".
I think this is the best way to do it too
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
I changed this:strtfr wrote:You should take a look into the VQMod file. If I am right you can set the password.
@ line 54: $customer_data['password'] = $data['firstname'];
Code: Select all
$customer_data['password'] = $data['firstname'];
Code: Select all
$customer_data['password'] = substr(md5(rand()), 0, 7);
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_account'), $customer['email'], $customer['firstname'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_account'), $customer['email'], $customer['password'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
How does it decrypt the password that it displays in the email?
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
Thank you for your support. I have to think about "the best" implementation for my use. Your options do give me some ideas. Thanks again.philbydevil wrote:Actually, now I think about it, I actually did this on my 1.4.9 store.
When a customer wasn't logged in and the clicked on checkout, it took them directly to Guest Checkout Step 1. There was a note on there to log in if you already have an account, otherwise the customer just continued through guest checkout (renamed to express checkout) and then the account was automatically generated at the end.
There was still an option to Register Account if a non-logged in customer clicked on "Account".
I think this is the best way to do it too
You should return the 'unhashed'/plain MD5 (substr(md5(rand()), 0, 7);) to the customer. You are now returning the hashed(substr(md5(rand()), 0, 7);) which is stored in DB (and probably more characters, don't know the function exactly). Passwords aren't stored as plain text in DB, but as hashed strings.spitos wrote:I changed this:strtfr wrote:You should take a look into the VQMod file. If I am right you can set the password.
@ line 54: $customer_data['password'] = $data['firstname'];To this:Code: Select all
$customer_data['password'] = $data['firstname'];
and changed this:Code: Select all
$customer_data['password'] = substr(md5(rand()), 0, 7);
to this:Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_account'), $customer['email'], $customer['firstname'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
But when the login details are shown on the success page, the password is the encrypted version and 33 characters long. I took the code from 'catalog/controller/account/forgotten.php' and it sends a decrypted password to your email when you use the forgotten link.Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_account'), $customer['email'], $customer['password'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
How does it decrypt the password that it displays in the email?
That is exactly what I had figured out and was asking with help on!strtfr wrote:You should return the 'unhashed'/plain MD5 (substr(md5(rand()), 0, 7);) to the customer. You are now returning the hashed(substr(md5(rand()), 0, 7);) which is stored in DB (and probably more characters, don't know the function exactly). Passwords aren't stored as plain text in DB, but as hashed strings.
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
When a customer already has an account, but they use guest checkout, at checkout success, the only text that is shown is the page title (ie. Your Order Has Been Processed!) along with the continue button (the page layout is all fine too).
It should be showing some more text (ie. the $_['text_account'] text from the xml file), including the username and password.
It's line 62 in the success controller (cache) having the issue:
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
Code: Select all
PHP Warning: sprintf() [<a href='function.sprintf'>function.sprintf</a>]: Too few arguments in /home/hotston1/public_html/mysite.com/vqmod/vqcache/vq2-catalog_controller_checkout_success.php on line 62
Code: Select all
$_['text_account'] = '<p>Your order has been successfully processed!</p><p>An account has automatically been created. You may log in using the following details:–<br /><br /><span style="margin-top: 5px; margin-left: 15px;"><strong>Username:</strong> %s</span><br /><span style="margin-top: 5px; margin-left: 15px;"><strong>Password:</strong> %s</span></p><p>We strongly recommend that you <a href="index.php?route=account/login">Log In</a> now and change your password to prevent unauthorised access to your account.</p><p>You can view your order history by going to the <a href="%s">My Account</a> page and by clicking on <a href="%s">History</a>.</p><p>Please direct any questions you have to the <a href="%s">store owner</a>.</p><p>Thanks for shopping with us online!</p>';
It's working correctly when a customer doesn't already have an account.
Anyone else having this problem?
[SOLVED]
I had also change the [text_guest] text in the success language file so that's why I was having problems with "Too few arguments". Removed the extra %s and all is good.
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
Apparently I only read your first sentence and started typing. I am sorry. Of course you need your pass to get to the output. No idea how to implement, I do not now how he checkout source worksspitos wrote:That is exactly what I had figured out and was asking with help on!strtfr wrote:You should return the 'unhashed'/plain MD5 (substr(md5(rand()), 0, 7);) to the customer. You are now returning the hashed(substr(md5(rand()), 0, 7);) which is stored in DB (and probably more characters, don't know the function exactly). Passwords aren't stored as plain text in DB, but as hashed strings.
The success output (your username is .. pass is ..) when a user has an account but is not logged and uses the same email address as his account doesn't work also over here. 1.5.1.3philbydevil wrote:I'm having a problem on 1.5.1.3 :- [SOLVED] - see end of post
When a customer already has an account, but they use guest checkout, at checkout success, the only text that is shown is the page title (ie. Your Order Has Been Processed!) along with the continue button (the page layout is all fine too).
Did you test the situation in which a guest has an account, is nog logged but continues with the order through guest account with the same email address as his 'old' account? According to the topicstarter the password of the account linked to the used email address should get reset with a new pass. But this does not work also.
Also the last situation indicates a security risk. I can reset the password of another account by knowing the email address.
This auto account thing is getting kinda fuzzy.
Users browsing this forum: No registered users and 5 guests