Translation Not Working from Magento Admin - magento

I have a situation where in the actions I trigger from Admin website do not translate my content. I have custom modules in magento and one of them is responsible for sending out emails. The email contents are to be translate according to the locale of the store. While everything works fine when done automatically. But when I trigger this sending of emails from the admin panel the translations aren't working.
For example, my code uses the magento magic method,
__("Text to be translated")
and when the corresponding text is translated in my website. But when I trigger an action from the admin, the same content is not translated.
My translate.csv is currently located in,
app
design
frontend
MyModule
default
locale
country
translate.csv
Any help will be appreciated.

Related

How to link a specific store view in Magento from outside the store?

I have Magento set up in a multi-language store so that every language has its own store view. I have an HTML landing page where users choose the language they want, and I want to link each store view from the landing page.
I need to create a URL for each specific view so that it can be accessed from the landing page (like my_magento_installation.com/spanish, etc.), outside of the Magento installation. That means that I can't use any core code to get the store view.
I noticed that this URL format:
http://www.my_magento_installation.com/?___store=view_name
...is shown in the URL bar after selecting a specific store view from the default dropdown in Magento. However, if I set up a link with this format from outside the Magento installation, it just redirects to the base URL (www.my_magento_installation.com)
Thanks in advance,
Pau
Pul Vila,here the soap list using soap client of magento list ,for referece here http://www.magentocommerce.com/api/soap/miscellaneous/store.list.html
after using htaccess write url of landing page...https://stackoverflow.com/questions/21433203/donot-want-show-magento-home-using-htaccess-file

custom contact form not working with magento installation

I want to implement this Contact form from kontaktformular.com inside a separate folder (named "custom-contact-form") on my Magento root directory.
Eg: mywebsite.com/custom-contact-form
Now, kontaktformular.com gives you whole package with html, php and css files to make and run your custom contact form. Here is the package.
One of the files that they give out is test.php to send a test mail to a given email address to see if everything works all right or not. This file is has a pretty simple php script to send an email to a secific email address. Now, it doesn't work! And I can't figure out why? Is it because of some kind of PHP conflict with magento installation?
Infact, I have tried many other simple contact form scripts and none of them seem to work.
I want to know the reason causing it not to work. Also, is there a way to add a custom contact form in magento WITHOUT creating a new extenshion?
oh, why do you want use that contact form?
the magento connect has this very nice webforms extension.
http://www.magentocommerce.com/magento-connect/webforms-community-edition.html

change system table information (newsletter_subscriber)

I am developing website in Magento in which i have used default newsletter feature provided by Magento.
But i want to customize default feature provided by Magento.
customizations i want to do
Change the default table name to "emails"
add fields to the table(found way to do this, but don't know if it's possible after changing table name)
Is this possible to do this customizations?
If it's possible, then how i can do this ?
Changing the default new letter email structure can be done with changing the format of newsletter in your themes locale folder or creating a new newsletter template in admin panel and assigning it throught the configuration menu.
Suppose you want to change the template of unsubscribe of newsletter, In admin panel, we have the option of creating a newsletter template by system/transaction emails. Here you can create a new template. After creating the template as required, In system/configuration, customers/newsletters, Here if we select the tetbox of unsubscription email sender dropdown, You can see your newly created newsletter template. Then save page. I hope it helps u.

Integrating my web application with Magento

I have created a web application in PHP, Ajax, HTML5. It is ready and working perfectly. Now I want to integrate it with magento. In the application, when user clicks buy now an image is saved in a folder on the server.
I have just started using magento. There are two ways in my mind to implement the functionality,
Navigate the user from magento products page to my application page and when user clicks buy now button on my page it will be the add to cart functionality at the back end. And i will send the image name that is randomly generated and append it into the comments of product that admin can see.
Make my app a magento custom plugin. Add my HTML, css, js, php files within magento and use my app as an internal magento application.
So, i need suggestions, comments, ideas or anything that can help me.
As I have just started with magento and I don't have any experience with e-commerce. So, my question might be showing in experience.
Try to learn Magento API it can be integrated with all your apps.

Automatically generating Customer Attribute Form Fields

When you add customer attributes, Magento's admin dashboard for customer's automatically generates the relative form element for that new attribute.
Is there a way to do the same thing on the front end via a controller in a module?
nope, the frontend customer fields are hard coded, check out the phtml inside customer/form to see it.
What are you trying to achieve? Customer attributes are displayed on the form if "Show on frontend" is enabled. However those fields aren't saved from frontend by default. You need to extend fieldsets in your module for that, see config.xml in core Mage/Customer module
EDIT: actually that is true for enterprise edition, on CE you have to edit register.phtml (preferably by making a copy in your theme)

Resources