tajul_ashyqin:
I managed to login to my admin page but somehow when I tried to login to the supplier account to test it out, the following error occured :wacko: ;
Parse error: parse error in c:\program files\easyphp1-8\www\v135\supplierinterface\includes\classes\suppliers_classes.php on line 567
I did the full installation of the mod... somehow there was a lot of parses error in the suppliers_classes.php file...
melbournesigns:
Hi Choong
I was told it was the version of PHP i was running. My version is 4 point something and I needed to upgrade to php5.
I didn't end up using the zen cart for this site as I didnt need a shopping cart for the site i was building, just needed a site multiple merchants could update.
Regards
Alem
cafe99:
Hi ,
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/alem/public_html/group/admin/includes/classes/suppliers_classes.php on line 665
I have the same problem as you. Did you manage to solve it? Pls help.
Thanks!
Choong Leng
I have solved the problem.
Please find the code in this both supplierinterface/includes/classes/ suppliers_classics.php and
chinamanager/includes/classes/suppliers_classics.php
arround 660
and change to ```
function get_parent_supplier(){
if(is_object($this->parent_group)){
if(is_object($this->parent_supplier)){
return $this->parent_supplier;
} else {
$value = $this->parent_group->get_parent_supplier();
$this->parent_supplier = new supplier($value->supplier_id);
return $this->parent_supplier;
}
} else {
$this->parent_group = new supplier_admin_group($this->supplier_admin_group_id);
$value = $this->parent_group->get_parent_supplier();
$this->parent_supplier = new supplier($value->supplier_id);
return $this->parent_supplier;
}
}
and arround 685 you need change to code to
function supplier_admin_account_enabled(){
$title = $this->get_parent_group();
$value = $this->get_parent_supplier();
if($this->supplier_admin_account_enabled && $title->supplier_admin_group_enabled && $value->supplier_enabled){
return true;
} else {
return false;
}
}
and
arround line 695
function supplier_admin_account_disabled(){
$parent = $this->get_parent_group();
$supplier = $this->get_parent_supplier();
if($this->supplier_admin_account_enabled && $parent->supplier_admin_group_enabled && $supplier->supplier_enabled){
return false;
} else {
return true;
}
}
Now it can be used in PHP 4 enviroment.
Since i can go in ot the supplier interface ,
I still can not enable it to work..
There only i interface. all the menu can not be click..
ANy body have ideas. about that..
I hope people who interested in this mod can help each other and work it out..
Thanks everybody.
Seems the orginal author wont visit here any more , SO poor ..