Magento Themes and Magento Extensions

Stop Empty Attributes Showing as ‘No’ in Magento

Share
Posted on April 2nd, 2013 | Posted by admin

If you don’t complete and attribute for a product in Magento it displays as ‘No’ rather than just hiding them. This means attributes that aren’t relevant for a product will still appear confusing the user. There is a simple fix for this:

Open  /app/design/frontend/default/YOUR THEME/template/catalog/product/view/attribute.phtmland change this:

<?php foreach ($_additional as $_data): ?>
<tr>
<th><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
<td><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
</tr>
<?php endforeach; ?>

for this:

Disable state/province option in the Magento

Share
Posted on April 1st, 2013 | Posted by admin

Sometime your Magento site doesn’t need the region/state for customer address and you don’t know how to turn it off without touching in many places in the complex source code. Please try to run following SQL statements to try

1
2
update core_config_data set `value`=0 where path = 'general/region/display_all';
update core_config_data set `value`='' where path = 'general/region/state_required';
Page 6 of 6« First...«23456