Ultimate Custom Add To Cart Button For WooCommerce - Version 1.114

Version Description

Download this release

Release Info

Developer bc2018
Plugin Icon 128x128 Ultimate Custom Add To Cart Button For WooCommerce
Version 1.114
Comparing to
See all releases

Code changes from version 1.113 to 1.114

Files changed (2) hide show
  1. index.php +1 -1
  2. ui/manage-buttons.php +28 -20
index.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Ultimate Add To Cart Button For WooCommerce
4
  * Plugin URI: https://www.binarycarpenter.com/ultimate-add-to-cart-button-for-woocommerce/
5
  * Description: All you need to customize add to cart button for WooCommerce
6
- * Version: 1.113
7
  * Author: BinaryCarpenter.com
8
  * Author URI: https://www.binarycarpenter.com/
9
  * License: GPL2
3
  * Plugin Name: Ultimate Add To Cart Button For WooCommerce
4
  * Plugin URI: https://www.binarycarpenter.com/ultimate-add-to-cart-button-for-woocommerce/
5
  * Description: All you need to customize add to cart button for WooCommerce
6
+ * Version: 1.114
7
  * Author: BinaryCarpenter.com
8
  * Author URI: https://www.binarycarpenter.com/
9
  * License: GPL2
ui/manage-buttons.php CHANGED
@@ -93,18 +93,21 @@ global $uatcOptions;
93
 
94
  <div id="icon-size-color" >
95
  <h4>Icon size and color</h4>
 
 
 
96
  <div class="bc-uk-flex bc-uk-flex-between">
97
  <div>
98
  <label for="">Icon size</label>
99
  <div class="bc-uk-flex">
100
- <input value="<?php echo Options::bc_atc_get_option($uatcOptions, 'iconFontSize'); ?>" type="number" id="icon-font-size" placeholder="icon font size">
101
- <input value="<?php echo Options::bc_atc_get_option($uatcOptions, 'iconFontSizeUnit'); ?>" type="text" id="icon-font-size-unit" placeholder="icon font size unit(px, em, %)">
102
  </div>
103
  </div>
104
 
105
  <div>
106
  <label for="">Icon color</label>
107
- <input type="text" class="bc-uatc-color-picker" value="<?php echo Options::bc_atc_get_option($uatcOptions, 'buttonIconColor'); ?>" id="button-icon-color">
108
  </div>
109
 
110
  </div>
@@ -136,17 +139,17 @@ global $uatcOptions;
136
  <?php $icon = Options::bc_atc_get_option($uatcOptions, 'icon'); ?>
137
  <label for=""><i class="" style="display: block; color: transparent;">.</i> <input <?php echo ($icon == ''? "checked" : "") ?> value="" type="radio" name="button-icon" ></label>
138
 
139
- <label for=""><i class="icon-atc-cart-01"></i> <input <?php echo ($icon == '\e817'? "checked" : "") ?> value="\e817" type="radio" name="button-icon" ></label>
140
- <label for=""><i class="icon-atc-cart-04"></i> <input <?php echo ($icon == '\f291'? "checked" : "") ?> value="\f291" type="radio" name="button-icon" > </label>
141
- <label for=""><i class="icon-atc-cart-05"></i> <input <?php echo ($icon == '\f217'? "checked" : "") ?> value="\f217" type="radio" name="button-icon" > </label>
142
- <label for=""><i class="icon-atc-cart-06"></i> <input <?php echo ($icon == '\e819'? "checked" : "") ?> value="\e819" type="radio" name="button-icon" > </label>
143
- <label for=""> <i class="icon-atc-cart-07"></i> <input <?php echo ($icon == '\e81d'? "checked" : "") ?> value="\e81d" type="radio" name="button-icon" ></label>
144
- <label for=""><i class="icon-atc-cart-08"></i> <input <?php echo ($icon == '\f290'? "checked" : "") ?> value="\f290" type="radio" name="button-icon" > </label>
145
- <label for=""><i class="icon-atc-cart-09"></i><input <?php echo ($icon == '\f218'? "checked" : "") ?> value="\f218" type="radio" name="button-icon" > </label>
146
- <label for=""><i class="icon-atc-cart-10"></i><input <?php echo ($icon == '\e81a'? "checked" : "") ?> value="\e81a" type="radio" name="button-icon" > </label>
147
- <label for=""><i class="icon-atc-cart-11"></i><input <?php echo ($icon == '\e81e'? "checked" : "") ?> value="\e81e" type="radio" name="button-icon" > </label>
148
- <label for=""> <i class="icon-atc-cart-12"></i><input <?php echo ($icon == '\f23d'? "checked" : "") ?> value="\f23d" type="radio" name="button-icon" ></label>
149
- <label for=""><i class="icon-atc-cart-13"></i><input <?php echo ($icon == '\e81b'? "checked" : "") ?> value="\e81b" type="radio" name="button-icon" > </label>
150
 
151
 
152
  <i class="fa <?php echo Options::bc_atc_get_option($uatcOptions, 'icon'); ?>" id="icon-preview"></i>
@@ -162,13 +165,13 @@ global $uatcOptions;
162
  <label for="">Loading icon</label>
163
  <p class="bc-atc-explain">This loading icon will show up when the customer click on the add to cart button</p>
164
  <?php if (!Config::BC_ULTIMATE_ATC_IS_PRO): ?>
165
- <p class="bc-uatc-upgrade-notice">This feature is available in the PRO version only. <a target="_blank" href="<?php echo Config::BC_ULTIMATE_ATC_LANDING_PAGE; ?>">Click here to upgrade</a></p>
166
  <?php endif; ?>
167
 
168
  <?php $loading_icon = Options::bc_atc_get_option($uatcOptions, 'loadingIcon'); ?>
169
 
170
  <label for=""><i class="" style="display: block; color: transparent;">.</i> <input <?php echo ( $loading_icon == ''? "checked" : "") ?> value="" type="radio" name="loading-icon" ></label>
171
- <label for=""><i class="icon-atc-spinner-01"></i> <input <?php echo ( $loading_icon == '\e839'? "checked" : "") ?> value="\e839" type="radio" name="loading-icon" ></label>
172
  <label for=""><i class="icon-atc-spinner-02"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\e834'? "checked" : "") ?> value="\e834" type="radio" name="loading-icon" > </label>
173
  <label for=""><i class="icon-atc-spinner-03"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\f529'? "checked" : "") ?> value="\f529" type="radio" name="loading-icon" > </label>
174
  <label for=""><i class="icon-atc-spinner-04"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\e830'? "checked" : "") ?> value="\e830" type="radio" name="loading-icon" > </label>
@@ -191,8 +194,8 @@ global $uatcOptions;
191
  <?php endif; ?>
192
 
193
  <?php $added_icon = Options::bc_atc_get_option($uatcOptions, 'addedIcon'); ?>
194
- <label for=""><i class="" style="display: block; color: transparent;">.</i> <input <?php echo ( $added_icon == ''? "checked" : "") ?> value="" type="radio" name="added-icon" ></label>
195
- <label for=""><i class="icon-atc-added-01"></i> <input <?php echo ( $added_icon == '\e801'? "checked" : "") ?> value="\e801" type="radio" name="added-icon" ></label>
196
  <label for=""><i class="icon-atc-added-02"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\e800'? "checked" : "") ?> value="\e800" type="radio" name="added-icon" ></label>
197
  <label for=""><i class="icon-atc-added-03"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\e802'? "checked" : "") ?> value="\e802" type="radio" name="added-icon" ></label>
198
  <label for=""><i class="icon-atc-added-04"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\f06d'? "checked" : "") ?> value="\f06d" type="radio" name="added-icon" ></label>
@@ -384,11 +387,16 @@ global $uatcOptions;
384
  </div>
385
  <div>
386
  <h4>On hover</h4>
 
387
  <label for="">Button's background color</label>
388
- <input type="text" class="bc-uatc-color-picker" value="<?php echo Options::bc_atc_get_option($uatcOptions, 'buttonSolidHoverBackgroundColor'); ?>" id="button-solid-hover-background-color">
389
 
390
  <label for="">Button's text color</label>
391
- <input type="text" value="<?php echo Options::bc_atc_get_option($uatcOptions, 'buttonSolidHoverTextColor'); ?>" class="bc-uatc-color-picker" id="button-solid-hover-text-color">
 
 
 
 
392
  </div>
393
 
394
  </div>
93
 
94
  <div id="icon-size-color" >
95
  <h4>Icon size and color</h4>
96
+ <?php if (!Config::BC_ULTIMATE_ATC_IS_PRO): ?>
97
+ <p class="bc-uatc-upgrade-notice">Icon size and colors are available in the PRO version only. <a target="_blank" href="<?php echo Config::BC_ULTIMATE_ATC_LANDING_PAGE . '?src=upgrade_icon_size_and_color'; ?>">Click here to upgrade</a></p>
98
+ <?php endif; ?>
99
  <div class="bc-uk-flex bc-uk-flex-between">
100
  <div>
101
  <label for="">Icon size</label>
102
  <div class="bc-uk-flex">
103
+ <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> value="<?php echo Options::bc_atc_get_option($uatcOptions, 'iconFontSize'); ?>" type="number" id="icon-font-size" placeholder="icon font size">
104
+ <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> value="<?php echo Options::bc_atc_get_option($uatcOptions, 'iconFontSizeUnit'); ?>" type="text" id="icon-font-size-unit" placeholder="icon font size unit(px, em, %)">
105
  </div>
106
  </div>
107
 
108
  <div>
109
  <label for="">Icon color</label>
110
+ <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only" disabled' : ''); ?> type="text" class="bc-uatc-color-picker" value="<?php echo Options::bc_atc_get_option($uatcOptions, 'buttonIconColor'); ?>" id="button-icon-color">
111
  </div>
112
 
113
  </div>
139
  <?php $icon = Options::bc_atc_get_option($uatcOptions, 'icon'); ?>
140
  <label for=""><i class="" style="display: block; color: transparent;">.</i> <input <?php echo ($icon == ''? "checked" : "") ?> value="" type="radio" name="button-icon" ></label>
141
 
142
+ <label for=""><i class="icon-atc-cart-01"></i> <input <?php echo ($icon == '\e817'? "checked" : "") ?> value="\e817" type="radio" name="button-icon" ></label>
143
+ <label for=""><i class="icon-atc-cart-04"></i> <input <?php echo ($icon == '\f291'? "checked" : "") ?> value="\f291" type="radio" name="button-icon" > </label>
144
+ <label for=""><i class="icon-atc-cart-05"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\f217'? "checked" : "") ?> value="\f217" type="radio" name="button-icon" > </label>
145
+ <label for=""><i class="icon-atc-cart-06"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\e819'? "checked" : "") ?> value="\e819" type="radio" name="button-icon" > </label>
146
+ <label for=""> <i class="icon-atc-cart-07"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\e81d'? "checked" : "") ?> value="\e81d" type="radio" name="button-icon" ></label>
147
+ <label for=""><i class="icon-atc-cart-08"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\f290'? "checked" : "") ?> value="\f290" type="radio" name="button-icon" > </label>
148
+ <label for=""><i class="icon-atc-cart-09"></i><input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\f218'? "checked" : "") ?> value="\f218" type="radio" name="button-icon" > </label>
149
+ <label for=""><i class="icon-atc-cart-10"></i><input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\e81a'? "checked" : "") ?> value="\e81a" type="radio" name="button-icon" > </label>
150
+ <label for=""><i class="icon-atc-cart-11"></i><input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\e81e'? "checked" : "") ?> value="\e81e" type="radio" name="button-icon" > </label>
151
+ <label for=""> <i class="icon-atc-cart-12"></i><input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\f23d'? "checked" : "") ?> value="\f23d" type="radio" name="button-icon" ></label>
152
+ <label for=""><i class="icon-atc-cart-13"></i><input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ($icon == '\e81b'? "checked" : "") ?> value="\e81b" type="radio" name="button-icon" > </label>
153
 
154
 
155
  <i class="fa <?php echo Options::bc_atc_get_option($uatcOptions, 'icon'); ?>" id="icon-preview"></i>
165
  <label for="">Loading icon</label>
166
  <p class="bc-atc-explain">This loading icon will show up when the customer click on the add to cart button</p>
167
  <?php if (!Config::BC_ULTIMATE_ATC_IS_PRO): ?>
168
+ <p class="bc-uatc-upgrade-notice">Loading icons are available in the PRO version only. <a target="_blank" href="<?php echo Config::BC_ULTIMATE_ATC_LANDING_PAGE; ?>">Click here to upgrade</a></p>
169
  <?php endif; ?>
170
 
171
  <?php $loading_icon = Options::bc_atc_get_option($uatcOptions, 'loadingIcon'); ?>
172
 
173
  <label for=""><i class="" style="display: block; color: transparent;">.</i> <input <?php echo ( $loading_icon == ''? "checked" : "") ?> value="" type="radio" name="loading-icon" ></label>
174
+ <label for=""><i class="icon-atc-spinner-01"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\e839'? "checked" : "") ?> value="\e839" type="radio" name="loading-icon" ></label>
175
  <label for=""><i class="icon-atc-spinner-02"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\e834'? "checked" : "") ?> value="\e834" type="radio" name="loading-icon" > </label>
176
  <label for=""><i class="icon-atc-spinner-03"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\f529'? "checked" : "") ?> value="\f529" type="radio" name="loading-icon" > </label>
177
  <label for=""><i class="icon-atc-spinner-04"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $loading_icon == '\e830'? "checked" : "") ?> value="\e830" type="radio" name="loading-icon" > </label>
194
  <?php endif; ?>
195
 
196
  <?php $added_icon = Options::bc_atc_get_option($uatcOptions, 'addedIcon'); ?>
197
+ <label for=""><i class="" style="display: block; color: transparent;">.</i> <input <?php echo ( $added_icon == ''? "checked" : "") ?> value="" type="radio" name="added-icon" ></label>
198
+ <label for=""><i class="icon-atc-added-01"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\e801'? "checked" : "") ?> value="\e801" type="radio" name="added-icon" ></label>
199
  <label for=""><i class="icon-atc-added-02"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\e800'? "checked" : "") ?> value="\e800" type="radio" name="added-icon" ></label>
200
  <label for=""><i class="icon-atc-added-03"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\e802'? "checked" : "") ?> value="\e802" type="radio" name="added-icon" ></label>
201
  <label for=""><i class="icon-atc-added-04"></i> <input <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only"' : ''); ?> <?php echo ( $added_icon == '\f06d'? "checked" : "") ?> value="\f06d" type="radio" name="added-icon" ></label>
387
  </div>
388
  <div>
389
  <h4>On hover</h4>
390
+
391
  <label for="">Button's background color</label>
392
+ <input type="text" class="bc-uatc-color-picker" <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only" disabled' : ''); ?> value="<?php echo Options::bc_atc_get_option($uatcOptions, 'buttonSolidHoverBackgroundColor'); ?>" id="button-solid-hover-background-color">
393
 
394
  <label for="">Button's text color</label>
395
+ <input type="text" <?php echo (!Config::BC_ULTIMATE_ATC_IS_PRO ? 'data-field="bc-uatc-pro-only" disabled' : ''); ?> value="<?php echo Options::bc_atc_get_option($uatcOptions, 'buttonSolidHoverTextColor'); ?>" class="bc-uatc-color-picker" id="button-solid-hover-text-color">
396
+
397
+ <?php if (!Config::BC_ULTIMATE_ATC_IS_PRO): ?>
398
+ <p class="bc-uatc-upgrade-notice">Hover state colors are pro only feature. <a target="_blank" href="<?php echo Config::BC_ULTIMATE_ATC_LANDING_PAGE; ?>">Click here to upgrade</a></p>
399
+ <?php endif; ?>
400
  </div>
401
 
402
  </div>