Page 1 of 9 123 ... LastLast
Results 1 to 10 of 88
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default shipworks plugin

    I am working redoing the shipworks one file plugin. This file comes from Osc as just a drop in file into admin that the computer based shipworks program accesses.

    I have converted osc contributions before but this has a new twist to it. In order to access the database I've included code/files but then run up against the illegal access problem. As Osc has no inbuilt admin/session management, they have made no allowances for this in the shipworks plugin.

    I can't access the file any other way than directly accessing it on the web. The shipworks program only gives a generic error when encountering any problems. They have assured me that nothing in their program is cart specific so only the shipworks.php file needs changing.

    So how in the world do I add in the admin/sessions management (I'm assuming it's like the cart itself) to that lone file?
    The full-time Zen Cart Guru. WizTech4ZC.com

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: shipworks plugin

    I think that what you need is this in the other mod file:
    Code:
    require('includes/application_top.php');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: shipworks plugin

    Okay that did solve that problem but created another. Back to shipworks tech help. Thanks! (that was a duh - should have thought of that myself!)
    The full-time Zen Cart Guru. WizTech4ZC.com

  4. #4
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: shipworks plugin

    well, that's a no go for sure. This requires specific output and cannot include any extraneous html. So I need to pick up only the database functions.

    the oscommerce version only has these includes:

    require('includes/configure.php');
    require(DIR_WS_INCLUDES . 'database_tables.php');
    require(DIR_WS_CLASSES . 'order.php');
    require(DIR_WS_FUNCTIONS . 'database.php');
    require(DIR_WS_FUNCTIONS . 'general.php');

    I've changed to include the database_tables.php in the catalog/includes directory, but am I not right in assuming that I still need the db connection stuff that comes from the query_factory file?
    The full-time Zen Cart Guru. WizTech4ZC.com

  5. #5
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: shipworks plugin

    To continue - the reason it looks this way is because this line:

    $configuration_query = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);

    gets this error message:
    Call to a member function Execute() on a non-object
    The full-time Zen Cart Guru. WizTech4ZC.com

  6. #6
    Join Date
    May 2005
    Posts
    75
    Plugin Contributions
    0

    Default Re: shipworks plugin

    Any luck on porting this over? Any ETA of when it might be ready?

    I'm willing to share in the development costs for porting this mod to ZC, and I know there are other Zenners out there that would be interested too.

  7. #7
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: shipworks plugin

    Assuming that you call this inside a function, you have to declare $db as global:
    global $db;


    Quote Originally Posted by delia View Post
    To continue - the reason it looks this way is because this line:

    $configuration_query = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);

    gets this error message:
    Call to a member function Execute() on a non-object
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #8
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: shipworks plugin

    Hi, Guys!

    My client didn't want to spend much money to do this but I did start converting it to straight php without the zen functions in order to bypass the problems. He's paying only $50 since I thought it would be a easy conversion. Ha! And he's willing to go a little more money. Until I get done, I don't know how much more it will cost.

    TMDelia - you want to send me a private message?
    The full-time Zen Cart Guru. WizTech4ZC.com

  9. #9
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: shipworks plugin

    so I changed the config stuff to:

    global $db;

    // Define all config values
    $configuration_query = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);

    while (!$configuration_query->EOF)
    {

    define($configuration->fields['cfgKey'], $configuration->fields['cfgValue']);
    $configuration_query->MoveNext();

    }

    I get no errors and no data which may not be due to this but to something that comes after. Can someone tell me if the code above should work?
    The full-time Zen Cart Guru. WizTech4ZC.com

  10. #10
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: shipworks plugin

    What does this mod actually do? I can not find any description in the downloads sections either...

 

 
Page 1 of 9 123 ... LastLast

Similar Threads

  1. Endicia, Shipworks or ShipStation
    By DML73 in forum Addon Shipping Modules
    Replies: 19
    Last Post: 25 Jan 2013, 03:47 PM
  2. ShipWorks?
    By doone in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 21 Jan 2013, 09:30 PM
  3. shipworks not working after patch install
    By keylesslocks in forum General Questions
    Replies: 2
    Last Post: 30 Jun 2009, 03:13 AM
  4. Shipworks and Zen Cart
    By jayhos in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 16 Feb 2008, 02:27 AM
  5. I am in over my head trying to port shipworks module from osC
    By aardvark in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 23 May 2007, 06:53 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR