Magento: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
K (pics)
K (→‎HowTos: dd)
 
(33 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 6: Zeile 6:


*[http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/so_you_want_a_real_store_and_not_a_demo Setting Up Magento: So you want a REAL store and not a demo?]<br>  
*[http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/so_you_want_a_real_store_and_not_a_demo Setting Up Magento: So you want a REAL store and not a demo?]<br>  
*[http://www.magentocommerce.com/magento-connect/Jan-Markus+Wilhelm/extension/2718/migrate-xt-commerce-to-magento Migrate_XT_Commerce_to_Magento]<br>
*[http://www.magentocommerce.com/wiki/groups/227/installing_magento_via_shell_ssh Installing Magento Via SSH]<br>
*[http://www.magentocommerce.com/wiki/groups/227/installing_magento_via_shell_ssh Installing Magento Via SSH]<br>


<br>  
<br>
 
 
= HowTos<br>  =
 
*http://docs.magentocommerce.com/
*http://www.magentocommerce.com/design_guide/articles/intro-to-layouts
*http://www.yireo.com/tutorials/magento
*http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/
*Android/iPads... http://magebase.com/magento-tutorials/magento-design-exceptions-explained/
*http://www.matthias-zeis.com/archiv/15-nuetzliche-kostenlose-extensions-fuer-magento-1-5
*http://www.fabrizio-branca.de/magento.html
*http://inchoo.net/ecommerce/magento/using-local-xml-for-overriding-or-updating-xml-structure/
*http://www.expertwebadvisor.com/related-products-on-product-description-page-in-magento/
*http://www.expertwebadvisor.com/display-subcategory-listing-with-the-category-images-in-magento/
*http://www.expertwebadvisor.com/solving-the-customer-login-page-title-in-all-pages-in-magento/
*http://www.excellencemagentoblog.com/magento-part2-series-layouts
 
<br>
 
= Anpasungen =
 
 
== php 5.6 - Use of iconv.internal_encoding is deprecated ==
 
quick fix: https://magento.stackexchange.com/a/92206
 
 
== cronjob ==
_gbase.php und sitemap.xml
 
== Button-Lösung ==
http://www.commercers.com/blog/?p=1000
 
==  footer anpassen ==
/app/design/frontend/default/xxx/template/page/html$ vi footer.phtml
 
==  demo-bilder weg machen, in der catalogansicht ==
http://www.webguys.de/magento/layout-updates-uber-die-local-xml/
 
app/design/frontend/default/xxx/layout/local.xml
<source lang="xml"><?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="right">
<!-- Callouts: Oder auch der 1800 Werbeblock raus -->
<remove name="right.permanent.callout" />
</reference>
 
<reference name="left">
<!-- Callouts raus -->
<remove name="left.permanent.callout" />
</reference>
</default>
</layout></source>
 
== kategorien anzeigen: links im menu ==
<source lang="bash">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/
</source>
 
app/design/frontend/default/xxx/template/catalog/navigation/left.phtml
 
==  Mein Benutzerkonto: Verkaufsbedingungen entfernt ==
/app/design/frontend/default/xxx/layout/sales/billing_agreement.xml
<source lang="xml"><!--    <action method="addLink" translate="label"><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements<
/label></action>--></source>
 
== Mein Benutzerkonto: Wiederkehrende Profile entfernt ==
/app/design/frontend/default/xxx/layout/sales/recurring_profile.xml
<source lang="xml"><!-- <action method="addLink" translate="label"><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles<
/label></action>--></source>
 
== Warenkorb-Details ==
Verkäufe ->Zur Kasse ->Warenkorb
->Additional informations
 
 
== 404-Seite ==
 
 
== Home: Oberkategorien anzeigen und Versandkosten auf Homepage anzeigen ==
CMS-Inhalt:
<source lang="html4strict">
<div class="page-title">{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list.phtml"}}</div></source>
 
app/design/frontend/default/xxx/template/catalog/category/list.phtml<br>
<source lang="php"><?php foreach ($this->getStoreCategories() as $_category): ?>
<?php $open = $this->isCategoryActive($_category); ?>
<?php
$cur_category=Mage::getModel('catalog/category')->load($_category->getId());
$layer = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($cur_category);
if ($immagine = $this->getCurrentCategory()->getImageUrl()):
?>   
 
<div style="float: left; padding-right: 40px; text-align: center;">
                <div class="linkimage">
                    <p><br/>
                    <h2><a href="<?php echo $this->getCategoryUrl($_category)?>"><?php echo $_category->getName()?></a
></h2><br/>
                        <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>
                </p><br/><br/>
                </div>
</div>
<?php endif; ?>
<?php endforeach; ?></source>
 
with Patch SUPEE-6788 you get
<syntaxhighlight lang="php">
ERR (3): Notice: Undefined variable: block  in /app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 182
</syntaxhighlight>
 
Solution: add catalog/navigation to allowed blocks (Admin ->Permissions ->Block)
 
== Attributes ==
gewicht nicht in product-view anzeigen
global nicht anzeigen lassen, under Attributes
 
 
== Security problem: block_name has not been whitelisted. (Magento system.log) ==
see http://magento.stackexchange.com/questions/98644/debug-7-security-problem-block-name-has-not-been-whitelisted-magento-syste
 
Solution: add block to "System > Permissions > Blocks"
 
== Warning array_key_exists() in system.log ==
<syntaxhighlight lang="php">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</syntaxhighlight>
 
Solution:
<syntaxhighlight lang="php">
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;
</syntaxhighlight>
 
== Quickfix: Magento-Rundungsfehler im Shop Frontend beheben (für Magento 1.6 und 1.7) ==
http://www.online-verkaufen.ch/2012/06/27/quickfix-magento-rundungsfehler-im-shop-frontend-beheben-fur-magento-1-6-und-1-7/
 
/app/code/core/Mage/Core/Model/Store.php,Bei Magento 1.7 so um die Zeile 945
 
<source lang="php">
#raus
return round($price, 2);
 
#rein
return round($price, 4);</source>
 
 
== Default layout für alle Seiten 2spalten ==
http://stackoverflow.com/questions/7036938/set-default-magento-page-layout
page.xml
 
under <default> , edit the first block you see there:
<source lang="xml"><block type="page/html" name="root" output="toHtml" template="page/3columns.phtml"></source>
 
to
 
<source lang="xml"><block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml"></source>
 
 
== Email-Template Passwd Reset ==
http://www.magentocommerce.com/boards/viewthread/271221/
 
== .htaccess ==
301... from old to new url
 
<syntaxhighlight lang="apache">
        RewriteEngine on
 
        #redirect to main domainname
        RewriteCond %{HTTP_HOST} !^www.mainname.de$ [NC]
        RewriteRule ^(.*)$ https://www.mainname.de$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]
</syntaxhighlight>
 
== PopUp-Template (used for tweaksgerman/agreement/view) ==
add class="main-container" to div
<syntaxhighlight lang="bash">cp app/design/frontend/base/default/template/page/popup.phtml app/design/frontend/default/<LAYOUT>/template/page/</syntaxhighlight>
 
 
== Nice to have ==
 
Magento adding a section to product-collateral via local xml not working correctly<br>
 
http://stackoverflow.com/questions/13478458/magento-adding-a-section-to-product-collateral-via-local-xml-not-working-correct


= Plugins =
= Extensions =
see [[Magento/Extensions]]


*[http://www.magentocommerce.com/extension/114/os-commerce-import OSC-Extension]<br>
*[http://www.magentocommerce.com/wiki/creating_an_oscommerce_import_profile Creating an osCommerce DataBase Import Profile]<br>
*[http://www.bessieundmarkus.de/index.php?option=com_content&view=article&id=124:newleleasextc&catid=32:magento&Itemid=71 NEW OSC-Import]
*[http://www.magentocommerce.com/magento-connect/symmetrics+GmbH/extension/1764/market-ready-germany Market Ready Germany] (zum Thema Gewicht:&nbsp;http://www.magentocommerce.com/boards/viewthread/51930/ )<br>
*[http://www.magentocommerce.com/extension/413/magento-community-modules--german-germany-language-pack German (Germany) Language Pack]<br>
*[http://www.digitalmanufaktur.com/magento/performance-de/index.html Performance Cache]
*[http://www.magentocommerce.com/magento-connect/Theodore+Doan/extension/4124/my_iupsell#overview Upsell products with scroller]<br>
*[http://www.magentocommerce.com/extension/specs/457/fooman-speedster#specs Fooman Speedster (compress js/css)]<br>
*[http://yoast.com/tools/magento/canonical/ Canonical URL’s for Magento]<br>
*[http://www.magentocommerce.com/magento-connect/Asia+Connect+Group%E2%84%A2/extension/1710/free-cms-block-frontend-features Easy CMS/Block]<br>
*[http://www.magentocommerce.com/magento-connect/CyberCit%C3%A9+SEO+Agency/extension/2165/cybercit--google-analytics-advanced-tracking#overview CyberCité Google Analytics Advanced Tracking]<br>
*[http://www.magentocommerce.com/magento-connect/IDEALIAGroup/extension/1843/ig-lightbox IG LightBox]<br>
*[http://www.magentocommerce.com/magento-connect/TemplatesMaster/extension/1487/magento-easy-lightbox Magento Easy Lightbox] ([http://www.phpblogger.net/2007/07/10/lightbox-2-deutsch/ german pics])<br>


<br>
<br>
Zeile 37: Zeile 221:
= Tips  =
= Tips  =


*[http://tomriff.blogspot.com/2010/10/rss-feed-fur-google-base-merchant.html Google Base/Merchant Center] and [http://nok-out.de/2010/10/google-merchant-center-und-magento/ this]
*[http://www.noamdesign.com/blog/magento-how-to-setup-google-adwords-conversion-tracking/ How To Setup Google Adwords Conversion Tracking]<br>
*[http://www.magentocommerce.com/blog/comments/understanding-magento-scalability-and-performance-1/ Performance...]  
*[http://www.magentocommerce.com/blog/comments/understanding-magento-scalability-and-performance-1/ Performance...]  
*[http://www.blastedthing.com/magento/questions/mag-9-methods-to-speed-up-magento-a-guide-to-making-magento-faster/ Performance, cache extensions...]
*[http://www.blastedthing.com/magento/questions/mag-9-methods-to-speed-up-magento-a-guide-to-making-magento-faster/ Performance, cache extensions...]  
*http://www.webshopnews.net/2008/05/magento-basis-wissen.html<br>
*http://www.webshopnews.net/2008/05/magento-basis-wissen.html<br>
*[http://blog.ingeniumdesign.de/2009/11/07/magento-startseite-neue-produkte-anzeigen/ Startseite neue Produkte anzeigen]<br>
*[http://community.oreilly.de/blog/2009/09/09/magento-produkte-startseite/ Top-Produkte auf der Startseite]<br>
*[http://www.magentocommerce.com/boards/viewthread/5147/ Produkte auf Stratseite anzeigen lassen]<br>
*[http://www.magentocommerce.com/boards/viewthread/38321/ Beliebteste Suchwörter auf Startseite]<br>
*[http://yoast.com/articles/magento-seo/ Magento SEO]
*[http://www.e-commercewebdesign.co.uk/blog/magento-tutorials/product-images-not-showing-after-import.php Product Images Not Showing After Import]<br>
*[http://www.magentocommerce.com/boards/viewthread/19476/#t76416 Subcategories for a parent category]<br>
*[http://www.magjournal.com/2009/07/display-best-selling-product-in-magento/ Display best selling product in magento (based on order_qty.)] or [http://www.magentocommerce.com/boards/viewthread/4454/ this]<br>
*[http://www.blastedthing.com/magento/product-page/mag-remove-product-tags-from-magento-product-page/ Remove Product Tags from Magento Product Page]<br>


<br>  
<br>  


[[Category:WWW]] [[Category:PHP]]
<br>
 
= Tools<br>  =
 
 
<br>
 
<br>
 
[[Kategorie:Magento]]
[[Kategorie:PHP]]

Aktuelle Version vom 17. Februar 2019, 02:07 Uhr

Magneto ist eine OpenSource-Shop-Lösung für PHP5/Mysql: http://www.magentocommerce.com/


Basics



HowTos


Anpasungen

php 5.6 - Use of iconv.internal_encoding is deprecated

quick fix: https://magento.stackexchange.com/a/92206


cronjob

_gbase.php und sitemap.xml

Button-Lösung

http://www.commercers.com/blog/?p=1000

footer anpassen

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

demo-bilder weg machen, in der catalogansicht

http://www.webguys.de/magento/layout-updates-uber-die-local-xml/

app/design/frontend/default/xxx/layout/local.xml

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

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

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/

app/design/frontend/default/xxx/template/catalog/navigation/left.phtml

Mein Benutzerkonto: Verkaufsbedingungen entfernt

/app/design/frontend/default/xxx/layout/sales/billing_agreement.xml

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

Mein Benutzerkonto: Wiederkehrende Profile entfernt

/app/design/frontend/default/xxx/layout/sales/recurring_profile.xml

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

Warenkorb-Details

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


404-Seite

Home: Oberkategorien anzeigen und Versandkosten auf Homepage anzeigen

CMS-Inhalt:

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

app/design/frontend/default/xxx/template/catalog/category/list.phtml

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

<div style="float: left; padding-right: 40px; text-align: center;">
                <div class="linkimage">
                    <p><br/>
                    <h2><a href="<?php echo $this->getCategoryUrl($_category)?>"><?php echo $_category->getName()?></a
></h2><br/>
                        <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>
                </p><br/><br/>
                </div>
</div>
<?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)

Attributes

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


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

see http://magento.stackexchange.com/questions/98644/debug-7-security-problem-block-name-has-not-been-whitelisted-magento-syste

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

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

Solution:

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;

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

http://www.online-verkaufen.ch/2012/06/27/quickfix-magento-rundungsfehler-im-shop-frontend-beheben-fur-magento-1-6-und-1-7/

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

#raus
return round($price, 2);

#rein
return round($price, 4);


Default layout für alle Seiten 2spalten

http://stackoverflow.com/questions/7036938/set-default-magento-page-layout page.xml

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

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

to

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


Email-Template Passwd Reset

http://www.magentocommerce.com/boards/viewthread/271221/

.htaccess

301... from old to new url

        RewriteEngine on

        #redirect to main domainname
        RewriteCond %{HTTP_HOST} !^www.mainname.de$ [NC]
        RewriteRule ^(.*)$ https://www.mainname.de$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]

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/


Nice to have

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

http://stackoverflow.com/questions/13478458/magento-adding-a-section-to-product-collateral-via-local-xml-not-working-correct

Extensions

see Magento/Extensions



Themes


Tips



Tools