Home  |  Documentation  |  Forum  |  Blog Log in / create account  
Navigation
  • Main Page
  • Community portal
  • Current events
  • Recent changes
  • Random page
  • Help
  • Donations
 
Toolbox
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link
Views
  • Article
  • Discussion
  • View source
  • History

Installation Zencart

From AuctionBlox

Jump to: navigation, search

Contents

  • 1 Instructions
    • 1.1 Copy abxcore files
    • 1.2 Modify includes/modules/auctionblox/includes/configure.php file
    • 1.3 Copy new zen-specific files
    • 1.4 Modify admin files
      • 1.4.1 admin/includes/header_navigation.php
      • 1.4.2 admin/includes/languages/english.php
      • 1.4.3 admin/orders.php
    • 1.5 Modify catalog files
      • 1.5.1 includes/modules/checkout_process.php
      • 1.5.2 includes/modules/pages/checkout_process/header_php.php
      • 1.5.3 includes/modules/pages/checkout_confirmation/header_php.php
      • 1.5.4 includes/modules/pages/checkout_payment/header_php.php
      • 1.5.5 includes/modules/pages/checkout_shipping/header_php.php
    • 1.6 Modify Paypal-specific files (Required only if you accept Paypal for payment)
      • 1.6.1 includes/modules/payment/paypalwpp.php
      • 1.6.2 includes/modules/payment/paypalwpp.php
      • 1.6.3 includes/modules/payment/paypal/ipn_application_top.php
      • 1.6.4 includes/modules/payment/paypal/ipn_application_top.php
      • 1.6.5 ipn_main_handler.php
      • 1.6.6 ipn_main_handler.php
    • 1.7 Modify NoChex-specific files (Required only if you accept NoChex for payment)
      • 1.7.1 nochex_apc_handler.php
      • 1.7.2 nochex_apc_handler.php
  • 2 Popular Contributions
    • 2.1 Fast and Easy Checkout
      • 2.1.1 includes/modules/pages/checkout/header_php.php

Instructions

Copy abxcore files

Pick any abxcore version 4.7 or greater and upload files to the catalog root directory

Modify includes/modules/auctionblox/includes/configure.php file

NOTE: We need to do something about this. Would like to not need to change this define, since each upgrade would result in overwrite.

On or about line 11, replace:

 define('CART_INTEGRATION', 'oscommerce');

with:

 define('CART_INTEGRATION', 'zencart');

Copy new zen-specific files

[Download http://secure.auctionblox.com/support/abx4zencart-1.4.zip] UPDATED: 09/23/2008

  1. includes/auto_loaders/overrides/config.core.php *
  2. includes/auto_loaders/overrides/nochex_apc.core.php *
  3. includes/auto_loaders/overrides/paypal_ipn.core.php *
  4. includes/modules/pages/shopping_cart/header_php_auctionblox.php
  5. admin/includes/auto_loaders/overrides/config.core.php *
  6. admin/includes/boxes/auctionblox.php
  • If ANY FILES in includes/auto_loaders/overrides/ already exists (due to other customization):

delete or comment out:

$autoLoadConfig[80][] = array('autoType'=>'classInstantiate',
                               'className'=>'shoppingCart',
                               'objectName'=>'cart',
                               'checkInstantiated'=>true,
                               'classSession'=>true);

add:

  $autoLoadConfig[0][] = array('autoType'=>'require',
                               'loadFile'=>DIR_WS_MODULES . 'auctionblox/includes/classes/abxCart.php');

  $autoLoadConfig[80][] = array('autoType'=>'classInstantiate',
                                  'className'=>'abxCart',
                                  'objectName'=>'cart',
                                  'checkInstantiated'=>true,
                                  'classSession'=>true);        

Modify admin files

admin/includes/header_navigation.php

On or about line 28, add:

  require(DIR_WS_BOXES . 'auctionblox.php');

admin/includes/languages/english.php

Add at top of file:

 //+++AUCTIONBLOX.COM
 define('HEADING_AUCTIONBLOX', 'AuctionBlox');
 define('BOX_AUCTIONBLOX_ITEMS', 'Items');
 define('BOX_AUCTIONBLOX_TEMPLATES', 'Templates');
 define('BOX_AUCTIONBLOX_SALES','Sales');
 define('BOX_AUCTIONBLOX_CONFIGURATION', 'Configuration');
 define('BOX_AUCTIONBLOX_LISTINGS','Listings');
 //+++AUCTIONBLOX.COM

admin/orders.php

Note: This change will allow the sales to be updated to "completed" status once the order is updated to the "3" order status which is "delivered" in osCommerce. Feel free to change this value to the value that is appropriate for your order statuses.

Find:

     $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');

Above add:

     //+++AUCTIONBLOX.COM
         //Magic # 3 == Delivered order status: Set auction as completed.
         if($status == 3) {
           include(DIR_FS_CATALOG_MODULES . 'auctionblox/includes/classes/abxManager.php');
           $abxManager = new abxManager;
           $abxManager->updateStatusByOrder($abxManager->COMPLETED, $oID);
         }
     //+++AUCTIONBLOX.COM

Modify catalog files

includes/modules/checkout_process.php

Find line 37. Replace:

 // load the selected shipping module
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping($_SESSION['shipping']);

With:

 // load the selected shipping module
 //+++AUCTIONBLOX.COM
 require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
 $shipping_modules = new abxShipping($_SESSION['shipping']);
 //+++AUCTIONBLOX.COM 

includes/modules/pages/checkout_process/header_php.php

On or about line 19, replace:

 $_SESSION['cart']->reset(true);

with:

 //+++AUCTIONBLOX.COM
 $_SESSION['cart']->reset(true,$insert_id); 
 //+++AUCTIONBLOX.COM

includes/modules/pages/checkout_confirmation/header_php.php

On or about line 63, replace:

  // Load the selected shipping module(needed to calculate tax correctly)
  require(DIR_WS_CLASSES . 'shipping.php');
  $shipping_modules = new shipping($_SESSION['shipping']);

with:

 // Load the selected shipping module(needed to calculate tax correctly)
 //+++AUCTIONBLOX.COM
 require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
 $shipping_modules = new abxShipping($_SESSION['shipping']);
 //+++AUCTIONBLOX.COM 

includes/modules/pages/checkout_payment/header_php.php

On or about line 86, replace:

  // Load the selected shipping module(needed to calculate tax correctly)
  require(DIR_WS_CLASSES . 'shipping.php');
  $shipping_modules = new shipping($_SESSION['shipping']);

with:

 // Load the selected shipping module(needed to calculate tax correctly)
 //+++AUCTIONBLOX.COM
 require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
 $shipping_modules = new abxShipping($_SESSION['shipping']);
 //+++AUCTIONBLOX.COM 

includes/modules/pages/checkout_shipping/header_php.php

On or about line 90, replace:

 // load all enabled shipping modules
  require(DIR_WS_CLASSES . 'shipping.php');
  $shipping_modules = new shipping;

with:

 // load all enabled shipping modules
 //+++AUCTIONBLOX.COM
 require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
 $shipping_modules = new abxShipping;
 //+++AUCTIONBLOX.COM 

Modify Paypal-specific files (Required only if you accept Paypal for payment)

includes/modules/payment/paypalwpp.php

Find line 1617. Replace:

 // load the selected shipping module
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping($_SESSION['shipping']);

With:

 //+++AUCTIONBLOX.COM
    //require(DIR_WS_CLASSES . 'shipping.php');
    //$shipping_modules = new shipping($_SESSION['shipping']);
    require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
    $shipping_modules = new abxShipping($_SESSION['shipping']);
 //+++AUCTIONBLOX.COM    

includes/modules/payment/paypalwpp.php

Find line 2199. Replace:

      require(DIR_WS_CLASSES . 'shipping.php');
      $shipping_Obj = new shipping;

With:

 //+++AUCTIONBLOX.COM
      //require(DIR_WS_CLASSES . 'shipping.php');
      //$shipping_Obj = new shipping;
      require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
      $shipping_Obj = new abxShipping;
 //+++AUCTIONBLOX.COM   

includes/modules/payment/paypal/ipn_application_top.php

Find line 114. Replace:

// include shopping cart class
  //require(DIR_WS_CLASSES . 'shopping_cart.php');

With:

// include shopping cart class
  //require(DIR_WS_CLASSES . 'shopping_cart.php');
  //+++AUCTIONBLOX.COM
  require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxCart.php');
  //+++AUCTIONBLOX.COM     

includes/modules/payment/paypal/ipn_application_top.php

Find line 200. Replace:

  // create the shopping cart & fix the cart if necesary
  if (!$_SESSION['cart']) {
    $_SESSION['cart'] = new shoppingCart;
  }

With:

  // create the shopping cart & fix the cart if necesary
  //+++AUCTIONBLOX.COM
  if (!$_SESSION['cart']) {
    $_SESSION['cart'] = new abxCart;
  }
  //+++AUCTIONBLOX.COM   

ipn_main_handler.php

Find line 193. Replace:

 require(DIR_WS_CLASSES . 'shipping.php');

With:

 //+++AUCTIONBLOX.COM
 //require(DIR_WS_CLASSES . 'shipping.php');
 require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
 //+++AUCTIONBLOX.COM 

ipn_main_handler.php

Find line 203. Replace:

  $shipping_modules = new shipping($_SESSION['shipping']);

With:

  //+++AUCTIONBLOX.COM
  //$shipping_modules = new shipping($_SESSION['shipping']);
  $shipping_modules = new abxShipping($_SESSION['shipping']);
  //+++AUCTIONBLOX.COM 

Modify NoChex-specific files (Required only if you accept NoChex for payment)

nochex_apc_handler.php

Find line 58. Replace:

  require(DIR_WS_CLASSES . 'shipping.php');

With:

  //+++AUCTIONBLOX.COM
  //  require(DIR_WS_CLASSES . 'shipping.php');
  require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
  //+++AUCTIONBLOX.COM

nochex_apc_handler.php

Find line 67. Replace:

  $shipping_modules = new shipping($_SESSION['shipping']);

With:

  //+++AUCTIONBLOX.COM
  //  $shipping_modules = new shipping($_SESSION['shipping']);
  $shipping_modules = new abxShipping($_SESSION['shipping']);
  //+++AUCTIONBLOX.COM 

Popular Contributions

Fast and Easy Checkout

Fast and Easy Checkout is a one-page checkout module for Zen Cart. It presents shipping and payment information on a single page. You can find more information about this contribution here: http://www.numinix.com/index.php?main_page=document_general_info&cPath=160&products_id=760

includes/modules/pages/checkout/header_php.php

On or about line 47, replace:

 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping;

with:

 //+++AUCTIONBLOX.COM
 require(DIR_WS_MODULES . 'auctionblox/includes/classes/abxShipping.php');
 $shipping_modules = new abxShipping;
 //+++AUCTIONBLOX.COM 
Retrieved from "http://members.auctionblox.com/community/documentation/index.php/Installation_Zencart"
© 2003-2008 AuctionBlox Inc. All Rights Reserved.