I am documenting this for a current installation, this is not yet finished!
Step 1: install apache
Step 2: update
Step 3: install new modules
Step 4: install more modules
I am documenting this for a current installation, this is not yet finished!
Step 1: install apache
Step 2: update
Step 3: install new modules
Step 4: install more modules
So, here is the scenario, you have a custom module that is returning a list of products.
You want to make sure that your using the Products per Page on Grid Default Value from the Magento Admin to stay true to whats normally done.
In order to get this value in your code, here is how to access it:
$limit = Mage::getStoreConfig('catalog/frontend/grid_per_page');
$product_id = Mage::getModel("catalog/product")->getIdBySku( $_sku );
#!/bin/bash
NOW=$(date +"%Y%m%d%H%M%S")
NEW_FOLDER_PATH="/var/www/magento/releases/$NOW"
VAR_FOLDER="/var/www/magento/shared/var/"
MEDIA_FOLDER="/var/www/magento/shared/media/"
SHARED_ETC_FOLDER="/var/www/magento/shared/app/etc"
MAGENTO_ROOT="/var/www/magento/"
GROUP="www-data"
REPO="ssh://username@192.168.1.1/~/git/projectname.git --depth 1 "
Customize or add to the Magento topLinks ( top.links )
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="root">
<reference name="top.links">
<!-- Add custom links. Pretty self-explanatory.
Dig into app/code/core/Mage/Page/Block/Template/Links.php for more info -->
<action method="addLink" translate="label title">
<label>About Us</label>
<url>about</url> <!-- can use full url also -->
Part 1 - Ubuntu
Stick in the disc, start your computer and press F12 during boot, then select to boot from cd ( this step may be different for your computer )
The install will take a good 20 minutes..
app/code/core//Mage/Admin/Model/Session.php: Mage::dispatchEvent('admin_session_user_login_success', array('user' => $user));
app/code/core//Mage/Admin/Model/Session.php: Mage::dispatchEvent('admin_session_user_login_failed',
app/code/core//Mage/Admin/Model/User.php: Mage::dispatchEvent('admin_user_authenticate_before', array(
app/code/core//Mage/Admin/Model/User.php: Mage::dispatchEvent('admin_user_authenticate_after', array(
Here is fast and easy way to install Git on Centos 5.7.
1. Get the EPEL release for Centos 5.
2. Install git, git-daemon using yum
sudo /usr/local/mysql/support-files/mysql.server restart
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->addAttributeToFilter('sku', array('n2610','bb8100'));
$items = $collection->getItems();
echo count($collection);
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->addAttributeToFilter(
array(
array('attribute'=>'sku','eq'=>"n2610"),
array('attribute'=>'sku','eq'=>"bb8100")
));
$items = $collection->getItems();
echo count($collection);