Magento uses default/default as skin theme in newsletter instead of site theme default/my_theme? - email

I was testing the admin password retrieval email template and the message Magento sent to my admin email uses default/default/images/logo_email.gif as the logo. However, my current site theme is default/my_theme so I thought it should use default/my_theme/images/logo_email.gif but it didn't.
I then tried some other email templates such as new account creation and user password retrieval templates and they are all fine with default/my_theme logo rather than the default/default one.
Is there a problem or is it by design that admin emails use everything in default/default rather than my specified theme?

In your question you didn't state which area your theme settings refer to. I'm assuming you are referring to the frontend store view configuration.
The email is sent by the method Mage_Admin_Model_User::sendPasswordResetConfirmationEmail()
This method calls $mailer->setStoreId(0), which causes Magento to look for the theme configured for the adminhtml area.
This defaults to default/default in according to Mage/Adminhtml/etc/config.xml in the node stores/admin/design/package/name and stores/admin/design/theme/default.
If you are using a Magento version including the Find_Feed extension (in the community code pool), it (stupidly) specifies the admin theme default/find in it's config.xml.
So this gives you the full path
skin/adminthml/default/default/images/logo_email.gif or skin/adminthml/default/find/images/logo_email.gif.

Related

Custom email notification with link - sitecore

I created a workflow as below, i want to send email with the link to the content approvers group when something is submitted? Can someone point me from where should i start with? which is the function that should be overridden ? Any help is appreciated
Thanks,
GT
Here is a good example of how to create a custom workflow email that can be sent to users in a particular Sitecore role (and the user who last edited the content item).
http://techmusingz.wordpress.com/2014/04/25/workflow-notifications-in-sitecore-roles-and-users/
You can link to a specific content item in the Sitecore client using the following method but you need to already be logged in to the Sitecore client for this to work (Otherwise you are just directed to the Sitecore login page and won't be redirected to the item after login).
/sitecore/shell/Applications/Content%20Manager/default.aspx?fo={id}&la={language}&vs={version}&mo=preview
fo - The item to open in the Sitecore client
la - The language to open (optional)
vs - The version to open (optional)
mo - preview
(optional)

Editing Files in My account Magento CE

Hello I am using Magento CE 1.7.2 I am trying to edit the customers "My Account" Pages
I cannot find what file to edit to change the layout and design of the following:
My account:
Account Dash Board (got this to work editing customer/account/dashboard.phtml)
Account Information (Tried customer/account/dashboard/info.phtml Didn't work)
Address Book (Tried customer/account/dashboard/address.phtml Didn't Work)
My Orders (No idea)
Newsletter Subscriptions (Tried customer/account/dashboard/newsletter.phtml Didn't Work)
What files do I edit? Please show the directory.... Thanks!
Telling you the exact path would be like "giving you a fish".
Instead, I will "teach you how to fish".
Login to your admin panel in Magento.
Head to System > Configuration. At the bottom of your left menu you will find a Developper link.
Head to this link, then in the upper left of the given page, select a webiste in the dropbox under Current Configuration Scope.
Open the Debug section and set Template Path Hints to Yes.
Reload your customer page in frontend. Tada! You can now see where is every single files you have to edit to change anything in your Magento.

Multiple stores in Magento 1.7. Not directing to new website

Multiple stores in Magento 1.7.
I am having issues setting this up.
I have set up via configuration two websites, store, store views etc and the url's in web config.
I have changed the A records on the domain to point to the magento website and I have as instructed changed index.php but when i type in my 2nd website address it just takes me to the main (original) website pages, if I change the default website in Magento it works! I can't be far off but I'm struggling now, any advice?
I've been told that in 1.7 I only need to alter index.php to make it work
Andrew
you must provide either store code or website code to server variable $_SERVER['MAGE_RUN_CODE'] or as first parameter to Mage::run() function in index.php file, for example if every subdomain of site has one store, you can accomplish this by:
$storeOrWebsiteCode = strtok($_SERVER['HTTP_HOST'],'.');
$_SERVER['MAGE_RUN_CODE'] = $storeOrWebsiteCode;
or
$storeOrWebsiteCode = strtok($_SERVER['HTTP_HOST'],'.');
Mage::run($storeOrWebsiteCode, 'website');
or
Mage::run($storeOrWebsiteCode, 'store');

Is permission of typo3temp affect in fetching page of newsletter using direct mail?

When i am trying to fetch pages under direct mail folder in TYPO3 backend, It gives following errors
The plain text content could not be fetched.
The HTML content could not be fetched.
This is an error that most of the time shows up if you are missing your templates include static section.
Login to your TYPO3 Backend with administrator access. Next goto your, for example, root template. Select the "Includes"-tab and make sure the next "Include Static" are included:
Direct Mail Content Boundaries (direct_mail)
Direct Mail Plaintext (direct_mail)
Hope this helps you out.
Try adding your server ip and domain to the /etc/hosts file if you are linux...if you are in windows to \System32\drivers\etc.
A deitalled description can be found here:
http://devbackyard.blogspot.pt/2012/10/direct-mail-typo3-content-could-not-be.html

Suggest idea for creating microsite in Joomla 1.5

I am having a site as http://www.test.com running in Joomla 1.5 . We are planning to have a microsite like
http://www.sub.test.com which has to have separate homepage with different contents .
Is that is possible with the following idea
Making a export of all the tables in my joomla and replacing jos with suband again importing them into the same Joomla database.
Writing a PHP script of identifying whether the Url tat i have entered in the browser is
http://www.test.com OR
http://www.sub.test.com
If test.com, then the $dbprefix would be jos OR if sub.test.com then the $dbprefix would be sub.
Will the above idea for creating a microsite is the correct one.
Just as another option, you could contain both sites in the exact same instance with a different template assigned to the micro site.
Set up a content category for the micro site, detect the request URL (most likely in the WebServer - best location, or in a DNS setting with a forward URL)
Assign all content items in the category with the new Template.
We regularly do this for a site that wants a blog site alongside the main website, but want a different look and feel.