magento

Magento Bildwechsel per Mouseover und onclick per Popup

Magento besitzt ja eigentlich alles was das Herz begehrt, doch ein paar der Default eingestellten dinge sind nicht optimal. Darunter gehört die nervige Eigenschaft, dass man weitere Bilder erst in der Bildvorschau angezeigt bekommt, wenn man diese Anklickt. Normalerweise ist jeder gewöhnt, dieses schon vorher per Mouseover zu erhalten.

Angehängt an diesen Artikel ist ein ersatz für die Datei media.phtml (mit rechtsklick -> Speichern unter, sichern) aus dem /template/catalog/product/view verzeichnises des jeweiligen Themes.

Fatal error: Call to a member function toHtml() on a non-object app/code/core/Mage/Core/Model/Layout.php on line 529

If you get a Error like
"Fatal error: Call to a member function toHtml() on a non-object" which depends on the line: app/code/core/Mage/Core/Model/Layout.php on line 529 of a 1.4.X Magento version you have to search after this lines in your page.xml:

search this line:

<block type="core/profiler" output="toHtml"/>

and change it so this:

<block type="core/profiler" output="toHtml" name="core_profiler"/>

Keep in mind that your page.xml can be stored under:

Magento Shop eröffnet

Seit einiger Zeit arbeite ich mit Magento und modifiziere dieses je nach Kundenwünschen.

Nachdem schon viele große unternehmen auf dieses System setzen, bestätigt dieses auch nur meine sehr positive Meinung zu dem System. Wer ein agiles und stabiles System zum arbeiten benötigt, kommt an Magento nicht mehr vorbei.

Wie flexibel Magento ist, kann man an der neuen Shopseite des Sturm Energieausweises sehen. Durch die Erweiterung des Grundsystems um einen neuen Datentyp, war es möglich komplexe Abfragen (Formulare) mit dem System zu verwalten.

Connect OpenERP with Magento (with the new connector)

easiest for magento is the magentoconnect and use the following extensionkey:
magento-community/Openlabs_OpenERPConnector
if you need a more up to date version, check out:

bzr co lp:magentoerpconnect/magento-module

(bzr is a small version controll system; on debian based machines you can install it by aptitude install bzr).

---- swtich to console

i made up a new directory (just to have seperated whats from my package system and whats from bzr as source).

mkdir additional
cd additional

moving magento

Moving magento to other server is quite a hard task.
You should start with a backup from the Database.
For me the internal backup system under
"System -> Tools -> Backup" works best for me.
A MySQL Database dump would be possible too:

mysqldump -h HOST -u USER -pPASSWORD DBTABLE > /tmp/installedDB.sql

* switch off caching / compiled mode

* copy your files
* install DB (use PHPMyAdmin and import the data)
- search the database for basedir (you will find it in the core_config_data) and rewrite the values for

Disable the Registration from Magento

here you find a solution to prevent the Registration on Magento Pages

modify your
app/design/frontend/{themename}/{templatename}/template/checkout/onepage/login.phtml

<input type="hidden" name="checkout_method" id="login:guest" value="guest" checked="checked" />
<script type="text/javascript">
Event.observe(window, 'load', function() {
// fix for IE
var cb = $("login:guest");
cb.checked = true;

checkout.setMethod();
});
</script>

magento tax / MwSt im Checkout per Default anzeigen

to display the Tax by default in the magento checkout process you should write a new file (or put a file in your skin directory) which alters this file:

app/design/frontend/default/default/template/checkout/total/tax.phtml


<tr class="tax-details-<?php echo $taxIter; ?> tax-details<?php if ($isTop): echo ' tax-details-first'; endif; ?>" style="display:hidden;">

to


<tr class="tax-details-<?php echo $taxIter; ?> tax-details<?php if ($isTop): echo ' tax-details-first'; endif; ?>" style="display:block;">

Magento 1.2 Update failes and MagentoConnect is unusable now

There are two differend methods to fix this issues. A softer way and a more "brutal" way. I would suggest to try it the "soft" way, cause all changes are easy to undo, if you get more error's

The Soft way (doesn't need console access):

1. Edit /downloader/Maged/Controller.php Line: 384
2. replace "return Mage::isInstalled(); " with "return true;"
3. Save and Close the file
4. Edit /downloader/Maged/Session.php Line: 33
5. replace "if (class_exists('Mage') && Mage::isInstalled()) {" with "return true;"

FTP Client stürzt beim Löschen von Magento ab (FTP Mounten)

Mir ist es jetzt mit mehrere FTP Clients passiert, dass beim Löschen des Magentoverzeichnisses auf dem Webserver jeweils der FTP Client abstürtzt (gFTP wortkarg wie immer und KFTPGrabber hat wenigstens noch ein SIGABR erhalten, auf 2 Rechnern getestet).

Ich gehe davon aus, dass es aufgrund des vorcachens der Dateiliste der FTP Clients liegt. Diese versuchen den gesamten Verzeichnisbaum von Magento einzulesen und jeweils zu speichern. Dabei handelt es sich sich um über ~15k Objekte, was anscheinend für die zwei Programme etwas zu viel war.

magento bundle items images

hier eine kleine Erweiterung für das Magento shopping system.

Es erlaubt einem bei Bundled items jeweils das passende Thumbnail für die einzelbestandteile einzublenden. Ein sehr kleiner teil nur, aber dafür ist es um so nützlicher, wenn man die Optionen visualisieren möchte.

Inhalt abgleichen