Plugin Directory

Changeset 2691287


Ignore:
Timestamp:
03/09/2022 08:55:10 AM (4 years ago)
Author:
peterlogisnap
Message:

readme.txt

Location:
logisnap
Files:
37 added
3 edited

Legend:

Unmodified
Added
Removed
  • logisnap/trunk/LogiSnap.php

    r2688863 r2691287  
    33 * Plugin Name: LogiSnap
    44 * Description: Easily integrate your LogiSnap solution into Woocommerce.
    5  * Version: 1.0.4
     5 * Version: 1.0.5
    66 * Author: LogiSnap
    77 * Author URI: //LogiSnap.com
     
    2929
    3030    /** @var $*/
    31     public $version = '1.0.4';
     31    public $version = '1.0.5';
    3232
    3333    /** @var LSS_Options */
     
    307307            return;
    308308
    309         // from ls_shipping:38 to "ls_shipping_38"
    310         $replaced = str_replace(":","_",$available_methods[0]);
    311         $options_data = get_option('woocommerce_'.$replaced.'_settings');
    312 
    313         // $data['type'] is index of carrier
    314         $carrier_data = $this->get_carrier_data($options_data);
    315         $order->update_meta_data( 'shipmentTypeUID', $carrier_data[0]);
     309        if(count($available_methods) > 0){
     310            // from ls_shipping:38 to "ls_shipping_38"
     311            $replaced = str_replace(":","_",$available_methods[0]);
     312            $options_data = get_option('woocommerce_'.$replaced.'_settings');
     313
     314            // $data['type'] is index of carrier
     315            $carrier_data = $this->get_carrier_data($options_data);
     316            $order->update_meta_data( 'shipmentTypeUID', $carrier_data[0]);
     317        }
    316318    }
    317319
     
    330332            $product = $item_values->get_product();
    331333            $item_values['sku'] = $product->get_sku();
    332 
    333             $product_attributes = $product->get_attributes();
    334            
    335             $product_attributes_data = array();
    336             foreach ( $product_attributes as $attribute ){
    337                 $atr_data = new Logisnap_Meta_Data();
    338                 $atr_data->meta_name = $attribute->get_name();
    339                 $atr_data->meta_data = $attribute->get_options();
    340 
    341                 array_push($product_attributes_data, $atr_data);
    342             }
    343             $item_values['product_data_attributes'] = $product_attributes_data;
    344334           
    345335            array_push($full_Order->items_data, $item_values->get_data());
  • logisnap/trunk/includes/class-lss-admin.php

    r2604231 r2691287  
    430430        <input type="hidden" name="logisnap_settings[api_key]"  value="<?php _e(LogiSnapShipping()->options->get('default_sender_location'), 'logisnap-shipping-for-woocommerce');?>">
    431431
    432         <input type='text' name='logisnap_settings[api_key]' placeholder="Woocommerce api key" value='<?php _e($value, 'logisnap-shipping-for-woocommerce'); ?>' style="width:100%;display:block;">
     432        <input type='text' name='logisnap_settings[api_key]' placeholder="Woocommerce client (ck_) api key" value='<?php _e($value, 'logisnap-shipping-for-woocommerce'); ?>' style="width:100%;display:block;">
    433433        <?php
    434434    }
  • logisnap/trunk/readme.txt

    r2688863 r2691287  
    55Requires at least: 5.0
    66Tested up to: 5.8
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88Requires PHP: 5.6.0
    99Requires WooCommerce: 3.0.0
     
    2323
    2424== Changelog ==
     25
     26= 1.0.5 =
     27* Fixed a bug where variant product would crash the website
    2528
    2629= 1.0.4 =
Note: See TracChangeset for help on using the changeset viewer.