Changeset 3100659
- Timestamp:
- 06/10/2024 02:59:35 PM (22 months ago)
- Location:
- stan-checkout/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
includes/classes/class-wc-stan-checkout-deactivator.php (modified) (1 diff)
-
includes/classes/class-wc-stan-checkout-shipping-api.php (modified) (2 diffs)
-
includes/wc-stan-constant.php (modified) (1 diff)
-
includes/wc-stan-utils.php (modified) (1 diff)
-
public/css/wc-stan-checkout-public.css (modified) (1 diff)
-
wc-stan-checkout.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
stan-checkout/trunk/README.txt
r3095051 r3100659 4 4 Requires at least: 5.0.0 5 5 Tested up to: 6.5.2 6 Stable tag: 1. 2.76 Stable tag: 1.3.0 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 47 47 48 48 1. Téléchargez Stan Xpress Checkout 49 2. Dé-zippez and téléversez le dossier stan-easy-connect dans `/wp-content/plugins/directory`49 2. Dé-zippez and téléversez le dossier wc-stan-checkout dans `/wp-content/plugins/directory` 50 50 3. Activez Stan Xpress Checkout depuis la page des plugins 51 51 52 # DEPUIS STAN 53 54 1. [Téléchargez Stan Xpress Checkout](https://downloads.s3.fr-par.scw.cloud/v101/woo-stan-checkout.zip) 55 2. Dé-zippez and téléversez le dossier stan-easy-connect dans `/wp-content/plugins/directory` 56 3. Activez Stan Xpress Checkout depuis la page des plugins 57 58 # UNE FOIS ACTIVE 59 60 1. Allez dans Réglages > Stan Easy Connect, et remplissez les informations 61 2 (optionnel). Ajoutez le shortcode `[stan_easy_connect_button]` sur votre site 52 Réglez les configurations de Stan Checkout sur la partie paiements de l'interface WooCommerce 62 53 63 54 == F.A.Q. == -
stan-checkout/trunk/includes/classes/class-wc-stan-checkout-deactivator.php
r3077758 r3100659 26 26 $body = array( 27 27 'website' => site_url(), 28 'source' => 'stan-c onnect',28 'source' => 'stan-checkout', 29 29 'stack' => 'wordpress', 30 30 'is_active' => false -
stan-checkout/trunk/includes/classes/class-wc-stan-checkout-shipping-api.php
r3077758 r3100659 28 28 if ( WC()->session->__isset( 'shipping_for_package_' . $package_id ) ) { 29 29 foreach ( WC()->session->get( 'shipping_for_package_' . $package_id )['rates'] as $shipping_rate_id => $shipping_rate ) { 30 array_push( $available_shipping_methods,array(30 $shipping_method = array( 31 31 STAN_SHIPPING_METHOD_ID => $shipping_rate->get_method_id(), 32 32 STAN_SHIPPING_COST => … … 34 34 + convert_monetary_value_to_integer( $shipping_rate->get_shipping_tax() ), 35 35 STAN_SHIPPING_LABEL => $shipping_rate->label, 36 ) ); 36 ); 37 38 if ( class_exists( '\Boxtal\BoxtalConnectWoocommerce\Shipping_Method\Controller' ) ) { 39 $boxtal_relay_networks = \Boxtal\BoxtalConnectWoocommerce\Shipping_Method\Controller::get_pricing_items($shipping_rate->get_id()); 40 $relay_networks = parse_boxtal_relay_point_networks( $boxtal_relay_networks ); 41 if ( ! empty( $relay_networks ) ) { 42 $shipping_method[ STAN_SHIPPING_RELAY_NETWORKS ] = $relay_networks; 43 } 44 } 45 46 array_push( $available_shipping_methods, $shipping_method ); 37 47 } 38 48 WcStanCheckoutLogger::log( 'push shipping method ' . $shipping_rate->get_method_id() ); -
stan-checkout/trunk/includes/wc-stan-constant.php
r3094984 r3100659 47 47 const STAN_SHIPPING_COST = 'shipping_cost'; 48 48 const STAN_SHIPPING_LABEL = 'shipping_label'; 49 const STAN_SHIPPING_RELAY_NETWORKS = 'relay_point_networks'; 49 50 50 51 const STAN_CUSTOMER_FIRSTNAME = 'firstname'; -
stan-checkout/trunk/includes/wc-stan-utils.php
r3077758 r3100659 238 238 return base64_encode( hash_hmac( 'sha256', $payload, $secret_key, true ) ); 239 239 } 240 241 /** 242 * Get and parse boxtal relay point networks 243 * 244 * @return array<string> 245 * @since 1.3.0 246 */ 247 function parse_boxtal_relay_point_networks( $boxtal_relay_networks ) { 248 $relay_point_networks = array(); 249 250 foreach( $boxtal_relay_networks as $boxtal_data ) { 251 foreach( $boxtal_data['parcel_point_network'] as $boxtal_parcel_network ) { 252 $relay_point_network = ""; 253 switch( $boxtal_parcel_network ) { 254 case 'MONR_NETWORK': 255 $relay_point_network = 'mondial_relay'; 256 break; 257 case 'UPSE_NETWORK': 258 $relay_point_network = 'ups'; 259 break; 260 case 'COPR_NETWORK': 261 $relay_point_network = 'prive'; 262 break; 263 case 'SOGP_NETWORK': // relais colis 264 $relay_point_network = 'relais_colis'; 265 break; 266 case 'CHRP_NETWORK': 267 $relay_point_network = 'chronopost'; 268 break; 269 } 270 271 array_push( $relay_point_networks, $relay_point_network ); 272 } 273 } 274 275 return $relay_point_networks; 276 } -
stan-checkout/trunk/public/css/wc-stan-checkout-public.css
r3081756 r3100659 3 3 * included in this file. 4 4 */ 5 .stan-connect-checkout-text {6 text-align: center;7 }8 5 #stan-checkout .stan-checkout--button { 9 6 position: relative; -
stan-checkout/trunk/wc-stan-checkout.php
r3095051 r3100659 19 19 * Plugin URI: https://compte.stan-app.fr 20 20 * Description: Vous perdez des utilisateurs lorsque vous demandez de s'inscrire, remplir les formulaires est la première raison qui mène les utilisateurs à quitter un site. Avec Stan Checkout vos utilisateurs s'inscrivent sans formulaire, sans contrainte. 21 * Version: 1. 2.721 * Version: 1.3.0 22 22 * Author: Brightweb 23 23 * Author URI: https://stan-business.fr
Note: See TracChangeset
for help on using the changeset viewer.