Changeset 2600081
- Timestamp:
- 09/16/2021 04:36:05 PM (3 years ago)
- Location:
- ultimate-coupon-for-woocommerce/trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
ultimate-coupon-for-woocommerce/trunk/UCFW.php
r2599318 r2600081 14 14 * @var string 15 15 */ 16 public $version = '1.0. 1';16 public $version = '1.0.'; 17 17 18 18 /** … … 53 53 add_action( 'activated_plugin', array($this, 'activationRedirect') ); 54 54 55 add_filter( 'plugin_action_links_' . plugin_basename(__DIR__) . '/ultimate-coupon s-for-woocommerce-free.php', array( $this, 'settingLink' ) );55 add_filter( 'plugin_action_links_' . plugin_basename(__DIR__) . '/ultimate-coupone.php', array( $this, 'settingLink' ) ); 56 56 add_filter( 'plugin_row_meta', array( $this, 'helpLinks' ), 10, 2); 57 57 } … … 173 173 public function localization_setup() 174 174 { 175 load_plugin_textdomain( 'ultimate-coupon s-for-woocommerce-free', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );175 load_plugin_textdomain( 'ultimate-coupone', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 176 176 } 177 177 … … 268 268 <img class="ucfw-logo" src="' . UCFW_RESOURCES . '/images/UCFW-Logo.png"> 269 269 <div class="ucfw-admin-notice-content"> 270 <h2>' . esc_html__( 'Required dependency.', 'ultimate-coupon s-for-woocommerce-free' ) .'</h2>271 <p>' . esc_html__( 'Please ensure you have the WooCommerce plugin installed and activated.', 'ultimate-coupon s-for-woocommerce-free' ) . '</p>270 <h2>' . esc_html__( 'Required dependency.', 'ultimate-coupone' ) .'</h2> 271 <p>' . esc_html__( 'Please ensure you have the WooCommerce plugin installed and activated.', 'ultimate-coupone' ) . '</p> 272 272 </div> 273 273 </div>'; … … 281 281 public function activationRedirect( $plugin ) 282 282 { 283 if ( plugin_basename(__DIR__) . '/ultimate-coupon s-for-woocommerce-free.php' == $plugin && class_exists('woocommerce') )283 if ( plugin_basename(__DIR__) . '/ultimate-coupone.php' == $plugin && class_exists('woocommerce') ) 284 284 exit( wp_redirect( admin_url( '/admin.php?page=crb_carbon_fields_container_get_started.php' ) ) ); 285 285 } … … 291 291 public function settingLink( $links ) 292 292 { 293 $settingLink = sprintf( "<a href='%s'>%s</a>", esc_url( admin_url( '/admin.php?page=crb_carbon_fields_container_ucfw_global_settings.php' ) ), esc_html__( 'Settings', 'ultimate-coupon s-for-woocommerce-free' ) );293 $settingLink = sprintf( "<a href='%s'>%s</a>", esc_url( admin_url( '/admin.php?page=crb_carbon_fields_container_ucfw_global_settings.php' ) ), esc_html__( 'Settings', 'ultimate-coupone' ) ); 294 294 295 295 if ( !class_exists('UCFWP') ) 296 $premiumLink = sprintf( "<a class='ucfw_get_premium' target='_blank' href='%s'>%s</a>", esc_url( '//jompha.com/ultimate-coupons-for-woocommerce' ), esc_html__( 'Get Premium', 'ultimate-coupon s-for-woocommerce-free' ) );296 $premiumLink = sprintf( "<a class='ucfw_get_premium' target='_blank' href='%s'>%s</a>", esc_url( '//jompha.com/ultimate-coupons-for-woocommerce' ), esc_html__( 'Get Premium', 'ultimate-coupone' ) ); 297 297 else 298 $premiumLink = sprintf( "<a class='ucfw_get_premium' target='_blank' href='%s'>%s</a>", esc_url( '//support.jompha.com' ), esc_html__( 'Get Support', 'ultimate-coupon s-for-woocommerce-free' ) );298 $premiumLink = sprintf( "<a class='ucfw_get_premium' target='_blank' href='%s'>%s</a>", esc_url( '//support.jompha.com' ), esc_html__( 'Get Support', 'ultimate-coupone' ) ); 299 299 300 300 $links[] = $settingLink; … … 310 310 public function helpLinks( $links, $plugin ) 311 311 { 312 if ( plugin_basename(__DIR__) . '/ultimate-coupon s-for-woocommerce-free.php' != $plugin )312 if ( plugin_basename(__DIR__) . '/ultimate-coupone.php' != $plugin ) 313 313 return $links; 314 314 315 $docsLink = sprintf( "<a href='%s'>%s</a>", esc_url( '//docs.jompha.com/ultimate-coupons-for-woocommerce' ), esc_html__( 'Docs', 'ultimate-coupon s-for-woocommerce-free' ) );316 $supportLink = sprintf( "<a href='%s'>%s</a>", esc_url( '//forum.jompha.com' ), esc_html__( 'Community support', 'ultimate-coupon s-for-woocommerce-free' ) );315 $docsLink = sprintf( "<a href='%s'>%s</a>", esc_url( '//docs.jompha.com/ultimate-coupons-for-woocommerce' ), esc_html__( 'Docs', 'ultimate-coupone' ) ); 316 $supportLink = sprintf( "<a href='%s'>%s</a>", esc_url( '//forum.jompha.com' ), esc_html__( 'Community support', 'ultimate-coupone' ) ); 317 317 318 318 $links[] = $docsLink; -
ultimate-coupon-for-woocommerce/trunk/classes/API.class.php
r2599318 r2600081 46 46 'args' => array( 47 47 'id' => array( 48 'description' => esc_html__( 'Unique identifier for product search', 'ultimate-coupon s-for-woocommerce-free' ),48 'description' => esc_html__( 'Unique identifier for product search', 'ultimate-coupone' ), 49 49 'type' => 'string', 50 50 ), … … 65 65 'args' => array( 66 66 'id' => array( 67 'description' => esc_html__( 'Unique identifier for product search', 'ultimate-coupon s-for-woocommerce-free' ),67 'description' => esc_html__( 'Unique identifier for product search', 'ultimate-coupone' ), 68 68 'type' => 'string', 69 69 ), … … 84 84 'args' => array( 85 85 'id' => array( 86 'description' => esc_html__( 'Unique identifier of the coupon', 'ultimate-coupon s-for-woocommerce-free' ),86 'description' => esc_html__( 'Unique identifier of the coupon', 'ultimate-coupone' ), 87 87 'type' => 'number', 88 88 ), … … 103 103 'args' => array( 104 104 'id' => array( 105 'description' => esc_html__( 'Unique identifier of the coupon', 'ultimate-coupon s-for-woocommerce-free' ),105 'description' => esc_html__( 'Unique identifier of the coupon', 'ultimate-coupone' ), 106 106 'type' => 'number', 107 107 ), -
ultimate-coupon-for-woocommerce/trunk/classes/Admin/Conditions.class.php
r2599318 r2600081 99 99 100 100 $compare = array( 101 'eq' => esc_html__( 'EXACTLY', 'ultimate-coupon s-for-woocommerce-free' ),102 'nt' => esc_html__( 'ANYTHING BUT', 'ultimate-coupon s-for-woocommerce-free' ),103 'mt' => esc_html__( 'MORE THAN', 'ultimate-coupon s-for-woocommerce-free' ),104 'lt' => esc_html__( 'LESS THAN', 'ultimate-coupon s-for-woocommerce-free' )101 'eq' => esc_html__( 'EXACTLY', 'ultimate-coupone' ), 102 'nt' => esc_html__( 'ANYTHING BUT', 'ultimate-coupone' ), 103 'mt' => esc_html__( 'MORE THAN', 'ultimate-coupone' ), 104 'lt' => esc_html__( 'LESS THAN', 'ultimate-coupone' ) 105 105 ); 106 $userRoles = array_merge( array( 'guest' => esc_html__( 'Guest', 'ultimate-coupon s-for-woocommerce-free' ) ), $wp_roles->get_names() );106 $userRoles = array_merge( array( 'guest' => esc_html__( 'Guest', 'ultimate-coupone' ) ), $wp_roles->get_names() ); 107 107 108 108 $this->configurations = array( 109 109 'product_category' => array( 110 110 'id' => 'product-category', 111 'name' => esc_html__( 'Product Categories in Cart', 'ultimate-coupon s-for-woocommerce-free' ),111 'name' => esc_html__( 'Product Categories in Cart', 'ultimate-coupone' ), 112 112 'inputs' => array( 113 113 array( … … 115 115 'options' => array(), 116 116 'search' => 'product-categories', 117 'placeholder' => esc_html__( 'Search for categories by name', 'ultimate-coupon s-for-woocommerce-free' ),117 'placeholder' => esc_html__( 'Search for categories by name', 'ultimate-coupone' ), 118 118 'multiple' => true, 119 119 'id' => 'categories' … … 127 127 'tag' => 'input', 128 128 'type' => 'number', 129 'placeholder' => esc_html__( 'Number of products of this category', 'ultimate-coupon s-for-woocommerce-free' ),129 'placeholder' => esc_html__( 'Number of products of this category', 'ultimate-coupone' ), 130 130 'id' => 'value' 131 131 ) … … 134 134 'allowed_users' => array( 135 135 'id' => 'allowed-users', 136 'name' => esc_html__( 'Allowed Users', 'ultimate-coupon s-for-woocommerce-free' ),136 'name' => esc_html__( 'Allowed Users', 'ultimate-coupone' ), 137 137 'inputs' => array( 138 138 array( … … 140 140 'options' => $userRoles, 141 141 'type' => 'user-roles', 142 'placeholder' => esc_html__( 'Choose roles:', 'ultimate-coupon s-for-woocommerce-free' ),142 'placeholder' => esc_html__( 'Choose roles:', 'ultimate-coupone' ), 143 143 'multiple' => true 144 144 ) … … 147 147 'disallowed_users' => array( 148 148 'id' => 'disallowed-users', 149 'name' => esc_html__( 'Disallowed Users', 'ultimate-coupon s-for-woocommerce-free' ),149 'name' => esc_html__( 'Disallowed Users', 'ultimate-coupone' ), 150 150 'inputs' => array( 151 151 array( … … 153 153 'options' => $userRoles, 154 154 'type' => 'user-roles', 155 'placeholder' => esc_html__( 'Choose roles:', 'ultimate-coupon s-for-woocommerce-free' ),155 'placeholder' => esc_html__( 'Choose roles:', 'ultimate-coupone' ), 156 156 'multiple' => true 157 157 ) … … 160 160 'logged_status' => array( 161 161 'id' => 'logged-status', 162 'name' => esc_html__( 'User Logged Status', 'ultimate-coupon s-for-woocommerce-free' ),162 'name' => esc_html__( 'User Logged Status', 'ultimate-coupone' ), 163 163 'inputs' => array( 164 164 array( 165 165 'tag' => 'select', 166 166 'options' => array( 167 'yes' => esc_html__( 'Logged In', 'ultimate-coupon s-for-woocommerce-free' ),168 'no' => esc_html__( 'Guest', 'ultimate-coupon s-for-woocommerce-free' )167 'yes' => esc_html__( 'Logged In', 'ultimate-coupone' ), 168 'no' => esc_html__( 'Guest', 'ultimate-coupone' ) 169 169 ), 170 'placeholder' => esc_html__( 'Choose logged status:', 'ultimate-coupon s-for-woocommerce-free' )170 'placeholder' => esc_html__( 'Choose logged status:', 'ultimate-coupone' ) 171 171 ) 172 172 ) … … 174 174 'first_purchase' => array( 175 175 'id' => 'first-purchase', 176 'name' => esc_html__( 'User First Purchase Only', 'ultimate-coupon s-for-woocommerce-free' ),176 'name' => esc_html__( 'User First Purchase Only', 'ultimate-coupone' ), 177 177 'inputs' => array( 178 178 array( 179 179 'tag' => 'select', 180 180 'options' => array( 181 'yes' => esc_html__( 'Yes', 'ultimate-coupon s-for-woocommerce-free' ),182 'no' => esc_html__( 'No', 'ultimate-coupon s-for-woocommerce-free' )181 'yes' => esc_html__( 'Yes', 'ultimate-coupone' ), 182 'no' => esc_html__( 'No', 'ultimate-coupone' ) 183 183 ), 184 'placeholder' => esc_html__( 'Yes or No', 'ultimate-coupon s-for-woocommerce-free' )184 'placeholder' => esc_html__( 'Yes or No', 'ultimate-coupone' ) 185 185 ) 186 186 ) … … 188 188 'cart_quantity' => array( 189 189 'id' => 'cart-quantity', 190 'name' => esc_html__( 'Cart Quantity', 'ultimate-coupon s-for-woocommerce-free' ),190 'name' => esc_html__( 'Cart Quantity', 'ultimate-coupone' ), 191 191 'inputs' => array( 192 192 array( … … 199 199 'type' => 'number', 200 200 'id' => 'value', 201 'placeholder' => esc_html__( 'Number of products in cart', 'ultimate-coupon s-for-woocommerce-free' )201 'placeholder' => esc_html__( 'Number of products in cart', 'ultimate-coupone' ) 202 202 ) 203 203 ) … … 205 205 'cart_subtotal' => array( 206 206 'id' => 'cart-subtotal', 207 'name' => esc_html__( 'Cart Subtotal', 'ultimate-coupon s-for-woocommerce-free' ),208 'label' => esc_html__( 'Cart Subtotal', 'ultimate-coupon s-for-woocommerce-free' ) . ' (' . get_woocommerce_currency_symbol() . ')',207 'name' => esc_html__( 'Cart Subtotal', 'ultimate-coupone' ), 208 'label' => esc_html__( 'Cart Subtotal', 'ultimate-coupone' ) . ' (' . get_woocommerce_currency_symbol() . ')', 209 209 'inputs' => array( 210 210 array( … … 217 217 'type' => 'number', 218 218 'id' => 'value', 219 'placeholder' => get_woocommerce_currency_symbol() . ' ' . esc_html__( 'amount in cart', 'ultimate-coupon s-for-woocommerce-free' )219 'placeholder' => get_woocommerce_currency_symbol() . ' ' . esc_html__( 'amount in cart', 'ultimate-coupone' ) 220 220 ) 221 221 ) … … 223 223 'product_quantity' => array( 224 224 'id' => 'product-quantity', 225 'name' => esc_html__( 'Product Quantity in Cart', 'ultimate-coupon s-for-woocommerce-free' ),225 'name' => esc_html__( 'Product Quantity in Cart', 'ultimate-coupone' ), 226 226 'premiumholder' => true 227 227 ), 228 228 'order_count' => array( 229 229 'id' => 'order-count', 230 'name' => esc_html__( 'User Order Count', 'ultimate-coupon s-for-woocommerce-free' ),230 'name' => esc_html__( 'User Order Count', 'ultimate-coupone' ), 231 231 'premiumholder' => true 232 232 ), 233 233 'total_spent' => array( 234 234 'id' => 'total-spent', 235 'name' => esc_html__( 'User Total Spent', 'ultimate-coupon s-for-woocommerce-free' ),235 'name' => esc_html__( 'User Total Spent', 'ultimate-coupone' ), 236 236 'premiumholder' => true 237 237 ), 238 238 'hours_after_registration' => array( 239 239 'id' => 'hours-after-registration', 240 'name' => esc_html__( 'Hours After User Registration', 'ultimate-coupon s-for-woocommerce-free' ),240 'name' => esc_html__( 'Hours After User Registration', 'ultimate-coupone' ), 241 241 'premiumholder' => true 242 242 ), 243 243 'hours_after_last_order' => array( 244 244 'id' => 'hours-after-last-order', 245 'name' => esc_html__( 'Hours After User Last Order', 'ultimate-coupon s-for-woocommerce-free' ),245 'name' => esc_html__( 'Hours After User Last Order', 'ultimate-coupone' ), 246 246 'premiumholder' => true 247 247 ), 248 248 'has_ordered_before' => array( 249 249 'id' => 'has-ordered-before', 250 'name' => esc_html__( 'Has User Ordered Before', 'ultimate-coupon s-for-woocommerce-free' ),250 'name' => esc_html__( 'Has User Ordered Before', 'ultimate-coupone' ), 251 251 'premiumholder' => true 252 252 ), 253 253 'shipping_methods' => array( 254 254 'id' => 'shipping-methods', 255 'name' => esc_html__( 'Shipping Methods', 'ultimate-coupon s-for-woocommerce-free' ),255 'name' => esc_html__( 'Shipping Methods', 'ultimate-coupone' ), 256 256 'premiumholder' => true 257 257 ), 258 258 'payment_methods' => array( 259 259 'id' => 'payment-methods', 260 'name' => esc_html__( 'Payment Methods', 'ultimate-coupon s-for-woocommerce-free' ),260 'name' => esc_html__( 'Payment Methods', 'ultimate-coupone' ), 261 261 'premiumholder' => true 262 262 ), 263 263 'custom_user_meta' => array( 264 264 'id' => 'custom-user-meta', 265 'name' => esc_html__( 'Custom User Meta', 'ultimate-coupon s-for-woocommerce-free' ),265 'name' => esc_html__( 'Custom User Meta', 'ultimate-coupone' ), 266 266 'premiumholder' => true 267 267 ), 268 268 'custom_product_meta' => array( 269 269 'id' => 'custom-product-meta', 270 'name' => esc_html__( 'Custom Product Meta', 'ultimate-coupon s-for-woocommerce-free' ),270 'name' => esc_html__( 'Custom Product Meta', 'ultimate-coupone' ), 271 271 'premiumholder' => true 272 272 ) -
ultimate-coupon-for-woocommerce/trunk/classes/Admin/Deals.class.php
r2599318 r2600081 106 106 { 107 107 $itemTypes[] = array( 108 'text' => esc_html( $item['name'] ) . ' (' . esc_html__( 'PREMIUM', 'ultimate-coupon s-for-woocommerce-free' ) . ')',108 'text' => esc_html( $item['name'] ) . ' (' . esc_html__( 'PREMIUM', 'ultimate-coupone' ) . ')', 109 109 'value' => 'premium', 110 110 'selected' => false … … 161 161 { 162 162 $targetMatches[] = array( 163 'text' => esc_html( $match['name'] ) . ' (' . esc_html__( 'PREMIUM', 'ultimate-coupon s-for-woocommerce-free' ) . ')',163 'text' => esc_html( $match['name'] ) . ' (' . esc_html__( 'PREMIUM', 'ultimate-coupone' ) . ')', 164 164 'value' => 'premium', 165 165 'selected' => false … … 203 203 { 204 204 $applyTypes[] = array( 205 'text' => esc_html( $apply['name'] ) . ' (' . esc_html__( 'PREMIUM', 'ultimate-coupon s-for-woocommerce-free' ) . ')',205 'text' => esc_html( $apply['name'] ) . ' (' . esc_html__( 'PREMIUM', 'ultimate-coupone' ) . ')', 206 206 'value' => 'premium', 207 207 'selected' => false … … 244 244 $this->itemTypes = apply_filters( 'ucfw_deals_item_types', array( 245 245 'products' => array( 246 'name' => esc_html__( 'Products', 'ultimate-coupon s-for-woocommerce-free' ),246 'name' => esc_html__( 'Products', 'ultimate-coupone' ), 247 247 'premiumholder' => false 248 248 ) … … 254 254 $this->targetMatches = apply_filters( 'ucfw_deals_target_matches', array( 255 255 'all' => array( 256 'name' => esc_html__( 'Match All', 'ultimate-coupon s-for-woocommerce-free' ),256 'name' => esc_html__( 'Match All', 'ultimate-coupone' ), 257 257 'premiumholder' => false 258 258 ), 259 259 'any' => array( 260 'name' => esc_html__( 'Match Any', 'ultimate-coupon s-for-woocommerce-free' ),260 'name' => esc_html__( 'Match Any', 'ultimate-coupone' ), 261 261 'premiumholder' => true 262 262 ) … … 268 268 $this->applyTypes = apply_filters( 'ucfw_deals_apply_types', array( 269 269 'all' => array( 270 'name' => esc_html__( 'Apply All', 'ultimate-coupon s-for-woocommerce-free' ),270 'name' => esc_html__( 'Apply All', 'ultimate-coupone' ), 271 271 'premiumholder' => false 272 272 ), 273 273 'cheapest' => array( 274 'name' => esc_html__( 'Apply Cheapest', 'ultimate-coupon s-for-woocommerce-free' ),274 'name' => esc_html__( 'Apply Cheapest', 'ultimate-coupone' ), 275 275 'premiumholder' => true 276 276 ), 277 277 'random' => array( 278 'name' => esc_html__( 'Apply Random', 'ultimate-coupon s-for-woocommerce-free' ),278 'name' => esc_html__( 'Apply Random', 'ultimate-coupone' ), 279 279 'premiumholder' => true 280 280 ) -
ultimate-coupon-for-woocommerce/trunk/classes/Admin/Fields.class.php
r2599318 r2600081 40 40 public function buyPremium() 41 41 { 42 return '<a class="ucfw-buy-premium" href="javascript:void(0);">' . esc_html__( 'Buy Premium', 'ultimate-coupon s-for-woocommerce-free' ) . '</a>';42 return '<a class="ucfw-buy-premium" href="javascript:void(0);">' . esc_html__( 'Buy Premium', 'ultimate-coupone' ) . '</a>'; 43 43 } 44 44 … … 50 50 public function premiumPlaceholder() 51 51 { 52 return esc_html__( 'Premium Feature', 'ultimate-coupon s-for-woocommerce-free' );52 return esc_html__( 'Premium Feature', 'ultimate-coupone' ); 53 53 } 54 54 … … 71 71 } 72 72 73 $this->singleFields = Container::make( 'post_meta', esc_html__( 'Ultimate Coupon Settings', 'ultimate-coupon s-for-woocommerce-free' ) );73 $this->singleFields = Container::make( 'post_meta', esc_html__( 'Ultimate Coupon Settings', 'ultimate-coupone' ) ); 74 74 $this->singleFields->where( 'post_type', '=', 'shop_coupon' ); 75 75 … … 77 77 * Deals 78 78 */ 79 $this->singleFields->add_tab( esc_html__( 'Deals', 'ultimate-coupon s-for-woocommerce-free' ), array(79 $this->singleFields->add_tab( esc_html__( 'Deals', 'ultimate-coupone' ), array( 80 80 81 81 Field::make( 'html', 'ucfw_deals_html') … … 87 87 <div class="ucfw-deals-enabled-container"> 88 88 <input type="checkbox" value="yes" name="_ucfw_deals[0][enabled]" id="ucfw-deals-0-enabled-checkbox"> 89 <label for="ucfw-deals-0-enabled-checkbox">' . esc_html__( 'Enable Deals', 'ultimate-coupon s-for-woocommerce-free' ) . '</label>90 <p class="description">' . esc_html__( 'Check this box to turn on all deals settings for this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) . '</p>89 <label for="ucfw-deals-0-enabled-checkbox">' . esc_html__( 'Enable Deals', 'ultimate-coupone' ) . '</label> 90 <p class="description">' . esc_html__( 'Check this box to turn on all deals settings for this coupon.', 'ultimate-coupone' ) . '</p> 91 91 </div> 92 92 <div class="ui divider"></div> 93 93 <div class="ucfw-deals-allow-repeated-use-container"> 94 94 <input type="checkbox" value="yes" name="_ucfw_deals[0][allow_repeated_use]" id="ucfw-deals-0-allow-repeated-use-checkbox"> 95 <label for="ucfw-deals-0-allow-repeated-use-checkbox">' . esc_html__( 'Allow Repeated Use', 'ultimate-coupon s-for-woocommerce-free' ) . '</label>96 <p class="description">' . esc_html__( 'Check if you want users to be able to avail these deals not just once but every time the coupon is used.', 'ultimate-coupon s-for-woocommerce-free' ) . '</p>95 <label for="ucfw-deals-0-allow-repeated-use-checkbox">' . esc_html__( 'Allow Repeated Use', 'ultimate-coupone' ) . '</label> 96 <p class="description">' . esc_html__( 'Check if you want users to be able to avail these deals not just once but every time the coupon is used.', 'ultimate-coupone' ) . '</p> 97 97 </div> 98 98 <div class="ui divider"></div> 99 99 <div class="ucfw-deals-target-container"> 100 <h4 class="ui header">' . esc_html__( 'Target Items', 'ultimate-coupon s-for-woocommerce-free' ) . '</h4>100 <h4 class="ui header">' . esc_html__( 'Target Items', 'ultimate-coupone' ) . '</h4> 101 101 <div class="ucfw-deals-target-type"> 102 102 <select id="ucfw-deals-target-item-types" class="ucfw-deals-item-types ui dropdown" name="_ucfw_deals[0][target][item_type]" data-section="target" data-item-type="products"></select> … … 106 106 <div class="ucfw-deals-types-description"> 107 107 <ul> 108 <li>' . esc_html__( 'Match All – If all target', 'ultimate-coupon s-for-woocommerce-free' ) . '<span class="ucfw-deals-target-items-type ucfw-text-lowercase">' . esc_html__( 'products', 'ultimate-coupons-for-woocommerce-free' ) . '</span>' . esc_html__( ' with specified quantity exist in cart, trigger the deal.', 'ultimate-coupons-for-woocommerce-free' ) . '</li>109 <li>' . esc_html__( 'Match Any – If any of the target', 'ultimate-coupon s-for-woocommerce-free' ) . ' <span class="ucfw-deals-target-items-type ucfw-text-lowercase">' . esc_html__( 'products', 'ultimate-coupons-for-woocommerce-free' ) . '</span> ' . esc_html__( 'match with specified quantity exist in cart, trigger the deal.', 'ultimate-coupons-for-woocommerce-free' ) . '</li>108 <li>' . esc_html__( 'Match All – If all target', 'ultimate-coupone' ) . '</li> 109 <li>' . esc_html__( 'Match Any – If any of the target', 'ultimate-coupone' ) . '</li> 110 110 </ul> 111 111 </div> … … 115 115 <thead> 116 116 <tr> 117 <th class="ucfw-deals-target-item-type">' . esc_html__( 'Product', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>118 <th>' . esc_html__( 'Quantity', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>119 <th>' . esc_html__( 'Action', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>117 <th class="ucfw-deals-target-item-type">' . esc_html__( 'Product', 'ultimate-coupone' ) . '</th> 118 <th>' . esc_html__( 'Quantity', 'ultimate-coupone' ) . '</th> 119 <th>' . esc_html__( 'Action', 'ultimate-coupone' ) . '</th> 120 120 </tr> 121 121 </thead> … … 126 126 <i class="add icon"></i> 127 127 </div> 128 <a class="ui basic teal left pointing label">' . esc_html__( 'Add', 'ultimate-coupon s-for-woocommerce-free' ) . ' <span class="ucfw-deals-target-item-type">' . esc_html__( 'Product', 'ultimate-coupons-for-woocommerce-free' ) . '</span></a>128 <a class="ui basic teal left pointing label">' . esc_html__( 'Add', 'ultimate-coupone' ) . '</span></a> 129 129 </div> 130 130 </div> … … 132 132 <div class="ui divider"></div> 133 133 <div class="ucfw-deals-apply-container"> 134 <h4 class="ui header">' . esc_html__( 'Apply Items', 'ultimate-coupon s-for-woocommerce-free' ) . '</h4>134 <h4 class="ui header">' . esc_html__( 'Apply Items', 'ultimate-coupone' ) . '</h4> 135 135 <div class="ucfw-deals-apply-type"> 136 136 <select id="ucfw-deals-apply-item-types" class="ucfw-deals-item-types ui dropdown" name="_ucfw_deals[0][apply][item_type]" data-section="apply" data-item-type="products"></select> … … 140 140 <div class="ucfw-deals-types-description"> 141 141 <ul> 142 <li>' . esc_html__( 'Apply All – Apply all of the', 'ultimate-coupon s-for-woocommerce-free' ) . '<span class="ucfw-deals-target-item-type ucfw-text-lowercase">'. esc_html__('product', 'ultimate-coupons-for-woocommerce-free') .'</span>' . esc_html__( 'items in the list with specified quantity if deal is triggered.', 'ultimate-coupons-for-woocommerce-free' ) . '</li>143 <li>' . esc_html__( 'Apply Cheapest – Apply only the cheapest ', 'ultimate-coupon s-for-woocommerce-free' ) . '<span class="ucfw-deals-target-item-type ucfw-text-lowercase">' . esc_html__( 'products', 'ultimate-coupons-for-woocommerce-free' ) . '</span>' . esc_html__( ' item from the list with specified quantity if deal is triggered.', 'ultimate-coupons-for-woocommerce-free' ) . '</li>144 <li>' . esc_html__( 'Apply Random – Apply a random ', 'ultimate-coupon s-for-woocommerce-free' ) . '<span class="ucfw-deals-target-item-type ucfw-text-lowercase">' . esc_html__( 'products', 'ultimate-coupons-for-woocommerce-free' ) . '</span> ' . esc_html__( 'item from the list with specified quantity if deal is triggered.', 'ultimate-coupons-for-woocommerce-free' ) . '</li>142 <li>' . esc_html__( 'Apply All – Apply all of the', 'ultimate-coupone' ) . '</li> 143 <li>' . esc_html__( 'Apply Cheapest – Apply only the cheapest ', 'ultimate-coupone' ) . '</li> 144 <li>' . esc_html__( 'Apply Random – Apply a random ', 'ultimate-coupone' ) . '</li> 145 145 </ul> 146 146 </div> … … 150 150 <thead> 151 151 <tr> 152 <th class="ucfw-deals-apply-item-type">' . esc_html__( 'Product', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>153 <th>' . esc_html__( 'Quantity', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>154 <th>' . esc_html__( 'Discount', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>155 <th>' . esc_html__( 'Action', 'ultimate-coupon s-for-woocommerce-free' ) . '</th>152 <th class="ucfw-deals-apply-item-type">' . esc_html__( 'Product', 'ultimate-coupone' ) . '</th> 153 <th>' . esc_html__( 'Quantity', 'ultimate-coupone' ) . '</th> 154 <th>' . esc_html__( 'Discount', 'ultimate-coupone' ) . '</th> 155 <th>' . esc_html__( 'Action', 'ultimate-coupone' ) . '</th> 156 156 </tr> 157 157 </thead> … … 162 162 <i class="add icon"></i> 163 163 </div> 164 <a class="ui basic teal left pointing label">' . esc_html__( 'Add', 'ultimate-coupon s-for-woocommerce-free' ) . ' <span class="ucfw-deals-apply-item-type">' . esc_html__( 'Product', 'ultimate-coupons-for-woocommerce-free' ) . '</span></a>164 <a class="ui basic teal left pointing label">' . esc_html__( 'Add', 'ultimate-coupone' ) . '</span></a> 165 165 </div> 166 <button id="ucfw-btn-save-deals" class="blue ui button">' . esc_html__( 'Save', 'ultimate-coupon s-for-woocommerce-free' ) . '</button>166 <button id="ucfw-btn-save-deals" class="blue ui button">' . esc_html__( 'Save', 'ultimate-coupone' ) . '</button> 167 167 </div> 168 168 </div> … … 174 174 * Conditions 175 175 */ 176 $this->singleFields->add_tab( esc_html__( 'Conditions', 'ultimate-coupon s-for-woocommerce-free' ), array(176 $this->singleFields->add_tab( esc_html__( 'Conditions', 'ultimate-coupone' ), array( 177 177 178 178 Field::make( 'html', 'ucfw_conditions_html' ) … … 180 180 <div id="ucfw-conditions-enabled-container"> 181 181 <input type="checkbox" value="yes" name="_ucfw_conditions_enabled" id="ucfw-conditions-enabled-checkbox"> 182 <label for="ucfw-conditions-enabled-checkbox">' . esc_html__( 'Enable Conditions', 'ultimate-coupon s-for-woocommerce-free' ) . '</label>183 <p class="description">' . esc_html__( 'Check this box to turn on all conditions settings for this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) . '</p>182 <label for="ucfw-conditions-enabled-checkbox">' . esc_html__( 'Enable Conditions', 'ultimate-coupone' ) . '</label> 183 <p class="description">' . esc_html__( 'Check this box to turn on all conditions settings for this coupon.', 'ultimate-coupone' ) . '</p> 184 184 </div> 185 185 <div class="ui divider"></div> … … 193 193 <i class="add icon"></i> 194 194 </div> 195 <a class="ui basic teal left pointing label">' . esc_html__( 'Add Group', 'ultimate-coupon s-for-woocommerce-free' ) . '</a>196 </div> 197 <button id="ucfw-btn-save-conditions" class="blue ui button">' . esc_html__( 'Save', 'ultimate-coupon s-for-woocommerce-free' ) . '</button>195 <a class="ui basic teal left pointing label">' . esc_html__( 'Add Group', 'ultimate-coupone' ) . '</a> 196 </div> 197 <button id="ucfw-btn-save-conditions" class="blue ui button">' . esc_html__( 'Save', 'ultimate-coupone' ) . '</button> 198 198 </div> 199 199 </div> … … 205 205 * Scheduling 206 206 */ 207 $this->singleFields->add_tab( esc_html__( 'Schedule', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_fields_schedule', array(208 209 Field::make( 'checkbox', 'ucfw_schedule_enabled', esc_html__( 'Enable Schedule', 'ultimate-coupon s-for-woocommerce-free' ) )207 $this->singleFields->add_tab( esc_html__( 'Schedule', 'ultimate-coupone' ), apply_filters( 'ucfw_fields_schedule', array( 208 209 Field::make( 'checkbox', 'ucfw_schedule_enabled', esc_html__( 'Enable Schedule', 'ultimate-coupone' ) ) 210 210 ->set_option_value( 'yes' ) 211 ->set_help_text( esc_html__( 'Check this box to turn on all schedule settings for this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),212 213 Field::make( 'date_time', 'ucfw_schedule_start_date', esc_html__( 'Starts From', 'ultimate-coupon s-for-woocommerce-free' ) )211 ->set_help_text( esc_html__( 'Check this box to turn on all schedule settings for this coupon.', 'ultimate-coupone' ) ), 212 213 Field::make( 'date_time', 'ucfw_schedule_start_date', esc_html__( 'Starts From', 'ultimate-coupone' ) ) 214 214 ->set_width( 50 ) 215 ->set_help_text( esc_html__( 'The starting date and time from which the coupon can be applicable.', 'ultimate-coupon s-for-woocommerce-free' ) ),216 217 Field::make( 'date_time', 'ucfw_schedule_expire_date', esc_html__( 'Expires On', 'ultimate-coupon s-for-woocommerce-free' ) )215 ->set_help_text( esc_html__( 'The starting date and time from which the coupon can be applicable.', 'ultimate-coupone' ) ), 216 217 Field::make( 'date_time', 'ucfw_schedule_expire_date', esc_html__( 'Expires On', 'ultimate-coupone' ) ) 218 218 ->set_width( 50 ) 219 ->set_help_text( esc_html__( 'The expire date and time after which the coupon can no longer be used.', 'ultimate-coupon s-for-woocommerce-free' ) ),220 221 Field::make( 'text', 'ucfw_schedule_active_from', esc_html__( 'Daily Active Hours (Start)', 'ultimate-coupon s-for-woocommerce-free' ) )219 ->set_help_text( esc_html__( 'The expire date and time after which the coupon can no longer be used.', 'ultimate-coupone' ) ), 220 221 Field::make( 'text', 'ucfw_schedule_active_from', esc_html__( 'Daily Active Hours (Start)', 'ultimate-coupone' ) ) 222 222 ->set_width( 50 ) 223 223 ->set_attribute( 'readOnly', true ) 224 224 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 225 ->set_help_text( esc_html__( 'The starting time from when the couple can be applied each day', 'ultimate-coupon s-for-woocommerce-free' ) ),226 227 Field::make( 'text', 'ucfw_schedule_active_till', esc_html__( 'Daily Active Hours (End)', 'ultimate-coupon s-for-woocommerce-free' ) )225 ->set_help_text( esc_html__( 'The starting time from when the couple can be applied each day', 'ultimate-coupone' ) ), 226 227 Field::make( 'text', 'ucfw_schedule_active_till', esc_html__( 'Daily Active Hours (End)', 'ultimate-coupone' ) ) 228 228 ->set_width( 50 ) 229 229 ->set_attribute( 'readOnly', true ) 230 230 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 231 ->set_help_text( esc_html__( 'The ending time after when the couple cannot be applied for the day', 'ultimate-coupon s-for-woocommerce-free' ) ),232 233 Field::make( 'text', 'ucfw_schedule_inactive_days', esc_html__( 'Inactive Days', 'ultimate-coupon s-for-woocommerce-free' ) )231 ->set_help_text( esc_html__( 'The ending time after when the couple cannot be applied for the day', 'ultimate-coupone' ) ), 232 233 Field::make( 'text', 'ucfw_schedule_inactive_days', esc_html__( 'Inactive Days', 'ultimate-coupone' ) ) 234 234 ->set_width( 50 ) 235 235 ->set_attribute( 'readOnly', true ) 236 236 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 237 ->set_help_text( esc_html__( 'Days in a week when the coupon cannot be applied.', 'ultimate-coupon s-for-woocommerce-free' ) ),237 ->set_help_text( esc_html__( 'Days in a week when the coupon cannot be applied.', 'ultimate-coupone' ) ), 238 238 239 239 Field::make( 'html', 'ucfw_schedule_buy_premium') … … 245 245 * Share via url 246 246 */ 247 $this->singleFields->add_tab( esc_html__( 'URL', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_fields_url', array(248 249 Field::make( 'checkbox', 'ucfw_url_enabled', esc_html__( 'Enable URL', 'ultimate-coupon s-for-woocommerce-free' ) )247 $this->singleFields->add_tab( esc_html__( 'URL', 'ultimate-coupone' ), apply_filters( 'ucfw_fields_url', array( 248 249 Field::make( 'checkbox', 'ucfw_url_enabled', esc_html__( 'Enable URL', 'ultimate-coupone' ) ) 250 250 ->set_option_value( 'yes' ) 251 ->set_help_text( esc_html__('Check this box to turn on all URL settings for this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),252 253 Field::make( 'html', 'ucfw_url_link', esc_html__( 'Link', 'ultimate-coupon s-for-woocommerce-free' ) )251 ->set_help_text( esc_html__('Check this box to turn on all URL settings for this coupon.', 'ultimate-coupone' ) ), 252 253 Field::make( 'html', 'ucfw_url_link', esc_html__( 'Link', 'ultimate-coupone' ) ) 254 254 ->set_html(' 255 <label><strong>' . esc_html__( 'Link', 'ultimate-coupon s-for-woocommerce-free' ) .'</strong></label>255 <label><strong>' . esc_html__( 'Link', 'ultimate-coupone' ) .'</strong></label> 256 256 <input type="text" class="cf-text__input" value="' . esc_url( $referralLink ) . '" readonly> 257 257 ') 258 ->set_help_text( esc_html__('Use this link to directly shop with this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),259 260 Field::make( 'text', 'ucfw_url_custom_code', esc_html__( 'Custom Code', 'ultimate-coupon s-for-woocommerce-free' ) )258 ->set_help_text( esc_html__('Use this link to directly shop with this coupon.', 'ultimate-coupone' ) ), 259 260 Field::make( 'text', 'ucfw_url_custom_code', esc_html__( 'Custom Code', 'ultimate-coupone' ) ) 261 261 ->set_attribute( 'readOnly', true ) 262 262 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 263 ->set_help_text( esc_html__('Use this link to directly shop with this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),263 ->set_help_text( esc_html__('Use this link to directly shop with this coupon.', 'ultimate-coupone' ) ), 264 264 265 265 Field::make( 'html', 'ucfw_url_buy_premium' ) … … 271 271 * User restrictions 272 272 */ 273 $this->singleFields->add_tab( esc_html__( 'Restrictions', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_fields_restrictions', array(274 275 Field::make( 'checkbox', 'ucfw_restriction_enabled', esc_html__( 'Enable Restriction', 'ultimate-coupon s-for-woocommerce-free' ) )273 $this->singleFields->add_tab( esc_html__( 'Restrictions', 'ultimate-coupone' ), apply_filters( 'ucfw_fields_restrictions', array( 274 275 Field::make( 'checkbox', 'ucfw_restriction_enabled', esc_html__( 'Enable Restriction', 'ultimate-coupone' ) ) 276 276 ->set_option_value( 'yes' ) 277 ->set_help_text( esc_html__('Check this box to turn on all restriction settings for this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),278 279 Field::make( 'select', 'ucfw_restriction_user_allow_type', esc_html__( 'Allow/Disallow', 'ultimate-coupon s-for-woocommerce-free' ) )277 ->set_help_text( esc_html__('Check this box to turn on all restriction settings for this coupon.', 'ultimate-coupone' ) ), 278 279 Field::make( 'select', 'ucfw_restriction_user_allow_type', esc_html__( 'Allow/Disallow', 'ultimate-coupone' ) ) 280 280 ->set_width( 50 ) 281 281 ->add_options( array( 282 'allowed' => esc_html__( 'Allow User', 'ultimate-coupon s-for-woocommerce-free' ),283 'disallow' => esc_html__( 'Disallow User', 'ultimate-coupon s-for-woocommerce-free' ),282 'allowed' => esc_html__( 'Allow User', 'ultimate-coupone' ), 283 'disallow' => esc_html__( 'Disallow User', 'ultimate-coupone' ), 284 284 ) ), 285 285 286 Field::make( 'multiselect', 'ucfw_restriction_user_roles', esc_html__( 'User Roles', 'ultimate-coupon s-for-woocommerce-free' ) )286 Field::make( 'multiselect', 'ucfw_restriction_user_roles', esc_html__( 'User Roles', 'ultimate-coupone' ) ) 287 287 ->set_width( 50 ) 288 288 ->add_options( $this->helper->getUserRoles( true ) ), 289 289 290 Field::make( 'text', 'ucfw_restriction_shipping', esc_html__( 'Shipping Method Restriction', 'ultimate-coupon s-for-woocommerce-free' ) )290 Field::make( 'text', 'ucfw_restriction_shipping', esc_html__( 'Shipping Method Restriction', 'ultimate-coupone' ) ) 291 291 ->set_attribute( 'readOnly', true ) 292 292 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 293 ->set_help_text( esc_html__( 'Shipping methods that cannot be used with this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),294 295 Field::make( 'text', 'ucfw_restriction_payment', esc_html__( 'Payment Method Restriction', 'ultimate-coupon s-for-woocommerce-free' ) )293 ->set_help_text( esc_html__( 'Shipping methods that cannot be used with this coupon.', 'ultimate-coupone' ) ), 294 295 Field::make( 'text', 'ucfw_restriction_payment', esc_html__( 'Payment Method Restriction', 'ultimate-coupone' ) ) 296 296 ->set_attribute('readOnly', true ) 297 297 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 298 ->set_help_text( esc_html__( 'Payment methods that cannot be used with this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) ),298 ->set_help_text( esc_html__( 'Payment methods that cannot be used with this coupon.', 'ultimate-coupone' ) ), 299 299 300 300 Field::make( 'html', 'ucfw_restriction_buy_premium' ) … … 311 311 public function globalFields() 312 312 { 313 $this->globalFields = Container::make( 'theme_options', 'ucfw_global_settings', esc_html__( 'UCFW Settings', 'ultimate-coupon s-for-woocommerce-free' ) );313 $this->globalFields = Container::make( 'theme_options', 'ucfw_global_settings', esc_html__( 'UCFW Settings', 'ultimate-coupone' ) ); 314 314 $this->globalFields->set_page_menu_position( 58 ); 315 315 $this->globalFields->set_icon( UCFW_RESOURCES . '/images/ucfw-icon.png' ); … … 318 318 * Get started 319 319 */ 320 Container::make( 'theme_options', esc_html__( 'Get Started', 'ultimate-coupon s-for-woocommerce-free' ) )320 Container::make( 'theme_options', esc_html__( 'Get Started', 'ultimate-coupone' ) ) 321 321 ->set_page_parent( $this->globalFields ) 322 322 ->set_page_menu_position( 1 ) … … 327 327 <div class="ucfw-admin-card-section"> 328 328 <img class="ucfw-logo" src="' . UCFW_RESOURCES . '/images/UCFW-Logo.png"> 329 <h3>' . esc_html__( 'An e-commerce discount and marketing plugin for WooCommerce. Powered by Jompha.', 'ultimate-coupon s-for-woocommerce-free' ) . '</h3>329 <h3>' . esc_html__( 'An e-commerce discount and marketing plugin for WooCommerce. Powered by Jompha.', 'ultimate-coupone' ) . '</h3> 330 330 </div> 331 331 </div> … … 333 333 <div class="ucfw-admin-card-section"> 334 334 <ul class="ucfw-useful-links"> 335 <li><span class="dashicons dashicons-align-right"></span> <a target="_blank" href="//docs.jompha.com/ultimate-coupons-for-woocommerce">' . esc_html__( 'Docs', 'ultimate-coupon s-for-woocommerce-free' ) . '</a></li>336 <li><span class="dashicons dashicons-groups"></span> <a target="_blank" href="//forum.jompha.com">' . esc_html__( 'Community', 'ultimate-coupon s-for-woocommerce-free' ) . '</a></li>337 <li><span class="dashicons dashicons-video-alt3"></span> <a target="_blank" href="//www.youtube.com/channel/UCuQ4vwfvcVHQNci8YPZObNw">' . esc_html__( 'Video Tutorials', 'ultimate-coupon s-for-woocommerce-free' ) . '</a></li>338 <li><span class="dashicons dashicons-format-chat"></span> <a target="_blank" href="//support.jompha.com">' . esc_html__( 'Premium Support', 'ultimate-coupon s-for-woocommerce-free' ) . '</a></li>335 <li><span class="dashicons dashicons-align-right"></span> <a target="_blank" href="//docs.jompha.com/ultimate-coupons-for-woocommerce">' . esc_html__( 'Docs', 'ultimate-coupone' ) . '</a></li> 336 <li><span class="dashicons dashicons-groups"></span> <a target="_blank" href="//forum.jompha.com">' . esc_html__( 'Community', 'ultimate-coupone' ) . '</a></li> 337 <li><span class="dashicons dashicons-video-alt3"></span> <a target="_blank" href="//www.youtube.com/channel/UCuQ4vwfvcVHQNci8YPZObNw">' . esc_html__( 'Video Tutorials', 'ultimate-coupone' ) . '</a></li> 338 <li><span class="dashicons dashicons-format-chat"></span> <a target="_blank" href="//support.jompha.com">' . esc_html__( 'Premium Support', 'ultimate-coupone' ) . '</a></li> 339 339 </ul> 340 <iframe width="100%" height="500" src="//www.youtube.com/embed/videoseries?list=PLTPbwDUoP5WQQ4bowW9T0voOpFC6VaI5O" title="'. esc_html__( 'Introduction video', 'ultimate-coupon s-for-woocommerce-free' ) .'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>340 <iframe width="100%" height="500" src="//www.youtube.com/embed/videoseries?list=PLTPbwDUoP5WQQ4bowW9T0voOpFC6VaI5O" title="'. esc_html__( 'Introduction video', 'ultimate-coupone' ) .'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 341 341 342 342 </div> … … 346 346 <div class="ucfw-pricing-container"> 347 347 <div class="ucfw-pricing-plan"> 348 <div class="ucfw-pricing-title">' . esc_html__( 'Individuals', 'ultimate-coupon s-for-woocommerce-free' ) . '</div>348 <div class="ucfw-pricing-title">' . esc_html__( 'Individuals', 'ultimate-coupone' ) . '</div> 349 349 <ul class="ucfw-pricing-features"> 350 <li>' . esc_html__( '1 Site License', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>351 <li>' . esc_html__( '1 Year Updates', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>352 <li>' . esc_html__( 'Priority Support', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>350 <li>' . esc_html__( '1 Site License', 'ultimate-coupone' ) . '</li> 351 <li>' . esc_html__( '1 Year Updates', 'ultimate-coupone' ) . '</li> 352 <li>' . esc_html__( 'Priority Support', 'ultimate-coupone' ) . '</li> 353 353 </ul> 354 <div class="ucfw-pricing-price"><span> ' . esc_html__( '$100', 'ultimate-coupon s-for-woocommerce-free' ) . '</span>' . esc_html__( '$49', 'ultimate-coupons-for-woocommerce-free' ) . '</div>354 <div class="ucfw-pricing-price"><span> ' . esc_html__( '$100', 'ultimate-coupone' ) . '</div> 355 355 </div> 356 356 <div class="ucfw-pricing-plan"> 357 <div class="ucfw-pricing-title">' . esc_html__( 'Freelancers', 'ultimate-coupon s-for-woocommerce-free' ) . '</div>357 <div class="ucfw-pricing-title">' . esc_html__( 'Freelancers', 'ultimate-coupone' ) . '</div> 358 358 <ul class="ucfw-pricing-features"> 359 <li>' . esc_html__( '5 Site License', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>360 <li>' . esc_html__( '1 Year Updates', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>361 <li>' . esc_html__( 'Priority Support', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>359 <li>' . esc_html__( '5 Site License', 'ultimate-coupone' ) . '</li> 360 <li>' . esc_html__( '1 Year Updates', 'ultimate-coupone' ) . '</li> 361 <li>' . esc_html__( 'Priority Support', 'ultimate-coupone' ) . '</li> 362 362 </ul> 363 <div class="ucfw-pricing-price"><span>' . esc_html__( '$300', 'ultimate-coupon s-for-woocommerce-free' ) . '</span>' . esc_html__( '$149', 'ultimate-coupons-for-woocommerce-free' ) . '</div>363 <div class="ucfw-pricing-price"><span>' . esc_html__( '$300', 'ultimate-coupone' ) . '</div> 364 364 </div> 365 365 <div class="ucfw-pricing-plan"> 366 <div class="ucfw-pricing-title">' . esc_html__( 'Agency', 'ultimate-coupon s-for-woocommerce-free' ) . '</div>366 <div class="ucfw-pricing-title">' . esc_html__( 'Agency', 'ultimate-coupone' ) . '</div> 367 367 <ul class="ucfw-pricing-features"> 368 <li>' . esc_html__( '12 Site License', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>369 <li>' . esc_html__( '1 Year Updates', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>370 <li>' . esc_html__( 'Priority Support', 'ultimate-coupon s-for-woocommerce-free' ) . '</li>368 <li>' . esc_html__( '12 Site License', 'ultimate-coupone' ) . '</li> 369 <li>' . esc_html__( '1 Year Updates', 'ultimate-coupone' ) . '</li> 370 <li>' . esc_html__( 'Priority Support', 'ultimate-coupone' ) . '</li> 371 371 </ul> 372 <div class="ucfw-pricing-price"><span>' . esc_html__( '$600', 'ultimate-coupon s-for-woocommerce-free' ) . '</span>' . esc_html__( '$299', 'ultimate-coupons-for-woocommerce-free' ) . '</div>372 <div class="ucfw-pricing-price"><span>' . esc_html__( '$600', 'ultimate-coupone' ) . '</div> 373 373 </div> 374 374 </div> 375 375 <div class="ucfw-buttom"> 376 <a target="_blank" href="//jompha.com/ultimate-coupons-for-woocommerce/">' . esc_html__( 'Get Premium', 'ultimate-coupon s-for-woocommerce-free' ) . '</a>376 <a target="_blank" href="//jompha.com/ultimate-coupons-for-woocommerce/">' . esc_html__( 'Get Premium', 'ultimate-coupone' ) . '</a> 377 377 </div> 378 378 <img class="ucfw-pricing-moneyback" src="' . UCFW_RESOURCES . '/images/14days-moneyback-guarantee.png"> … … 385 385 * General 386 386 */ 387 $this->globalFields->add_tab( esc_html__( 'General', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_global_general', array(388 389 Field::make( 'text', 'ucfw_global_settings_cprefix', esc_html__( 'Coupon Prefix', 'ultimate-coupon s-for-woocommerce-free' ) ),390 391 Field::make( 'text', 'ucfw_global_settings_csuffix', esc_html__( 'Coupon Suffix', 'ultimate-coupon s-for-woocommerce-free' ) ),392 393 Field::make( 'text', 'ucfw_global_settings_clength', esc_html__( 'Coupon Length', 'ultimate-coupon s-for-woocommerce-free' ) ),394 395 Field::make( 'separator', 'ucfw_global_deals_intro', esc_html__( 'Deals', 'ultimate-coupon s-for-woocommerce-free' ) ),396 397 Field::make( 'text', 'ucfw_deals_apply_item_background_color', esc_html__( 'Cart Apply Item Background Color', 'ultimate-coupon s-for-woocommerce-free' ) )387 $this->globalFields->add_tab( esc_html__( 'General', 'ultimate-coupone' ), apply_filters( 'ucfw_global_general', array( 388 389 Field::make( 'text', 'ucfw_global_settings_cprefix', esc_html__( 'Coupon Prefix', 'ultimate-coupone' ) ), 390 391 Field::make( 'text', 'ucfw_global_settings_csuffix', esc_html__( 'Coupon Suffix', 'ultimate-coupone' ) ), 392 393 Field::make( 'text', 'ucfw_global_settings_clength', esc_html__( 'Coupon Length', 'ultimate-coupone' ) ), 394 395 Field::make( 'separator', 'ucfw_global_deals_intro', esc_html__( 'Deals', 'ultimate-coupone' ) ), 396 397 Field::make( 'text', 'ucfw_deals_apply_item_background_color', esc_html__( 'Cart Apply Item Background Color', 'ultimate-coupone' ) ) 398 398 ->set_attribute( 'readOnly', true ) 399 399 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ), 400 400 401 Field::make( 'text', 'ucfw_deals_apply_item_border_color', esc_html__( 'Cart Apply Item Border Color', 'ultimate-coupon s-for-woocommerce-free' ) )401 Field::make( 'text', 'ucfw_deals_apply_item_border_color', esc_html__( 'Cart Apply Item Border Color', 'ultimate-coupone' ) ) 402 402 ->set_attribute( 'readOnly', true ) 403 403 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ), 404 404 405 Field::make( 'text', 'ucfw_deals_apply_item_border_width', esc_html__( 'Cart Apply Item Border Width', 'ultimate-coupon s-for-woocommerce-free' ) )405 Field::make( 'text', 'ucfw_deals_apply_item_border_width', esc_html__( 'Cart Apply Item Border Width', 'ultimate-coupone' ) ) 406 406 ->set_attribute( 'readOnly', true ) 407 407 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ), … … 415 415 * Templates 416 416 */ 417 $this->globalFields->add_tab( esc_html__( 'Templates', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_global_templates', array(418 419 Field::make( 'checkbox', 'ucfw_template_enabled', esc_html__( 'Enable Templates', 'ultimate-coupon s-for-woocommerce-free' ) )417 $this->globalFields->add_tab( esc_html__( 'Templates', 'ultimate-coupone' ), apply_filters( 'ucfw_global_templates', array( 418 419 Field::make( 'checkbox', 'ucfw_template_enabled', esc_html__( 'Enable Templates', 'ultimate-coupone' ) ) 420 420 ->set_option_value( 'yes' ) 421 ->set_help_text( esc_html__( 'Enable templates for Coupons (Popup / Header / Footer)', 'ultimate-coupon s-for-woocommerce-free' ) ),422 423 Field::make( 'select', 'ucfw_template_coupons', esc_html__( 'Select Coupons', 'ultimate-coupon s-for-woocommerce-free' ) )424 ->add_options( array_merge( array( '' => esc_html__( 'Select', 'ultimate-coupon s-for-woocommerce-free' ) ), $this->helper->getAllCoupons() ) )421 ->set_help_text( esc_html__( 'Enable templates for Coupons (Popup / Header / Footer)', 'ultimate-coupone' ) ), 422 423 Field::make( 'select', 'ucfw_template_coupons', esc_html__( 'Select Coupons', 'ultimate-coupone' ) ) 424 ->add_options( array_merge( array( '' => esc_html__( 'Select', 'ultimate-coupone' ) ), $this->helper->getAllCoupons() ) ) 425 425 ->set_width( 50 ), 426 426 427 427 //Premium placeholder 428 Field::make( 'text', 'ucfw_template_restricted_user_roles', esc_html__( 'Restricted Roles', 'ultimate-coupon s-for-woocommerce-free' ) )428 Field::make( 'text', 'ucfw_template_restricted_user_roles', esc_html__( 'Restricted Roles', 'ultimate-coupone' ) ) 429 429 ->set_attribute( 'readOnly', true ) 430 430 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 431 ->set_help_text( esc_html__( 'Select restricted user roles.', 'ultimate-coupon s-for-woocommerce-free' ) )431 ->set_help_text( esc_html__( 'Select restricted user roles.', 'ultimate-coupone' ) ) 432 432 ->set_width( 50 ), 433 433 434 Field::make( 'select', 'ucfw_template_type', esc_html__( 'Display Type', 'ultimate-coupon s-for-woocommerce-free' ) )434 Field::make( 'select', 'ucfw_template_type', esc_html__( 'Display Type', 'ultimate-coupone' ) ) 435 435 ->add_options( array( 436 'popup' => esc_html__( 'Popup', 'ultimate-coupon s-for-woocommerce-free' ),437 'header-free' => esc_html__( 'Header (Premium)', 'ultimate-coupon s-for-woocommerce-free' ),438 'footer-free' => esc_html__( 'Footer (Premium)', 'ultimate-coupon s-for-woocommerce-free' ),436 'popup' => esc_html__( 'Popup', 'ultimate-coupone' ), 437 'header-free' => esc_html__( 'Header (Premium)', 'ultimate-coupone' ), 438 'footer-free' => esc_html__( 'Footer (Premium)', 'ultimate-coupone' ), 439 439 ) ) 440 440 ->set_width( 50 ), 441 441 442 Field::make( 'text', 'ucfw_template_title', esc_html__( 'Title', 'ultimate-coupon s-for-woocommerce-free' ) )442 Field::make( 'text', 'ucfw_template_title', esc_html__( 'Title', 'ultimate-coupone' ) ) 443 443 ->set_width( 50 ), 444 444 445 Field::make( 'image', 'ucfw_template_image', esc_html__( 'Photo', 'ultimate-coupon s-for-woocommerce-free' ) )445 Field::make( 'image', 'ucfw_template_image', esc_html__( 'Photo', 'ultimate-coupone' ) ) 446 446 ->set_value_type( 'url' ) 447 447 ->set_width( 50 ), 448 448 449 Field::make( 'textarea', 'ucfw_template_description', esc_html__( 'Short Description', 'ultimate-coupon s-for-woocommerce-free' ) )449 Field::make( 'textarea', 'ucfw_template_description', esc_html__( 'Short Description', 'ultimate-coupone' ) ) 450 450 ->set_width( 50 ), 451 451 … … 471 471 * Wheel game 472 472 */ 473 $this->globalFields->add_tab( esc_html__( 'Wheel', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_global_wheel', array(474 475 Field::make( 'html', 'ucfw_wheel_options', esc_html__( 'Wheel Options', 'ultimate-coupon s-for-woocommerce-free' ) )473 $this->globalFields->add_tab( esc_html__( 'Wheel', 'ultimate-coupone' ), apply_filters( 'ucfw_global_wheel', array( 474 475 Field::make( 'html', 'ucfw_wheel_options', esc_html__( 'Wheel Options', 'ultimate-coupone' ) ) 476 476 ->set_html( 477 477 sprintf( 478 '<h1>' . esc_html__( 'Wheel', 'ultimate-coupon s-for-woocommerce-free' ) . '</h1>478 '<h1>' . esc_html__( 'Wheel', 'ultimate-coupone' ) . '</h1> 479 479 <img src="%s">', 480 480 UCFW_RESOURCES . '/images/wheel_banner.png' … … 483 483 484 484 //Premium placeholder 485 Field::make( 'text', 'ucfw_wheel_shortcode', esc_html__( 'Shortcode', 'ultimate-coupon s-for-woocommerce-free' ) )485 Field::make( 'text', 'ucfw_wheel_shortcode', esc_html__( 'Shortcode', 'ultimate-coupone' ) ) 486 486 ->set_attribute( 'readOnly', true ) 487 487 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ), 488 488 489 Field::make( 'text', 'ucfw_wheel_tries_limit', esc_html__( 'Limit', 'ultimate-coupon s-for-woocommerce-free' ) )489 Field::make( 'text', 'ucfw_wheel_tries_limit', esc_html__( 'Limit', 'ultimate-coupone' ) ) 490 490 ->set_attribute( 'readOnly', true ) 491 491 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ), 492 492 493 Field::make( 'complex', 'ucfw_wheel_slots', esc_html__( 'Slots', 'ultimate-coupon s-for-woocommerce-free' ) )493 Field::make( 'complex', 'ucfw_wheel_slots', esc_html__( 'Slots', 'ultimate-coupone' ) ) 494 494 ->setup_labels( array( 495 'plural_name' => esc_html__( 'Slots', 'ultimate-coupon s-for-woocommerce-free' ),496 'singular_name' => esc_html__( 'Slot', 'ultimate-coupon s-for-woocommerce-free' ),495 'plural_name' => esc_html__( 'Slots', 'ultimate-coupone' ), 496 'singular_name' => esc_html__( 'Slot', 'ultimate-coupone' ), 497 497 ) ) 498 498 ->set_max( 1 ) 499 499 ->add_fields( array( 500 500 501 Field::make( 'text', 'ucfw_slot_text', esc_html__( 'Text', 'ultimate-coupon s-for-woocommerce-free' ) )501 Field::make( 'text', 'ucfw_slot_text', esc_html__( 'Text', 'ultimate-coupone' ) ) 502 502 ->set_attribute( 'readOnly', true ) 503 503 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 504 504 ->set_width( 50 ), 505 505 506 Field::make( 'text', 'ucfw_slot_coupon', esc_html__( 'Coupon', 'ultimate-coupon s-for-woocommerce-free' ) )506 Field::make( 'text', 'ucfw_slot_coupon', esc_html__( 'Coupon', 'ultimate-coupone' ) ) 507 507 ->set_attribute( 'readOnly', true ) 508 508 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ) 509 509 ->set_width( 50 ), 510 510 511 Field::make( 'text', 'ucfw_slot_message', esc_html__( 'Message', 'ultimate-coupon s-for-woocommerce-free' ) )511 Field::make( 'text', 'ucfw_slot_message', esc_html__( 'Message', 'ultimate-coupone' ) ) 512 512 ->set_attribute( 'readOnly', true ) 513 513 ->set_attribute( 'placeholder', $this->premiumPlaceholder() ), … … 523 523 * Bulk generation 524 524 */ 525 $this->globalFields->add_tab( esc_html__( 'Bulk', 'ultimate-coupon s-for-woocommerce-free' ), apply_filters( 'ucfw_global_generate_bulk', array(525 $this->globalFields->add_tab( esc_html__( 'Bulk', 'ultimate-coupone' ), apply_filters( 'ucfw_global_generate_bulk', array( 526 526 527 527 //Premium placeholder … … 548 548 add_submenu_page( 549 549 'crb_carbon_fields_container_ucfw_global_settings.php', 550 esc_html__( 'UCFW Settings', 'ultimate-coupon s-for-woocommerce-free' ),551 esc_html__( 'Settings', 'ultimate-coupon s-for-woocommerce-free' ),550 esc_html__( 'UCFW Settings', 'ultimate-coupone' ), 551 esc_html__( 'Settings', 'ultimate-coupone' ), 552 552 'manage_options', 553 553 'crb_carbon_fields_container_ucfw_global_settings.php' … … 556 556 add_submenu_page( 557 557 'crb_carbon_fields_container_ucfw_global_settings.php', 558 esc_html__( 'Coupons', 'ultimate-coupon s-for-woocommerce-free' ),559 esc_html__( 'Coupons', 'ultimate-coupon s-for-woocommerce-free' ),558 esc_html__( 'Coupons', 'ultimate-coupone' ), 559 esc_html__( 'Coupons', 'ultimate-coupone' ), 560 560 'manage_options', 561 561 '/edit.php?post_type=shop_coupon' … … 567 567 'crb_carbon_fields_container_ucfw_global_settings.php', 568 568 '', 569 '<span class="dashicons dashicons-superhero-alt"></span>' . esc_html__( 'Get Premium', 'ultimate-coupon s-for-woocommerce-free' ),569 '<span class="dashicons dashicons-superhero-alt"></span>' . esc_html__( 'Get Premium', 'ultimate-coupone' ), 570 570 'manage_options', 571 571 'https://jompha.com/ultimate-coupons-for-woocommerce', … … 612 612 woocommerce_wp_text_input( array( 613 613 'id' => 'ucfw_max_discount', 614 'label' => esc_html__( 'Maximum Discount', 'ultimate-coupon s-for-woocommerce-free' ),615 'placeholder' => esc_html__( 'Unlimited discount (Powered by Ultimate Coupons for WooCommerce)', 'ultimate-coupon s-for-woocommerce-free' ),616 'description' => esc_html__( 'Maximum discount amount this coupon can provide.', 'ultimate-coupon s-for-woocommerce-free' ),614 'label' => esc_html__( 'Maximum Discount', 'ultimate-coupone' ), 615 'placeholder' => esc_html__( 'Unlimited discount (Powered by Ultimate Coupons for WooCommerce)', 'ultimate-coupone' ), 616 'description' => esc_html__( 'Maximum discount amount this coupon can provide.', 'ultimate-coupone' ), 617 617 'type' => 'number', 618 618 'desc_tip' => true, -
ultimate-coupon-for-woocommerce/trunk/classes/Admin/Initialize.class.php
r2599318 r2600081 89 89 <div class="ucfw-pricing-container"> 90 90 <div class="ucfw-pricing-plan"> 91 <div class="ucfw-pricing-title"><?php echo esc_html__( 'Individuals', 'ultimate-coupon s-for-woocommerce-free' ); ?></div>91 <div class="ucfw-pricing-title"><?php echo esc_html__( 'Individuals', 'ultimate-coupone' ); ?></div> 92 92 <ul class="ucfw-pricing-features"> 93 <li><?php echo esc_html__( 'Regular Updates', 'ultimate-coupon s-for-woocommerce-free' ); ?></li>94 <li><?php echo esc_html__( 'Priority Support', 'ultimate-coupon s-for-woocommerce-free' ); ?></li>93 <li><?php echo esc_html__( 'Regular Updates', 'ultimate-coupone' ); ?></li> 94 <li><?php echo esc_html__( 'Priority Support', 'ultimate-coupone' ); ?></li> 95 95 </ul> 96 96 <div class="ucfw-pricing-price"> 97 <span><?php echo esc_html__( '$100', 'ultimate-coupon s-for-woocommerce-free' ); ?></span>98 <?php echo esc_html__( '$49', 'ultimate-coupon s-for-woocommerce-free' ); ?>97 <span><?php echo esc_html__( '$100', 'ultimate-coupone' ); ?></span> 98 <?php echo esc_html__( '$49', 'ultimate-coupone' ); ?> 99 99 </div> 100 100 </div> … … 107 107 <br><br> 108 108 <h3> 109 <strong><?php echo esc_html__( 'Unlock all premium features at a discounted price!', 'ultimate-coupon s-for-woocommerce-free' ); ?></strong>109 <strong><?php echo esc_html__( 'Unlock all premium features at a discounted price!', 'ultimate-coupone' ); ?></strong> 110 110 </h3> 111 111 <a target="_blank" href="//jompha.com/ultimate-coupons-for-woocommerce" class="ui positive labeled icon button"> 112 <?php echo esc_html__( 'Get Premium', 'ultimate-coupon s-for-woocommerce-free' ); ?><i class="checkmark icon"></i>112 <?php echo esc_html__( 'Get Premium', 'ultimate-coupone' ); ?><i class="checkmark icon"></i> 113 113 </a> 114 114 </div> -
ultimate-coupon-for-woocommerce/trunk/classes/Front/Conditions.class.php
r2599318 r2600081 56 56 { 57 57 WC()->cart->remove_coupon( $code ); 58 wc_add_notice( esc_html__('Cart conditions no longer match for this coupon. It has been removed.', 'ultimate-coupon s-for-woocommerce-free'), 'error' );58 wc_add_notice( esc_html__('Cart conditions no longer match for this coupon. It has been removed.', 'ultimate-coupone'), 'error' ); 59 59 } 60 60 } … … 116 116 if ( !$groupResult ) 117 117 { 118 throw new \Exception( esc_html__( 'Cart conditions do not match for this coupon!', 'ultimate-coupon s-for-woocommerce-free' ) );118 throw new \Exception( esc_html__( 'Cart conditions do not match for this coupon!', 'ultimate-coupone' ) ); 119 119 return false; 120 120 } -
ultimate-coupon-for-woocommerce/trunk/classes/Front/Deals.class.php
r2599318 r2600081 267 267 if ( 'yes' !== $allow && $isUsed ) 268 268 { 269 wc_add_notice( esc_html__( 'You\'ve already got the deals.', 'ultimate-coupon s-for-woocommerce-free' ), 'error' );269 wc_add_notice( esc_html__( 'You\'ve already got the deals.', 'ultimate-coupone' ), 'error' ); 270 270 return; 271 271 } … … 330 330 331 331 WC()->session->set( 'ucfw_cart_coupon_applied_' . $this->couponCode, 'yes' ); 332 wc_add_notice( esc_html__( 'Congratulations! You got a new deal.', 'ultimate-coupon s-for-woocommerce-free' ), 'success' );332 wc_add_notice( esc_html__( 'Congratulations! You got a new deal.', 'ultimate-coupone' ), 'success' ); 333 333 } 334 334 } -
ultimate-coupon-for-woocommerce/trunk/classes/Front/Restrictions.class.php
r2599318 r2600081 45 45 if ( !empty($restrictionRoles) && ( ( 'allowed' === $restrictionType && empty($intersect)) || ( 'allowed' !== $restrictionType && !empty($intersect) ) ) ) 46 46 { 47 throw new \Exception( esc_html__( 'Sorry, you are not eligible to use this coupon.', 'ultimate-coupon s-for-woocommerce-free' ) );47 throw new \Exception( esc_html__( 'Sorry, you are not eligible to use this coupon.', 'ultimate-coupone' ) ); 48 48 return false; 49 49 } -
ultimate-coupon-for-woocommerce/trunk/classes/Front/Schedule.class.php
r2599318 r2600081 47 47 { 48 48 throw new \Exception( 49 sprintf( esc_html__( 'Sorry, this coupon will be available after %s.', 'ultimate-coupon s-for-woocommerce-free' ), date('l d F h:i A, Y', $unix ) )49 sprintf( esc_html__( 'Sorry, this coupon will be available after %s.', 'ultimate-coupone' ), date('l d F h:i A, Y', $unix ) ) 50 50 ); 51 51 return false; … … 62 62 { 63 63 throw new \Exception( 64 sprintf( esc_html__( 'Sorry, this coupon expired on %s.', 'ultimate-coupon s-for-woocommerce-free' ), date('l d F h:i A, Y', $unix ) )64 sprintf( esc_html__( 'Sorry, this coupon expired on %s.', 'ultimate-coupone' ), date('l d F h:i A, Y', $unix ) ) 65 65 ); 66 66 return false; -
ultimate-coupon-for-woocommerce/trunk/classes/Front/Templates.class.php
r2599318 r2600081 59 59 60 60 <?php if ($this->popupImage) { ?> 61 <img src="<?php echo esc_url( $this->popupImage ); ?>" alt="<?php echo esc_html__( 'Avatar', 'ultimate-coupon s-for-woocommerce-free' ); ?>" style="width: 100%;">61 <img src="<?php echo esc_url( $this->popupImage ); ?>" alt="<?php echo esc_html__( 'Avatar', 'ultimate-coupone' ); ?>" style="width: 100%;"> 62 62 <?php } ?> 63 63 … … 69 69 <div class="ucfw-popup-container ucfw-ct-footer"> 70 70 <p> 71 <?php echo esc_html__( 'Use Promo Code:', 'ultimate-coupon s-for-woocommerce-free' ); ?> <span class="code"><?php echo esc_html( $this->couponCode ); ?></span>71 <?php echo esc_html__( 'Use Promo Code:', 'ultimate-coupone' ); ?> <span class="code"><?php echo esc_html( $this->couponCode ); ?></span> 72 72 </p> 73 73 74 74 <?php if ( isset($expiryDate) ) { ?> 75 75 <p class="ucfw-expire"> 76 <?php echo esc_html__( 'Expires:', 'ultimate-coupon s-for-woocommerce-free' ); ?> <?php echo esc_html( $expiry_date ); ?>76 <?php echo esc_html__( 'Expires:', 'ultimate-coupone' ); ?> <?php echo esc_html( $expiry_date ); ?> 77 77 </p> 78 78 <?php } ?> -
ultimate-coupon-for-woocommerce/trunk/classes/Helper.class.php
r2599318 r2600081 56 56 57 57 if ( $guest ) 58 $roles['guest'] = esc_html__( 'Guest', 'ultimate-coupon s-for-woocommerce-free' );58 $roles['guest'] = esc_html__( 'Guest', 'ultimate-coupone' ); 59 59 60 60 return $roles; -
ultimate-coupon-for-woocommerce/trunk/readme.txt
r2599318 r2600081 5 5 Requires at least: 4.0 6 6 Tested up to: 5.8 7 Stable tag: 1.0. 17 Stable tag: 1.0. 8 8 Requires PHP: 5.4 9 9 License: GPLv3 or later … … 198 198 == Installation == 199 199 200 1. Upload the plugin files to the `/wp-content/plugins/ultimate-coupon s-for-woocommerce-free` directory, or install the plugin through the WordPress plugins screen directly.200 1. Upload the plugin files to the `/wp-content/plugins/ultimate-coupone` directory, or install the plugin through the WordPress plugins screen directly. 201 201 1. Activate the plugin through the 'Plugins' screen in WordPress 202 202 1. Use the "UCFW Settings" menu to configure the plugin. -
ultimate-coupon-for-woocommerce/trunk/render/Admin/js/conditions.js.php
r2599318 r2600081 38 38 <select class="ui fluid search normal dropdown">`; 39 39 40 html += '<option value=""><?php echo esc_html__( 'Add condition', 'ultimate-coupon s-for-woocommerce-free' ); ?></option>';40 html += '<option value=""><?php echo esc_html__( 'Add condition', 'ultimate-coupone' ); ?></option>'; 41 41 for (var key in conditionalConfigurations) 42 42 { … … 44 44 45 45 if (conditionalConfigurations[key].hasOwnProperty("premiumholder") && conditionalConfigurations[key].premiumholder == true) 46 name += " (<?php echo esc_html__( 'Premium', 'ultimate-coupon s-for-woocommerce-free' ); ?>)";46 name += " (<?php echo esc_html__( 'Premium', 'ultimate-coupone' ); ?>)"; 47 47 48 48 html += '<option value="' + key + '">' + name + '</option>'; … … 52 52 </div> 53 53 <span class="ucfw-remove-group" data-group-id="` + i + `" data-remove-group="yes"> 54 <span class="dashicons dashicons-no-alt"></span> <?php echo esc_html__( 'Remove', 'ultimate-coupon s-for-woocommerce-free' ); ?>54 <span class="dashicons dashicons-no-alt"></span> <?php echo esc_html__( 'Remove', 'ultimate-coupone' ); ?> 55 55 </span> 56 56 </div>`; … … 105 105 106 106 html += `</div> 107 <span class="remove" data-condition-id="` + condid + `" data-group-id="` + groupid + `" data-remove-condition="yes"><?php echo esc_html__( 'Remove', 'ultimate-coupon s-for-woocommerce-free' ); ?></span>107 <span class="remove" data-condition-id="` + condid + `" data-group-id="` + groupid + `" data-remove-condition="yes"><?php echo esc_html__( 'Remove', 'ultimate-coupone' ); ?></span> 108 108 </div>`; 109 109 … … 250 250 var html = `<div id="ucfw-logic-` + groupid + `" class="ucfw-logics"> 251 251 <input type="hidden" name="_ucfw_groups[` + groupid + `][logic]" value="` + logic + `" data-group-id="` + groupid + `"> 252 <a class="` + andClass + `" data-logic="and"><?php echo esc_html__( 'And', 'ultimate-coupon s-for-woocommerce-free' ); ?></a><a class="` + orClass + `" data-logic="or"><?php echo esc_html__( 'Or', 'ultimate-coupons-for-woocommerce-free' ); ?></a>252 <a class="` + andClass + `" data-logic="and"><?php echo esc_html__( 'And', 'ultimate-coupone' ); ?></a> 253 253 </div>`; 254 254 return html; … … 265 265 var html = `<div id="ucfw-group-` + groupid + `-logic-` + condid + `" class="ucfw-logics"> 266 266 <input type="hidden" name="_ucfw_groups[` + groupid + `][conditions][` + condid + `][logic]" value="` + logic + `" data-group-id="` + groupid + `" data-condition-id="` + condid + `"> 267 <a class="` + andClass + `" data-logic="and"><?php echo esc_html__( 'And', 'ultimate-coupon s-for-woocommerce-free' ); ?></a><a class="` + orClass + `" data-logic="or"><?php echo esc_html__( 'Or', 'ultimate-coupons-for-woocommerce-free' ); ?></a>267 <a class="` + andClass + `" data-logic="and"><?php echo esc_html__( 'And', 'ultimate-coupone' ); ?></a> 268 268 </div>`; 269 269 return html; … … 348 348 beforeSend: function() 349 349 { 350 jQuery("#ucfw-btn-save-conditions").attr("disabled", true).text("<?php echo esc_html__( 'Saving...', 'ultimate-coupon s-for-woocommerce-free' ); ?>");350 jQuery("#ucfw-btn-save-conditions").attr("disabled", true).text("<?php echo esc_html__( 'Saving...', 'ultimate-coupone' ); ?>"); 351 351 }, 352 352 success: function(result) 353 353 { 354 jQuery("#ucfw-btn-save-conditions").attr("disabled", false).removeClass("blue").addClass("positive").text("<?php echo esc_html__( 'Saved!', 'ultimate-coupon s-for-woocommerce-free' ); ?>");354 jQuery("#ucfw-btn-save-conditions").attr("disabled", false).removeClass("blue").addClass("positive").text("<?php echo esc_html__( 'Saved!', 'ultimate-coupone' ); ?>"); 355 355 356 356 setTimeout(function() 357 357 { 358 jQuery("#ucfw-btn-save-conditions").removeClass("positive").addClass("blue").text("<?php echo esc_html__( 'Save Again', 'ultimate-coupon s-for-woocommerce-free' ); ?>");358 jQuery("#ucfw-btn-save-conditions").removeClass("positive").addClass("blue").text("<?php echo esc_html__( 'Save Again', 'ultimate-coupone' ); ?>"); 359 359 }, 1500); 360 360 }, 361 361 error: function(result) 362 362 { 363 jQuery("#ucfw-btn-save-conditions").attr("disabled", false).removeClass("positive blue").addClass("negative").text("<?php echo esc_html__( 'Failed to save', 'ultimate-coupon s-for-woocommerce-free' ); ?>");363 jQuery("#ucfw-btn-save-conditions").attr("disabled", false).removeClass("positive blue").addClass("negative").text("<?php echo esc_html__( 'Failed to save', 'ultimate-coupone' ); ?>"); 364 364 365 365 setTimeout(function() 366 366 { 367 jQuery("#ucfw-btn-save-conditions").removeClass("negative positive").addClass("blue").text("<?php echo esc_html__( 'Try Again', 'ultimate-coupon s-for-woocommerce-free' ); ?>");367 jQuery("#ucfw-btn-save-conditions").removeClass("negative positive").addClass("blue").text("<?php echo esc_html__( 'Try Again', 'ultimate-coupone' ); ?>"); 368 368 }, 1500); 369 369 } -
ultimate-coupon-for-woocommerce/trunk/render/Admin/js/deals.js.php
r2599318 r2600081 2 2 "use strict"; 3 3 4 function ucfw_deals_add_target_item(itemId = '', itemName = '<?php echo esc_html__( 'Search...', 'ultimate-coupon s-for-woocommerce-free' ); ?>', itemQuantity = 1)4 function ucfw_deals_add_target_item(itemId = '', itemName = '<?php echo esc_html__( 'Search...', 'ultimate-coupone' ); ?>', itemQuantity = 1) 5 5 { 6 6 var i = jQuery(".ucfw-deals-ts-group").length; … … 17 17 <td class="ucfw-deals-quantity"> 18 18 <div class="ui fluid input"> 19 <input type="number" placeholder="<?php echo esc_html__( 'Quantity', 'ultimate-coupon s-for-woocommerce-free' ); ?>" name="_ucfw_deals[0][target][items][` + i + `][quantity][value]" value="` + itemQuantity + `">19 <input type="number" placeholder="<?php echo esc_html__( 'Quantity', 'ultimate-coupone' ); ?>" name="_ucfw_deals[0][target][items][` + i + `][quantity][value]" value="` + itemQuantity + `"> 20 20 </div> 21 21 </td> 22 22 <td class="ucfw-deals-action"> 23 23 <div class="ui mini buttons"> 24 <button class="ui red button" data-target-group-id="` + i + `" data-remove-group="yes"><?php echo esc_html__( 'Remove', 'ultimate-coupon s-for-woocommerce-free' ); ?></button>24 <button class="ui red button" data-target-group-id="` + i + `" data-remove-group="yes"><?php echo esc_html__( 'Remove', 'ultimate-coupone' ); ?></button> 25 25 </div> 26 26 </td> … … 45 45 } 46 46 47 function ucfw_deals_add_apply_item(itemId = '', itemName = '<?php echo esc_html__( 'Search...', 'ultimate-coupon s-for-woocommerce-free' ); ?>', itemQuantity = 1, discountType = 'override', discountValue = 0)47 function ucfw_deals_add_apply_item(itemId = '', itemName = '<?php echo esc_html__( 'Search...', 'ultimate-coupone' ); ?>', itemQuantity = 1, discountType = 'override', discountValue = 0) 48 48 { 49 49 var i = jQuery(".ucfw-deals-as-group").length; … … 53 53 54 54 var discountTypes = { 55 override: "<?php echo esc_html__( 'Override Price', 'ultimate-coupon s-for-woocommerce-free' ) . ' (' . get_woocommerce_currency_symbol() . ')'; ?>",56 percent: "<?php echo esc_html__( 'Percentage', 'ultimate-coupon s-for-woocommerce-free' ) . ' (%)'; ?>",57 fixed: "<?php echo esc_html__( 'Fixed Discount', 'ultimate-coupon s-for-woocommerce-free' ) . ' (-' . get_woocommerce_currency_symbol() . ')'; ?>"55 override: "<?php echo esc_html__( 'Override Price', 'ultimate-coupone' ) . ' (' . get_woocommerce_currency_symbol() . ')'; ?>", 56 percent: "<?php echo esc_html__( 'Percentage', 'ultimate-coupone' ) . ' (%)'; ?>", 57 fixed: "<?php echo esc_html__( 'Fixed Discount', 'ultimate-coupone' ) . ' (-' . get_woocommerce_currency_symbol() . ')'; ?>" 58 58 }; 59 59 … … 81 81 <td class="ucfw-deals-quantity"> 82 82 <div class="ui fluid input"> 83 <input type="number" placeholder="<?php echo esc_html__( 'Quantity', 'ultimate-coupon s-for-woocommerce-free' ); ?>" name="_ucfw_deals[0][apply][items][` + i + `][quantity][value]" value="` + itemQuantity + `">83 <input type="number" placeholder="<?php echo esc_html__( 'Quantity', 'ultimate-coupone' ); ?>" name="_ucfw_deals[0][apply][items][` + i + `][quantity][value]" value="` + itemQuantity + `"> 84 84 </div> 85 85 </td> … … 92 92 <div class="menu">` + discountTypeHtml + `</div> 93 93 </div> 94 <input type="number" placeholder="<?php echo esc_html__( 'Amount', 'ultimate-coupon s-for-woocommerce-free' ); ?>" name="_ucfw_deals[0][apply][items][` + i + `][discount][value]" value="` + discountValue + `">94 <input type="number" placeholder="<?php echo esc_html__( 'Amount', 'ultimate-coupone' ); ?>" name="_ucfw_deals[0][apply][items][` + i + `][discount][value]" value="` + discountValue + `"> 95 95 </div> 96 96 </td> 97 97 <td class="ucfw-deals-action"> 98 98 <div class="ui mini buttons"> 99 <button class="ui red button" data-apply-group-id="` + i + `" data-remove-group="yes"><?php echo esc_html__( 'Remove', 'ultimate-coupon s-for-woocommerce-free' ); ?></button>99 <button class="ui red button" data-apply-group-id="` + i + `" data-remove-group="yes"><?php echo esc_html__( 'Remove', 'ultimate-coupone' ); ?></button> 100 100 </div> 101 101 </td> … … 131 131 if ( _ucfw_deals_target_item_types[i].value === 'categories' ) 132 132 { 133 jQuery(".ucfw-deals-target-item-type").text('<?php echo esc_html__( 'Category', 'ultimate-coupon s-for-woocommerce-free' ); ?>');134 jQuery(".ucfw-deals-target-items-type").text('<?php echo esc_html__( 'Categories', 'ultimate-coupon s-for-woocommerce-free' ); ?>');133 jQuery(".ucfw-deals-target-item-type").text('<?php echo esc_html__( 'Category', 'ultimate-coupone' ); ?>'); 134 jQuery(".ucfw-deals-target-items-type").text('<?php echo esc_html__( 'Categories', 'ultimate-coupone' ); ?>'); 135 135 } 136 136 } … … 148 148 if (_ucfw_deals_apply_item_types[i].value === 'categories') 149 149 { 150 jQuery(".ucfw-deals-apply-item-type").text('<?php echo esc_html__( 'Category', 'ultimate-coupon s-for-woocommerce-free' ); ?>');151 jQuery(".ucfw-deals-apply-items-type").text('<?php echo esc_html__( 'Categories', 'ultimate-coupon s-for-woocommerce-free' ); ?>');150 jQuery(".ucfw-deals-apply-item-type").text('<?php echo esc_html__( 'Category', 'ultimate-coupone' ); ?>'); 151 jQuery(".ucfw-deals-apply-items-type").text('<?php echo esc_html__( 'Categories', 'ultimate-coupone' ); ?>'); 152 152 } 153 153 } … … 214 214 { 215 215 _ucfw_select.attr("data-item-type", "categories"); 216 jQuery(".ucfw-deals-" + _ucfw_section + "-item-type").text('<?php echo esc_html__( 'Category', 'ultimate-coupon s-for-woocommerce-free' ); ?>');217 jQuery(".ucfw-deals-" + _ucfw_section + "-items-type").text('<?php echo esc_html__( 'Categories', 'ultimate-coupon s-for-woocommerce-free' ); ?>');216 jQuery(".ucfw-deals-" + _ucfw_section + "-item-type").text('<?php echo esc_html__( 'Category', 'ultimate-coupone' ); ?>'); 217 jQuery(".ucfw-deals-" + _ucfw_section + "-items-type").text('<?php echo esc_html__( 'Categories', 'ultimate-coupone' ); ?>'); 218 218 } 219 219 else 220 220 { 221 221 _ucfw_select.attr("data-item-type", "products"); 222 jQuery(".ucfw-deals-" + _ucfw_section + "-item-type").text('<?php echo esc_html__( 'Product', 'ultimate-coupon s-for-woocommerce-free' ); ?>');223 jQuery(".ucfw-deals-" + _ucfw_section + "-items-type").text('<?php echo esc_html__( 'Products', 'ultimate-coupon s-for-woocommerce-free' ); ?>');222 jQuery(".ucfw-deals-" + _ucfw_section + "-item-type").text('<?php echo esc_html__( 'Product', 'ultimate-coupone' ); ?>'); 223 jQuery(".ucfw-deals-" + _ucfw_section + "-items-type").text('<?php echo esc_html__( 'Products', 'ultimate-coupone' ); ?>'); 224 224 } 225 225 … … 269 269 beforeSend: function() 270 270 { 271 jQuery("#ucfw-btn-save-deals").attr("disabled", true).text("<?php echo esc_html__( 'Saving...', 'ultimate-coupon s-for-woocommerce-free' ); ?>");271 jQuery("#ucfw-btn-save-deals").attr("disabled", true).text("<?php echo esc_html__( 'Saving...', 'ultimate-coupone' ); ?>"); 272 272 }, 273 273 success: function(result) 274 274 { 275 jQuery("#ucfw-btn-save-deals").attr("disabled", false).removeClass("blue").addClass("positive").text("<?php echo esc_html__( 'Saved!', 'ultimate-coupon s-for-woocommerce-free' ); ?>");275 jQuery("#ucfw-btn-save-deals").attr("disabled", false).removeClass("blue").addClass("positive").text("<?php echo esc_html__( 'Saved!', 'ultimate-coupone' ); ?>"); 276 276 277 277 setTimeout(function() 278 278 { 279 jQuery("#ucfw-btn-save-deals").removeClass("positive").addClass("blue").text("<?php echo esc_html__( 'Save Again', 'ultimate-coupon s-for-woocommerce-free' ); ?>");279 jQuery("#ucfw-btn-save-deals").removeClass("positive").addClass("blue").text("<?php echo esc_html__( 'Save Again', 'ultimate-coupone' ); ?>"); 280 280 }, 1500); 281 281 }, 282 282 error: function(result) 283 283 { 284 jQuery("#ucfw-btn-save-deals").attr("disabled", false).removeClass("positive blue").addClass("negative").text("<?php echo esc_html__( 'Failed to save', 'ultimate-coupon s-for-woocommerce-free' ); ?>");284 jQuery("#ucfw-btn-save-deals").attr("disabled", false).removeClass("positive blue").addClass("negative").text("<?php echo esc_html__( 'Failed to save', 'ultimate-coupone' ); ?>"); 285 285 286 286 setTimeout(function() 287 287 { 288 jQuery("#ucfw-btn-save-deals").removeClass("negative positive").addClass("blue").text("<?php echo esc_html__( 'Try Again', 'ultimate-coupon s-for-woocommerce-free' ); ?>");288 jQuery("#ucfw-btn-save-deals").removeClass("negative positive").addClass("blue").text("<?php echo esc_html__( 'Try Again', 'ultimate-coupone' ); ?>"); 289 289 }, 1500); 290 290 }
Note: See TracChangeset
for help on using the changeset viewer.