Add BCC to Magento sendNewAccountEmail() - magento

I've usually been able to find the Magento answers I need either here or at the Magento forums, but I've tried all the solutions I've found thus far, to no avail.
We have a preliminary screening form for company customers. Only when they've been approved by Sales will we create a Magento storefront account for them. I've rewritten the account creation pages and have that working fine, including sending the new customer their New Account Email. I simply can't get the system to send us a BCC for our records to confirm that registration.
The information in the following post seems outdated, at least I can't find the quoted lines of code in /app/code/core/Mage/Customer/Model/Customer.php or in a search of the app folder:
http://www.magentocommerce.com/boards/viewthread/25535/
I've also tested solutions in /app/code/core/Mage/Core/Model/Email but no luck. Can anybody direct me towards a current solution for Magento Community 1.7 to add a BCC to a New Account email?
Thank you.

In Mage_Customer_Model_Customer::_sendEmailTemplate() check this lines:
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($this->getEmail(), $this->getName());
Mage_Core_Model_Email_Info has a method addBcc, too.

Related

Edit customer account creation form in M2 to add character limits on first and last name fields

We've been getting spam account sign-ups on one of our sites. We have email verification turned on so Magento is sending out tons of these confirm emails. After installing Google ReCaptcha, a Honeypot module to the forms and blocking several IPs we got most of the spam to stop. We are still getting a slew of long character Chinese name accounts that are mostly ads that are coming from Hong Kong, but we have customers in HK so I cannot block by country.
I have changed the max text limit in the db by running the command below:
UPDATE customer_eav_attribute SET validate_rules =
'a:2:{s:15:"max_text_length";i:25;s:15:"min_text_length";i:1;}' WHERE
attribute_id IN (5,7);
The values were changed in the db, but this seems to have no effect as the long character names are still coming in.
Someone suggested overriding the core template file:
vendor/magento/module-customer/view/frontend/templates/widget/name.phtml
We have a multi-store setup on M2 Community v2.3.5 and the theme is Solwin/FreeGo Child for the site I want to edit.
What's the easiest way to do this? Where in the file to put maxlength attribute and where to place the custom file? Any help is much appreciated.

Magento add extra fields to /customer/account/create/ page

I'm making great progress learning magento. My questions is, how do I add extra fields to the /customer/account/create/ page? The fields I want to add are below. Can the fields I add also appear under:
1) Frontend: Customer is able to edit/change the added fields answers in their accounts area
2) Backend: Administrator is able to see and manage the added fields under customers/manage customers/ selected customer/ customer information.
Any help or pointers is immensely appreciated.
11 OF 11
About You
WHAT IS YOUR AGE?
18-23 24-29 30-35 36-45 46-55 66+
WHAT IS YOUR HEIGHT?
WHAT IS YOUR WEIGHT?
WHAT IS YOUR ZIPCODE?
HOW DID YOU HEAR ABOUT US?
Magazine Online Ad TV Newspaper Friend
Here is a good but old tutorial how to add custom fields in registration page
http://www.fontis.com.au/blog/magento/custom-customer-signup-attributes
It was done for Magento 1.3 so you need to read comments below the article to make it works on Magento 1.7 or check out this answer on SO Can no longer add registration fields in Magento 1.4.2.0
Also there are few extensions on Magento connect for that purpose.
Thanks for all your input. I came across this extension and it worked REALLY GREAT for me!
http://www.magentocommerce.com/magento-connect/custom-customer-registration-fields.html

How to call product url in email generated by Magento

I have an email that is being generated from within magento that shows what a customer has bought. (Based on New Order Template).
Is it possible to make the item listed a link so it can be clicked and directly go to the item on my website. It sounds so simple, but can't find any info how to do this within magento.
Hope someone can help.
In design, you have an email folder. Just override email/order/items/order/default.phtml and email/order/items.phtml if you want a new column. Good luck ! :) If you want more details, ask me and I`ll help you .

How to find which admin user posted the product?

Currently Im working on a magento project and it have a plugin developed by another team. This project have merchant logins also. But the issue I am facing now is. When I add a product from merchant panel, it is not getting displayed in his product list. It is shown in admin product list. I want to track down what userid is entering corresponding to that record inserting from merchant login.
In which table I have look? After searching a lot I believe they are not storing any userid corresponding to each product. But I am not sure about that. How can I confirm that?
Please help me
Thanks in advance
There is no such functionality in magento admin, as far as I know. But you can write your own module to controller_action_predispatch or to core_abstract_model_save_after(or something like this) events. And you will be able to see who did what.
UPDATE 1
If I am right, meaning this is not implemented, then you should your own custom logging module.
Module should use Observer functionality. If you want particullarly catch the product save, then you should catch the events of product saving.
here.
To compare product data you can see an example here.
Well to get current user you can read this example.
Moreover in case it is not enough, you may watch here, something might be interestring for you.

Adding products to Google Base/Content in Magento?

I've been trying to add the products in my Magento store to Google's product search for the last day. I was using the built-in Google base, then found that that 'API' was retired a month or two ago and that the Magento Connect 'Google Content' plugin is what I should be using.
Having installed that, when I then try and add products to Google Content all I ever get is:
"Captcha confirmation error." (I'm typing the captcha correctly).
I've mapped all the required attributes accordingly and all my Google merchant account settings as they should be in Magento's configuration.
Couldn't find anyone with the same issue via Google or Stackexchange, but hopefully someone will have an idea for as to where to start troubleshooting! I've tried adding individual products, not just the whole lot...
Ideas?
Install this extension :
http://www.magentocommerce.com/magento-connect/Magento+Core/extension/6887/mage_googleshopping
From Mage Core team
I've just managed to solve our problem, in the settings for Google API there is an 'Account Type' dropdown, I've set this to google and now the CAPTCHA problem isn't tripping things up and it's submitting product to our merchant account.
log into your google account then put this in the address bar:
https://accounts.google.com/DisplayUnlockCaptcha

Resources