I have the last VQmod on Opencart 2.0.3.1
An Opencart extension, Delivery date Wizard, doesn't work with VQmod.
http://www.opencart.com/index.php?route ... load_id=41
The developer said :
As soon as I uncomment the xml file, deliverydateswizard.xml, I get this if I want to access to the admin :In your case, the mods work ok, but for an unknown reason are processed twice and therefore the same code is added twice t the VqMod cache.
Fatal error: Cannot redeclare ModelSaleOrder::loadDDWModel() in /home/myaccount/public_html/mysite/vqmod/vqcache/vq2-vqmod_vqcache_vq2-admin_model_sale_order.php on line 173
This line 173 is : public function loadDDWModel()
And it seems actually to be loaded twice :
Code: Select all
public function loadDDWModel()
{
if (!isset($this->ddwModel))
if (!$this->ddwModel instanceof DDWModel) {
include_once("../system/library/deliverydateswizard/bootstrap.php");
$this->load->model('deliverydateswizard/deliverydateswizard');
$this->ddwModel = $this->model_deliverydateswizard_deliverydateswizard;
}
}
public function loadDDWModel()
{
if (!isset($this->ddwModel))
if (!$this->ddwModel instanceof DDWModel) {
include_once("../system/library/deliverydateswizard/bootstrap.php");
$this->load->model('deliverydateswizard/deliverydateswizard');
$this->ddwModel = $this->model_deliverydateswizard_deliverydateswizard;
}
}
But no problem in frontend.
Is there somebody to help me to find a solution ?