Zur Navigation springen Zur Suche springen

Magneto ist eine OpenSource-Shop-Lösung für PHP5/Mysql:

1 Basics

2 HowTos

3 Anpasungen

3.1 php 5.6 - Use of iconv.internal_encoding is deprecated

quick fix:

3.2 cronjob

_gbase.php und sitemap.xml

3.3 Button-Lösung

3.4 footer anpassen

/app/design/frontend/default/xxx/template/page/html$ vi footer.phtml

3.5 demo-bilder weg machen, in der catalogansicht


<?xml version="1.0"?>
<layout version="0.1.0">
<reference name="right">
<!-- Callouts: Oder auch der 1800 Werbeblock raus -->
<remove name="right.permanent.callout" />

<reference name="left">
<!-- Callouts raus -->
<remove name="left.permanent.callout" />

3.6 kategorien anzeigen: links im menu

mkdir app/design/frontend/default/xxx/template/catalog
mkdir app/design/frontend/default/xxx/template/catalog/navigation
cp -a ../old_shop/bsshop_old/app/design/frontend/default/xxx/template/catalog/navigation/left.phtml app/design/frontend/default/xxx/template/catalog/navigation/


3.7 Mein Benutzerkonto: Verkaufsbedingungen entfernt


<!--    <action method="addLink" translate="label"><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements<

3.8 Mein Benutzerkonto: Wiederkehrende Profile entfernt


<!-- <action method="addLink" translate="label"><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles<

3.9 Warenkorb-Details

Verkäufe ->Zur Kasse ->Warenkorb ->Additional informations

3.10 404-Seite

3.11 Home: Oberkategorien anzeigen und Versandkosten auf Homepage anzeigen


<div class="page-title">{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list.phtml"}}</div>


<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php $open = $this->isCategoryActive($_category); ?>
$layer = Mage::getSingleton('catalog/layer');
if ($immagine = $this->getCurrentCategory()->getImageUrl()):

<div style="float: left; padding-right: 40px; text-align: center;">
                <div class="linkimage">
                    <h2><a href="<?php echo $this->getCategoryUrl($_category)?>"><?php echo $_category->getName()?></a
                        <a href="<?php echo $this->getCategoryUrl($_category)?>">
                        <img src="<?php echo $immagine ?>" alt="<?php echo $this->htmlEscape($this->getCurrentCategory
()->getName()) ?>" width="400px" xheight="135" /></a>
<?php endif; ?>
<?php endforeach; ?>

with Patch SUPEE-6788 you get

ERR (3): Notice: Undefined variable: block  in /app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 182

Solution: add catalog/navigation to allowed blocks (Admin ->Permissions ->Block)

3.12 Attributes

gewicht nicht in product-view anzeigen global nicht anzeigen lassen, under Attributes

3.13 Security problem: block_name has not been whitelisted. (Magento system.log)


Solution: add block to "System > Permissions > Blocks"

3.14 Warning array_key_exists() in system.log

Warning: array_key_exists() expects parameter 2 to be array, null given  in htdocs/app/code/core/Mage/Captcha/Model/Observer.php on line 166


Comment this line (Please note, there are 2 places on this file where you need to make this change)

//$login = array_key_exists('username', $loginParams) ? $loginParams['username'] : null;

and replace with this line
$login = array_key_exists('username', array($loginParams)) ? $loginParams['username'] : null;

3.15 Quickfix: Magento-Rundungsfehler im Shop Frontend beheben (für Magento 1.6 und 1.7)

/app/code/core/Mage/Core/Model/Store.php,Bei Magento 1.7 so um die Zeile 945

return round($price, 2);

return round($price, 4);

3.16 Default layout für alle Seiten 2spalten page.xml

under <default> , edit the first block you see there:

<block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">


<block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml">

3.17 Email-Template Passwd Reset

3.18 .htaccess

301... from old to new url

        RewriteEngine on

        #redirect to main domainname
        RewriteCond %{HTTP_HOST} !^$ [NC]
        RewriteRule ^(.*)$$1 [R,L]

        #redirect to https
        RewriteCond %{HTTPS} off
        RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

        #redirect old shop urls to new urls
        RewriteRule ^/oldshop/index.php/cPath/28 /product1.html [R=301,L]
        RewriteRule ^/oldshop/index.php/cPath/27 /product2.html [R=301,L]

3.19 PopUp-Template (used for tweaksgerman/agreement/view)

add class="main-container" to div

cp app/design/frontend/base/default/template/page/popup.phtml app/design/frontend/default/<LAYOUT>/template/page/

3.20 Nice to have

Magento adding a section to product-collateral via local xml not working correctly

4 Extensions

see Magento/Extensions

5 Themes

6 Tips

7 Tools