Plugin Directory

Changeset 3410852


Ignore:
Timestamp:
12/04/2025 12:03:14 PM (4 months ago)
Author:
shipo
Message:

Show all lockers in checkout page

Location:
shipo/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • shipo/trunk/assets/js/checkout.js

    r3403157 r3410852  
    233233        clearMapElements();
    234234
    235         if(recipientType == 'locker' && recipientSlug && recipientCoord) {
     235        if((recipientType == 'locker' || recipientType == 'pudo') && recipientSlug && recipientCoord) {
    236236            var lockerWrapper = $('<div>', {
    237237                id: 'shipo-locker-wrapper'
  • shipo/trunk/includes/class-shipo-order.php

    r3404077 r3410852  
    101101        $shipment_data["sender_address_id"] = (int)$this->order->get_meta('_shipo_address_id');
    102102       
    103         if($recipient_address_type == 'locker') {
     103        if($recipient_address_type == 'locker' || $recipient_address_type == 'pudo') {
    104104            $shipment_data["recipient_address_id"] = $this->order->get_meta('_shipo_locker_system_id');
    105105            $shipment_data["locker_data"] = json_decode($this->order->get_meta('_shipo_locker_data_json'), true);
  • shipo/trunk/includes/class-shipo-wc-shipping.php

    r3404077 r3410852  
    323323            $title = ($rate['rate_type'] != '') ? $preTitle . $rate['courier'] . ' ' . $rate['rate_type'] : $preTitle . $rate['courier'];
    324324
    325             if ($rate['recipient_address_type'] == 'locker') {
     325            if ($rate['recipient_address_type'] == 'locker' || $rate['recipient_address_type'] == 'pudo') {
    326326                $title = 'Livrare la ' . ucfirst($rate['recipient_address_type_name']) . ' - ' . $rate['courier'];
    327327            }
  • shipo/trunk/readme.txt

    r3404077 r3410852  
    33Contributors: Shipo
    44Requires at least: 4.7
    5 Tested up to: 6.8
    6 Stable tag: 1.2
     5Tested up to: 6.9
     6Stable tag: 1.3
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    5050
    5151Bug fix
     52
     53= 1.3 =
     54
     55Showing all lockers
  • shipo/trunk/shipo.php

    r3404077 r3410852  
    33 * Plugin Name: Shipo
    44 * Description: Shipo connects your webshop with top couriers instantly, no contract. Ship to address or locker, pay only when parcels are delivered.
    5  * Version: 1.2
     5 * Version: 1.3
    66 * Author: Shipo
    77 * Author URI: https://shipo.ro
     
    1616
    1717// Define plugin constants
    18 define('SHIPO_PLUGIN_VERSION', '1.2.0');
     18define('SHIPO_PLUGIN_VERSION', '1.3.0');
    1919define('SHIPO_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2020define('SHIPO_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.