Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 64
  1. #21

    Default Re: Drop Shipping/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

  2. #22
    Join Date
    Jun 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Drop Shipping/Supplier Interface

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

  3. #23
    Join Date
    Jan 2007
    Location
    Singapore
    Posts
    12
    Plugin Contributions
    0

    Default Re: Drop Shipping/Supplier Interface

    Hi,

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

    Thanks!

    Choong Leng

  4. #24
    Join Date
    Jan 2007
    Location
    Singapore
    Posts
    12
    Plugin Contributions
    0

    Default Re: Drop Shipping/Supplier Interface

    Quote Originally Posted by melbournesigns View Post
    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

  5. #25

    Default Re: Drop Shipping/Supplier Interface

    Quote Originally Posted by cafe99 View Post
    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

  6. #26
    Join Date
    May 2005
    Location
    England
    Posts
    740
    Plugin Contributions
    0

    Default Re: Drop Shipping/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

  7. #27

    Default Re: Drop Shipping/Supplier Interface

    Quote Originally Posted by tajul_ashyqin View Post
    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 ;

    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...
    Quote Originally Posted by melbournesigns View Post
    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
    Quote Originally Posted by cafe99 View Post
    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
    Code:
     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
    Code:
     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
    Code:
      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 ..

  8. #28

    Default Re: Drop Shipping/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.

  9. #29
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    help question Re: Drop Shipping/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


  10. #30
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Idea or Suggestion Re: Drop Shipping/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

 

 
Page 3 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. v150 Is there a Dropship Supplier Interface addon?
    By dollardeals8 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Feb 2012, 11:27 PM
  2. supplier interface
    By yuhsien in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 May 2008, 04:56 AM
  3. Supplier Interface
    By dannyd in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 6 Sep 2007, 02:52 PM
  4. Drop Shipping/Supplier Interface
    By Adds in forum General Questions
    Replies: 1
    Last Post: 13 Nov 2006, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg