Magento Themes and Magento Extensions

Securing Magento File & Directory Permissions

Share
Posted on November 10th, 2012 | Posted by admin

By default most software packages are installed with the most lenient file/directory permissions and ownership. This is normally done for the sake of the software developer given that their software must be installed on a range of diverse systems with varying configurations. This article is meant to give you an overview of how to setup your Magento installation with the strictest of permissions for overall security’s sake.

When running Linux there are two main environments that you will find:

1) PHP scripts run via mod_php or equivalent and are executed as the webserver user. 2) PHP scripts execute as the user who owns the files themselves via an intermediate construct such as suPHP, PHP suEXEC, PHP-FPM etc.

Sending newsletters in Magento

Share
Posted on November 9th, 2012 | Posted by admin

Here’s a simple guide regarding how to send newsletters from your magneto store.

The first thing you need to do is go to System => Configuration => Newsletter. Next, click on Subscription. Now, in this tab you can select some options for newsletters, like the ones mentioned below –

  • Success Email Template– From this select field, you can select template for success.
  • Unsubscription Email Sender– When a customer wants to unsubscribe for newsletter, this email system is used.
  • Unsubscription Email Template –Use this template for body in Unsubscription email.
  • Success Email Sender– This one is for identification, use for “From” field in email.
  • Confirmation Email Template – The system uses this template for body in confirmation email.
  • Need to Confirm – In case you want you customer to confirm that he/she wants to get newsletter, mention “Yes” in this field.
  • Confirmation Email Sender – It is for identification, use for “From” field in email.
  • Allow Guest Subscription – A great option as you don’t need to force your customer to register in case they want a newsletter.

MAGENTO: HOW TO CHECK IF USER IS LOGGED IN

Share
Posted on November 8th, 2012 | Posted by admin

MAGENTO: HOW TO CHECK IF USER IS LOGGED IN

There are some instances that you want to offer a coupon code or private sales in your site. In order to for you to do that you need to check if the user logged in using the following code:

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

 //paste your coupon code or private information here. 

<?php endif; ?>

Also you can use this helper method. It does exactly the same as abov

Adding your custom module to Magento’s Admin Global Search

Share
Posted on November 7th, 2012 | Posted by admin

When creating a custom module in Magento, have you ever wanted to add custom search functionality to the Magento admin area, allowing users to search your module? Today I will attempt to show you in the most simple of terms how you can achieve this and add to Magento’s global search.

For this example I will be using a custom module called Matt_Car, a fictitious module that may contain information on a car and output on the store front. We will be adding functionality to search by car name or brand within Magento’s admin area global search box.

I will assume you’ve already created a custom module, as this will be the module you are searching, but your module declaration should look something like…

Magento Product’s Relative Parent Category Method

Share
Posted on November 6th, 2012 | Posted by admin

In Magento: I want to quickly cover an area that I get asked about at least once a month, and that is “If a product belongs to more than one category.. how do I get the correct parent category while viewing a product through one category or the other?”.

With that said the, the biggest scenario for this need would be to determine the products parent category in order to perform something unique to the product’s page while viewing product’s page through one category or another.

This is a very simple method that assumes you have the product of question loaded up or rather, you are at the product level of your store in order to obtain some information about the products parent categories.

So here we go.

Page 5 of 6« First...«23456»