magento

Magento: Category list

./app/design/frontend/default/default/template/catalog/navigation/category_list.phtml
<?php
$URL="http://www.panticz.de/sites/default/files/magento/category/category_list.phtml";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

cms include php template
{{block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/category_list.phtml" cat_id=2227}}

CSS
.category_list ul {
height: 120px;
margin-bottom: 15px;
}

.category_list li {
float: left;
width: 250px;
}

Magento: CMS extension

./app/design/frontend/default/default/template/ebook/view.php
<?php
$URL="http://www.panticz.de/sites/default/files/magento/cms/view.php";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

./app/add.php
<?php
$URL="http://www.panticz.de/sites/default/files/magento/cms/add.php";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

./app/del.php
<?php
$URL="http://www.panticz.de/sites/default/files/magento/cms/del.php";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

cms include php template
{{block type='core/template' template='ebook/view.php' filter='ebooks'}}

cms search
./app/design/frontend/default/default/template/cmssearch/result.phtml

Magento: Vertical Category Navigation (RicoNeitzel_VertNav)

Fix VertNav Category selection
<?php
$URL="http://www.panticz.de/sites/default/files/magento/VertNav/VertNav_getCurrentCategory.diff";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

remove duplicate base files
rm -r /var/www/app/design/frontend/base/default/template/vertnav/

Links
http://www.magentocommerce.com/magento-connect/vertical-navigation-with-css-classes.html - Download on Magento Connect
http://www.magentocommerce.com/boards/viewthread/244440/#t359105 - Bug report "Blocks HTML output cache error"

Magento: featured items

./app/design/frontend/default/default/template/catalog/product/featured.phtml
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/featured.phtml";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Create cms page
Admin > CMS > Pages > Add new page
Page Title: featured
URL Key: featured
Content: {{block type="featured/featured" name="product_featured" as="product_featured" template="catalog/product/featured.phtml"}}

view on other page
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/featured.view.phtml";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Links
http://inchoo.net/ecommerce/magento/featured-products-on-magento-frontpage/

Magento Shadowbox (Rewrite EasyLightBox to Shadowbox)

# install easy light box
http://www.magentocommerce.com/magento-connect/TemplatesMaster/extension/1487/magento-easy-lightbox

# xml
edit
./app/design/frontend/default/default/layout/easylightbox.xml
replace
easylightbox
to
shadowbox

# phtml
copy
./app/design/frontend/default/default/template/easylightbox/media.phtml
to
./app/design/frontend/default/default/template/shadowbox/media.phtml
edit or download
http://www.panticz.de/sites/default/files/magento/shadowbox/media.phtml

# js
copy
./custom/shadowbox/shadowbox.js
to

Fix Magento order tax view

mkdir -p ./app/design/frontend/default/default/template/tax/order
cp ./app/design/frontend/base/default/template/tax/order/tax.phtml ./app/design/frontend/default/default/template/tax/order
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/tax/tax.phtml.diff";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

mkdir -p ./app/design/frontend/default/default/template/sales/order/
cp ./app/design/frontend/base/default/template/sales/order/totals.phtml ./app/design/frontend/default/default/template/sales/order
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/tax/totals.phtml.diff";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>