Plugin Directory

Changeset 2524603


Ignore:
Timestamp:
05/01/2021 01:35:30 PM (5 years ago)
Author:
delyva
Message:

411d34b - version 1.1.3 - added store name, email, mobile no.

Location:
delyvax/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • delyvax/trunk/delyvax.php

    r2523812 r2524603  
    44    Plugin URI: https://delyva.com/solutions
    55    description: The official DelyvaX plugin helps store owners to integrate WooCommerce with [DelyvaX](https://delyva.com/solutions) for seamless service comparison and order processing.
    6     Version: 1.1.2
     6    Version: 1.1.3
    77    Author: DelyvaX
    88    Author URI: https://delyva.com/solutions
  • delyvax/trunk/functions.php

    r2523812 r2524603  
    6363    delete_option('delyvax_api_webhook_enable');
    6464    delete_option('delyvax_api_webhook_key');
     65
     66    delete_option('delyvax_shop_name');
     67    delete_option('delyvax_shop_mobile');
     68    delete_option('delyvax_shop_email');
     69
     70    delete_option('delyvax_processing_days');
     71    delete_option('delyvax_processing_hours');
     72    delete_option('delyvax_item_type');
     73    delete_option('delyvax_volumetric_constant');
     74    delete_option('delyvax_weight_option');
     75    delete_option('delyvax_rate_adjustment_type');
     76
    6577    delete_option('wc_settings_delyvax_shipping_rate_adjustment');
    6678    delete_option('delyvax_rate_adjustment_percentage');
     
    204216            $dx_delivery_date_format = $delivery_date->format('d-M-Y');
    205217        }else {
    206             $delivery_date->modify('+1 day');
     218            // $delivery_date->modify('+0 day');
    207219
    208220            $dx_delivery_date = $delivery_date->getTimestamp();
     
    621633
    622634      // The main address pieces:
    623       if($store_name == null) $store_name = $order->get_shipping_first_name().' '.$order->get_shipping_last_name();
    624       if($store_email == null) $store_email = $order->get_billing_email();
    625       if($store_phone == null) $store_phone = $order->get_billing_phone();
     635      // if($store_name == null) $store_name = $order->get_shipping_first_name().' '.$order->get_shipping_last_name();
     636      // if($store_email == null) $store_email = $order->get_billing_email();
     637      // if($store_phone == null) $store_phone = $order->get_billing_phone();
     638
     639      if($store_name == null) $store_name = $settings['shop_name'];
     640      if($store_email == null) $store_email = $settings['shop_email'];
     641      if($store_phone == null) $store_phone = $settings['shop_mobile'];
     642
    626643      if($store_address_1 == null) $store_address_1     = get_option( 'woocommerce_store_address');
    627644      if($store_address_2 == null) $store_address_2   = get_option( 'woocommerce_store_address_2');
  • delyvax/trunk/includes/delyvax-shipping.php

    r2521227 r2524603  
    130130                'type'      => 'checkbox',
    131131                'default'   => ''
     132            ),
     133            'shop_name' => array(
     134                'title'     => __( 'Store - Contact Name', 'delyvax' ),
     135                'type' => 'text',
     136                'default' => __('Store name', 'delyvax'),
     137                'id' => 'delyvax_shop_name',
     138                'description' => __( 'e.g. John Woo' ),
     139            ),
     140            'shop_mobile' => array(
     141                'title'     => __( 'Store - Contact Mobile No', 'delyvax' ),
     142                'type' => 'text',
     143                'default' => __('60129908855', 'delyvax'),
     144                'id' => 'delyvax_shop_mobile',
     145                'description' => __( 'e.g. 60129908855' ),
     146            ),
     147            'shop_email' => array(
     148                'title'     => __( 'Store - Contact E-mail', 'delyvax' ),
     149                'type' => 'text',
     150                'default' => __('', 'delyvax'),
     151                'id' => 'delyvax_shop_email',
     152                'description' => __( 'e.g. 60129908855' ),
    132153            ),
    133154            'processing_days' => array(
  • delyvax/trunk/readme.txt

    r2523812 r2524603  
    44Requires at least: 5.4
    55Tested up to: 5.7
    6 Stable tag: 1.1.2
     6Stable tag: 1.1.3
    77Requires PHP: 7.2
    88License: GPLv3
     
    3030== Changelog ==
    3131
    32 = 1.1.1 - April 30 2021 = Bug-fixes.
     32= 1.1.3 - April 30 2021 = Add custom shop contact name, mobile no and email.
     33= 1.1.2 - April 30 2021 = Bug-fixes.
    3334= 1.1.1 - April 26 2021 = Added support for volumetric or actual weight consideration.
    3435= 1.1.0 - April 19 2021 = Bug fixes, and improvements to comply with Wordpress standards.
Note: See TracChangeset for help on using the changeset viewer.