Magento
Magento: unsubscribe link in Newsletter mail templete or in phtml page
Unsubscribe Link in Mail Template: Unsubscribe Link in Phtml page:
Unsubscribe Link in Mail Template: Unsubscribe Link in Phtml page:
In magento a website can have multiple stores if you require information like: store id, store code, store name, etc. You can do this with the following code: Get store data array:: Get store ID: Get store code: Get website ID of store: Get store name: Check if store is Read more…
To upgrade your Magento version use the following steps: First make a fresh backup your database and file system. clear and disable all Magento caches at System > Cache Management: Disable Magento Compiler Navigate to System > Magento Connect > Magento Connect manager, switch to Settings tab Make sure that Read more…
http://lokeshdhakar.com/projects/lightbox2/
If we ever need to clear Magento’s shopping cart, use the snippet of code below. If we need to clear the user’s entire session, including the shopping cart, shipping information, billing information and chosen payment methods, please refer to the snippet further below. Clear shopping cart: Clear entire session:
Step 1 : you have to create a application in facebook – https://developers.facebook.com/apps Step 2: After creating facebook application – get your facebook app id Step 3 : Insert this sdk before head tag Step 4 : Insert this javascript code in your web page Step 5: call the facebookinvitefriends function Read more…
There are two ways to change magento admin path: First Way: By Using local.xml Open the file located in app/etc/local.xml and find the following chunk of code: Change it to: Note: Only letters or numbers are allowed no special characters is allowed then save that file. After doing all these Read more…
Create a small module by following the steps: app/code/local/Sushant/CustomAttribute/etc/config.xml app/code/local/Sushant/CustomAttribute/Helper/Data.php app/code/local/Sushant/CustomAttribute/sql/customerattribute1434371772_setup/mysql4-install-0.1.0.php app/etc/modules/Sushant_CustomAttribute.xml Modify located file at: app/design/frontend/rwd/default/template/persistent/customer/formregister.phtml and add: If you want customer to be able to modify the attribute in customer panel, then modify: app/design/frontend/rwd/default/template/customer/form/edit.phtm and add:
You need to edit the file /app/design/frontend/your_package/your_theme/template/customer/form/register.phtml. or in Magento 1.9 app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml. 1-Find and remove the small piece code: 2- Add the following code just after this: