This tutorial will show you how to remove Tags block from Magento product pageЖ
There are 2 ways of removing the tagging feature from product pages:
Navigate to System -> Configuration -> Advanced tab. Set ‘Mage_Tag’ to ‘Disable’Ж
Open the tag.xml under app/design/frontend/default/themeXXX/layout/ folder.Locate this line: ‘catalog_product… Read More
I’ve updated one of my stores to the new version 1.8.0 of Magento and all was great until I try the checkout. On the customer onepage checkout I just stuck on step Shipping Method, I could not get the payment information working.
After look in everywhere I found out it was just an update on the
It’s a common practice to use ratings for the products in the shopping website. This way visitors can rate the products according to their quality. By collecting rating results, website owners are able to summarize which products are best rated and therefore, provide more selling products. Also, it tends to attract more visitors for the
I have worked in the template\catalog\product\list\toolbar.phtml where you can change the total toolbar design. But there have a function
<?php echo $this->getPagerHtml() ?>
it’s for the pagination. if you want to change pagination html then go to the template\page\html\pager.phtml and you can change it from here.
本文:Magent… Read More
I have found that it is very useful to be able to get attributes from the system and use them in places other than a products category page. I always forget the exact syntax to use so, this is going to be my unofficial cheat sheet.
This is how to get a drop down lists options.
$_product_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
foreach($_product_images->getItems() as $_product_image) echo $_product_image->getUrl();
// or
foreach($_product_images->getItems() as $_product_image)
echo '<img src="'.Mage::helper('catal… Read More
I just wandering on how I can get the configuration data for my custom module. The configuration can be set from the admin system->configuration and how to pull it in frontend?
解决:
$configValue = Mage::getStoreConfig('sectionName/groupName/fieldName');
sectionName, groupName and fieldName are present in etc/system.xml file of your module.
The… Read More
方法一 : 使用友善的文件
EASY FIX:
Just replace Magento’s prototype.js file with this bootstrap friendly one:
https://raw.github.com/zikula/core/079df47e7c1f536a0d9eea2993ae19768e1f0554/src/javascript/ajax/original_uncompressed/prototype.js
You can see the changes made in the prototype.js file to fix the bootstrap issue here:
https://… Read More
Looks like an issue with form-key
Go to app/design/frontend/[Your-package]/[Your-theme]/template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under
Find: <ul class=”form-list”>
And paste this right after the code above the following:
<input name="form_key" type="hidden" value="<?ph… Read More
// Check if any customer is logged in or not
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
// Load the customer's data
$customer = Mage::getSingleton('customer/session')->getCustomer();
$customer->getPrefix();
$customer->getName(); // Full Name
$customer->getFirstname(); // First Name
$customer->g… Read More
The structure of a Magento theme
The files in a Magento theme are divided into two main directories: app and skin, as shown in the following screenshot:
The following is the description of the two directories:
app: The app/design/frontend/base/default/ directory contains the layout, translation, and template files
skin: The skin/frontend/base/defa… Read More