Forums / All Other Contributions/Addons / DropShipping/Supplier Interface

DropShipping/Supplier Interface

Started by while_do_loop on 13 Oct 2006, 2:59 AM · Views: 19,829

Results 21 to 40 of 63
5 Mar 2007, 10:40 AM
#21
melbournesigns avatar

melbournesigns

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

DropShipping/Supplier Interface

Hi Everyone,

I am new to this forum, however I am having the same error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/alem/public_html/group/admin/includes/classes/suppliers_classes.php on line **665

Please help as it is driving me mad as I have been on this for days.

**

Regards
Alem

5 Mar 2007, 7:27 PM
#22
alex_crc avatar

alex_crc

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

I upgraded to PHP 5 and that error was gone. I suggest you do the same.

19 Mar 2007, 2:46 PM
#23
cafe99 avatar

cafe99

New Zenner

Join Date:
Jan 2007
Location:
Singapore
Posts:
12
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

Hi,

I have the same problem as you.  Did you manage to solve it? Pls help.

Thanks!

Choong Leng

19 Mar 2007, 2:49 PM
#24
cafe99 avatar

cafe99

New Zenner

Join Date:
Jan 2007
Location:
Singapore
Posts:
12
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

melbournesigns:

Hi Everyone,

I am new to this forum, however I am having the same error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/alem/public_html/group/admin/includes/classes/suppliers_classes.php on line **665

Please help as it is driving me mad as I have been on this for days.

**

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

6 Apr 2007, 12:12 AM
#25
melbournesigns avatar

melbournesigns

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

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

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

Regards
Alem

7 May 2007, 10:32 PM
#26
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

I found this on another thread, but I am not knowledgeable about php - don't know if a similar fix is possible for this dropshipping mod:-

Quote:
Originally Posted by Pierre
I installed the mods for the gift certificate, but I keep getting the error message:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /includes/classes/shopping_cart.php on line 383

I then overwrited the shopping_cart.php with the original one and the mod still didn't work. I tried this on new zen cart installations, and edited ones.

Can someone please give me some help on how to install the gv mod?

Hi there Pierre!

I discovered a similar problem when I moved to a server with an older php and MySQL, where the line
Code:
$mod_product_model = $db->Execute($mod_product_model_query)->fields['products_model'];must be changed to
Code:
$mod_product_model = $db->Execute($mod_product_model_query);
$mod_product_model = $mod_product_model->fields['products_model'];It seems that "$db->Execute" and "->fields" cant' be on the same line. You can try it your self or wait for an updated version to be posted shortly... The same kind of change needs to be on on several lines in shopping_cart.php and maybe in some other file.

Cheers

11 Jun 2007, 5:46 AM
#27
adam9110 avatar

adam9110

New Zenner

Join Date:
Jan 2006
Posts:
92
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

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 ..
11 Jun 2007, 9:03 AM
#28
adam9110 avatar

adam9110

New Zenner

Join Date:
Jan 2006
Posts:
92
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

Ok,,, no response here. just enquiry to other forum...

The problem has been sort out..

Now it can works on the PHP4 enviroment.

15 Jun 2007, 6:48 AM
#29
itpro2oo7 avatar

itpro2oo7

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

**Hi adam9110,

Thank for provide us a wonderful supplier utility.
I'm a PHP developer and use Zen-cart and osCommerce since 2005 for my clients.

I used supplier utility for one of my client and change the code in this both **** "**suppliers_classes.php" **as per your direction.

I faced some problem when I gone with supplier account (as a super admin) and click on Categories/Products, categories.php page load but after click on any link of this page like supplierinterface/categories.php?cPath=&cID=19&action=edit_category

I got a message "**ACCESS DENIED"

**Please help me to remove this problem.

Thanks in advance
Regards
Dinesh R Vyas

**

15 Jun 2007, 7:12 AM
#30
itpro2oo7 avatar

itpro2oo7

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

**Hi adam9110,

AS per my understanding some code still use for PHP 5, like in
****supplierinterface/categories.php around line 38

**if(!($supplier_admin_logged_in->get_parent_group()->has_access_to_task_code('SAT_CATEGORIESPRODUCTS'))){
zen_redirect(zen_href_link('accessdenied.php'));
}

if(!($supplier_admin_logged_in->get_parent_supplier()->has_access_to_category($current_category_id)) && $current_category_id != 0){
zen_redirect(zen_href_link('accessdenied.php'));
}

if($_GET['action'] == 'setflag' && !($supplier_admin_logged_in->get_parent_supplier()->supplier_provided_product($_GET['pID']))){
zen_redirect(zen_href_link('accessdenied.php'));
}
and ****supplierinterface/product.php around line 20if(isset($_GET['pID'])){
if(!($supplier_admin_logged_in->get_parent_supplier()->supplier_provided_product($_GET['pID']))){
zen_redirect(zen_href_link('accessdenied.php'));
}

 if($_GET['action'] == 'delete_product' || $_GET['action'] == 'delete_product_confirm'){
    if($deleteproducts_sat->supplier_admin_task_disabled()){
       zen_redirect(zen_href_link('taskdisabled.php'));
    }

    if(!($supplier_admin_logged_in->get_parent_group()->has_access_to_task_code('SAT_DELETEPRODUCTS'))){
       zen_redirect(zen_href_link('accessdenied.php'));
    }    
 }**

And PHP 4 compiler not execute such lines . Change required in all those files where used PHP5 style code. Same as you were previously ** **changed in **admin/includes/classes/suppliers_classes.php & supplierinterface/includes/classes/suppliers_classes.php.

Regards
Dinesh R Vyas

29 Aug 2007, 1:14 PM
#31
to_learn avatar

to_learn

New Zenner

Join Date:
Aug 2007
Posts:
1
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

Hi,

I have installed the package supplierinterface.20061018-2.tar on my Zen cart 1.3.7 and receive the following error message:

Warning: require(DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php) [function.require]: failed to open stream: No such file or directory in /home/tpzoocom/public_html/zencart/supplierinterface/includes/languages/english.php on line 50

Fatal error: require() [function.require]: Failed opening required 'DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tpzoocom/public_html/zencart/supplierinterface/includes/languages/english.php on line 50

Would anyone help me out on this please,

many thanks,

5 Sep 2007, 7:30 PM
#32
dannyd avatar

dannyd

Zen Follower

Join Date:
Apr 2005
Posts:
191
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

I have installed the supplier interface however I get the following eroror when loggin into the supplier admin interface:

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/virtual/site30/fst/var/www/html/cart/supplierinterface/includes/boxes/extra_boxes/categoriesproducts_catalog_dhtml.php on line 14

any idea what this be caused by ?

6 Sep 2007, 2:57 PM
#33
dannyd avatar

dannyd

Zen Follower

Join Date:
Apr 2005
Posts:
191
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

can anyone convert this line coded for php5 to php4 ??????
if($supplier_admin_logged_in->get_parent_group()->has_access_to_task_code('SAT_CATEGORIESPRODUCTS')){
$za_contents[] = array('text' => BOX_CATALOG_CATEGORIES_PRODUCTS, 'link' => zen_href_link(FILENAME_CATEGORIES, '', 'NONSSL'));

19 Dec 2007, 7:09 AM
#35
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

Has anyone installed this module successfully? Please advise. Thanks.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

1 Feb 2008, 2:08 AM
#36
embreak avatar

embreak

New Zenner

Join Date:
May 2007
Posts:
13
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

I am looking for this functionality as well however, am not a coder so happy to wait until stable... has anyone got to the stable stage with this module?

12 Mar 2008, 4:27 PM
#37
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

Has anyone implemented this successfully?

I've got it "working" but there appears to be no way, short of editing the DB directory to add tasks and authroize the administrators to those tasks. Additionally there is no documentation as to what those tasks should look like. Could use a little assist on this.

Thanks!

1 Apr 2008, 12:03 AM
#38
sonyat avatar

sonyat

New Zenner

Join Date:
May 2006
Posts:
83
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

If anyone has found the answer to this? I have a site I am installing and am needing this to work .... And I am having the same issue with the T Object

1 Apr 2008, 1:01 AM
#39
sonyat avatar

sonyat

New Zenner

Join Date:
May 2006
Posts:
83
Plugin Contributions:
0

Re: DropShipping/Supplier Interface

Ok found the help on the php5 issue now I am having a new one when trying to log into the supplier area

Warning: main(/usr/local/apache2/htdocs/zencart1352/includes/autoload_func.php) [function.main]: failed to open stream: No such file or directory in /home/thetkd/public_html/digiscrapelite/shop/supplierinterface/includes/application_top.php on line 147

Warning: main(/usr/local/apache2/htdocs/zencart1352/includes/autoload_func.php) [function.main]: failed to open stream: No such file or directory in /home/thetkd/public_html/digiscrapelite/shop/supplierinterface/includes/application_top.php on line 147

Fatal error: main() [function.require]: Failed opening required '/usr/local/apache2/htdocs/zencart1352/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thetkd/public_html/digiscrapelite/shop/supplierinterface/includes/application_top.php on line 147

28 Jul 2008, 12:54 PM
#40
jamie2k avatar

jamie2k

New Zenner

Join Date:
Oct 2006
Location:
Suffolk UK
Posts:
55
Plugin Contributions:
1

Re: DropShipping/Supplier Interface

We have installed this mod on our site and find it really useful for sending PO's and tracking orders once sent to supplier.

The frustrating element is that this module does not have any functionality for the admin area once a suppler is logged in and is therefore only a glorified ADMIN PROFILES login and does not give any further functionality.

If the developer of this mod has any further development, please let me know as we have a budget to help develop this further.

Until then we will have to shelve this mod and carry on with our own development.

:frusty: