Changeset 2687864
- Timestamp:
- 03/02/2022 11:43:14 PM (4 years ago)
- Location:
- autopopulate-checkout-for-woocommerce/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
admin/class-autopopulate-checkout-woo-admin.php (modified) (4 diffs)
-
admin/partials/autopopulate-checkout-woo-admin-field-checkbox.php (modified) (1 diff)
-
admin/partials/autopopulate-checkout-woo-admin-field-select.php (modified) (5 diffs)
-
autopopulate-checkout-woo.php (modified) (3 diffs)
-
includes/class-autopopulate-checkout-woo.php (modified) (1 diff)
-
public/class-autopopulate-checkout-woo-public.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
autopopulate-checkout-for-woocommerce/trunk/README.txt
r2687799 r2687864 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.9.1 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 == Changelog == 47 = 1.0.6 = 48 Fixed bugs with Revcent integration 47 49 = 1.0.5 = 48 50 = 1.0.4 = -
autopopulate-checkout-for-woocommerce/trunk/admin/class-autopopulate-checkout-woo-admin.php
r2687776 r2687864 179 179 180 180 add_settings_field( 181 $field,181 'add-prospect-revcent', 182 182 apply_filters( $this->plugin_name . 'label-add-prospect-revcent', esc_html__('Enable Send Prospect to Revcent ',$this->plugin_name) ), 183 array( $this, 'field_ checkout' ),183 array( $this, 'field_select' ), 184 184 $this->plugin_name, 185 185 $this->plugin_name . '-messages', … … 187 187 'description' => 'Enable Revcent', 188 188 'id' => 'add-prospect-revcent', 189 'value' => ' 1',189 'value' => '', 190 190 ) 191 191 ); … … 211 211 $defaults['label'] = ''; 212 212 $defaults['name'] = $this->plugin_name . '-options[' . $args['id'] . ']'; 213 $defaults['selections'] =array(' post','get');213 $defaults['selections'] =array('no','yes'); 214 214 $defaults['value'] = ''; 215 215 … … 338 338 } 339 339 340 $options[] = array('add-prospect-revcent','select','Enable Revcent'); 340 341 341 342 return $options; -
autopopulate-checkout-for-woocommerce/trunk/admin/partials/autopopulate-checkout-woo-admin-field-checkbox.php
r2354888 r2687864 21 21 type="checkbox" 22 22 value="1" /> 23 <span class="description"><?php esc_html_e( $atts['description'], ' pixelforms' ); ?></span>23 <span class="description"><?php esc_html_e( $atts['description'], 'autopopulate-checkout-woo' ); ?></span> 24 24 </label> -
autopopulate-checkout-for-woocommerce/trunk/admin/partials/autopopulate-checkout-woo-admin-field-select.php
r2354888 r2687864 1 1 <?php 2 2 3 /** a3 /** 4 4 * Provide a view for a section 5 5 * … … 12 12 * @subpackage order_postback_woo/admin/partials 13 13 */ 14 15 14 if ( ! empty( $atts['label'] ) ) { 16 17 ?><label for="<?php echo esc_attr( $atts['id'] ); ?>"><?php esc_html_e( $atts['label'], 'pixels' ); ?>: </label><?php 18 15 ?><label for="<?php echo esc_attr( $atts['id'] ); ?>"><?php esc_html_e( $atts['label'], 'autopopulate-checkout-woo' ); ?>: </label><?php 19 16 } 20 21 17 ?><select 22 aria-label="<?php esc_attr( _e( $atts['aria'], ' pixelforms' ) ); ?>"18 aria-label="<?php esc_attr( _e( $atts['aria'], 'autopopulate-checkout-woo' ) ); ?>" 23 19 class="<?php echo esc_attr( $atts['class'] ); ?>" 24 20 id="<?php echo esc_attr( $atts['id'] ); ?>" … … 27 23 if ( ! empty( $atts['blank'] ) ) { 28 24 29 ?><option value><?php esc_html_e( $atts['blank'], ' pixelforms' ); ?></option><?php25 ?><option value><?php esc_html_e( $atts['blank'], 'autopopulate-checkout-woo' ); ?></option><?php 30 26 31 27 } … … 49 45 selected( $atts['value'], $value ); ?>><?php 50 46 51 esc_html_e( $label, ' pixelforms' );47 esc_html_e( $label, 'autopopulate-checkout-woo' ); 52 48 53 49 ?></option><?php … … 56 52 57 53 ?></select> 58 <span class="description"><?php esc_html_e( $atts['description'], ' pixelforms' ); ?></span>54 <span class="description"><?php esc_html_e( $atts['description'], 'autopopulate-checkout-woo' ); ?></span> 59 55 </label> -
autopopulate-checkout-for-woocommerce/trunk/autopopulate-checkout-woo.php
r2687799 r2687864 17 17 * Plugin URI: https://www.wpconcierges.com/plugins/autopopulate-checkout-woo/ 18 18 * Description: Pass in values for shipping, billing, to any page of your site and the plugin will create a customer session that is used on the Woocommerce Checkout page. 19 * Version: 1.0. 519 * Version: 1.0.6 20 20 * Author: WpConcierges 21 21 * Author URI: https://www.wpconcierges.com/plugins/ … … 25 25 * Domain Path: /languages 26 26 * WC requires at least: 3.0 27 * WC tested up to: 6. 27 * WC tested up to: 6.2.1 28 28 */ 29 29 … … 38 38 * Rename this for your plugin and update it as you release new versions. 39 39 */ 40 define( 'AUTOPOPULATE_CHECKOUT_WOO_VERSION', '1.0. 4' );40 define( 'AUTOPOPULATE_CHECKOUT_WOO_VERSION', '1.0.6' ); 41 41 42 42 /** -
autopopulate-checkout-for-woocommerce/trunk/includes/class-autopopulate-checkout-woo.php
r2687799 r2687864 71 71 $this->version = AUTOPOPULATE_CHECKOUT_WOO_VERSION; 72 72 } else { 73 $this->version = '1.0. 5';73 $this->version = '1.0.6'; 74 74 } 75 75 $this->plugin_name = $this->autopopulate_checkout_woo = 'autopopulate-checkout-woo'; -
autopopulate-checkout-for-woocommerce/trunk/public/class-autopopulate-checkout-woo-public.php
r2687799 r2687864 292 292 293 293 if(class_exists("revcent_payments")){ 294 $this->revcent_options=get_opti n("woocommerce_revcent_payments_settings",array());294 $this->revcent_options=get_option("woocommerce_revcent_payments_settings",array()); 295 295 if(count($this->revcent_options)){ 296 296 $this->revcent_campaign = $this->revcent_options['revcent_campaign']; … … 307 307 private function send_revcent_customer(){ 308 308 $payload_rq = $this->create_revcent_customer(); 309 $response = wp_remote_post($this->revcent_url, array( 310 'method' => 'POST', 311 'headers' => array( 309 310 if(count($payload_rq)){ 311 $response = wp_remote_post($this->revcent_url, array( 312 'method' => 'POST', 313 'headers' => array( 312 314 'x-api-key' => $this->revcent_api_key, 313 ), 314 'body' => json_encode($payload_rq), 315 'timeout' => 90, 316 'sslverify' => false, 317 )); 315 ), 316 'body' => json_encode($payload_rq), 317 'timeout' => 90, 318 'sslverify' => false, 319 )); 320 } 318 321 } 319 322 320 323 private function create_revcent_customer(){ 321 324 global $woocommerce; 322 325 326 $payload =array(); 323 327 $metadata = array(); 324 328 325 329 if(!is_null($woocommerce)){ 326 330 if(isset($_COOKIE['affid'])){ 327 331 $obj = new stdClass(); … … 371 375 $city = $woocommerce->customer->get_billing_city(); 372 376 373 if(!is_null($ $woocommerce->customer->get_billing_state()))374 $state = $ $woocommerce->customer->get_billing_state();377 if(!is_null($woocommerce->customer->get_billing_state())) 378 $state = $woocommerce->customer->get_billing_state(); 375 379 376 380 if(!is_null($woocommerce->customer->get_billing_postcode())) … … 389 393 $phone =$woocommerce->customer->get_billing_phone(); 390 394 391 392 $payload =array();393 395 394 396 $payload['request'] = array( … … 424 426 "metadata" => $metadata, 425 427 ); 426 428 } 427 429 return $payload; 428 430
Note: See TracChangeset
for help on using the changeset viewer.