Magento: Unterschied zwischen den Versionen
K (→Basics) |
K (→Extensions) |
||
Zeile 28: | Zeile 28: | ||
<br> | <br> | ||
= Anpasungen = | |||
== 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"}} <!--{{block type="catalog/product_list" template="catalog/product/list.phtml"}}--></div></source> | |||
Design: | |||
<source lang="xml"><reference name="content"> | |||
<block type="cms/block" name="cms.versandkosten"> | |||
<action method="setBlockId"><block_id>versandkosten</block_id></action> | |||
</block> | |||
</reference></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> | |||
== LightBox NOT NEEDED ANYMORE == | |||
Erst das 2.Bild anzeigen (erstes = zweites) | |||
./design/frontend/default/default/template/easylightbox/media.phtml | |||
<source lang="php"> | |||
... | |||
<?php $dummy_counter = 0 ; only show second pic, not the first one ?> | |||
<div class="more-views"> | |||
<h4><?php echo $this->__('More Views') ?></h4> | |||
<ul> | |||
<?php foreach ($this->getGalleryImages() as $_image): ?> | |||
<?php | |||
if ($dummy_counter == 0){ | |||
$dummy_counter = 1; | |||
}else{ | |||
$subtitle = $this->htmlEscape($_image->getLabel()); | |||
if(($_lightboxConfig['productName'] != 0) && empty($subtitle)): | |||
$subtitle = $_product->getName(); | |||
endif; | |||
?> | |||
... | |||
</source> | |||
== Attributes == | |||
gewicht nicht in product-view anzeigen | |||
global nicht anzeigen lassen, under Attributes | |||
== GoogleAnalyticsPlus NOT NEEDED ANYMORE == | |||
add anonymizer | |||
./code/community/Fooman/GoogleAnalyticsPlus/Block/Ga.php | |||
<source lang="php">if($this->getDomainName()){ | |||
$html.=' | |||
_gaq.push(["_setAccount", "' . $this->getAccount() . '"],["_gat._anonymizeIp"], ["_setDomainName","'.$this->getDomainName().'"], ["_trackPageview","' | |||
.$this->getPageName().'"]); | |||
'; | |||
}else{ | |||
$html.=' | |||
_gaq.push(["_setAccount", "' . $this->getAccount() . '"],["_gat._anonymizeIp"], ["_trackPageview","'.$this->getPageName().'"]);'; | |||
} | |||
</source> | |||
== 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 | |||
== 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 | |||
= Extensions = | = Extensions = |
Version vom 24. August 2014, 20:38 Uhr
Magneto ist eine OpenSource-Shop-Lösung für PHP5/Mysql: http://www.magentocommerce.com/
Basics
HowTos
- 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.tangkoko.com/direct-download-magento-extension
- 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
Anpasungen
cronjob
_gbase.php und sitemap.xml
Button-Lösung
http://www.commercers.com/blog/?p=1000
/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>
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"}} <!--{{block type="catalog/product_list" template="catalog/product/list.phtml"}}--></div>
Design:
<reference name="content">
<block type="cms/block" name="cms.versandkosten">
<action method="setBlockId"><block_id>versandkosten</block_id></action>
</block>
</reference>
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; ?>
LightBox NOT NEEDED ANYMORE
Erst das 2.Bild anzeigen (erstes = zweites) ./design/frontend/default/default/template/easylightbox/media.phtml
...
<?php $dummy_counter = 0 ; only show second pic, not the first one ?>
<div class="more-views">
<h4><?php echo $this->__('More Views') ?></h4>
<ul>
<?php foreach ($this->getGalleryImages() as $_image): ?>
<?php
if ($dummy_counter == 0){
$dummy_counter = 1;
}else{
$subtitle = $this->htmlEscape($_image->getLabel());
if(($_lightboxConfig['productName'] != 0) && empty($subtitle)):
$subtitle = $_product->getName();
endif;
?>
...
Attributes
gewicht nicht in product-view anzeigen global nicht anzeigen lassen, under Attributes
GoogleAnalyticsPlus NOT NEEDED ANYMORE
add anonymizer ./code/community/Fooman/GoogleAnalyticsPlus/Block/Ga.php
if($this->getDomainName()){
$html.='
_gaq.push(["_setAccount", "' . $this->getAccount() . '"],["_gat._anonymizeIp"], ["_setDomainName","'.$this->getDomainName().'"], ["_trackPageview","'
.$this->getPageName().'"]);
';
}else{
$html.='
_gaq.push(["_setAccount", "' . $this->getAccount() . '"],["_gat._anonymizeIp"], ["_trackPageview","'.$this->getPageName().'"]);';
}
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
#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
Nice to have
Magento adding a section to product-collateral via local xml not working correctly
Extensions
Themes
Tips
- Google Base/Merchant Center and this
- How To Setup Google Adwords Conversion Tracking
- Performance...
- Performance, cache extensions...
- http://www.webshopnews.net/2008/05/magento-basis-wissen.html
- Startseite neue Produkte anzeigen
- Top-Produkte auf der Startseite
- Produkte auf Stratseite anzeigen lassen
- Beliebteste Suchwörter auf Startseite
- Magento SEO
- Product Images Not Showing After Import
- Subcategories for a parent category
- Display best selling product in magento (based on order_qty.) or this
- Remove Product Tags from Magento Product Page
Tools