Magento - kreiranje nove shipping metode
1 naročnik
1 naročnik
Imam teazavo pri kreiranju nove shipping metode v Magentu. Ko je novi modul aktiviran se checkot proces ustavi pred korakom za izbiro nacina dostave in ne gre vec naprej. Mislim da je tezava v config.xml oziroma konkretno v definiciji poti do shipping modela. To je moj config.xml:
<?xml version="1.0"?>
<config>
<modules>
<Devpassion_Osobno>
<version>0.1.0</version>
</Devpassion_Osobno>
</modules>
<global>
<models>
<devpassionosobno>
<class>DevpassionOsobnoModel</class>
</devpassionosobno>
</models>
<resources>
<devpassionosobno_setup>
<setup>
<module>DevpassionOsobno</module>
</setup>
<connection>
<use>coresetup</use>
</connection>
</devpassionosobno_setup>
</resources>
</global>
<default>
<carriers>
<devpassionosobno>
<active>1</active>
<model>DevpassionOsobno/carrierosobno</model>
<name>Devpass Osobno</name>
<title>Osobno preuzimanje</title>
</devpassionosobno>
</carriers>
</default>
poskusil sem tudi z
<default>
<carriers>
<devpassionosobno>
<active>1</active>
<model>devpassionosobno/carrier_osobno</model>
<name>Devpass Osobno</name>
<title>Osobno preuzimanje</title>
</devpassionosobno>
</carriers>
</default>
Dejanska pot do modela pa je
\app\code\local\Devpassion\Osobno\Model\Carrier\Osobno.php.
In se error iz log reporta, k se pojavi:
ERR (3): Warning: include(Mage/Devpassion/Osobno/Model/Carrier/Osobno.php) [function.include]: failed to open stream: No such file or directory in /home/devpass/public_html/testmagento/lib/Varien/Autoload.php on line 93 2013-05-31T20:20:50+00:00