Plugin Directory

Changeset 1562697


Ignore:
Timestamp:
12/27/2016 12:52:51 PM (9 years ago)
Author:
zibbra
Message:

Release version 1.6.5

Location:
zibbra/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zibbra/trunk/modules/shipping/sprintpack.php

    r1535746 r1562697  
    11<?php
    2 /**
    3  * File for the ZShippingAdapterSprintPack object
    4  *
    5  * @package API_Client_Library\Objects\Shipping\Adapter
    6  * @copyright Zibbra <info@zibbra.com>
    7  */
    82
    9 /**
    10  * ZShippingAdapterSprintPack
    11  *
    12  * @package API_Client_Library\Objects\Shipping\Adapter
    13  * @author Alwin Roosen <alwin.roosen@zibbra.com>
    14  * @version 1.0.0
    15  */
    16 class ZShippingAdapterSprintPack extends ZShippingAdapter {
    17    
    18     /**
    19      * Dispatch the shipping adapter
    20      *
    21      * @param ZCustomer $oCustomer
    22      * @param ZOrder $oOrder
    23      * @see ZShippingAdapter::dispatch()
    24      */
    25     public function dispatch(ZCustomer $oCustomer, ZOrder $oOrder) {
    26        
    27 //      echo "<pre>ZShippingAdapterSprintPack::dispatch()\n";
    28 //      var_dump($oCustomer,$oOrder);
    29 //      exit;
    30        
    31     } // end function
    32    
    33 } // end function
     3class Zibbra_Plugin_Module_Shipping_Sprintpack extends Zibbra_Plugin_Module_Shipping_Abstract implements Zibbra_Plugin_Module_Shipping_Interface {
     4
     5    /**
     6     * Name of the adapter
     7     *
     8     * @var string
     9     */
     10    const ADAPTER_NAME = "sprintpack";
     11
     12    /**
     13     * @return string
     14     */
     15    public function getAdapterName() {
     16
     17        return self::ADAPTER_NAME;
     18
     19    } // end function
     20
     21    public function onSelect() {
     22
     23        ZLibrary::getInstance()->getAdapter()->setSessionValue("shipping.complete", true);
     24
     25        wp_redirect(site_url("/zibbra/checkout/continue/"));
     26        exit;
     27
     28    } // end function
     29
     30} // end class
  • zibbra/trunk/readme.txt

    r1556215 r1562697  
    44Contributors: Zibbra
    55Tags: Ecommerce, Cloud
    6 Stable tag: 1.6.4
     6Stable tag: 1.6.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 1.6.5 =
     55
     56* SprintPack shipping adapter frontend integration
     57
    5458= 1.6.4 =
    5559
  • zibbra/trunk/zibbra.php

    r1556215 r1562697  
    66 * Plugin URI: http://wordpress.org/plugins/zibbra/
    77 * Description: Zibbra integration plugin for Wordpress
    8  * Version: 1.6.4
     8 * Version: 1.6.5
    99 * Author: Zibbra
    1010 * Author URI: https://www.zibbra.com
     
    6868require_once(ZIBBRA_BASE_DIR."/modules/shipping/generic.php");
    6969require_once(ZIBBRA_BASE_DIR."/modules/shipping/kiala.php");
    70 //require_once(ZIBBRA_BASE_DIR."/modules/shipping/sprintpack.php");
     70require_once(ZIBBRA_BASE_DIR."/modules/shipping/sprintpack.php");
    7171require_once(ZIBBRA_BASE_DIR."/modules/sitemap.php");
    7272require_once(ZIBBRA_BASE_DIR."/modules/track.php");
     
    100100        const FORM_ACTION = "zibbra";
    101101        const ROLE = "customer";
    102         const VERSION = "1.6.4";
     102        const VERSION = "1.6.5";
    103103       
    104104        private $controller = null;
Note: See TracChangeset for help on using the changeset viewer.