941-685-8851

‘Magento Commerce’

Magento: remove update notifications from admin

To disable Magento upgrade notifications from the admin, do as follow:

1) Remove from app/design/adminhtml/default/default/layout/main.xml two lines:

<block type="adminhtml/notification_window" name="notification_window" as="notification_window" acl="system/adminnotification/show_toolbar" template="notification/window.phtml" />

and

<block type="adminhtml/notification_toolbar" name="notification_toolbar" as="notification_toolbar" acl="system/adminnotification/show_toolbar" template="notification/toolbar.phtml"></block>

2) Change following code in app/etc/modules/Mage_All.xml

<Mage_AdminNotification>
<active>true</active>
<codePool>core</codePool>
<depends>
<Mage_Core />
</depends>
</Mage_AdminNotification>

into

<Mage_AdminNotification>
<active>false</active>
<codePool>core</codePool>
<depends>
<Mage_Core />
</depends>
</Mage_AdminNotification>
Magento update notifications should now be disabled. Tested in Magento 1.3.2.4
Share
 

Magento Setup Checklist

Magento Commerce is widely accepted as the world’s best shopping cart software. The steps involved in the initial setup of Magento can be elaborate. Here are some common procedures performed when installing and configuring a new Magento ecommerce website: read more…

Share
 

Magento: add sku to cart

On the Magento cart page, to display the product sku along with the product name and details:

edit the pag: app/design/default/yourtheme/template/checkout/cart/item/default.phtml

The following code will add the sku to the cart page. It will also add custom option sku definitions;

<div><em>Product #:</em> <?php if (is_object($this->getChildProduct())):
echo $this->getChildProduct()->getSku();
else:
echo $_item->getSku();
endif; ?>
</div>

Here is a sample of where the code should go:

<?php $_item = $this->getItem()?>
<tr>
<td><a href=”<?php echo $this->getDeleteUrl() ?>”><img src=”<?php echo $this->getSkinUrl(‘images/btn_trash.gif’) ?>” width=”16″ height=”16″ alt=”<?php $this->__(‘Remove item’)?>” /></a></td>
<td><a href=”<?php echo $this->getProductUrl() ?>”><img src=”<?php echo $this->getProductThumbnail()->resize(75); ?>” alt=”<?php echo $this->htmlEscape($this->getProductName()) ?>” width=”75″ /></a></td>
<td>
<h4><a href=”<?php echo $this->getProductUrl() ?>”><?php echo $this->getProductName() ?></a></h4>

<!– Code goes here to display directly under the product name–>

<div><em>Product #:</em> <?php if (is_object($this->getChildProduct())):
echo $this->getChildProduct()->getSku();
else:
echo $_item->getSku();
endif; ?>
</div>
<!– item custom options –>

The product sku will now be displayed on the cart page along with the added products.

Share
 

Magento: remove register from checkout

Regarding the use of accounts and forcing customers to check out as guests, the folowing solution works in 1.3.x.

Edit:  /app/design/frontend/default/detault/layout/checkout.xml

Comment out the reference to the “checkout.onepage.login” addLink under the checkout_onepage_index section.

<!-- <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml"/> -->

Edit:  /app/design/frontend/default/default/template/checkout/onepage.phtml , replace the Script section at the bottom of the page, add after the </ol>.

<input type="hidden" name="checkout_method" id="login:guest" checked="checked" value="guest"/>
<script type="text/javascript">
//<![CDATA[
var accordion = new Accordion('checkoutSteps', '.head', true);
<?php if($this->getActiveStep()): ?>
accordion.openSection('opc-billing');
<?php endif ?>

var checkout = new Checkout(accordion,{
progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
saveMethod: '<?php echo
$this->getUrl('checkout/onepage/saveMethod') ?>',
failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
);
var cb = $("login:guest");
cb.checked = true;
checkout.setMethod();
//]]>
</script>

That will remove the register section from the checkout accordion.
To remove
Share
 

Migrating Magento to a new server

Overview

Here is an overview of the steps we’ll take to do this:

  1. Make a MySQL dump file of the database
  2. Archive the media and theme directories
  3. Copy the files to the other server
  4. Install a clean version of Magento
  5. Import the dump file to a blank database
  6. Move our copied data to the correct places read more…
Share