+
+ intro(); ?>
+
+
+
+ esc_html__( 'When trying to add coupon/Smart Coupon, I get "Invalid post type" message.', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Make sure use of coupon is enabled in your store. You can find this setting', 'woocommerce-smart-coupons' ) . ' ' . __( 'here', 'woocommerce-smart-coupons' ) . '.',
+ ),
+ array(
+ 'que' => esc_html__( 'Smart Coupon\'s fields are broken?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Make sure you are using the ', 'woocommerce-smart-coupons' ) . '' . __( 'latest version of Smart Coupons', 'woocommerce-smart-coupons' ) . '' . esc_html__( '. If still the issue persist, temporarily de-activate all plugins except WooCommerce & Smart Coupons. Re-check the issue, if the issue still persists, contact us (from the link at the end of this page). If the issue goes away, re-activate other plugins one-by-one & re-checking the fields, to find out which plugin is conflicting.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'How to translate texts from Smart Coupons?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Simplest method is by installing', 'woocommerce-smart-coupons' ) . ' ' . esc_html__( 'Loco Translate', 'woocommerce-smart-coupons' ) . ' ' . esc_html__( 'plugin and then following steps listed ', 'woocommerce-smart-coupons' ) . ' ' . __( 'here', 'woocommerce-smart-coupons' ) . '.',
+ ),
+ array(
+ 'que' => esc_html__( 'How to change texts of the emails sent from Smart Coupons?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'You can do this by overriding the email template.', 'woocommerce-smart-coupons' ) . ' ' . esc_html__( 'How to override email template', 'woocommerce-smart-coupons' ) . '.',
+ ),
+ array(
+ 'que' => esc_html__( 'Can coupon code have any spaces in the name? / My Store Credit/Gift Certificate is not working (not generating new coupon code).', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'No. Coupon code should not have any spaces in the name, Eg, Coupon code should be “gift-certificate” & not “gift certificate”.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'What\'s the URL to a coupon, so it\'s automatically inserted when visiting?', 'woocommerce-smart-coupons' ),
+ /* translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link' */
+ 'ans' => esc_html__( 'URL of coupon should be like this:', 'woocommerce-smart-coupons' ) . ' https://www.mysite.com/?coupon-code=discount5&sc-page=shop ' . esc_html__( '. Replace www.mysite.com with your own site URL and replace discount5 with the your coupon code.', 'woocommerce-smart-coupons' ) . ' ' . sprintf( esc_html__( 'For more details you can refer to this article: %s', 'woocommerce-smart-coupons' ), '' . esc_html__( 'How to Apply Single or Multiple Coupons on Click of a Link', 'woocommerce-smart-coupons' ) . '' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Do not want to tie store credit to be used by only one customer? / Can a customer send a gift certificate to themselves to pass on to someone else?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Edit the main coupon which is entered in "Coupons" field of the product edit page, then go to "Usage Restrictions" > "Disable Email Restriction" and disable this setting and save the coupon.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Getting \'Page Not Found Error\' when accessing Coupons tab from My Account Page?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Go to WordPress -> Settings -> Permalinks and click on Save Settings once.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Is there any reference file for creating an import file for coupons?', 'woocommerce-smart-coupons' ),
+ /* translators: 1. File name 2. File download link */
+ 'ans' => sprintf( esc_html__( 'There is one file which is located inside the plugin. You can download the %1$s file from %2$s.', 'woocommerce-smart-coupons' ), 'sample.csv', '' . esc_html__( 'here', 'woocommerce-smart-coupons' ) . '' ) . ' ' . esc_html__( 'If you want to import coupon through file, the file should be like', 'woocommerce-smart-coupons' ) . ' sample.csv',
+ ),
+ array(
+ 'que' => esc_html__( 'Available coupons are not visible on Cart, Checkout & My Account page?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Smart Coupons uses hooks of Cart, Checkout & My Account page to display available coupons. If your theme is not using those hooks in cart, checkout & my-account template, coupons will not be displayed.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'How can I resend gift card coupon bought by customers?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'You can resend them from order admin edit page.', 'woocommerce-smart-coupons' ) . ' ' . __( 'See how', 'woocommerce-smart-coupons' ) . '.',
+ ),
+ array(
+ 'que' => esc_html__( 'Uncheck "Auto-generate" option in Store Credit is not saving? Is it always checked?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Store Credit\'s default behavior is auto-generate because, when using a store credit, it\'s balance keeps reducing. Therefore it should be uniquely created for every user automatically.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Smart Coupons is not sending emails.', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Smart Coupons sends email only after order completion. So make sure that order complete email is enabled and sending. If enabled, then make sure all settings of coupons, products are in place. Also check by switching your theme.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( '"Store Credit Receiver detail" form not appearing on checkout page?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'This form is displayed using a hook which is available in My Account template. Make sure your theme\'s my-account template contains all hooks required for that template. Update your theme if it is not updated.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Does Smart Coupons allow printing of coupon as Gift Card?', 'woocommerce-smart-coupons' ),
+ /* translators: Documentation link for 'How to Print Coupons' */
+ 'ans' => sprintf( esc_html__( 'Yes, Smart Coupons does provide a feature for printing coupons. For more details, check this article: %s', 'woocommerce-smart-coupons' ), '' . esc_html__( 'How to Print Coupons', 'woocommerce-smart-coupons' ) . '' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Is it possible to have a coupon for each variation of the variable product?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'From version 4.11.0, you can add/link coupons to product variations as well. This feature is not available in a version lower than 4.11.0.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Is Smart Coupons compatible with WooCommerce Subscriptions?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Yes, Smart Coupons does work with WooCommerce Subscriptions.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Which features of Smart Coupons work with Subscriptions?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Give away a discount or credit on signing up a subscription, give away recurring discount or credits, apply credit during sign up, automatic payment for renewals from credit (Note: When using PayPal Standard Gateway, store credit can be applied only during sign up. Automatic payment for renewals by credit will not work for PayPal Standard Gateway).', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'How does automatic payment by store credit work with Subscriptions?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Customers can apply store credit on a subscription during purchase of subscription. If the same store credit has sufficient balance, it\'ll keep applying it to renewals till the remainder in store credit is higher than renewal price. Customers will be able to apply store credit only during signup. They will not get an option to apply store credit in renewals. But if the store credit will not have sufficient balance to pay for the renewals, then the order will go into pending mode. Now when the customer will go to pay for this renewal order, they\'ll get an option to apply store credit again. To activate the subscription again, the customer will have to pay for the renewals. When the customer is paying for the renewals from their account, then in that process they can use the same store credit which didn\'t have the sufficient balance, again & pay for the remaining amount.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Is it possible to partially pay for a subscription with store credit and the remainder by another method?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'No, this is possible only in those cases where subscription amount is more than store credit\'s balance. If store credit\'s balance is more than subscription\'s total then your bank account or credit card will not be charged.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'Is Smart Coupons WPML compatible?', 'woocommerce-smart-coupons' ),
+ 'ans' => esc_html__( 'Not yet, but this is being worked on. You will find this in later versions.', 'woocommerce-smart-coupons' ),
+ ),
+ array(
+ 'que' => esc_html__( 'I\'m using WPML & WPML provides support for multi-currency, but Smart Coupons only changes currency symbol & the price value remains same. Can Smart Coupons change the currency symbol and the price value associated with it?', 'woocommerce-smart-coupons' ),
+ /* translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce' */
+ 'ans' => sprintf( esc_html__( 'Currently, Smart Coupons is compatible with %s. But it is not compatible with any other multi-currency plugin or with WPML.', 'woocommerce-smart-coupons' ), '' . esc_html__( 'Aelia Currency Switcher for WooCommerce', 'woocommerce-smart-coupons' ) . '' ),
+ ),
+ );
+
+ $faqs = array_chunk( $faqs, 2 );
+ $right_faq_numbering = 1;
+ $left_faq_numbering = 0;
+ echo '
+ sc_get_option( 'wc_sc_allow_auto_apply', 'yes' );
+ if ( 'yes' === $is_allow_auto_apply ) {
+ woocommerce_wp_checkbox(
+ array(
+ 'id' => 'wc_sc_auto_apply_coupon',
+ 'label' => __( 'Auto apply?', 'woocommerce-smart-coupons' ),
+ 'description' => __( 'When checked, this coupon will be applied automatically, if it is valid. If enabled in more than 5 coupons, only 5 coupons will be applied automatically, rest will be ignored.', 'woocommerce-smart-coupons' ),
+ )
+ );
+ }
+ ?>
+
+ is_callable( $coupon, 'update_meta_data' ) && $this->is_callable( $coupon, 'save' );
+
+ // Get list of ids of coupons to auto apply.
+ $auto_apply_coupon_ids = get_option( 'wc_sc_auto_apply_coupon_ids', array() );
+ $auto_apply_coupon_ids = ( empty( $auto_apply_coupon_ids ) || ! is_array( $auto_apply_coupon_ids ) ) ? array() : $auto_apply_coupon_ids;
+ $auto_apply_coupon_ids = array_map( 'absint', $auto_apply_coupon_ids );
+ $post_id = absint( $post_id );
+ if ( isset( $_POST['wc_sc_auto_apply_coupon'] ) && isset( $_POST['discount_type'] ) && 'smart_coupon' !== wc_clean( wp_unslash( $_POST['discount_type'] ) ) ) { // phpcs:ignore
+ $auto_apply_coupon = wc_clean( wp_unslash( $_POST['wc_sc_auto_apply_coupon'] ) ); // phpcs:ignore
+ if ( true === $is_callable_coupon_update_meta ) {
+ $coupon->update_meta_data( 'wc_sc_auto_apply_coupon', $auto_apply_coupon );
+ $coupon->save();
+ } else {
+ $this->update_post_meta( $post_id, 'wc_sc_auto_apply_coupon', $auto_apply_coupon );
+ }
+ // Add coupon id to auto apply coupon list if haven't added already.
+ if ( is_array( $auto_apply_coupon_ids ) && ! in_array( $post_id, $auto_apply_coupon_ids, true ) ) {
+ $auto_apply_coupon_ids[] = $post_id;
+ }
+ } else {
+ if ( true === $is_callable_coupon_update_meta ) {
+ $coupon->update_meta_data( 'wc_sc_auto_apply_coupon', 'no' );
+ $coupon->save();
+ } else {
+ $this->update_post_meta( $post_id, 'wc_sc_auto_apply_coupon', 'no' );
+ }
+ // Remove coupon id from auto apply coupon list if auto apply is disabled.
+ if ( is_array( $auto_apply_coupon_ids ) && in_array( $post_id, $auto_apply_coupon_ids, true ) ) {
+ $auto_apply_coupon_ids = array_diff( $auto_apply_coupon_ids, array( $post_id ) );
+ }
+ }
+ update_option( 'wc_sc_auto_apply_coupon_ids', $auto_apply_coupon_ids, 'no' );
+ }
+
+ /**
+ * Add meta in export headers
+ *
+ * @param array $headers Existing headers.
+ * @return array
+ */
+ public function export_headers( $headers = array() ) {
+
+ $headers['wc_sc_auto_apply_coupon'] = __( 'Auto apply?', 'woocommerce-smart-coupons' );
+
+ return $headers;
+ }
+
+ /**
+ * Post meta defaults for auto apply coupon meta
+ *
+ * @param array $defaults Existing postmeta defaults.
+ * @return array $defaults Modified postmeta defaults
+ */
+ public function postmeta_defaults( $defaults = array() ) {
+
+ $defaults['wc_sc_auto_apply_coupon'] = '';
+
+ return $defaults;
+ }
+
+ /**
+ * Add auto apply coupon's meta with value in coupon meta
+ *
+ * @param array $data The row data.
+ * @param array $post The POST values.
+ * @return array $data Modified row data
+ */
+ public function generate_coupon_meta( $data = array(), $post = array() ) {
+
+ if ( isset( $post['discount_type'] ) && 'smart_coupon' !== $post['discount_type'] ) {
+ $data['wc_sc_auto_apply_coupon'] = ( isset( $post['wc_sc_auto_apply_coupon'] ) ) ? $post['wc_sc_auto_apply_coupon'] : '';
+ }
+
+ return $data;
+ }
+
+ /**
+ * Process coupon meta value for import
+ *
+ * @param mixed $meta_value The meta value.
+ * @param array $args Additional Arguments.
+ * @return mixed $meta_value
+ */
+ public function process_coupon_meta_value_for_import( $meta_value = null, $args = array() ) {
+
+ $discount_type = isset( $args['discount_type'] ) ? $args['discount_type'] : '';
+ if ( 'smart_coupon' !== $discount_type && ! empty( $args['meta_key'] ) && 'wc_sc_auto_apply_coupon' === $args['meta_key'] ) {
+ $auto_apply_coupon = $meta_value;
+ if ( 'yes' === $auto_apply_coupon ) {
+ $auto_apply_coupon_ids = get_option( 'wc_sc_auto_apply_coupon_ids', array() );
+ $auto_apply_coupon_ids = ( empty( $auto_apply_coupon_ids ) || ! is_array( $auto_apply_coupon_ids ) ) ? array() : $auto_apply_coupon_ids;
+ $auto_apply_coupon_ids = array_map( 'absint', $auto_apply_coupon_ids );
+ $coupon_id = ( isset( $args['post']['post_id'] ) ) ? absint( $args['post']['post_id'] ) : 0;
+ if ( ! empty( $coupon_id ) && ! in_array( $coupon_id, $auto_apply_coupon_ids, true ) ) {
+ $auto_apply_coupon_ids[] = $coupon_id;
+ update_option( 'wc_sc_auto_apply_coupon_ids', $auto_apply_coupon_ids, 'no' );
+ }
+ }
+ }
+
+ return $meta_value;
+ }
+
+ /**
+ * Make meta data of auto apply coupon meta protected
+ *
+ * @param bool $protected Is protected.
+ * @param string $meta_key The meta key.
+ * @param string $meta_type The meta type.
+ * @return bool $protected
+ */
+ public function make_action_meta_protected( $protected = false, $meta_key = '', $meta_type = '' ) {
+
+ if ( 'wc_sc_auto_apply_coupon' === $meta_key ) {
+ return true;
+ }
+
+ return $protected;
+ }
+
+ /**
+ * Get auto applied coupons
+ *
+ * @since 4.27.0
+ * @return array
+ */
+ public function get_auto_applied_coupons() {
+ $coupons = ( is_object( WC()->session ) && is_callable( array( WC()->session, 'get' ) ) ) ? WC()->session->get( 'wc_sc_auto_applied_coupons' ) : array();
+ $coupons = ( ! empty( $coupons ) && is_array( $coupons ) ) ? array_filter( array_unique( $coupons ) ) : array();
+ return apply_filters( 'wc_sc_' . __FUNCTION__, $coupons, array( 'source' => $this ) );
+ }
+
+ /**
+ * Add auto applied coupon to WC session
+ *
+ * @since 4.27.0
+ * @param string $coupon_code Coupon Code.
+ */
+ public function set_auto_applied_coupon( $coupon_code = '' ) {
+ if ( ! empty( $coupon_code ) ) {
+ $coupons = $this->get_auto_applied_coupons();
+ // Check if auto applied coupons are not empty.
+ if ( ! empty( $coupons ) && is_array( $coupons ) ) {
+ $coupons[] = $coupon_code;
+ } else {
+ $coupons = array( $coupon_code );
+ }
+ if ( is_object( WC()->session ) && is_callable( array( WC()->session, 'set' ) ) ) {
+ WC()->session->set( 'wc_sc_auto_applied_coupons', $coupons );
+ }
+ }
+ }
+
+ /**
+ * Remove an auto applied coupon from WC session
+ *
+ * @since 4.31.0
+ * @param string $coupon_code Coupon Code.
+ */
+ public function unset_auto_applied_coupon( $coupon_code = '' ) {
+ if ( ! empty( $coupon_code ) ) {
+ $update = false;
+ $coupons = $this->get_auto_applied_coupons();
+ // Check if auto applied coupons are not empty.
+ if ( ! empty( $coupons ) && in_array( $coupon_code, $coupons, true ) ) {
+ $coupons = array_diff( $coupons, array( $coupon_code ) );
+ $update = true;
+ }
+ if ( true === $update && is_object( WC()->session ) && is_callable( array( WC()->session, 'set' ) ) ) {
+ $coupons = array_values( array_filter( $coupons ) );
+ WC()->session->set( 'wc_sc_auto_applied_coupons', $coupons );
+ }
+ }
+ }
+
+ /**
+ * Reset cart session data.
+ *
+ * @since 4.27.0
+ */
+ public function reset_auto_applied_coupons_session() {
+ if ( is_object( WC()->session ) && is_callable( array( WC()->session, 'set' ) ) ) {
+ WC()->session->set( 'wc_sc_auto_applied_coupons', null );
+ }
+ }
+
+ /**
+ * Runs after a coupon is removed
+ *
+ * @since 4.31.0
+ * @param string $coupon_code The coupon code.
+ * @return void
+ */
+ public function wc_sc_removed_coupon( $coupon_code = '' ) {
+ $backtrace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ); // phpcs:ignore
+ $is_automatic = true;
+ if ( ! empty( $backtrace ) ) {
+ foreach ( $backtrace as $trace ) {
+ if (
+ isset( $trace['file'] ) &&
+ (
+ false !== strpos( $trace['file'], 'StoreApi/Routes/V1/CartRemoveCoupon.php' ) ||
+ ( ! empty( $trace['function'] ) && 'remove_coupon' === $trace['function'] && ! empty( $trace['class'] ) && 'WC_AJAX' === $trace['class'] )
+ )
+ ) {
+ if ( false !== strpos( $trace['file'], 'StoreApi/Routes/V1/CartRemoveCoupon.php' ) ) {
+ // Call auto_apply_coupons() if removal is from StoreApi/Routes/V1/CartRemoveCoupon.php.
+ $this->auto_apply_coupons();
+ return; // Exit function after calling auto_apply_coupons().
+ }
+
+ // Coupon was removed by the user.
+ $is_automatic = false;
+ break; // Exit loop once the user removal is identified.
+ }
+ }
+ }
+ if ( $is_automatic ) {
+ $this->unset_auto_applied_coupon( $coupon_code );
+ }
+ }
+
+ /**
+ * Check if auto apply coupon allowed in the cart
+ *
+ * @since 4.27.0
+ * @return bool.
+ */
+ public function is_allow_auto_apply_coupons() {
+ $auto_applied_coupons = $this->get_auto_applied_coupons();
+ $auto_applied_coupons_count = ! empty( $auto_applied_coupons ) && is_array( $auto_applied_coupons ) ? count( $auto_applied_coupons ) : 0;
+ $max_auto_apply_coupons_limit = apply_filters( 'wc_sc_max_auto_apply_coupons_limit', get_option( 'wc_sc_max_auto_apply_coupons_limit', 5 ), array( 'source' => $this ) );
+
+ return apply_filters(
+ 'wc_sc_' . __FUNCTION__,
+ $auto_applied_coupons_count < $max_auto_apply_coupons_limit,
+ array(
+ 'source' => $this,
+ 'auto_applied_coupons' => $auto_applied_coupons,
+ )
+ );
+ }
+
+ /**
+ * Check if the auto apply removable
+ *
+ * @since 4.27.0
+ * @param string $coupon_code Coupon Code.
+ * @return bool.
+ */
+ public function is_auto_apply_coupon_removable( $coupon_code = '' ) {
+
+ return apply_filters(
+ 'wc_sc_' . __FUNCTION__,
+ get_option( 'wc_sc_auto_apply_coupon_removable', 'yes' ),
+ array(
+ 'source' => $this,
+ 'coupon_code' => $coupon_code,
+ )
+ );
+ }
+
+ /**
+ * Check if the coupon is applied through auto apply
+ *
+ * @since 4.27.0
+ * @param string $coupon_code Coupon Code.
+ * @return bool.
+ */
+ public function is_coupon_applied_by_auto_apply( $coupon_code = '' ) {
+ if ( ! empty( $coupon_code ) ) {
+ $applied_coupons = $this->get_auto_applied_coupons();
+ if ( ! empty( $applied_coupons ) && is_array( $applied_coupons ) && in_array( $coupon_code, $applied_coupons, true ) ) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Check if coupon is applicable for auto apply
+ *
+ * @since 4.26.0
+ * @param WC_Coupon $coupon WooCommerce coupon object.
+ * @return bool
+ */
+ public function is_coupon_valid_for_auto_apply( $coupon = null ) {
+
+ $valid = false;
+ if ( is_object( $coupon ) && $coupon instanceof WC_Coupon ) {
+
+ if ( $this->is_wc_gte_30() ) {
+ $coupon_code = is_callable( array( $coupon, 'get_code' ) ) ? $coupon->get_code() : '';
+ $discount_type = is_callable( array( $coupon, 'get_discount_type' ) ) ? $coupon->get_discount_type() : '';
+ $is_auto_generate_coupon = is_callable( array( $coupon, 'get_meta' ) ) ? $coupon->get_meta( 'auto_generate_coupon' ) : 'no';
+ $is_disable_email_restrict = is_callable( array( $coupon, 'get_meta' ) ) ? $coupon->get_meta( 'sc_disable_email_restriction' ) : 'no';
+ } else {
+ $coupon_id = ( ! empty( $coupon->id ) ) ? $coupon->id : 0;
+ $coupon_code = ( ! empty( $coupon->code ) ) ? $coupon->code : '';
+ $discount_type = get_post_meta( $coupon_id, 'discount_type', true );
+ $is_auto_generate_coupon = get_post_meta( $coupon_id, 'auto_generate_coupon', true );
+ $is_disable_email_restrict = get_post_meta( $coupon_id, 'sc_disable_email_restriction', true );
+ }
+
+ $is_removable = $this->is_auto_apply_coupon_removable( $coupon_code );
+ $is_auto_applied = $this->is_coupon_applied_by_auto_apply( $coupon_code );
+
+ /**
+ * Validate coupon for auto apply if
+ *
+ * Discount type is not smart_coupon.
+ * Auto generate is not enabled.
+ * Coupon should not be auto applied OR auto applied coupon should not be removable.
+ * Coupon code is valid.
+ */
+ $valid = 'smart_coupon' !== $discount_type
+ && 'yes' !== $is_auto_generate_coupon
+ && ( ! $is_auto_applied || 'yes' !== $is_removable )
+ && $this->is_valid( $coupon );
+ }
+
+ return apply_filters(
+ 'wc_sc_' . __FUNCTION__,
+ $valid,
+ array(
+ 'coupon_obj' => $coupon,
+ 'source' => $this,
+ )
+ );
+ }
+
+ /**
+ * Function to apply coupons automatically.
+ *
+ * TODO: IF we need another variable for removed coupons;
+ * There will be 2 session variables: wc_sc_auto_applied_coupons and wc_sc_removed_auto_applied_coupons.
+ * Whenever a coupon will be auto-applied, it'll be stored in wc_sc_auto_applied_coupons.
+ * Whenever a coupon will be removed, it'll be moved from wc_sc_auto_applied_coupons to wc_sc_removed_auto_applied_coupons.
+ * And before applying an auto-apply coupon, it'll be made sure that the coupon doesn't exist in wc_sc_removed_auto_applied_coupons
+ * And sum of counts of both session variable will be considered before auto applying coupons. It will be made sure that the sum of counts in not exceeding option `wc_sc_max_auto_apply_coupons_limit`
+ * Reference: issues/234#note_27085
+ */
+ public function auto_apply_coupons() {
+ $cart = ( is_object( WC() ) && isset( WC()->cart ) ) ? WC()->cart : null;
+ if ( is_object( $cart ) && is_callable( array( $cart, 'is_empty' ) ) && ! $cart->is_empty() && $this->is_allow_auto_apply_coupons() ) {
+ global $wpdb;
+ $user_role = '';
+ $email = '';
+ if ( ! is_admin() ) {
+ $current_user = wp_get_current_user();
+ if ( ! empty( $current_user->ID ) ) {
+ $max_user_roles_limit = apply_filters( 'wc_sc_max_user_roles_limit', 5 );
+ $user_roles = ( ! empty( $current_user->roles ) ) ? $current_user->roles : array();
+ if ( count( $user_roles ) > $max_user_roles_limit ) {
+ $user_roles = array_slice( $user_roles, 0, $max_user_roles_limit );
+ }
+ $email = get_user_meta( $current_user->ID, 'billing_email', true );
+ $email = ( ! empty( $email ) ) ? $email : $current_user->user_email;
+ }
+ }
+ $query = $wpdb->prepare(
+ "SELECT DISTINCT p.ID
+ FROM {$wpdb->posts} AS p
+ JOIN {$wpdb->postmeta} AS pm1
+ ON (p.ID = pm1.post_id
+ AND p.post_type = %s
+ AND p.post_status = %s
+ AND pm1.meta_key = %s
+ AND pm1.meta_value = %s)
+ JOIN {$wpdb->postmeta} AS pm2
+ ON (p.ID = pm2.post_id
+ AND pm2.meta_key IN ('wc_sc_user_role_ids', 'customer_email')
+ AND (pm2.meta_value = ''
+ OR pm2.meta_value = 'a:0:{}'",
+ 'shop_coupon',
+ 'publish',
+ 'wc_sc_auto_apply_coupon',
+ 'yes'
+ );
+ if ( ! empty( $user_roles ) ) {
+ foreach ( $user_roles as $user_role ) {
+ $query .= $wpdb->prepare(
+ ' OR pm2.meta_value LIKE %s',
+ '%' . $wpdb->esc_like( $user_role ) . '%'
+ );
+ }
+ }
+ if ( ! empty( $email ) ) {
+ $query .= $wpdb->prepare(
+ ' OR pm2.meta_value LIKE %s',
+ '%' . $wpdb->esc_like( $email ) . '%'
+ );
+ }
+ $query .= '))';
+ $auto_apply_coupon_ids = $wpdb->get_col( $query ); // phpcs:ignore
+ $auto_apply_coupon_ids = ( empty( $auto_apply_coupon_ids ) || ! is_array( $auto_apply_coupon_ids ) ) ? array() : $auto_apply_coupon_ids;
+ $auto_apply_coupon_ids = array_filter( array_map( 'absint', $auto_apply_coupon_ids ) );
+ if ( ! empty( $auto_apply_coupon_ids ) && is_array( $auto_apply_coupon_ids ) ) {
+ $valid_coupon_counter = 0;
+ $max_auto_apply_coupons_limit = apply_filters( 'wc_sc_max_auto_apply_coupons_limit', get_option( 'wc_sc_max_auto_apply_coupons_limit', 5 ), array( 'source' => $this ) );
+ $current_filter = current_filter();
+ do_action(
+ 'wc_sc_before_auto_apply_coupons',
+ array(
+ 'source' => $this,
+ 'current_filter' => $current_filter,
+ )
+ );
+ foreach ( $auto_apply_coupon_ids as $apply_coupon_id ) {
+ // Process only five coupons.
+ if ( absint( $max_auto_apply_coupons_limit ) === $valid_coupon_counter ) {
+ break;
+ }
+ $coupon = new WC_Coupon( absint( $apply_coupon_id ) );
+ if ( $this->is_wc_gte_30() ) {
+ $coupon_id = ( ! empty( $coupon ) && is_callable( array( $coupon, 'get_id' ) ) ) ? $coupon->get_id() : 0;
+ $coupon_code = ( ! empty( $coupon ) && is_callable( array( $coupon, 'get_code' ) ) ) ? $coupon->get_code() : '';
+ } else {
+ $coupon_id = ( ! empty( $coupon->id ) ) ? $coupon->id : 0;
+ $coupon_code = ( ! empty( $coupon->code ) ) ? $coupon->code : '';
+ }
+
+ // If coupon has payment method restriction and already store wc_sc_auto_applied_coupons.
+ $payment_method_ids = $this->get_post_meta( $coupon_id, 'wc_sc_payment_method_ids', true );
+ if ( ( is_array( $payment_method_ids ) && count( $payment_method_ids ) > 0 ) && $this->is_coupon_applied_by_auto_apply( $coupon_code ) ) {
+ $this->unset_auto_applied_coupon( $coupon_code );
+ }
+
+ // Check if it is a valid coupon object.
+ if ( $apply_coupon_id === $coupon_id && ! empty( $coupon_code ) && $this->is_coupon_valid_for_auto_apply( $coupon ) ) {
+ $cart_total = ( $this->is_wc_greater_than( '3.1.2' ) ) ? $cart->get_cart_contents_total() : $cart->cart_contents_total;
+ $is_auto_apply = apply_filters(
+ 'wc_sc_is_auto_apply',
+ ( $cart_total > 0 ),
+ array(
+ 'source' => $this,
+ 'cart_obj' => $cart,
+ 'coupon_obj' => $coupon,
+ 'cart_total' => $cart_total,
+ )
+ );
+ // Check if cart still requires a coupon discount and does not have coupon already applied.
+ if ( true === $is_auto_apply && ! $cart->has_discount( $coupon_code ) ) {
+ $cart->add_discount( $coupon_code );
+ $cart->calculate_shipping();
+ $cart->calculate_totals();
+ $this->set_auto_applied_coupon( $coupon_code );
+ }
+ $valid_coupon_counter++;
+ } // End if to check valid coupon.
+ }
+ }
+ }
+ }
+
+ /**
+ * Function to apply coupons for cart and checkout block.
+ *
+ * @param bool $pre_render Is protected.
+ * @param array $parsed_block The meta key.
+ * @param array $parent_block The meta type.
+ * @return bool
+ */
+ public function auto_apply_coupons_to_cart_checkout_block( $pre_render = null, $parsed_block = array(), $parent_block = null ) {
+ if ( isset( $parsed_block['blockName'] ) && in_array( $parsed_block['blockName'], array( 'woocommerce/cart', 'woocommerce/checkout' ), true ) ) {
+ $this->auto_apply_coupons();
+ }
+ return $pre_render;
+ }
+
+ /**
+ * Function to Automatically Apply Coupons on Cart Update.
+ *
+ * @param string $cart_item_key contains the id of the cart item. This may be empty if the cart item does not exist any more.
+ * @param int $quantity contains the quantity of the item.
+ * @param WC_Cart $cart Cart class.
+ */
+ public function auto_apply_coupons_on_cart_update( $cart_item_key, $quantity, $cart ) {
+ if ( WC()->is_rest_api_request() ) {
+ $this->auto_apply_coupons();
+ }
+ }
+
+ /**
+ * Automatically apply coupons during the WooCommerce checkout order review update process.
+ * This function checks for changes in the shipping method and updates the chosen shipping method in the session.
+ * Then, it automatically applies any eligible coupons.
+ */
+ public function wc_checkout_update_order_review_auto_apply_coupons() {
+ check_ajax_referer( 'update-order-review', 'security' );
+
+ // Get the posted shipping methods from the form data, if available.
+ $posted_shipping_methods = isset( $_POST['shipping_method'] ) ? wc_clean( wp_unslash( $_POST['shipping_method'] ) ) : array(); // phpcs:ignore
+
+ if ( ! empty( $posted_shipping_methods ) ) {
+ // Retrieve the current chosen shipping methods from the session.
+ $chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods' );
+
+ if ( is_array( $posted_shipping_methods ) ) {
+ // Update the chosen shipping methods with the posted values.
+ foreach ( $posted_shipping_methods as $i => $value ) {
+ if ( ! is_string( $value ) ) {
+ continue;
+ }
+ $chosen_shipping_methods[ $i ] = $value;
+ }
+ }
+
+ // Save the updated chosen shipping methods back to the session.
+ WC()->session->set( 'chosen_shipping_methods', $chosen_shipping_methods );
+ }
+
+ // Automatically apply any eligible coupons.
+ $this->auto_apply_coupons();
+ }
+
+ /**
+ * Remove coupons that result in zero discount.
+ *
+ * This method loops through all applied coupons in the cart and checks if they are
+ * not present in the coupon discount totals. If a coupon is found to have a zero
+ * discount (i.e., it is not in the coupon discount totals), it is removed from the
+ * applied coupons list and the auto-applied coupon logic is handled.
+ *
+ * @param WC_Cart $cart The WooCommerce cart object.
+ */
+ public function remove_coupon_if_zero( $cart ) {
+ // Get all applied coupons.
+ $applied_coupons = $cart->get_applied_coupons();
+
+ if ( ! empty( $applied_coupons ) ) {
+ foreach ( $applied_coupons as $coupon_code ) {
+ // Check if the coupon is not in the coupon discount totals (indicating a zero discount).
+ if ( ! array_key_exists( $coupon_code, $cart->get_coupon_discount_totals() ) ) {
+ // Remove the coupon from the applied coupons array.
+ $updated_coupons = array_diff( $applied_coupons, array( $coupon_code ) );
+ $cart->set_applied_coupons( $updated_coupons );
+
+ // Unset the auto-applied coupon from session.
+ $this->unset_auto_applied_coupon( $coupon_code );
+ }
+ }
+ }
+ }
+
+ /**
+ * Automatically apply coupons to the cart when the shipping method is changed.
+ * This method checks if the request is an AJAX request to update the shipping method,
+ * and if so, it calls the auto_apply_coupons method to apply any eligible coupons.
+ */
+ public function auto_apply_coupons_to_cart_on_shipping_change() {
+ if ( is_ajax() ) {
+ // Check if the request is an AJAX request to update the shipping method.
+ check_ajax_referer( 'update-shipping-method', 'security' );
+ $this->auto_apply_coupons();
+ }
+ }
+
+ /**
+ * Handle auto apply related hooks
+ */
+ public function handle_auto_apply_hooks() {
+ $is_allow_auto_apply = $this->sc_get_option( 'wc_sc_allow_auto_apply', 'yes' );
+ if ( 'yes' === $is_allow_auto_apply ) {
+ // Action to auto apply coupons.
+ add_action( 'woocommerce_cart_is_empty', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_shortcode_before_product_cat_loop', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_before_shop_loop', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_before_single_product', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_before_cart', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_before_checkout_form', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_account_content', array( $this, 'auto_apply_coupons' ) );
+ add_action( 'woocommerce_checkout_update_order_review', array( $this, 'wc_checkout_update_order_review_auto_apply_coupons' ) );
+ add_action( 'woocommerce_cart_emptied', array( $this, 'reset_auto_applied_coupons_session' ) );
+ add_action( 'woocommerce_removed_coupon', array( $this, 'blocks_removed_coupon' ), 20 );
+ add_action( 'woocommerce_removed_coupon', array( $this, 'wc_sc_removed_coupon' ), 99 );
+
+ add_filter( 'pre_render_block', array( $this, 'auto_apply_coupons_to_cart_checkout_block' ), 10, 3 );
+
+ add_action( 'woocommerce_cart_item_set_quantity', array( $this, 'auto_apply_coupons_on_cart_update' ), 10, 4 );
+
+ add_action( 'woocommerce_before_cart_totals', array( $this, 'auto_apply_coupons_to_cart_on_shipping_change' ) );
+ }
+ }
+
+ /**
+ * Recheck coupon removed from auto-apply
+ *
+ * @param string $code The coupon code.
+ */
+ public function blocks_removed_coupon( $code = '' ) {
+ if ( empty( $code ) ) {
+ return;
+ }
+ if ( function_exists( 'WC' ) && isset( WC()->cart ) && is_a( WC()->cart, 'WC_Cart' ) ) {
+ $coupon = new WC_Coupon( $code );
+ $is_removable = $this->is_auto_apply_coupon_removable( $code );
+ $is_auto_applied = $this->is_coupon_applied_by_auto_apply( $code );
+ if ( true === $is_auto_applied && 'yes' !== $is_removable && $this->is_callable( WC()->cart, 'add_discount' ) ) {
+ WC()->cart->add_discount( $code );
+ }
+ }
+ }
+ }
+
+}
+
+WC_SC_Auto_Apply_Coupon::get_instance();
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/class-wc-sc-background-coupon-importer.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/class-wc-sc-background-coupon-importer.php
new file mode 100644
index 00000000..e72d5c07
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/class-wc-sc-background-coupon-importer.php
@@ -0,0 +1,1269 @@
+plugin_data = WC_Smart_Coupons::get_smart_coupons_plugin_data();
+
+ // Uses unique prefix per blog so each blog has separate queue.
+ $this->prefix = 'wp_' . get_current_blog_id();
+ $this->identifier = 'wc_sc_coupon_importer';
+
+ add_action( 'admin_notices', array( $this, 'coupon_background_notice' ) );
+ add_action( 'admin_footer', array( $this, 'styles_and_scripts' ) );
+ add_action( 'wp_ajax_wc_sc_coupon_background_progress', array( $this, 'ajax_coupon_background_progress' ) );
+ add_action( 'wp_ajax_wc_sc_stop_coupon_background_process', array( $this, 'ajax_stop_coupon_background_process' ) );
+ add_action( 'wp_ajax_wc_sc_download_csv', array( $this, 'ajax_download_csv' ) );
+ add_action( 'woo_sc_generate_coupon_csv', array( $this, 'woo_sc_generate_coupon_csv' ) );
+ add_action( 'woo_sc_import_coupons_from_csv', array( $this, 'woo_sc_import_coupons_from_csv' ) );
+ add_action( 'woocommerce_smart_coupons_send_combined_coupon_email', array( $this, 'send_scheduled_combined_email' ) );
+ add_action( 'action_scheduler_failed_action', array( $this, 'restart_failed_action' ) );
+
+ add_filter( 'heartbeat_send', array( $this, 'check_coupon_background_progress' ), 10, 2 );
+ add_filter( 'cron_schedules', array( $this, 'modify_action_scheduler_default_interval' ), 1000 ); // phpcs:ignore
+
+ }
+
+ /**
+ * Get single instance of WC_SC_Background_Coupon_Importer
+ *
+ * @return WC_SC_Background_Coupon_Importer Singleton object of WC_SC_Background_Coupon_Importer
+ */
+ public static function get_instance() {
+ // Check if instance is already exists.
+ if ( is_null( self::$instance ) ) {
+ self::$instance = new self();
+ }
+
+ return self::$instance;
+ }
+
+ /**
+ * Handle call to functions which is not available in this class
+ *
+ * @param string $function_name The function name.
+ * @param array $arguments Array of arguments passed while calling $function_name.
+ * @return result of function call
+ */
+ public function __call( $function_name, $arguments = array() ) {
+
+ global $woocommerce_smart_coupon;
+
+ if ( ! is_callable( array( $woocommerce_smart_coupon, $function_name ) ) ) {
+ return;
+ }
+
+ if ( ! empty( $arguments ) ) {
+ return call_user_func_array( array( $woocommerce_smart_coupon, $function_name ), $arguments );
+ } else {
+ return call_user_func( array( $woocommerce_smart_coupon, $function_name ) );
+ }
+
+ }
+
+ /**
+ * Get Identifier
+ *
+ * @return string The Identifier
+ */
+ public function get_identifier() {
+ return $this->identifier;
+ }
+
+ /**
+ * Memory exceeded
+ *
+ * Ensures the batch process never exceeds 90%
+ * of the maximum WordPress memory.
+ *
+ * @return bool
+ */
+ protected function memory_exceeded() {
+ $memory_limit = $this->get_memory_limit() * 0.9; // 90% of max memory
+ $current_memory = memory_get_usage( true );
+
+ if ( $current_memory >= $memory_limit ) {
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Get memory limit.
+ *
+ * @return int
+ */
+ protected function get_memory_limit() {
+ if ( function_exists( 'ini_get' ) ) {
+ $memory_limit = ini_get( 'memory_limit' );
+ } else {
+ // Sensible default.
+ $memory_limit = '128M';
+ }
+
+ if ( ! $memory_limit || -1 === intval( $memory_limit ) ) {
+ // Unlimited, set to 32GB.
+ $memory_limit = '32G';
+ }
+
+ return wp_convert_hr_to_bytes( $memory_limit );
+ }
+
+ /**
+ * Time exceeded.
+ *
+ * Ensures the batch never exceeds a sensible time limit.
+ * A timeout limit of 30s is common on shared hosting.
+ *
+ * @param string $start_time start timestamp.
+ * @return bool
+ */
+ protected function time_exceeded( $start_time = '' ) {
+
+ if ( ! empty( $start_time ) ) {
+ $this->start_time = $start_time;
+ }
+
+ $finish = $this->start_time + apply_filters( $this->identifier . '_default_time_limit', 20 ); // 20 seconds
+ $return = false;
+
+ if ( time() >= $finish ) {
+ $return = true;
+ }
+
+ return apply_filters( $this->identifier . '_time_exceeded', $return );
+ }
+
+ /**
+ * Get list of scheduled actions of this plugin
+ *
+ * Note: wc_sc_send_scheduled_coupon_email is not included because it's not used in bulk generate/import process
+ *
+ * @return array
+ */
+ public function get_scheduled_action_hooks() {
+ $hooks = array(
+ 'woo_sc_generate_coupon_csv',
+ 'woo_sc_import_coupons_from_csv',
+ 'woocommerce_smart_coupons_send_combined_coupon_email',
+ );
+ return $hooks;
+ }
+
+ /**
+ * Get scheduled actions by this plugin
+ *
+ * @return array
+ */
+ public function get_scheduled_actions() {
+
+ $found_actions = array();
+
+ if ( ! function_exists( 'as_get_scheduled_actions' ) ) {
+ return $found_actions;
+ }
+
+ $hooks = $this->get_scheduled_action_hooks();
+
+ if ( ! empty( $hooks ) ) {
+ foreach ( $hooks as $hook ) {
+ $args = array(
+ 'hook' => $hook,
+ );
+ $found = as_get_scheduled_actions( $args, ARRAY_A );
+ if ( ! empty( $found ) ) {
+ $found_actions[ $hook ] = $found;
+ }
+ }
+ }
+
+ return $found_actions;
+
+ }
+
+ /**
+ * Stop all scheduled actions by this plugin
+ */
+ public function stop_scheduled_actions() {
+ if ( function_exists( 'as_unschedule_action' ) ) {
+ $hooks = $this->get_scheduled_action_hooks();
+ if ( ! empty( $hooks ) ) {
+ foreach ( $hooks as $hook ) {
+ as_unschedule_action( $hook );
+ }
+ }
+ }
+ $this->clean_scheduled_action_data();
+ }
+
+ /**
+ * Clean scheduled action data
+ */
+ public function clean_scheduled_action_data() {
+ delete_option( 'woo_sc_generate_coupon_posted_data' );
+ delete_option( 'start_time_woo_sc' );
+ delete_option( 'current_time_woo_sc' );
+ delete_option( 'all_tasks_count_woo_sc' );
+ delete_option( 'remaining_tasks_count_woo_sc' );
+ delete_option( 'skipped_tasks_count_woo_sc' );
+ delete_option( 'bulk_coupon_action_woo_sc' );
+ }
+
+ /**
+ * Display notice if a background process is already running
+ */
+ public function coupon_background_notice() {
+ global $pagenow, $post, $store_credit_label;
+
+ if ( ! is_admin() ) {
+ return;
+ }
+
+ $page = ( ! empty( $_GET['page'] ) ) ? wc_clean( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore
+ $tab = ( ! empty( $_GET['tab'] ) ? ( 'send-smart-coupons' === $_GET['tab'] ? 'send-smart-coupons' : 'import-smart-coupons' ) : 'generate_bulk_coupons' ); // phpcs:ignore
+
+ if ( ( ! empty( $post->post_type ) && 'shop_coupon' !== $post->post_type ) || ! in_array( $tab, array( 'generate_bulk_coupons', 'import-smart-coupons', 'send-smart-coupons' ), true ) ) {
+ return;
+ }
+
+ if ( ! wp_script_is( 'jquery' ) ) {
+ wp_enqueue_script( 'jquery' );
+ }
+ if ( ! wp_script_is( 'heartbeat' ) ) {
+ wp_enqueue_script( 'heartbeat' );
+ }
+
+ $upload_dir = wp_get_upload_dir();
+ $upload_path = $upload_dir['basedir'] . '/woocommerce_uploads';
+
+ if ( 'wc-smart-coupons' === $page && 'generate_bulk_coupons' === $tab && ! empty( $upload_dir['error'] ) ) {
+ if ( ! wp_script_is( 'jquery-tiptip', 'registered' ) ) {
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
+ wp_register_script( 'jquery-tiptip', WC()->plugin_url() . '/assets/js/jquery-tiptip/jquery.tipTip' . $suffix . '.js', array( 'jquery' ), WC()->version, true );
+ }
+
+ if ( ! wp_script_is( 'jquery-tiptip' ) ) {
+ wp_enqueue_script( 'jquery-tiptip' );
+ }
+ ?>
+
+ is_wc_gte_32() ) {
+ woocommerce_wp_hidden_input(
+ array(
+ 'id' => 'wc_sc_expiry_time',
+ )
+ );
+
+ woocommerce_wp_text_input(
+ array(
+ 'id' => 'wc_sc_expiry_time_picker',
+ 'label' => __( 'Coupon expiry time', 'woocommerce-smart-coupons' ),
+ 'placeholder' => esc_attr__( 'HH:MM', 'woocommerce-smart-coupons' ),
+ 'description' => __( 'Time after which coupon will be expired. This will work in conjunction with Coupon expiry date.', 'woocommerce-smart-coupons' ),
+ 'type' => 'text',
+ 'desc_tip' => true,
+ 'custom_attributes' => array(
+ 'autocomplete' => 'off',
+ ),
+ )
+ );
+ }
+
+ // Max discount field for percentage type coupon.
+ woocommerce_wp_text_input(
+ array(
+ 'id' => 'wc_sc_max_discount',
+ 'label' => __( 'Max discount', 'woocommerce-smart-coupons' ),
+ 'placeholder' => esc_attr__( 'Unlimited discount', 'woocommerce-smart-coupons' ),
+ 'description' => __( 'The maximum discount this coupon can give on a cart.', 'woocommerce-smart-coupons' ),
+ 'type' => 'number',
+ 'desc_tip' => true,
+ 'custom_attributes' => array(
+ 'step' => 'any',
+ 'min' => 0,
+ ),
+ )
+ );
+
+ woocommerce_wp_checkbox(
+ array(
+ 'id' => 'sc_restrict_to_new_user',
+ 'label' => __( 'For new user only?', 'woocommerce-smart-coupons' ),
+ 'description' => __( 'When checked, this coupon will be valid for the user\'s first order on the store.', 'woocommerce-smart-coupons' ),
+ )
+ );
+
+ if ( true === $is_callable_coupon_get_meta ) {
+ $sc_coupon_validity = $coupon->get_meta( 'sc_coupon_validity' );
+ $validity_suffix = $coupon->get_meta( 'validity_suffix' );
+ } else {
+ $sc_coupon_validity = get_post_meta( $post->ID, 'sc_coupon_validity', true );
+ $validity_suffix = get_post_meta( $post->ID, 'validity_suffix', true );
+ }
+
+ ?>
+
+
+
+
+
+
+ 'is_pick_price_of_product',
+ 'label' => __( 'Coupon value same as product\'s price?', 'woocommerce-smart-coupons' ),
+ 'description' => __( 'When checked, generated coupon\'s value will be same as product\'s price', 'woocommerce-smart-coupons' ),
+ )
+ );
+ woocommerce_wp_checkbox(
+ array(
+ 'id' => 'auto_generate_coupon',
+ 'label' => __( 'Auto generate new coupons with each item', 'woocommerce-smart-coupons' ),
+ 'description' => __( 'Generate exact copy of this coupon with unique coupon code for each purchased product (needs this coupon to be linked with that product)', 'woocommerce-smart-coupons' ),
+ )
+ );
+ }
+
+ echo '
' . esc_html__( 'Sorry, there has been an error.', 'woocommerce-smart-coupons' ) . ' ';
+ echo esc_html__( 'The file does not exist, please try again.', 'woocommerce-smart-coupons' ) . '
';
+ die();
+ }
+
+ $this->parser = new WC_SC_Coupon_Parser( 'shop_coupon' );
+ $import_data = $this->parser->parse_data( $file );
+
+ $this->parsed_data = $import_data[0];
+ $this->raw_headers = $import_data[1];
+
+ unset( $import_data );
+
+ wp_defer_term_counting( true );
+ wp_defer_comment_counting( true );
+
+ }
+
+ /**
+ * Added to http_request_timeout filter to force timeout at 60 seconds during import
+ *
+ * @param int $val The current value.
+ * @return int 60
+ */
+ public function bump_request_timeout( $val ) {
+ return 60;
+ }
+
+ /**
+ * Performs post-import cleanup of files and the cache
+ */
+ public function import_end() {
+
+ wp_cache_flush();
+
+ wp_defer_term_counting( false );
+ wp_defer_comment_counting( false );
+
+ do_action( 'import_end' );
+
+ }
+
+ /**
+ * Handles the CSV upload and initial parsing of the file to prepare for
+ * displaying author import options
+ *
+ * @return bool False if error uploading or invalid file, true otherwise
+ */
+ public function handle_upload() {
+
+ $post_file_url = ( ! empty( $_POST['file_url'] ) ) ? wc_clean( wp_unslash( $_POST['file_url'] ) ) : ''; // phpcs:ignore
+
+ if ( empty( $post_file_url ) ) {
+ $file = wp_import_handle_upload();
+
+ if ( isset( $file['error'] ) ) {
+ echo '
' . esc_html__( 'Sorry, there has been an error.', 'woocommerce-smart-coupons' ) . ' ';
+ echo esc_html( $file['error'] ) . '
' . esc_html__( 'Click here to download a sample', 'woocommerce-smart-coupons' ) . ', ' . esc_html__( 'and create your CSV based on that.', 'woocommerce-smart-coupons' ); // phpcs:ignore ?>
' . esc_html__( 'List of coupons & their details which you have received from the store. Click on the coupon to see the details.', 'woocommerce-smart-coupons' ) . '
' . esc_html__( 'If you are logged in: We access your billing email address saved in your account & billing email address entered during purchase', 'woocommerce-smart-coupons' ) . '
+
' . esc_html__( 'If you are a visitor: We access your billing email address entered during purchase', 'woocommerce-smart-coupons' ) . '
+
+ ' . esc_html__( 'What we store & why?', 'woocommerce-smart-coupons' ) . '
+
' .
+ __( 'Action Scheduler is a scalable, traceable job queue for background processing large sets of actions. Action Scheduler works by triggering an action hook to run at some time in the future. Scheduled actions can also be scheduled to run on a recurring schedule.', 'woocommerce' ) .
+ '
';
+
+ return apply_filters( 'action_scheduler_list_table_column_args', $row_html, $row );
+ }
+
+ /**
+ * Prints the logs entries inline. We do so to avoid loading Javascript and other hacks to show it in a modal.
+ *
+ * @param array $row Action array.
+ * @return string
+ */
+ public function column_log_entries( array $row ) {
+
+ $log_entries_html = '';
+
+ $timezone = new DateTimezone( 'UTC' );
+
+ foreach ( $row['log_entries'] as $log_entry ) {
+ $log_entries_html .= $this->get_log_entry_html( $log_entry, $timezone );
+ }
+
+ $log_entries_html .= '';
+
+ return $log_entries_html;
+ }
+
+ /**
+ * Prints the logs entries inline. We do so to avoid loading Javascript and other hacks to show it in a modal.
+ *
+ * @param ActionScheduler_LogEntry $log_entry
+ * @param DateTimezone $timezone
+ * @return string
+ */
+ protected function get_log_entry_html( ActionScheduler_LogEntry $log_entry, DateTimezone $timezone ) {
+ $date = $log_entry->get_date();
+ $date->setTimezone( $timezone );
+ return sprintf( '
%s %s
', esc_html( $date->format( 'Y-m-d H:i:s O' ) ), esc_html( $log_entry->get_message() ) );
+ }
+
+ /**
+ * Only display row actions for pending actions.
+ *
+ * @param array $row Row to render
+ * @param string $column_name Current row
+ *
+ * @return string
+ */
+ protected function maybe_render_actions( $row, $column_name ) {
+ if ( 'pending' === strtolower( $row[ 'status_name' ] ) ) {
+ return parent::maybe_render_actions( $row, $column_name );
+ }
+
+ return '';
+ }
+
+ /**
+ * Renders admin notifications
+ *
+ * Notifications:
+ * 1. When the maximum number of tasks are being executed simultaneously.
+ * 2. Notifications when a task is manually executed.
+ * 3. Tables are missing.
+ */
+ public function display_admin_notices() {
+ global $wpdb;
+
+ if ( ( is_a( $this->store, 'ActionScheduler_HybridStore' ) || is_a( $this->store, 'ActionScheduler_DBStore' ) ) && apply_filters( 'action_scheduler_enable_recreate_data_store', true ) ) {
+ $table_list = array(
+ 'actionscheduler_actions',
+ 'actionscheduler_logs',
+ 'actionscheduler_groups',
+ 'actionscheduler_claims',
+ );
+
+ $found_tables = $wpdb->get_col( "SHOW TABLES LIKE '{$wpdb->prefix}actionscheduler%'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
+ foreach ( $table_list as $table_name ) {
+ if ( ! in_array( $wpdb->prefix . $table_name, $found_tables ) ) {
+ $this->admin_notices[] = array(
+ 'class' => 'error',
+ 'message' => __( 'It appears one or more database tables were missing. Attempting to re-create the missing table(s).' , 'woocommerce' ),
+ );
+ $this->recreate_tables();
+ parent::display_admin_notices();
+
+ return;
+ }
+ }
+ }
+
+ if ( $this->runner->has_maximum_concurrent_batches() ) {
+ $claim_count = $this->store->get_claim_count();
+ $this->admin_notices[] = array(
+ 'class' => 'updated',
+ 'message' => sprintf(
+ /* translators: %s: amount of claims */
+ _n(
+ 'Maximum simultaneous queues already in progress (%s queue). No additional queues will begin processing until the current queues are complete.',
+ 'Maximum simultaneous queues already in progress (%s queues). No additional queues will begin processing until the current queues are complete.',
+ $claim_count,
+ 'woocommerce'
+ ),
+ $claim_count
+ ),
+ );
+ } elseif ( $this->store->has_pending_actions_due() ) {
+
+ $async_request_lock_expiration = ActionScheduler::lock()->get_expiration( 'async-request-runner' );
+
+ // No lock set or lock expired
+ if ( false === $async_request_lock_expiration || $async_request_lock_expiration < time() ) {
+ $in_progress_url = add_query_arg( 'status', 'in-progress', remove_query_arg( 'status' ) );
+ /* translators: %s: process URL */
+ $async_request_message = sprintf( __( 'A new queue has begun processing. View actions in-progress »', 'woocommerce' ), esc_url( $in_progress_url ) );
+ } else {
+ /* translators: %d: seconds */
+ $async_request_message = sprintf( __( 'The next queue will begin processing in approximately %d seconds.', 'woocommerce' ), $async_request_lock_expiration - time() );
+ }
+
+ $this->admin_notices[] = array(
+ 'class' => 'notice notice-info',
+ 'message' => $async_request_message,
+ );
+ }
+
+ $notification = get_transient( 'action_scheduler_admin_notice' );
+
+ if ( is_array( $notification ) ) {
+ delete_transient( 'action_scheduler_admin_notice' );
+
+ $action = $this->store->fetch_action( $notification['action_id'] );
+ $action_hook_html = '' . $action->get_hook() . '';
+ if ( 1 == $notification['success'] ) {
+ $class = 'updated';
+ switch ( $notification['row_action_type'] ) {
+ case 'run' :
+ /* translators: %s: action HTML */
+ $action_message_html = sprintf( __( 'Successfully executed action: %s', 'woocommerce' ), $action_hook_html );
+ break;
+ case 'cancel' :
+ /* translators: %s: action HTML */
+ $action_message_html = sprintf( __( 'Successfully canceled action: %s', 'woocommerce' ), $action_hook_html );
+ break;
+ default :
+ /* translators: %s: action HTML */
+ $action_message_html = sprintf( __( 'Successfully processed change for action: %s', 'woocommerce' ), $action_hook_html );
+ break;
+ }
+ } else {
+ $class = 'error';
+ /* translators: 1: action HTML 2: action ID 3: error message */
+ $action_message_html = sprintf( __( 'Could not process change for action: "%1$s" (ID: %2$d). Error: %3$s', 'woocommerce' ), $action_hook_html, esc_html( $notification['action_id'] ), esc_html( $notification['error_message'] ) );
+ }
+
+ $action_message_html = apply_filters( 'action_scheduler_admin_notice_html', $action_message_html, $action, $notification );
+
+ $this->admin_notices[] = array(
+ 'class' => $class,
+ 'message' => $action_message_html,
+ );
+ }
+
+ parent::display_admin_notices();
+ }
+
+ /**
+ * Prints the scheduled date in a human friendly format.
+ *
+ * @param array $row The array representation of the current row of the table
+ *
+ * @return string
+ */
+ public function column_schedule( $row ) {
+ return $this->get_schedule_display_string( $row['schedule'] );
+ }
+
+ /**
+ * Get the scheduled date in a human friendly format.
+ *
+ * @param ActionScheduler_Schedule $schedule
+ * @return string
+ */
+ protected function get_schedule_display_string( ActionScheduler_Schedule $schedule ) {
+
+ $schedule_display_string = '';
+
+ if ( is_a( $schedule, 'ActionScheduler_NullSchedule' ) ) {
+ return __( 'async', 'woocommerce' );
+ }
+
+ if ( ! method_exists( $schedule, 'get_date' ) || ! $schedule->get_date() ) {
+ return '0000-00-00 00:00:00';
+ }
+
+ $next_timestamp = $schedule->get_date()->getTimestamp();
+
+ $schedule_display_string .= $schedule->get_date()->format( 'Y-m-d H:i:s O' );
+ $schedule_display_string .= ' ';
+
+ if ( gmdate( 'U' ) > $next_timestamp ) {
+ /* translators: %s: date interval */
+ $schedule_display_string .= sprintf( __( ' (%s ago)', 'woocommerce' ), self::human_interval( gmdate( 'U' ) - $next_timestamp ) );
+ } else {
+ /* translators: %s: date interval */
+ $schedule_display_string .= sprintf( __( ' (%s)', 'woocommerce' ), self::human_interval( $next_timestamp - gmdate( 'U' ) ) );
+ }
+
+ return $schedule_display_string;
+ }
+
+ /**
+ * Bulk delete
+ *
+ * Deletes actions based on their ID. This is the handler for the bulk delete. It assumes the data
+ * properly validated by the callee and it will delete the actions without any extra validation.
+ *
+ * @param array $ids
+ * @param string $ids_sql Inherited and unused
+ */
+ protected function bulk_delete( array $ids, $ids_sql ) {
+ foreach ( $ids as $id ) {
+ try {
+ $this->store->delete_action( $id );
+ } catch ( Exception $e ) {
+ // A possible reason for an exception would include a scenario where the same action is deleted by a
+ // concurrent request.
+ error_log(
+ sprintf(
+ /* translators: 1: action ID 2: exception message. */
+ __( 'Action Scheduler was unable to delete action %1$d. Reason: %2$s', 'woocommerce' ),
+ $id,
+ $e->getMessage()
+ )
+ );
+ }
+ }
+ }
+
+ /**
+ * Implements the logic behind running an action. ActionScheduler_Abstract_ListTable validates the request and their
+ * parameters are valid.
+ *
+ * @param int $action_id
+ */
+ protected function row_action_cancel( $action_id ) {
+ $this->process_row_action( $action_id, 'cancel' );
+ }
+
+ /**
+ * Implements the logic behind running an action. ActionScheduler_Abstract_ListTable validates the request and their
+ * parameters are valid.
+ *
+ * @param int $action_id
+ */
+ protected function row_action_run( $action_id ) {
+ $this->process_row_action( $action_id, 'run' );
+ }
+
+ /**
+ * Force the data store schema updates.
+ */
+ protected function recreate_tables() {
+ if ( is_a( $this->store, 'ActionScheduler_HybridStore' ) ) {
+ $store = $this->store;
+ } else {
+ $store = new ActionScheduler_HybridStore();
+ }
+ add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );
+
+ $store_schema = new ActionScheduler_StoreSchema();
+ $logger_schema = new ActionScheduler_LoggerSchema();
+ $store_schema->register_tables( true );
+ $logger_schema->register_tables( true );
+
+ remove_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10 );
+ }
+ /**
+ * Implements the logic behind processing an action once an action link is clicked on the list table.
+ *
+ * @param int $action_id
+ * @param string $row_action_type The type of action to perform on the action.
+ */
+ protected function process_row_action( $action_id, $row_action_type ) {
+ try {
+ switch ( $row_action_type ) {
+ case 'run' :
+ $this->runner->process_action( $action_id, 'Admin List Table' );
+ break;
+ case 'cancel' :
+ $this->store->cancel_action( $action_id );
+ break;
+ }
+ $success = 1;
+ $error_message = '';
+ } catch ( Exception $e ) {
+ $success = 0;
+ $error_message = $e->getMessage();
+ }
+
+ set_transient( 'action_scheduler_admin_notice', compact( 'action_id', 'success', 'error_message', 'row_action_type' ), 30 );
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function prepare_items() {
+ $this->prepare_column_headers();
+
+ $per_page = $this->get_items_per_page( $this->get_per_page_option_name(), $this->items_per_page );
+
+ $query = array(
+ 'per_page' => $per_page,
+ 'offset' => $this->get_items_offset(),
+ 'status' => $this->get_request_status(),
+ 'orderby' => $this->get_request_orderby(),
+ 'order' => $this->get_request_order(),
+ 'search' => $this->get_request_search_query(),
+ );
+
+ /**
+ * Change query arguments to query for past-due actions.
+ * Past-due actions have the 'pending' status and are in the past.
+ * This is needed because registering 'past-due' as a status is overkill.
+ */
+ if ( 'past-due' === $this->get_request_status() ) {
+ $query['status'] = ActionScheduler_Store::STATUS_PENDING;
+ $query['date'] = as_get_datetime_object();
+ }
+
+ $this->items = array();
+
+ $total_items = $this->store->query_actions( $query, 'count' );
+
+ $status_labels = $this->store->get_status_labels();
+
+ foreach ( $this->store->query_actions( $query ) as $action_id ) {
+ try {
+ $action = $this->store->fetch_action( $action_id );
+ } catch ( Exception $e ) {
+ continue;
+ }
+ if ( is_a( $action, 'ActionScheduler_NullAction' ) ) {
+ continue;
+ }
+ $this->items[ $action_id ] = array(
+ 'ID' => $action_id,
+ 'hook' => $action->get_hook(),
+ 'status_name' => $this->store->get_status( $action_id ),
+ 'status' => $status_labels[ $this->store->get_status( $action_id ) ],
+ 'args' => $action->get_args(),
+ 'group' => $action->get_group(),
+ 'log_entries' => $this->logger->get_logs( $action_id ),
+ 'claim_id' => $this->store->get_claim_id( $action_id ),
+ 'recurrence' => $this->get_recurrence( $action ),
+ 'schedule' => $action->get_schedule(),
+ );
+ }
+
+ $this->set_pagination_args( array(
+ 'total_items' => $total_items,
+ 'per_page' => $per_page,
+ 'total_pages' => ceil( $total_items / $per_page ),
+ ) );
+ }
+
+ /**
+ * Prints the available statuses so the user can click to filter.
+ */
+ protected function display_filter_by_status() {
+ $this->status_counts = $this->store->action_counts() + $this->store->extra_action_counts();
+ parent::display_filter_by_status();
+ }
+
+ /**
+ * Get the text to display in the search box on the list table.
+ */
+ protected function get_search_box_button_text() {
+ return __( 'Search hook, args and claim ID', 'woocommerce' );
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function get_per_page_option_name() {
+ return str_replace( '-', '_', $this->screen->id ) . '_per_page';
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_LogEntry.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_LogEntry.php
new file mode 100644
index 00000000..714efe37
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_LogEntry.php
@@ -0,0 +1,68 @@
+comment_type
+ * to ActionScheduler_LogEntry::__construct(), goodness knows why, and the Follow-up Emails plugin
+ * hard-codes loading its own version of ActionScheduler_wpCommentLogger with that out-dated method,
+ * goodness knows why, so we need to guard against that here instead of using a DateTime type declaration
+ * for the constructor's 3rd param of $date and causing a fatal error with older versions of FUE.
+ */
+ if ( null !== $date && ! is_a( $date, 'DateTime' ) ) {
+ _doing_it_wrong( __METHOD__, 'The third parameter must be a valid DateTime instance, or null.', '2.0.0' );
+ $date = null;
+ }
+
+ $this->action_id = $action_id;
+ $this->message = $message;
+ $this->date = $date ? $date : new Datetime;
+ }
+
+ /**
+ * Returns the date when this log entry was created
+ *
+ * @return Datetime
+ */
+ public function get_date() {
+ return $this->date;
+ }
+
+ public function get_action_id() {
+ return $this->action_id;
+ }
+
+ public function get_message() {
+ return $this->message;
+ }
+}
+
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_NullLogEntry.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_NullLogEntry.php
new file mode 100644
index 00000000..fcb4c5f3
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_NullLogEntry.php
@@ -0,0 +1,12 @@
+maybe_dispatch_async_request() uses a lock to avoid
+ * calling ActionScheduler_QueueRunner->has_maximum_concurrent_batches() every time the 'shutdown',
+ * hook is triggered, because that method calls ActionScheduler_QueueRunner->store->get_claim_count()
+ * to find the current number of claims in the database.
+ *
+ * @param string $lock_type A string to identify different lock types.
+ * @bool True if lock value has changed, false if not or if set failed.
+ */
+ public function set( $lock_type ) {
+ global $wpdb;
+
+ $lock_key = $this->get_key( $lock_type );
+ $existing_lock_value = $this->get_existing_lock( $lock_type );
+ $new_lock_value = $this->new_lock_value( $lock_type );
+
+ // The lock may not exist yet, or may have been deleted.
+ if ( empty( $existing_lock_value ) ) {
+ return (bool) $wpdb->insert(
+ $wpdb->options,
+ array(
+ 'option_name' => $lock_key,
+ 'option_value' => $new_lock_value,
+ 'autoload' => 'no',
+ )
+ );
+ }
+
+ if ( $this->get_expiration_from( $existing_lock_value ) >= time() ) {
+ return false;
+ }
+
+ // Otherwise, try to obtain the lock.
+ return (bool) $wpdb->update(
+ $wpdb->options,
+ array( 'option_value' => $new_lock_value ),
+ array(
+ 'option_name' => $lock_key,
+ 'option_value' => $existing_lock_value,
+ )
+ );
+ }
+
+ /**
+ * If a lock is set, return the timestamp it was set to expiry.
+ *
+ * @param string $lock_type A string to identify different lock types.
+ * @return bool|int False if no lock is set, otherwise the timestamp for when the lock is set to expire.
+ */
+ public function get_expiration( $lock_type ) {
+ return $this->get_expiration_from( $this->get_existing_lock( $lock_type ) );
+ }
+
+ /**
+ * Given the lock string, derives the lock expiration timestamp (or false if it cannot be determined).
+ *
+ * @param string $lock_value String containing a timestamp, or pipe-separated combination of unique value and timestamp.
+ *
+ * @return false|int
+ */
+ private function get_expiration_from( $lock_value ) {
+ $lock_string = explode( '|', $lock_value );
+
+ // Old style lock?
+ if ( count( $lock_string ) === 1 && is_numeric( $lock_string[0] ) ) {
+ return (int) $lock_string[0];
+ }
+
+ // New style lock?
+ if ( count( $lock_string ) === 2 && is_numeric( $lock_string[1] ) ) {
+ return (int) $lock_string[1];
+ }
+
+ return false;
+ }
+
+ /**
+ * Get the key to use for storing the lock in the transient
+ *
+ * @param string $lock_type A string to identify different lock types.
+ * @return string
+ */
+ protected function get_key( $lock_type ) {
+ return sprintf( 'action_scheduler_lock_%s', $lock_type );
+ }
+
+ /**
+ * Supplies the existing lock value, or an empty string if not set.
+ *
+ * @param string $lock_type A string to identify different lock types.
+ *
+ * @return string
+ */
+ private function get_existing_lock( $lock_type ) {
+ global $wpdb;
+
+ // Now grab the existing lock value, if there is one.
+ return (string) $wpdb->get_var(
+ $wpdb->prepare(
+ "SELECT option_value FROM $wpdb->options WHERE option_name = %s",
+ $this->get_key( $lock_type )
+ )
+ );
+ }
+
+ /**
+ * Supplies a lock value consisting of a unique value and the current timestamp, which are separated by a pipe
+ * character.
+ *
+ * Example: (string) "649de012e6b262.09774912|1688068114"
+ *
+ * @param string $lock_type A string to identify different lock types.
+ *
+ * @return string
+ */
+ private function new_lock_value( $lock_type ) {
+ return uniqid( '', true ) . '|' . ( time() + $this->get_duration( $lock_type ) );
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php
new file mode 100644
index 00000000..89417184
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php
@@ -0,0 +1,234 @@
+store = $store ? $store : ActionScheduler_Store::instance();
+ $this->batch_size = $batch_size;
+ }
+
+ /**
+ * Default queue cleaner process used by queue runner.
+ *
+ * @return array
+ */
+ public function delete_old_actions() {
+ /**
+ * Filter the minimum scheduled date age for action deletion.
+ *
+ * @param int $retention_period Minimum scheduled age in seconds of the actions to be deleted.
+ */
+ $lifespan = apply_filters( 'action_scheduler_retention_period', $this->month_in_seconds );
+
+ try {
+ $cutoff = as_get_datetime_object( $lifespan . ' seconds ago' );
+ } catch ( Exception $e ) {
+ _doing_it_wrong(
+ __METHOD__,
+ sprintf(
+ /* Translators: %s is the exception message. */
+ esc_html__( 'It was not possible to determine a valid cut-off time: %s.', 'woocommerce' ),
+ esc_html( $e->getMessage() )
+ ),
+ '3.5.5'
+ );
+
+ return array();
+ }
+
+
+ /**
+ * Filter the statuses when cleaning the queue.
+ *
+ * @param string[] $default_statuses_to_purge Action statuses to clean.
+ */
+ $statuses_to_purge = (array) apply_filters( 'action_scheduler_default_cleaner_statuses', $this->default_statuses_to_purge );
+
+ return $this->clean_actions( $statuses_to_purge, $cutoff, $this->get_batch_size() );
+ }
+
+ /**
+ * Delete selected actions limited by status and date.
+ *
+ * @param string[] $statuses_to_purge List of action statuses to purge. Defaults to canceled, complete.
+ * @param DateTime $cutoff_date Date limit for selecting actions. Defaults to 31 days ago.
+ * @param int|null $batch_size Maximum number of actions per status to delete. Defaults to 20.
+ * @param string $context Calling process context. Defaults to `old`.
+ * @return array Actions deleted.
+ */
+ public function clean_actions( array $statuses_to_purge, DateTime $cutoff_date, $batch_size = null, $context = 'old' ) {
+ $batch_size = $batch_size !== null ? $batch_size : $this->batch_size;
+ $cutoff = $cutoff_date !== null ? $cutoff_date : as_get_datetime_object( $this->month_in_seconds . ' seconds ago' );
+ $lifespan = time() - $cutoff->getTimestamp();
+ if ( empty( $statuses_to_purge ) ) {
+ $statuses_to_purge = $this->default_statuses_to_purge;
+ }
+
+ $deleted_actions = [];
+ foreach ( $statuses_to_purge as $status ) {
+ $actions_to_delete = $this->store->query_actions( array(
+ 'status' => $status,
+ 'modified' => $cutoff,
+ 'modified_compare' => '<=',
+ 'per_page' => $batch_size,
+ 'orderby' => 'none',
+ ) );
+
+ $deleted_actions = array_merge( $deleted_actions, $this->delete_actions( $actions_to_delete, $lifespan, $context ) );
+ }
+
+ return $deleted_actions;
+ }
+
+ /**
+ * @param int[] $actions_to_delete List of action IDs to delete.
+ * @param int $lifespan Minimum scheduled age in seconds of the actions being deleted.
+ * @param string $context Context of the delete request.
+ * @return array Deleted action IDs.
+ */
+ private function delete_actions( array $actions_to_delete, $lifespan = null, $context = 'old' ) {
+ $deleted_actions = [];
+ if ( $lifespan === null ) {
+ $lifespan = $this->month_in_seconds;
+ }
+
+ foreach ( $actions_to_delete as $action_id ) {
+ try {
+ $this->store->delete_action( $action_id );
+ $deleted_actions[] = $action_id;
+ } catch ( Exception $e ) {
+ /**
+ * Notify 3rd party code of exceptions when deleting a completed action older than the retention period
+ *
+ * This hook provides a way for 3rd party code to log or otherwise handle exceptions relating to their
+ * actions.
+ *
+ * @param int $action_id The scheduled actions ID in the data store
+ * @param Exception $e The exception thrown when attempting to delete the action from the data store
+ * @param int $lifespan The retention period, in seconds, for old actions
+ * @param int $count_of_actions_to_delete The number of old actions being deleted in this batch
+ * @since 2.0.0
+ *
+ */
+ do_action( "action_scheduler_failed_{$context}_action_deletion", $action_id, $e, $lifespan, count( $actions_to_delete ) );
+ }
+ }
+ return $deleted_actions;
+ }
+
+ /**
+ * Unclaim pending actions that have not been run within a given time limit.
+ *
+ * When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed
+ * as a parameter is 10x the time limit used for queue processing.
+ *
+ * @param int $time_limit The number of seconds to allow a queue to run before unclaiming its pending actions. Default 300 (5 minutes).
+ */
+ public function reset_timeouts( $time_limit = 300 ) {
+ $timeout = apply_filters( 'action_scheduler_timeout_period', $time_limit );
+ if ( $timeout < 0 ) {
+ return;
+ }
+ $cutoff = as_get_datetime_object($timeout.' seconds ago');
+ $actions_to_reset = $this->store->query_actions( array(
+ 'status' => ActionScheduler_Store::STATUS_PENDING,
+ 'modified' => $cutoff,
+ 'modified_compare' => '<=',
+ 'claimed' => true,
+ 'per_page' => $this->get_batch_size(),
+ 'orderby' => 'none',
+ ) );
+
+ foreach ( $actions_to_reset as $action_id ) {
+ $this->store->unclaim_action( $action_id );
+ do_action( 'action_scheduler_reset_action', $action_id );
+ }
+ }
+
+ /**
+ * Mark actions that have been running for more than a given time limit as failed, based on
+ * the assumption some uncatachable and unloggable fatal error occurred during processing.
+ *
+ * When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed
+ * as a parameter is 10x the time limit used for queue processing.
+ *
+ * @param int $time_limit The number of seconds to allow an action to run before it is considered to have failed. Default 300 (5 minutes).
+ */
+ public function mark_failures( $time_limit = 300 ) {
+ $timeout = apply_filters( 'action_scheduler_failure_period', $time_limit );
+ if ( $timeout < 0 ) {
+ return;
+ }
+ $cutoff = as_get_datetime_object($timeout.' seconds ago');
+ $actions_to_reset = $this->store->query_actions( array(
+ 'status' => ActionScheduler_Store::STATUS_RUNNING,
+ 'modified' => $cutoff,
+ 'modified_compare' => '<=',
+ 'per_page' => $this->get_batch_size(),
+ 'orderby' => 'none',
+ ) );
+
+ foreach ( $actions_to_reset as $action_id ) {
+ $this->store->mark_failure( $action_id );
+ do_action( 'action_scheduler_failed_action', $action_id, $timeout );
+ }
+ }
+
+ /**
+ * Do all of the cleaning actions.
+ *
+ * @param int $time_limit The number of seconds to use as the timeout and failure period. Default 300 (5 minutes).
+ * @author Jeremy Pry
+ */
+ public function clean( $time_limit = 300 ) {
+ $this->delete_old_actions();
+ $this->reset_timeouts( $time_limit );
+ $this->mark_failures( $time_limit );
+ }
+
+ /**
+ * Get the batch size for cleaning the queue.
+ *
+ * @author Jeremy Pry
+ * @return int
+ */
+ protected function get_batch_size() {
+ /**
+ * Filter the batch size when cleaning the queue.
+ *
+ * @param int $batch_size The number of actions to clean in one batch.
+ */
+ return absint( apply_filters( 'action_scheduler_cleanup_batch_size', $this->batch_size ) );
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php
new file mode 100644
index 00000000..e7e2b6ac
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php
@@ -0,0 +1,230 @@
+store );
+ }
+
+ $this->async_request = $async_request;
+ }
+
+ /**
+ * @codeCoverageIgnore
+ */
+ public function init() {
+
+ add_filter( 'cron_schedules', array( self::instance(), 'add_wp_cron_schedule' ) );
+
+ // Check for and remove any WP Cron hook scheduled by Action Scheduler < 3.0.0, which didn't include the $context param
+ $next_timestamp = wp_next_scheduled( self::WP_CRON_HOOK );
+ if ( $next_timestamp ) {
+ wp_unschedule_event( $next_timestamp, self::WP_CRON_HOOK );
+ }
+
+ $cron_context = array( 'WP Cron' );
+
+ if ( ! wp_next_scheduled( self::WP_CRON_HOOK, $cron_context ) ) {
+ $schedule = apply_filters( 'action_scheduler_run_schedule', self::WP_CRON_SCHEDULE );
+ wp_schedule_event( time(), $schedule, self::WP_CRON_HOOK, $cron_context );
+ }
+
+ add_action( self::WP_CRON_HOOK, array( self::instance(), 'run' ) );
+ $this->hook_dispatch_async_request();
+ }
+
+ /**
+ * Hook check for dispatching an async request.
+ */
+ public function hook_dispatch_async_request() {
+ add_action( 'shutdown', array( $this, 'maybe_dispatch_async_request' ) );
+ }
+
+ /**
+ * Unhook check for dispatching an async request.
+ */
+ public function unhook_dispatch_async_request() {
+ remove_action( 'shutdown', array( $this, 'maybe_dispatch_async_request' ) );
+ }
+
+ /**
+ * Check if we should dispatch an async request to process actions.
+ *
+ * This method is attached to 'shutdown', so is called frequently. To avoid slowing down
+ * the site, it mitigates the work performed in each request by:
+ * 1. checking if it's in the admin context and then
+ * 2. haven't run on the 'shutdown' hook within the lock time (60 seconds by default)
+ * 3. haven't exceeded the number of allowed batches.
+ *
+ * The order of these checks is important, because they run from a check on a value:
+ * 1. in memory - is_admin() maps to $GLOBALS or the WP_ADMIN constant
+ * 2. in memory - transients use autoloaded options by default
+ * 3. from a database query - has_maximum_concurrent_batches() run the query
+ * $this->store->get_claim_count() to find the current number of claims in the DB.
+ *
+ * If all of these conditions are met, then we request an async runner check whether it
+ * should dispatch a request to process pending actions.
+ */
+ public function maybe_dispatch_async_request() {
+ // Only start an async queue at most once every 60 seconds.
+ if (
+ is_admin()
+ && ! ActionScheduler::lock()->is_locked( 'async-request-runner' )
+ && ActionScheduler::lock()->set( 'async-request-runner' )
+ ) {
+ $this->async_request->maybe_dispatch();
+ }
+ }
+
+ /**
+ * Process actions in the queue. Attached to self::WP_CRON_HOOK i.e. 'action_scheduler_run_queue'
+ *
+ * The $context param of this method defaults to 'WP Cron', because prior to Action Scheduler 3.0.0
+ * that was the only context in which this method was run, and the self::WP_CRON_HOOK hook had no context
+ * passed along with it. New code calling this method directly, or by triggering the self::WP_CRON_HOOK,
+ * should set a context as the first parameter. For an example of this, refer to the code seen in
+ * @see ActionScheduler_AsyncRequest_QueueRunner::handle()
+ *
+ * @param string $context Optional identifer for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
+ * Generally, this should be capitalised and not localised as it's a proper noun.
+ * @return int The number of actions processed.
+ */
+ public function run( $context = 'WP Cron' ) {
+ ActionScheduler_Compatibility::raise_memory_limit();
+ ActionScheduler_Compatibility::raise_time_limit( $this->get_time_limit() );
+ do_action( 'action_scheduler_before_process_queue' );
+ $this->run_cleanup();
+
+ $this->processed_actions_count = 0;
+ if ( false === $this->has_maximum_concurrent_batches() ) {
+ $batch_size = apply_filters( 'action_scheduler_queue_runner_batch_size', 25 );
+ do {
+ $processed_actions_in_batch = $this->do_batch( $batch_size, $context );
+ $this->processed_actions_count += $processed_actions_in_batch;
+ } while ( $processed_actions_in_batch > 0 && ! $this->batch_limits_exceeded( $this->processed_actions_count ) ); // keep going until we run out of actions, time, or memory
+ }
+
+ do_action( 'action_scheduler_after_process_queue' );
+ return $this->processed_actions_count;
+ }
+
+ /**
+ * Process a batch of actions pending in the queue.
+ *
+ * Actions are processed by claiming a set of pending actions then processing each one until either the batch
+ * size is completed, or memory or time limits are reached, defined by @see $this->batch_limits_exceeded().
+ *
+ * @param int $size The maximum number of actions to process in the batch.
+ * @param string $context Optional identifer for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
+ * Generally, this should be capitalised and not localised as it's a proper noun.
+ * @return int The number of actions processed.
+ */
+ protected function do_batch( $size = 100, $context = '' ) {
+ $claim = $this->store->stake_claim($size);
+ $this->monitor->attach($claim);
+ $processed_actions = 0;
+
+ foreach ( $claim->get_actions() as $action_id ) {
+ // bail if we lost the claim
+ if ( ! in_array( $action_id, $this->store->find_actions_by_claim_id( $claim->get_id() ) ) ) {
+ break;
+ }
+ $this->process_action( $action_id, $context );
+ $processed_actions++;
+
+ if ( $this->batch_limits_exceeded( $processed_actions + $this->processed_actions_count ) ) {
+ break;
+ }
+ }
+ $this->store->release_claim($claim);
+ $this->monitor->detach();
+ $this->clear_caches();
+ return $processed_actions;
+ }
+
+ /**
+ * Flush the cache if possible (intended for use after a batch of actions has been processed).
+ *
+ * This is useful because running large batches can eat up memory and because invalid data can accrue in the
+ * runtime cache, which may lead to unexpected results.
+ */
+ protected function clear_caches() {
+ /*
+ * Calling wp_cache_flush_runtime() lets us clear the runtime cache without invalidating the external object
+ * cache, so we will always prefer this method (as compared to calling wp_cache_flush()) when it is available.
+ *
+ * However, this function was only introduced in WordPress 6.0. Additionally, the preferred way of detecting if
+ * it is supported changed in WordPress 6.1 so we use two different methods to decide if we should utilize it.
+ */
+ $flushing_runtime_cache_explicitly_supported = function_exists( 'wp_cache_supports' ) && wp_cache_supports( 'flush_runtime' );
+ $flushing_runtime_cache_implicitly_supported = ! function_exists( 'wp_cache_supports' ) && function_exists( 'wp_cache_flush_runtime' );
+
+ if ( $flushing_runtime_cache_explicitly_supported || $flushing_runtime_cache_implicitly_supported ) {
+ wp_cache_flush_runtime();
+ } elseif (
+ ! wp_using_ext_object_cache()
+ /**
+ * When an external object cache is in use, and when wp_cache_flush_runtime() is not available, then
+ * normally the cache will not be flushed after processing a batch of actions (to avoid a performance
+ * penalty for other processes).
+ *
+ * This filter makes it possible to override this behavior and always flush the cache, even if an external
+ * object cache is in use.
+ *
+ * @since 1.0
+ *
+ * @param bool $flush_cache If the cache should be flushed.
+ */
+ || apply_filters( 'action_scheduler_queue_runner_flush_cache', false )
+ ) {
+ wp_cache_flush();
+ }
+ }
+
+ public function add_wp_cron_schedule( $schedules ) {
+ $schedules['every_minute'] = array(
+ 'interval' => 60, // in seconds
+ 'display' => __( 'Every minute', 'woocommerce' ),
+ );
+
+ return $schedules;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_Versions.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_Versions.php
new file mode 100644
index 00000000..8bf228cb
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_Versions.php
@@ -0,0 +1,63 @@
+versions[$version_string]) ) {
+ return FALSE;
+ }
+ $this->versions[$version_string] = $initialization_callback;
+ return TRUE;
+ }
+
+ public function get_versions() {
+ return $this->versions;
+ }
+
+ public function latest_version() {
+ $keys = array_keys($this->versions);
+ if ( empty($keys) ) {
+ return false;
+ }
+ uasort( $keys, 'version_compare' );
+ return end($keys);
+ }
+
+ public function latest_version_callback() {
+ $latest = $this->latest_version();
+ if ( empty($latest) || !isset($this->versions[$latest]) ) {
+ return '__return_null';
+ }
+ return $this->versions[$latest];
+ }
+
+ /**
+ * @return ActionScheduler_Versions
+ * @codeCoverageIgnore
+ */
+ public static function instance() {
+ if ( empty(self::$instance) ) {
+ self::$instance = new self();
+ }
+ return self::$instance;
+ }
+
+ /**
+ * @codeCoverageIgnore
+ */
+ public static function initialize_latest_version() {
+ $self = self::instance();
+ call_user_func($self->latest_version_callback());
+ }
+}
+
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php
new file mode 100644
index 00000000..f2747438
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php
@@ -0,0 +1,116 @@
+ Status administration screen
+ add_action( 'load-tools_page_action-scheduler', array( __CLASS__, 'register_admin_notice' ) );
+ add_action( 'load-woocommerce_page_wc-status', array( __CLASS__, 'register_admin_notice' ) );
+ }
+
+ /**
+ * Determines if there are log entries in the wp comments table.
+ *
+ * Uses the flag set on migration completion set by @see self::maybe_schedule_cleanup().
+ *
+ * @return boolean Whether there are scheduled action comments in the comments table.
+ */
+ public static function has_logs() {
+ return 'yes' === get_option( self::$has_logs_option_key );
+ }
+
+ /**
+ * Schedules the WP Post comment table cleanup to run in 6 months if it's not already scheduled.
+ * Attached to the migration complete hook 'action_scheduler/migration_complete'.
+ */
+ public static function maybe_schedule_cleanup() {
+ if ( (bool) get_comments( array( 'type' => ActionScheduler_wpCommentLogger::TYPE, 'number' => 1, 'fields' => 'ids' ) ) ) {
+ update_option( self::$has_logs_option_key, 'yes' );
+
+ if ( ! as_next_scheduled_action( self::$cleanup_hook ) ) {
+ as_schedule_single_action( gmdate( 'U' ) + ( 6 * MONTH_IN_SECONDS ), self::$cleanup_hook );
+ }
+ }
+ }
+
+ /**
+ * Delete all action comments from the WP Comments table.
+ */
+ public static function delete_all_action_comments() {
+ global $wpdb;
+ $wpdb->delete( $wpdb->comments, array( 'comment_type' => ActionScheduler_wpCommentLogger::TYPE, 'comment_agent' => ActionScheduler_wpCommentLogger::AGENT ) );
+ delete_option( self::$has_logs_option_key );
+ }
+
+ /**
+ * Registers admin notices about the orphaned action logs.
+ */
+ public static function register_admin_notice() {
+ add_action( 'admin_notices', array( __CLASS__, 'print_admin_notice' ) );
+ }
+
+ /**
+ * Prints details about the orphaned action logs and includes information on where to learn more.
+ */
+ public static function print_admin_notice() {
+ $next_cleanup_message = '';
+ $next_scheduled_cleanup_hook = as_next_scheduled_action( self::$cleanup_hook );
+
+ if ( $next_scheduled_cleanup_hook ) {
+ /* translators: %s: date interval */
+ $next_cleanup_message = sprintf( __( 'This data will be deleted in %s.', 'woocommerce' ), human_time_diff( gmdate( 'U' ), $next_scheduled_cleanup_hook ) );
+ }
+
+ $notice = sprintf(
+ /* translators: 1: next cleanup message 2: github issue URL */
+ __( 'Action Scheduler has migrated data to custom tables; however, orphaned log entries exist in the WordPress Comments table. %1$s Learn more »', 'woocommerce' ),
+ $next_cleanup_message,
+ 'https://github.com/woocommerce/action-scheduler/issues/368'
+ );
+
+ echo '
' . wp_kses_post( $notice ) . '
';
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_wcSystemStatus.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_wcSystemStatus.php
new file mode 100644
index 00000000..d9c48d8b
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_wcSystemStatus.php
@@ -0,0 +1,167 @@
+store = $store;
+ }
+
+ /**
+ * Display action data, including number of actions grouped by status and the oldest & newest action in each status.
+ *
+ * Helpful to identify issues, like a clogged queue.
+ */
+ public function render() {
+ $action_counts = $this->store->action_counts();
+ $status_labels = $this->store->get_status_labels();
+ $oldest_and_newest = $this->get_oldest_and_newest( array_keys( $status_labels ) );
+
+ $this->get_template( $status_labels, $action_counts, $oldest_and_newest );
+ }
+
+ /**
+ * Get oldest and newest scheduled dates for a given set of statuses.
+ *
+ * @param array $status_keys Set of statuses to find oldest & newest action for.
+ * @return array
+ */
+ protected function get_oldest_and_newest( $status_keys ) {
+
+ $oldest_and_newest = array();
+
+ foreach ( $status_keys as $status ) {
+ $oldest_and_newest[ $status ] = array(
+ 'oldest' => '–',
+ 'newest' => '–',
+ );
+
+ if ( 'in-progress' === $status ) {
+ continue;
+ }
+
+ $oldest_and_newest[ $status ]['oldest'] = $this->get_action_status_date( $status, 'oldest' );
+ $oldest_and_newest[ $status ]['newest'] = $this->get_action_status_date( $status, 'newest' );
+ }
+
+ return $oldest_and_newest;
+ }
+
+ /**
+ * Get oldest or newest scheduled date for a given status.
+ *
+ * @param string $status Action status label/name string.
+ * @param string $date_type Oldest or Newest.
+ * @return DateTime
+ */
+ protected function get_action_status_date( $status, $date_type = 'oldest' ) {
+
+ $order = 'oldest' === $date_type ? 'ASC' : 'DESC';
+
+ $action = $this->store->query_actions(
+ array(
+ 'claimed' => false,
+ 'status' => $status,
+ 'per_page' => 1,
+ 'order' => $order,
+ )
+ );
+
+ if ( ! empty( $action ) ) {
+ $date_object = $this->store->get_date( $action[0] );
+ $action_date = $date_object->format( 'Y-m-d H:i:s O' );
+ } else {
+ $action_date = '–';
+ }
+
+ return $action_date;
+ }
+
+ /**
+ * Get oldest or newest scheduled date for a given status.
+ *
+ * @param array $status_labels Set of statuses to find oldest & newest action for.
+ * @param array $action_counts Number of actions grouped by status.
+ * @param array $oldest_and_newest Date of the oldest and newest action with each status.
+ */
+ protected function get_template( $status_labels, $action_counts, $oldest_and_newest ) {
+ $as_version = ActionScheduler_Versions::instance()->latest_version();
+ $as_datastore = get_class( ActionScheduler_Store::instance() );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $count ) {
+ // WC uses the 3rd column for export, so we need to display more data in that (hidden when viewed as part of the table) and add an empty 2nd column.
+ printf(
+ '
';
+ }
+
+ /**
+ * Set the data for displaying. It will attempt to unserialize (There is a chance that some columns
+ * are serialized). This can be override in child classes for futher data transformation.
+ *
+ * @param array $items Items array.
+ */
+ protected function set_items( array $items ) {
+ $this->items = array();
+ foreach ( $items as $item ) {
+ $this->items[ $item[ $this->ID ] ] = array_map( 'maybe_unserialize', $item );
+ }
+ }
+
+ /**
+ * Renders the checkbox for each row, this is the first column and it is named ID regardless
+ * of how the primary key is named (to keep the code simpler). The bulk actions will do the proper
+ * name transformation though using `$this->ID`.
+ *
+ * @param array $row The row to render.
+ */
+ public function column_cb( $row ) {
+ return '';
+ }
+
+ /**
+ * Renders the row-actions.
+ *
+ * This method renders the action menu, it reads the definition from the $row_actions property,
+ * and it checks that the row action method exists before rendering it.
+ *
+ * @param array $row Row to be rendered.
+ * @param string $column_name Column name.
+ * @return string
+ */
+ protected function maybe_render_actions( $row, $column_name ) {
+ if ( empty( $this->row_actions[ $column_name ] ) ) {
+ return;
+ }
+
+ $row_id = $row[ $this->ID ];
+
+ $actions = '
';
+ }
+ }
+
+ /**
+ * Renders the table list, we override the original class to render the table inside a form
+ * and to render any needed HTML (like the search box). By doing so the callee of a function can simple
+ * forget about any extra HTML.
+ */
+ protected function display_table() {
+ echo '';
+ }
+
+ /**
+ * Process any pending actions.
+ */
+ public function process_actions() {
+ $this->process_bulk_action();
+ $this->process_row_actions();
+
+ if ( ! empty( $_REQUEST['_wp_http_referer'] ) && ! empty( $_SERVER['REQUEST_URI'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
+ // _wp_http_referer is used only on bulk actions, we remove it to keep the $_GET shorter
+ wp_safe_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
+ exit;
+ }
+ }
+
+ /**
+ * Render the list table page, including header, notices, status filters and table.
+ */
+ public function display_page() {
+ $this->prepare_items();
+
+ echo '
';
+ }
+
+ /**
+ * Get the text to display in the search box on the list table.
+ */
+ protected function get_search_box_placeholder() {
+ return esc_html__( 'Search', 'woocommerce' );
+ }
+
+ /**
+ * Gets the screen per_page option name.
+ *
+ * @return string
+ */
+ protected function get_per_page_option_name() {
+ return $this->package . '_items_per_page';
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php
new file mode 100644
index 00000000..885bcfdf
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php
@@ -0,0 +1,373 @@
+created_time = microtime( true );
+
+ $this->store = $store ? $store : ActionScheduler_Store::instance();
+ $this->monitor = $monitor ? $monitor : new ActionScheduler_FatalErrorMonitor( $this->store );
+ $this->cleaner = $cleaner ? $cleaner : new ActionScheduler_QueueCleaner( $this->store );
+ }
+
+ /**
+ * Process an individual action.
+ *
+ * @param int $action_id The action ID to process.
+ * @param string $context Optional identifer for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
+ * Generally, this should be capitalised and not localised as it's a proper noun.
+ */
+ public function process_action( $action_id, $context = '' ) {
+ // Temporarily override the error handler while we process the current action.
+ set_error_handler(
+ /**
+ * Temporary error handler which can catch errors and convert them into exceptions. This faciliates more
+ * robust error handling across all supported PHP versions.
+ *
+ * @throws Exception
+ *
+ * @param int $type Error level expressed as an integer.
+ * @param string $message Error message.
+ */
+ function ( $type, $message ) {
+ throw new Exception( $message );
+ },
+ E_USER_ERROR | E_RECOVERABLE_ERROR
+ );
+
+ /*
+ * The nested try/catch structure is required because we potentially need to convert thrown errors into
+ * exceptions (and an exception thrown from a catch block cannot be caught by a later catch block in the *same*
+ * structure).
+ */
+ try {
+ try {
+ $valid_action = false;
+ do_action( 'action_scheduler_before_execute', $action_id, $context );
+
+ if ( ActionScheduler_Store::STATUS_PENDING !== $this->store->get_status( $action_id ) ) {
+ do_action( 'action_scheduler_execution_ignored', $action_id, $context );
+ return;
+ }
+
+ $valid_action = true;
+ do_action( 'action_scheduler_begin_execute', $action_id, $context );
+
+ $action = $this->store->fetch_action( $action_id );
+ $this->store->log_execution( $action_id );
+ $action->execute();
+ do_action( 'action_scheduler_after_execute', $action_id, $action, $context );
+ $this->store->mark_complete( $action_id );
+ } catch ( Throwable $e ) {
+ // Throwable is defined when executing under PHP 7.0 and up. We convert it to an exception, for
+ // compatibility with ActionScheduler_Logger.
+ throw new Exception( $e->getMessage(), $e->getCode(), $e );
+ }
+ } catch ( Exception $e ) {
+ // This catch block exists for compatibility with PHP 5.6.
+ $this->handle_action_error( $action_id, $e, $context, $valid_action );
+ } finally {
+ restore_error_handler();
+ }
+
+ if ( isset( $action ) && is_a( $action, 'ActionScheduler_Action' ) && $action->get_schedule()->is_recurring() ) {
+ $this->schedule_next_instance( $action, $action_id );
+ }
+ }
+
+ /**
+ * Marks actions as either having failed execution or failed validation, as appropriate.
+ *
+ * @param int $action_id Action ID.
+ * @param Exception $e Exception instance.
+ * @param string $context Execution context.
+ * @param bool $valid_action If the action is valid.
+ *
+ * @return void
+ */
+ private function handle_action_error( $action_id, $e, $context, $valid_action ) {
+ if ( $valid_action ) {
+ $this->store->mark_failure( $action_id );
+ /**
+ * Runs when action execution fails.
+ *
+ * @param int $action_id Action ID.
+ * @param Exception $e Exception instance.
+ * @param string $context Execution context.
+ */
+ do_action( 'action_scheduler_failed_execution', $action_id, $e, $context );
+ } else {
+ /**
+ * Runs when action validation fails.
+ *
+ * @param int $action_id Action ID.
+ * @param Exception $e Exception instance.
+ * @param string $context Execution context.
+ */
+ do_action( 'action_scheduler_failed_validation', $action_id, $e, $context );
+ }
+ }
+
+ /**
+ * Schedule the next instance of the action if necessary.
+ *
+ * @param ActionScheduler_Action $action
+ * @param int $action_id
+ */
+ protected function schedule_next_instance( ActionScheduler_Action $action, $action_id ) {
+ // If a recurring action has been consistently failing, we may wish to stop rescheduling it.
+ if (
+ ActionScheduler_Store::STATUS_FAILED === $this->store->get_status( $action_id )
+ && $this->recurring_action_is_consistently_failing( $action, $action_id )
+ ) {
+ ActionScheduler_Logger::instance()->log(
+ $action_id,
+ __( 'This action appears to be consistently failing. A new instance will not be scheduled.', 'woocommerce' )
+ );
+
+ return;
+ }
+
+ try {
+ ActionScheduler::factory()->repeat( $action );
+ } catch ( Exception $e ) {
+ do_action( 'action_scheduler_failed_to_schedule_next_instance', $action_id, $e, $action );
+ }
+ }
+
+ /**
+ * Determine if the specified recurring action has been consistently failing.
+ *
+ * @param ActionScheduler_Action $action The recurring action to be rescheduled.
+ * @param int $action_id The ID of the recurring action.
+ *
+ * @return bool
+ */
+ private function recurring_action_is_consistently_failing( ActionScheduler_Action $action, $action_id ) {
+ /**
+ * Controls the failure threshold for recurring actions.
+ *
+ * Before rescheduling a recurring action, we look at its status. If it failed, we then check if all of the most
+ * recent actions (upto the threshold set by this filter) sharing the same hook have also failed: if they have,
+ * that is considered consistent failure and a new instance of the action will not be scheduled.
+ *
+ * @param int $failure_threshold Number of actions of the same hook to examine for failure. Defaults to 5.
+ */
+ $consistent_failure_threshold = (int) apply_filters( 'action_scheduler_recurring_action_failure_threshold', 5 );
+
+ // This query should find the earliest *failing* action (for the hook we are interested in) within our threshold.
+ $query_args = array(
+ 'hook' => $action->get_hook(),
+ 'status' => ActionScheduler_Store::STATUS_FAILED,
+ 'date' => date_create( 'now', timezone_open( 'UTC' ) )->format( 'Y-m-d H:i:s' ),
+ 'date_compare' => '<',
+ 'per_page' => 1,
+ 'offset' => $consistent_failure_threshold - 1
+ );
+
+ $first_failing_action_id = $this->store->query_actions( $query_args );
+
+ // If we didn't retrieve an action ID, then there haven't been enough failures for us to worry about.
+ if ( empty( $first_failing_action_id ) ) {
+ return false;
+ }
+
+ // Now let's fetch the first action (having the same hook) of *any status* within the same window.
+ unset( $query_args['status'] );
+ $first_action_id_with_the_same_hook = $this->store->query_actions( $query_args );
+
+ /**
+ * If a recurring action is assessed as consistently failing, it will not be rescheduled. This hook provides a
+ * way to observe and optionally override that assessment.
+ *
+ * @param bool $is_consistently_failing If the action is considered to be consistently failing.
+ * @param ActionScheduler_Action $action The action being assessed.
+ */
+ return (bool) apply_filters(
+ 'action_scheduler_recurring_action_is_consistently_failing',
+ $first_action_id_with_the_same_hook === $first_failing_action_id,
+ $action
+ );
+ }
+
+ /**
+ * Run the queue cleaner.
+ *
+ * @author Jeremy Pry
+ */
+ protected function run_cleanup() {
+ $this->cleaner->clean( 10 * $this->get_time_limit() );
+ }
+
+ /**
+ * Get the number of concurrent batches a runner allows.
+ *
+ * @return int
+ */
+ public function get_allowed_concurrent_batches() {
+ return apply_filters( 'action_scheduler_queue_runner_concurrent_batches', 1 );
+ }
+
+ /**
+ * Check if the number of allowed concurrent batches is met or exceeded.
+ *
+ * @return bool
+ */
+ public function has_maximum_concurrent_batches() {
+ return $this->store->get_claim_count() >= $this->get_allowed_concurrent_batches();
+ }
+
+ /**
+ * Get the maximum number of seconds a batch can run for.
+ *
+ * @return int The number of seconds.
+ */
+ protected function get_time_limit() {
+
+ $time_limit = 30;
+
+ // Apply deprecated filter from deprecated get_maximum_execution_time() method
+ if ( has_filter( 'action_scheduler_maximum_execution_time' ) ) {
+ _deprecated_function( 'action_scheduler_maximum_execution_time', '2.1.1', 'action_scheduler_queue_runner_time_limit' );
+ $time_limit = apply_filters( 'action_scheduler_maximum_execution_time', $time_limit );
+ }
+
+ return absint( apply_filters( 'action_scheduler_queue_runner_time_limit', $time_limit ) );
+ }
+
+ /**
+ * Get the number of seconds the process has been running.
+ *
+ * @return int The number of seconds.
+ */
+ protected function get_execution_time() {
+ $execution_time = microtime( true ) - $this->created_time;
+
+ // Get the CPU time if the hosting environment uses it rather than wall-clock time to calculate a process's execution time.
+ if ( function_exists( 'getrusage' ) && apply_filters( 'action_scheduler_use_cpu_execution_time', defined( 'PANTHEON_ENVIRONMENT' ) ) ) {
+ $resource_usages = getrusage();
+
+ if ( isset( $resource_usages['ru_stime.tv_usec'], $resource_usages['ru_stime.tv_usec'] ) ) {
+ $execution_time = $resource_usages['ru_stime.tv_sec'] + ( $resource_usages['ru_stime.tv_usec'] / 1000000 );
+ }
+ }
+
+ return $execution_time;
+ }
+
+ /**
+ * Check if the host's max execution time is (likely) to be exceeded if processing more actions.
+ *
+ * @param int $processed_actions The number of actions processed so far - used to determine the likelihood of exceeding the time limit if processing another action
+ * @return bool
+ */
+ protected function time_likely_to_be_exceeded( $processed_actions ) {
+ $execution_time = $this->get_execution_time();
+ $max_execution_time = $this->get_time_limit();
+
+ // Safety against division by zero errors.
+ if ( 0 === $processed_actions ) {
+ return $execution_time >= $max_execution_time;
+ }
+
+ $time_per_action = $execution_time / $processed_actions;
+ $estimated_time = $execution_time + ( $time_per_action * 3 );
+ $likely_to_be_exceeded = $estimated_time > $max_execution_time;
+
+ return apply_filters( 'action_scheduler_maximum_execution_time_likely_to_be_exceeded', $likely_to_be_exceeded, $this, $processed_actions, $execution_time, $max_execution_time );
+ }
+
+ /**
+ * Get memory limit
+ *
+ * Based on WP_Background_Process::get_memory_limit()
+ *
+ * @return int
+ */
+ protected function get_memory_limit() {
+ if ( function_exists( 'ini_get' ) ) {
+ $memory_limit = ini_get( 'memory_limit' );
+ } else {
+ $memory_limit = '128M'; // Sensible default, and minimum required by WooCommerce
+ }
+
+ if ( ! $memory_limit || -1 === $memory_limit || '-1' === $memory_limit ) {
+ // Unlimited, set to 32GB.
+ $memory_limit = '32G';
+ }
+
+ return ActionScheduler_Compatibility::convert_hr_to_bytes( $memory_limit );
+ }
+
+ /**
+ * Memory exceeded
+ *
+ * Ensures the batch process never exceeds 90% of the maximum WordPress memory.
+ *
+ * Based on WP_Background_Process::memory_exceeded()
+ *
+ * @return bool
+ */
+ protected function memory_exceeded() {
+
+ $memory_limit = $this->get_memory_limit() * 0.90;
+ $current_memory = memory_get_usage( true );
+ $memory_exceeded = $current_memory >= $memory_limit;
+
+ return apply_filters( 'action_scheduler_memory_exceeded', $memory_exceeded, $this );
+ }
+
+ /**
+ * See if the batch limits have been exceeded, which is when memory usage is almost at
+ * the maximum limit, or the time to process more actions will exceed the max time limit.
+ *
+ * Based on WC_Background_Process::batch_limits_exceeded()
+ *
+ * @param int $processed_actions The number of actions processed so far - used to determine the likelihood of exceeding the time limit if processing another action
+ * @return bool
+ */
+ protected function batch_limits_exceeded( $processed_actions ) {
+ return $this->memory_exceeded() || $this->time_likely_to_be_exceeded( $processed_actions );
+ }
+
+ /**
+ * Process actions in the queue.
+ *
+ * @author Jeremy Pry
+ * @param string $context Optional identifer for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
+ * Generally, this should be capitalised and not localised as it's a proper noun.
+ * @return int The number of actions processed.
+ */
+ abstract public function run( $context = '' );
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php
new file mode 100644
index 00000000..8fb3bc5c
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php
@@ -0,0 +1,103 @@
+start - and logic to calculate the next run date after
+ * that - @see $this->calculate_next(). The $first_date property also keeps a record of when the very
+ * first instance of this chain of schedules ran.
+ *
+ * @var DateTime
+ */
+ private $first_date = NULL;
+
+ /**
+ * Timestamp equivalent of @see $this->first_date
+ *
+ * @var int
+ */
+ protected $first_timestamp = NULL;
+
+ /**
+ * The recurrance between each time an action is run using this schedule.
+ * Used to calculate the start date & time. Can be a number of seconds, in the
+ * case of ActionScheduler_IntervalSchedule, or a cron expression, as in the
+ * case of ActionScheduler_CronSchedule. Or something else.
+ *
+ * @var mixed
+ */
+ protected $recurrence;
+
+ /**
+ * @param DateTime $date The date & time to run the action.
+ * @param mixed $recurrence The data used to determine the schedule's recurrance.
+ * @param DateTime|null $first (Optional) The date & time the first instance of this interval schedule ran. Default null, meaning this is the first instance.
+ */
+ public function __construct( DateTime $date, $recurrence, DateTime $first = null ) {
+ parent::__construct( $date );
+ $this->first_date = empty( $first ) ? $date : $first;
+ $this->recurrence = $recurrence;
+ }
+
+ /**
+ * @return bool
+ */
+ public function is_recurring() {
+ return true;
+ }
+
+ /**
+ * Get the date & time of the first schedule in this recurring series.
+ *
+ * @return DateTime|null
+ */
+ public function get_first_date() {
+ return clone $this->first_date;
+ }
+
+ /**
+ * @return string
+ */
+ public function get_recurrence() {
+ return $this->recurrence;
+ }
+
+ /**
+ * For PHP 5.2 compat, since DateTime objects can't be serialized
+ * @return array
+ */
+ public function __sleep() {
+ $sleep_params = parent::__sleep();
+ $this->first_timestamp = $this->first_date->getTimestamp();
+ return array_merge( $sleep_params, array(
+ 'first_timestamp',
+ 'recurrence'
+ ) );
+ }
+
+ /**
+ * Unserialize recurring schedules serialized/stored prior to AS 3.0.0
+ *
+ * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
+ * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
+ * was the same as ActionScheduler_SimpleSchedule::timestamp. This was addressed in
+ * Action Scheduler 3.0.0, where properties and property names were aligned for better
+ * inheritance. To maintain backward compatibility with scheduled serialized and stored
+ * prior to 3.0, we need to correctly map the old property names.
+ */
+ public function __wakeup() {
+ parent::__wakeup();
+ if ( $this->first_timestamp > 0 ) {
+ $this->first_date = as_get_datetime_object( $this->first_timestamp );
+ } else {
+ $this->first_date = $this->get_date();
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php
new file mode 100644
index 00000000..2d5e158f
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php
@@ -0,0 +1,84 @@
+scheduled_date
+ *
+ * @var int
+ */
+ protected $scheduled_timestamp = NULL;
+
+ /**
+ * @param DateTime $date The date & time to run the action.
+ */
+ public function __construct( DateTime $date ) {
+ $this->scheduled_date = $date;
+ }
+
+ /**
+ * Check if a schedule should recur.
+ *
+ * @return bool
+ */
+ abstract public function is_recurring();
+
+ /**
+ * Calculate when the next instance of this schedule would run based on a given date & time.
+ *
+ * @param DateTime $after
+ * @return DateTime
+ */
+ abstract protected function calculate_next( DateTime $after );
+
+ /**
+ * Get the next date & time when this schedule should run after a given date & time.
+ *
+ * @param DateTime $after
+ * @return DateTime|null
+ */
+ public function get_next( DateTime $after ) {
+ $after = clone $after;
+ if ( $after > $this->scheduled_date ) {
+ $after = $this->calculate_next( $after );
+ return $after;
+ }
+ return clone $this->scheduled_date;
+ }
+
+ /**
+ * Get the date & time the schedule is set to run.
+ *
+ * @return DateTime|null
+ */
+ public function get_date() {
+ return $this->scheduled_date;
+ }
+
+ /**
+ * For PHP 5.2 compat, since DateTime objects can't be serialized
+ * @return array
+ */
+ public function __sleep() {
+ $this->scheduled_timestamp = $this->scheduled_date->getTimestamp();
+ return array(
+ 'scheduled_timestamp',
+ );
+ }
+
+ public function __wakeup() {
+ $this->scheduled_date = as_get_datetime_object( $this->scheduled_timestamp );
+ unset( $this->scheduled_timestamp );
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php
new file mode 100644
index 00000000..76e38d5a
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php
@@ -0,0 +1,178 @@
+tables as $table ) {
+ $wpdb->tables[] = $table;
+ $name = $this->get_full_table_name( $table );
+ $wpdb->$table = $name;
+ }
+
+ // create the tables
+ if ( $this->schema_update_required() || $force_update ) {
+ foreach ( $this->tables as $table ) {
+ /**
+ * Allow custom processing before updating a table schema.
+ *
+ * @param string $table Name of table being updated.
+ * @param string $db_version Existing version of the table being updated.
+ */
+ do_action( 'action_scheduler_before_schema_update', $table, $this->db_version );
+ $this->update_table( $table );
+ }
+ $this->mark_schema_update_complete();
+ }
+ }
+
+ /**
+ * @param string $table The name of the table
+ *
+ * @return string The CREATE TABLE statement, suitable for passing to dbDelta
+ */
+ abstract protected function get_table_definition( $table );
+
+ /**
+ * Determine if the database schema is out of date
+ * by comparing the integer found in $this->schema_version
+ * with the option set in the WordPress options table
+ *
+ * @return bool
+ */
+ private function schema_update_required() {
+ $option_name = 'schema-' . static::class;
+ $this->db_version = get_option( $option_name, 0 );
+
+ // Check for schema option stored by the Action Scheduler Custom Tables plugin in case site has migrated from that plugin with an older schema
+ if ( 0 === $this->db_version ) {
+
+ $plugin_option_name = 'schema-';
+
+ switch ( static::class ) {
+ case 'ActionScheduler_StoreSchema':
+ $plugin_option_name .= 'Action_Scheduler\Custom_Tables\DB_Store_Table_Maker';
+ break;
+ case 'ActionScheduler_LoggerSchema':
+ $plugin_option_name .= 'Action_Scheduler\Custom_Tables\DB_Logger_Table_Maker';
+ break;
+ }
+
+ $this->db_version = get_option( $plugin_option_name, 0 );
+
+ delete_option( $plugin_option_name );
+ }
+
+ return version_compare( $this->db_version, $this->schema_version, '<' );
+ }
+
+ /**
+ * Update the option in WordPress to indicate that
+ * our schema is now up to date
+ *
+ * @return void
+ */
+ private function mark_schema_update_complete() {
+ $option_name = 'schema-' . static::class;
+
+ // work around race conditions and ensure that our option updates
+ $value_to_save = (string) $this->schema_version . '.0.' . time();
+
+ update_option( $option_name, $value_to_save );
+ }
+
+ /**
+ * Update the schema for the given table
+ *
+ * @param string $table The name of the table to update
+ *
+ * @return void
+ */
+ private function update_table( $table ) {
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
+ $definition = $this->get_table_definition( $table );
+ if ( $definition ) {
+ $updated = dbDelta( $definition );
+ foreach ( $updated as $updated_table => $update_description ) {
+ if ( strpos( $update_description, 'Created table' ) === 0 ) {
+ do_action( 'action_scheduler/created_table', $updated_table, $table );
+ }
+ }
+ }
+ }
+
+ /**
+ * @param string $table
+ *
+ * @return string The full name of the table, including the
+ * table prefix for the current blog
+ */
+ protected function get_full_table_name( $table ) {
+ return $GLOBALS['wpdb']->prefix . $table;
+ }
+
+ /**
+ * Confirms that all of the tables registered by this schema class have been created.
+ *
+ * @return bool
+ */
+ public function tables_exist() {
+ global $wpdb;
+
+ $tables_exist = true;
+
+ foreach ( $this->tables as $table_name ) {
+ $table_name = $wpdb->prefix . $table_name;
+ $pattern = str_replace( '_', '\\_', $table_name );
+ $existing_table = $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $pattern ) );
+
+ if ( $existing_table !== $table_name ) {
+ $tables_exist = false;
+ break;
+ }
+ }
+
+ return $tables_exist;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Lock.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Lock.php
new file mode 100644
index 00000000..2a22b275
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Lock.php
@@ -0,0 +1,65 @@
+get_expiration( $lock_type ) >= time() );
+ }
+
+ /**
+ * Set a lock.
+ *
+ * To prevent race conditions, implementations should avoid setting the lock if the lock is already held.
+ *
+ * @param string $lock_type A string to identify different lock types.
+ * @return bool
+ */
+ abstract public function set( $lock_type );
+
+ /**
+ * If a lock is set, return the timestamp it was set to expiry.
+ *
+ * @param string $lock_type A string to identify different lock types.
+ * @return bool|int False if no lock is set, otherwise the timestamp for when the lock is set to expire.
+ */
+ abstract public function get_expiration( $lock_type );
+
+ /**
+ * Get the amount of time to set for a given lock. 60 seconds by default.
+ *
+ * @param string $lock_type A string to identify different lock types.
+ * @return int
+ */
+ protected function get_duration( $lock_type ) {
+ return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type );
+ }
+
+ /**
+ * @return ActionScheduler_Lock
+ */
+ public static function instance() {
+ if ( empty( self::$locker ) ) {
+ $class = apply_filters( 'action_scheduler_lock_class', 'ActionScheduler_OptionLock' );
+ self::$locker = new $class();
+ }
+ return self::$locker;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Logger.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Logger.php
new file mode 100644
index 00000000..37a8cb80
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Logger.php
@@ -0,0 +1,177 @@
+hook_stored_action();
+ add_action( 'action_scheduler_canceled_action', array( $this, 'log_canceled_action' ), 10, 1 );
+ add_action( 'action_scheduler_begin_execute', array( $this, 'log_started_action' ), 10, 2 );
+ add_action( 'action_scheduler_after_execute', array( $this, 'log_completed_action' ), 10, 3 );
+ add_action( 'action_scheduler_failed_execution', array( $this, 'log_failed_action' ), 10, 3 );
+ add_action( 'action_scheduler_failed_action', array( $this, 'log_timed_out_action' ), 10, 2 );
+ add_action( 'action_scheduler_unexpected_shutdown', array( $this, 'log_unexpected_shutdown' ), 10, 2 );
+ add_action( 'action_scheduler_reset_action', array( $this, 'log_reset_action' ), 10, 1 );
+ add_action( 'action_scheduler_execution_ignored', array( $this, 'log_ignored_action' ), 10, 2 );
+ add_action( 'action_scheduler_failed_fetch_action', array( $this, 'log_failed_fetch_action' ), 10, 2 );
+ add_action( 'action_scheduler_failed_to_schedule_next_instance', array( $this, 'log_failed_schedule_next_instance' ), 10, 2 );
+ add_action( 'action_scheduler_bulk_cancel_actions', array( $this, 'bulk_log_cancel_actions' ), 10, 1 );
+ }
+
+ public function hook_stored_action() {
+ add_action( 'action_scheduler_stored_action', array( $this, 'log_stored_action' ) );
+ }
+
+ public function unhook_stored_action() {
+ remove_action( 'action_scheduler_stored_action', array( $this, 'log_stored_action' ) );
+ }
+
+ public function log_stored_action( $action_id ) {
+ $this->log( $action_id, __( 'action created', 'woocommerce' ) );
+ }
+
+ public function log_canceled_action( $action_id ) {
+ $this->log( $action_id, __( 'action canceled', 'woocommerce' ) );
+ }
+
+ public function log_started_action( $action_id, $context = '' ) {
+ if ( ! empty( $context ) ) {
+ /* translators: %s: context */
+ $message = sprintf( __( 'action started via %s', 'woocommerce' ), $context );
+ } else {
+ $message = __( 'action started', 'woocommerce' );
+ }
+ $this->log( $action_id, $message );
+ }
+
+ public function log_completed_action( $action_id, $action = NULL, $context = '' ) {
+ if ( ! empty( $context ) ) {
+ /* translators: %s: context */
+ $message = sprintf( __( 'action complete via %s', 'woocommerce' ), $context );
+ } else {
+ $message = __( 'action complete', 'woocommerce' );
+ }
+ $this->log( $action_id, $message );
+ }
+
+ public function log_failed_action( $action_id, Exception $exception, $context = '' ) {
+ if ( ! empty( $context ) ) {
+ /* translators: 1: context 2: exception message */
+ $message = sprintf( __( 'action failed via %1$s: %2$s', 'woocommerce' ), $context, $exception->getMessage() );
+ } else {
+ /* translators: %s: exception message */
+ $message = sprintf( __( 'action failed: %s', 'woocommerce' ), $exception->getMessage() );
+ }
+ $this->log( $action_id, $message );
+ }
+
+ public function log_timed_out_action( $action_id, $timeout ) {
+ /* translators: %s: amount of time */
+ $this->log( $action_id, sprintf( __( 'action marked as failed after %s seconds. Unknown error occurred. Check server, PHP and database error logs to diagnose cause.', 'woocommerce' ), $timeout ) );
+ }
+
+ public function log_unexpected_shutdown( $action_id, $error ) {
+ if ( ! empty( $error ) ) {
+ /* translators: 1: error message 2: filename 3: line */
+ $this->log( $action_id, sprintf( __( 'unexpected shutdown: PHP Fatal error %1$s in %2$s on line %3$s', 'woocommerce' ), $error['message'], $error['file'], $error['line'] ) );
+ }
+ }
+
+ public function log_reset_action( $action_id ) {
+ $this->log( $action_id, __( 'action reset', 'woocommerce' ) );
+ }
+
+ public function log_ignored_action( $action_id, $context = '' ) {
+ if ( ! empty( $context ) ) {
+ /* translators: %s: context */
+ $message = sprintf( __( 'action ignored via %s', 'woocommerce' ), $context );
+ } else {
+ $message = __( 'action ignored', 'woocommerce' );
+ }
+ $this->log( $action_id, $message );
+ }
+
+ /**
+ * @param string $action_id
+ * @param Exception|NULL $exception The exception which occured when fetching the action. NULL by default for backward compatibility.
+ *
+ * @return ActionScheduler_LogEntry[]
+ */
+ public function log_failed_fetch_action( $action_id, Exception $exception = NULL ) {
+
+ if ( ! is_null( $exception ) ) {
+ /* translators: %s: exception message */
+ $log_message = sprintf( __( 'There was a failure fetching this action: %s', 'woocommerce' ), $exception->getMessage() );
+ } else {
+ $log_message = __( 'There was a failure fetching this action', 'woocommerce' );
+ }
+
+ $this->log( $action_id, $log_message );
+ }
+
+ public function log_failed_schedule_next_instance( $action_id, Exception $exception ) {
+ /* translators: %s: exception message */
+ $this->log( $action_id, sprintf( __( 'There was a failure scheduling the next instance of this action: %s', 'woocommerce' ), $exception->getMessage() ) );
+ }
+
+ /**
+ * Bulk add cancel action log entries.
+ *
+ * Implemented here for backward compatibility. Should be implemented in parent loggers
+ * for more performant bulk logging.
+ *
+ * @param array $action_ids List of action ID.
+ */
+ public function bulk_log_cancel_actions( $action_ids ) {
+ if ( empty( $action_ids ) ) {
+ return;
+ }
+
+ foreach ( $action_ids as $action_id ) {
+ $this->log_canceled_action( $action_id );
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Store.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Store.php
new file mode 100644
index 00000000..a56d47c1
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Store.php
@@ -0,0 +1,451 @@
+ null,
+ 'status' => self::STATUS_PENDING,
+ 'group' => '',
+ )
+ );
+
+ // These params are fixed for this method.
+ $params['hook'] = $hook;
+ $params['orderby'] = 'date';
+ $params['per_page'] = 1;
+
+ if ( ! empty( $params['status'] ) ) {
+ if ( self::STATUS_PENDING === $params['status'] ) {
+ $params['order'] = 'ASC'; // Find the next action that matches.
+ } else {
+ $params['order'] = 'DESC'; // Find the most recent action that matches.
+ }
+ }
+
+ $results = $this->query_actions( $params );
+
+ return empty( $results ) ? null : $results[0];
+ }
+
+ /**
+ * Query for action count or list of action IDs.
+ *
+ * @since 3.3.0 $query['status'] accepts array of statuses instead of a single status.
+ *
+ * @param array $query {
+ * Query filtering options.
+ *
+ * @type string $hook The name of the actions. Optional.
+ * @type string|array $status The status or statuses of the actions. Optional.
+ * @type array $args The args array of the actions. Optional.
+ * @type DateTime $date The scheduled date of the action. Used in UTC timezone. Optional.
+ * @type string $date_compare Operator for selecting by $date param. Accepted values are '!=', '>', '>=', '<', '<=', '='. Defaults to '<='.
+ * @type DateTime $modified The last modified date of the action. Used in UTC timezone. Optional.
+ * @type string $modified_compare Operator for comparing $modified param. Accepted values are '!=', '>', '>=', '<', '<=', '='. Defaults to '<='.
+ * @type string $group The group the action belongs to. Optional.
+ * @type bool|int $claimed TRUE to find claimed actions, FALSE to find unclaimed actions, an int to find a specific claim ID. Optional.
+ * @type int $per_page Number of results to return. Defaults to 5.
+ * @type int $offset The query pagination offset. Defaults to 0.
+ * @type int $orderby Accepted values are 'hook', 'group', 'modified', 'date' or 'none'. Defaults to 'date'.
+ * @type string $order Accepted values are 'ASC' or 'DESC'. Defaults to 'ASC'.
+ * }
+ * @param string $query_type Whether to select or count the results. Default, select.
+ *
+ * @return string|array|null The IDs of actions matching the query. Null on failure.
+ */
+ abstract public function query_actions( $query = array(), $query_type = 'select' );
+
+ /**
+ * Run query to get a single action ID.
+ *
+ * @since 3.3.0
+ *
+ * @see ActionScheduler_Store::query_actions for $query arg usage but 'per_page' and 'offset' can't be used.
+ *
+ * @param array $query Query parameters.
+ *
+ * @return int|null
+ */
+ public function query_action( $query ) {
+ $query['per_page'] = 1;
+ $query['offset'] = 0;
+ $results = $this->query_actions( $query );
+
+ if ( empty( $results ) ) {
+ return null;
+ } else {
+ return (int) $results[0];
+ }
+ }
+
+ /**
+ * Get a count of all actions in the store, grouped by status
+ *
+ * @return array
+ */
+ abstract public function action_counts();
+
+ /**
+ * Get additional action counts.
+ *
+ * - add past-due actions
+ *
+ * @return array
+ */
+ public function extra_action_counts() {
+ $extra_actions = array();
+
+ $pastdue_action_counts = ( int ) $this->query_actions( array(
+ 'status' => self::STATUS_PENDING,
+ 'date' => as_get_datetime_object(),
+ ), 'count' );
+
+ if ( $pastdue_action_counts ) {
+ $extra_actions['past-due'] = $pastdue_action_counts;
+ }
+
+ /**
+ * Allows 3rd party code to add extra action counts (used in filters in the list table).
+ *
+ * @since 3.5.0
+ * @param $extra_actions array Array with format action_count_identifier => action count.
+ */
+ return apply_filters( 'action_scheduler_extra_action_counts', $extra_actions );
+ }
+
+ /**
+ * @param string $action_id
+ */
+ abstract public function cancel_action( $action_id );
+
+ /**
+ * @param string $action_id
+ */
+ abstract public function delete_action( $action_id );
+
+ /**
+ * @param string $action_id
+ *
+ * @return DateTime The date the action is schedule to run, or the date that it ran.
+ */
+ abstract public function get_date( $action_id );
+
+
+ /**
+ * @param int $max_actions
+ * @param DateTime $before_date Claim only actions schedule before the given date. Defaults to now.
+ * @param array $hooks Claim only actions with a hook or hooks.
+ * @param string $group Claim only actions in the given group.
+ *
+ * @return ActionScheduler_ActionClaim
+ */
+ abstract public function stake_claim( $max_actions = 10, DateTime $before_date = null, $hooks = array(), $group = '' );
+
+ /**
+ * @return int
+ */
+ abstract public function get_claim_count();
+
+ /**
+ * @param ActionScheduler_ActionClaim $claim
+ */
+ abstract public function release_claim( ActionScheduler_ActionClaim $claim );
+
+ /**
+ * @param string $action_id
+ */
+ abstract public function unclaim_action( $action_id );
+
+ /**
+ * @param string $action_id
+ */
+ abstract public function mark_failure( $action_id );
+
+ /**
+ * @param string $action_id
+ */
+ abstract public function log_execution( $action_id );
+
+ /**
+ * @param string $action_id
+ */
+ abstract public function mark_complete( $action_id );
+
+ /**
+ * @param string $action_id
+ *
+ * @return string
+ */
+ abstract public function get_status( $action_id );
+
+ /**
+ * @param string $action_id
+ * @return mixed
+ */
+ abstract public function get_claim_id( $action_id );
+
+ /**
+ * @param string $claim_id
+ * @return array
+ */
+ abstract public function find_actions_by_claim_id( $claim_id );
+
+ /**
+ * @param string $comparison_operator
+ * @return string
+ */
+ protected function validate_sql_comparator( $comparison_operator ) {
+ if ( in_array( $comparison_operator, array('!=', '>', '>=', '<', '<=', '=') ) ) {
+ return $comparison_operator;
+ }
+ return '=';
+ }
+
+ /**
+ * Get the time MySQL formated date/time string for an action's (next) scheduled date.
+ *
+ * @param ActionScheduler_Action $action
+ * @param DateTime $scheduled_date (optional)
+ * @return string
+ */
+ protected function get_scheduled_date_string( ActionScheduler_Action $action, DateTime $scheduled_date = NULL ) {
+ $next = null === $scheduled_date ? $action->get_schedule()->get_date() : $scheduled_date;
+ if ( ! $next ) {
+ $next = date_create();
+ }
+ $next->setTimezone( new DateTimeZone( 'UTC' ) );
+
+ return $next->format( 'Y-m-d H:i:s' );
+ }
+
+ /**
+ * Get the time MySQL formated date/time string for an action's (next) scheduled date.
+ *
+ * @param ActionScheduler_Action $action
+ * @param DateTime $scheduled_date (optional)
+ * @return string
+ */
+ protected function get_scheduled_date_string_local( ActionScheduler_Action $action, DateTime $scheduled_date = NULL ) {
+ $next = null === $scheduled_date ? $action->get_schedule()->get_date() : $scheduled_date;
+ if ( ! $next ) {
+ $next = date_create();
+ }
+
+ ActionScheduler_TimezoneHelper::set_local_timezone( $next );
+ return $next->format( 'Y-m-d H:i:s' );
+ }
+
+ /**
+ * Validate that we could decode action arguments.
+ *
+ * @param mixed $args The decoded arguments.
+ * @param int $action_id The action ID.
+ *
+ * @throws ActionScheduler_InvalidActionException When the decoded arguments are invalid.
+ */
+ protected function validate_args( $args, $action_id ) {
+ // Ensure we have an array of args.
+ if ( ! is_array( $args ) ) {
+ throw ActionScheduler_InvalidActionException::from_decoding_args( $action_id );
+ }
+
+ // Validate JSON decoding if possible.
+ if ( function_exists( 'json_last_error' ) && JSON_ERROR_NONE !== json_last_error() ) {
+ throw ActionScheduler_InvalidActionException::from_decoding_args( $action_id, $args );
+ }
+ }
+
+ /**
+ * Validate a ActionScheduler_Schedule object.
+ *
+ * @param mixed $schedule The unserialized ActionScheduler_Schedule object.
+ * @param int $action_id The action ID.
+ *
+ * @throws ActionScheduler_InvalidActionException When the schedule is invalid.
+ */
+ protected function validate_schedule( $schedule, $action_id ) {
+ if ( empty( $schedule ) || ! is_a( $schedule, 'ActionScheduler_Schedule' ) ) {
+ throw ActionScheduler_InvalidActionException::from_schedule( $action_id, $schedule );
+ }
+ }
+
+ /**
+ * InnoDB indexes have a maximum size of 767 bytes by default, which is only 191 characters with utf8mb4.
+ *
+ * Previously, AS wasn't concerned about args length, as we used the (unindex) post_content column. However,
+ * with custom tables, we use an indexed VARCHAR column instead.
+ *
+ * @param ActionScheduler_Action $action Action to be validated.
+ * @throws InvalidArgumentException When json encoded args is too long.
+ */
+ protected function validate_action( ActionScheduler_Action $action ) {
+ if ( strlen( json_encode( $action->get_args() ) ) > static::$max_args_length ) {
+ throw new InvalidArgumentException( sprintf( __( 'ActionScheduler_Action::$args too long. To ensure the args column can be indexed, action args should not be more than %d characters when encoded as JSON.', 'woocommerce' ), static::$max_args_length ) );
+ }
+ }
+
+ /**
+ * Cancel pending actions by hook.
+ *
+ * @since 3.0.0
+ *
+ * @param string $hook Hook name.
+ *
+ * @return void
+ */
+ public function cancel_actions_by_hook( $hook ) {
+ $action_ids = true;
+ while ( ! empty( $action_ids ) ) {
+ $action_ids = $this->query_actions(
+ array(
+ 'hook' => $hook,
+ 'status' => self::STATUS_PENDING,
+ 'per_page' => 1000,
+ 'orderby' => 'none',
+ )
+ );
+
+ $this->bulk_cancel_actions( $action_ids );
+ }
+ }
+
+ /**
+ * Cancel pending actions by group.
+ *
+ * @since 3.0.0
+ *
+ * @param string $group Group slug.
+ *
+ * @return void
+ */
+ public function cancel_actions_by_group( $group ) {
+ $action_ids = true;
+ while ( ! empty( $action_ids ) ) {
+ $action_ids = $this->query_actions(
+ array(
+ 'group' => $group,
+ 'status' => self::STATUS_PENDING,
+ 'per_page' => 1000,
+ 'orderby' => 'none',
+ )
+ );
+
+ $this->bulk_cancel_actions( $action_ids );
+ }
+ }
+
+ /**
+ * Cancel a set of action IDs.
+ *
+ * @since 3.0.0
+ *
+ * @param array $action_ids List of action IDs.
+ *
+ * @return void
+ */
+ private function bulk_cancel_actions( $action_ids ) {
+ foreach ( $action_ids as $action_id ) {
+ $this->cancel_action( $action_id );
+ }
+
+ do_action( 'action_scheduler_bulk_cancel_actions', $action_ids );
+ }
+
+ /**
+ * @return array
+ */
+ public function get_status_labels() {
+ return array(
+ self::STATUS_COMPLETE => __( 'Complete', 'woocommerce' ),
+ self::STATUS_PENDING => __( 'Pending', 'woocommerce' ),
+ self::STATUS_RUNNING => __( 'In-progress', 'woocommerce' ),
+ self::STATUS_FAILED => __( 'Failed', 'woocommerce' ),
+ self::STATUS_CANCELED => __( 'Canceled', 'woocommerce' ),
+ );
+ }
+
+ /**
+ * Check if there are any pending scheduled actions due to run.
+ *
+ * @param ActionScheduler_Action $action
+ * @param DateTime $scheduled_date (optional)
+ * @return string
+ */
+ public function has_pending_actions_due() {
+ $pending_actions = $this->query_actions( array(
+ 'date' => as_get_datetime_object(),
+ 'status' => ActionScheduler_Store::STATUS_PENDING,
+ 'orderby' => 'none',
+ ) );
+
+ return ! empty( $pending_actions );
+ }
+
+ /**
+ * Callable initialization function optionally overridden in derived classes.
+ */
+ public function init() {}
+
+ /**
+ * Callable function to mark an action as migrated optionally overridden in derived classes.
+ */
+ public function mark_migrated( $action_id ) {}
+
+ /**
+ * @return ActionScheduler_Store
+ */
+ public static function instance() {
+ if ( empty( self::$store ) ) {
+ $class = apply_filters( 'action_scheduler_store_class', self::DEFAULT_CLASS );
+ self::$store = new $class();
+ }
+ return self::$store;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_TimezoneHelper.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_TimezoneHelper.php
new file mode 100644
index 00000000..2f96834a
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_TimezoneHelper.php
@@ -0,0 +1,153 @@
+format( 'U' ) );
+ }
+
+ if ( get_option( 'timezone_string' ) ) {
+ $date->setTimezone( new DateTimeZone( self::get_local_timezone_string() ) );
+ } else {
+ $date->setUtcOffset( self::get_local_timezone_offset() );
+ }
+
+ return $date;
+ }
+
+ /**
+ * Helper to retrieve the timezone string for a site until a WP core method exists
+ * (see https://core.trac.wordpress.org/ticket/24730).
+ *
+ * Adapted from wc_timezone_string() and https://secure.php.net/manual/en/function.timezone-name-from-abbr.php#89155.
+ *
+ * If no timezone string is set, and its not possible to match the UTC offset set for the site to a timezone
+ * string, then an empty string will be returned, and the UTC offset should be used to set a DateTime's
+ * timezone.
+ *
+ * @since 2.1.0
+ * @return string PHP timezone string for the site or empty if no timezone string is available.
+ */
+ protected static function get_local_timezone_string( $reset = false ) {
+ // If site timezone string exists, return it.
+ $timezone = get_option( 'timezone_string' );
+ if ( $timezone ) {
+ return $timezone;
+ }
+
+ // Get UTC offset, if it isn't set then return UTC.
+ $utc_offset = intval( get_option( 'gmt_offset', 0 ) );
+ if ( 0 === $utc_offset ) {
+ return 'UTC';
+ }
+
+ // Adjust UTC offset from hours to seconds.
+ $utc_offset *= 3600;
+
+ // Attempt to guess the timezone string from the UTC offset.
+ $timezone = timezone_name_from_abbr( '', $utc_offset );
+ if ( $timezone ) {
+ return $timezone;
+ }
+
+ // Last try, guess timezone string manually.
+ foreach ( timezone_abbreviations_list() as $abbr ) {
+ foreach ( $abbr as $city ) {
+ if ( (bool) date( 'I' ) === (bool) $city['dst'] && $city['timezone_id'] && intval( $city['offset'] ) === $utc_offset ) {
+ return $city['timezone_id'];
+ }
+ }
+ }
+
+ // No timezone string
+ return '';
+ }
+
+ /**
+ * Get timezone offset in seconds.
+ *
+ * @since 2.1.0
+ * @return float
+ */
+ protected static function get_local_timezone_offset() {
+ $timezone = get_option( 'timezone_string' );
+
+ if ( $timezone ) {
+ $timezone_object = new DateTimeZone( $timezone );
+ return $timezone_object->getOffset( new DateTime( 'now' ) );
+ } else {
+ return floatval( get_option( 'gmt_offset', 0 ) ) * HOUR_IN_SECONDS;
+ }
+ }
+
+ /**
+ * @deprecated 2.1.0
+ */
+ public static function get_local_timezone( $reset = FALSE ) {
+ _deprecated_function( __FUNCTION__, '2.1.0', 'ActionScheduler_TimezoneHelper::set_local_timezone()' );
+ if ( $reset ) {
+ self::$local_timezone = NULL;
+ }
+ if ( !isset(self::$local_timezone) ) {
+ $tzstring = get_option('timezone_string');
+
+ if ( empty($tzstring) ) {
+ $gmt_offset = get_option('gmt_offset');
+ if ( $gmt_offset == 0 ) {
+ $tzstring = 'UTC';
+ } else {
+ $gmt_offset *= HOUR_IN_SECONDS;
+ $tzstring = timezone_name_from_abbr( '', $gmt_offset, 1 );
+
+ // If there's no timezone string, try again with no DST.
+ if ( false === $tzstring ) {
+ $tzstring = timezone_name_from_abbr( '', $gmt_offset, 0 );
+ }
+
+ // Try mapping to the first abbreviation we can find.
+ if ( false === $tzstring ) {
+ $is_dst = date( 'I' );
+ foreach ( timezone_abbreviations_list() as $abbr ) {
+ foreach ( $abbr as $city ) {
+ if ( $city['dst'] == $is_dst && $city['offset'] == $gmt_offset ) {
+ // If there's no valid timezone ID, keep looking.
+ if ( null === $city['timezone_id'] ) {
+ continue;
+ }
+
+ $tzstring = $city['timezone_id'];
+ break 2;
+ }
+ }
+ }
+ }
+
+ // If we still have no valid string, then fall back to UTC.
+ if ( false === $tzstring ) {
+ $tzstring = 'UTC';
+ }
+ }
+ }
+
+ self::$local_timezone = new DateTimeZone($tzstring);
+ }
+ return self::$local_timezone;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_Action.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_Action.php
new file mode 100644
index 00000000..f4b48bb1
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_Action.php
@@ -0,0 +1,136 @@
+set_hook($hook);
+ $this->set_schedule($schedule);
+ $this->set_args($args);
+ $this->set_group($group);
+ }
+
+ /**
+ * Executes the action.
+ *
+ * If no callbacks are registered, an exception will be thrown and the action will not be
+ * fired. This is useful to help detect cases where the code responsible for setting up
+ * a scheduled action no longer exists.
+ *
+ * @throws Exception If no callbacks are registered for this action.
+ */
+ public function execute() {
+ $hook = $this->get_hook();
+
+ if ( ! has_action( $hook ) ) {
+ throw new Exception(
+ sprintf(
+ /* translators: 1: action hook. */
+ __( 'Scheduled action for %1$s will not be executed as no callbacks are registered.', 'woocommerce' ),
+ $hook
+ )
+ );
+ }
+
+ do_action_ref_array( $hook, array_values( $this->get_args() ) );
+ }
+
+ /**
+ * @param string $hook
+ */
+ protected function set_hook( $hook ) {
+ $this->hook = $hook;
+ }
+
+ public function get_hook() {
+ return $this->hook;
+ }
+
+ protected function set_schedule( ActionScheduler_Schedule $schedule ) {
+ $this->schedule = $schedule;
+ }
+
+ /**
+ * @return ActionScheduler_Schedule
+ */
+ public function get_schedule() {
+ return $this->schedule;
+ }
+
+ protected function set_args( array $args ) {
+ $this->args = $args;
+ }
+
+ public function get_args() {
+ return $this->args;
+ }
+
+ /**
+ * @param string $group
+ */
+ protected function set_group( $group ) {
+ $this->group = $group;
+ }
+
+ /**
+ * @return string
+ */
+ public function get_group() {
+ return $this->group;
+ }
+
+ /**
+ * @return bool If the action has been finished
+ */
+ public function is_finished() {
+ return FALSE;
+ }
+
+ /**
+ * Sets the priority of the action.
+ *
+ * @param int $priority Priority level (lower is higher priority). Should be in the range 0-255.
+ *
+ * @return void
+ */
+ public function set_priority( $priority ) {
+ if ( $priority < 0 ) {
+ $priority = 0;
+ } elseif ( $priority > 255 ) {
+ $priority = 255;
+ }
+
+ $this->priority = (int) $priority;
+ }
+
+ /**
+ * Gets the action priority.
+ *
+ * @return int
+ */
+ public function get_priority() {
+ return $this->priority;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php
new file mode 100644
index 00000000..0172da12
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php
@@ -0,0 +1,24 @@
+set_schedule( new ActionScheduler_NullSchedule() );
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php
new file mode 100644
index 00000000..fd1ddb32
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php
@@ -0,0 +1,17 @@
+set_schedule( new ActionScheduler_NullSchedule() );
+ }
+
+ public function execute() {
+ // don't execute
+ }
+}
+
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php
new file mode 100644
index 00000000..0718f8bd
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php
@@ -0,0 +1,155 @@
+format( 'Y-m-d H:i:s' );
+ ActionScheduler_TimezoneHelper::set_local_timezone( $date );
+ $date_local = $date->format( 'Y-m-d H:i:s' );
+
+ /** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
+ global $wpdb;
+ $wpdb->insert(
+ $wpdb->actionscheduler_logs,
+ array(
+ 'action_id' => $action_id,
+ 'message' => $message,
+ 'log_date_gmt' => $date_gmt,
+ 'log_date_local' => $date_local,
+ ),
+ array( '%d', '%s', '%s', '%s' )
+ );
+
+ return $wpdb->insert_id;
+ }
+
+ /**
+ * Retrieve an action log entry.
+ *
+ * @param int $entry_id Log entry ID.
+ *
+ * @return ActionScheduler_LogEntry
+ */
+ public function get_entry( $entry_id ) {
+ /** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
+ global $wpdb;
+ $entry = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->actionscheduler_logs} WHERE log_id=%d", $entry_id ) );
+
+ return $this->create_entry_from_db_record( $entry );
+ }
+
+ /**
+ * Create an action log entry from a database record.
+ *
+ * @param object $record Log entry database record object.
+ *
+ * @return ActionScheduler_LogEntry
+ */
+ private function create_entry_from_db_record( $record ) {
+ if ( empty( $record ) ) {
+ return new ActionScheduler_NullLogEntry();
+ }
+
+ if ( is_null( $record->log_date_gmt ) ) {
+ $date = as_get_datetime_object( ActionScheduler_StoreSchema::DEFAULT_DATE );
+ } else {
+ $date = as_get_datetime_object( $record->log_date_gmt );
+ }
+
+ return new ActionScheduler_LogEntry( $record->action_id, $record->message, $date );
+ }
+
+ /**
+ * Retrieve an action's log entries from the database.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return ActionScheduler_LogEntry[]
+ */
+ public function get_logs( $action_id ) {
+ /** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
+ global $wpdb;
+
+ $records = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->actionscheduler_logs} WHERE action_id=%d", $action_id ) );
+
+ return array_map( array( $this, 'create_entry_from_db_record' ), $records );
+ }
+
+ /**
+ * Initialize the data store.
+ *
+ * @codeCoverageIgnore
+ */
+ public function init() {
+ $table_maker = new ActionScheduler_LoggerSchema();
+ $table_maker->init();
+ $table_maker->register_tables();
+
+ parent::init();
+
+ add_action( 'action_scheduler_deleted_action', array( $this, 'clear_deleted_action_logs' ), 10, 1 );
+ }
+
+ /**
+ * Delete the action logs for an action.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function clear_deleted_action_logs( $action_id ) {
+ /** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
+ global $wpdb;
+ $wpdb->delete( $wpdb->actionscheduler_logs, array( 'action_id' => $action_id ), array( '%d' ) );
+ }
+
+ /**
+ * Bulk add cancel action log entries.
+ *
+ * @param array $action_ids List of action ID.
+ */
+ public function bulk_log_cancel_actions( $action_ids ) {
+ if ( empty( $action_ids ) ) {
+ return;
+ }
+
+ /** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
+ global $wpdb;
+ $date = as_get_datetime_object();
+ $date_gmt = $date->format( 'Y-m-d H:i:s' );
+ ActionScheduler_TimezoneHelper::set_local_timezone( $date );
+ $date_local = $date->format( 'Y-m-d H:i:s' );
+ $message = __( 'action canceled', 'woocommerce' );
+ $format = '(%d, ' . $wpdb->prepare( '%s, %s, %s', $message, $date_gmt, $date_local ) . ')';
+ $sql_query = "INSERT {$wpdb->actionscheduler_logs} (action_id, message, log_date_gmt, log_date_local) VALUES ";
+ $value_rows = array();
+
+ foreach ( $action_ids as $action_id ) {
+ $value_rows[] = $wpdb->prepare( $format, $action_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+ $sql_query .= implode( ',', $value_rows );
+
+ $wpdb->query( $sql_query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php
new file mode 100644
index 00000000..69f0d7fd
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php
@@ -0,0 +1,1181 @@
+ '',
+ 'hooks' => '',
+ 'exclude-groups' => '',
+ ];
+
+ /**
+ * Initialize the data store
+ *
+ * @codeCoverageIgnore
+ */
+ public function init() {
+ $table_maker = new ActionScheduler_StoreSchema();
+ $table_maker->init();
+ $table_maker->register_tables();
+ }
+
+ /**
+ * Save an action, checks if this is a unique action before actually saving.
+ *
+ * @param ActionScheduler_Action $action Action object.
+ * @param \DateTime $scheduled_date Optional schedule date. Default null.
+ *
+ * @return int Action ID.
+ * @throws RuntimeException Throws exception when saving the action fails.
+ */
+ public function save_unique_action( ActionScheduler_Action $action, \DateTime $scheduled_date = null ) {
+ return $this->save_action_to_db( $action, $scheduled_date, true );
+ }
+
+ /**
+ * Save an action. Can save duplicate action as well, prefer using `save_unique_action` instead.
+ *
+ * @param ActionScheduler_Action $action Action object.
+ * @param \DateTime $scheduled_date Optional schedule date. Default null.
+ *
+ * @return int Action ID.
+ * @throws RuntimeException Throws exception when saving the action fails.
+ */
+ public function save_action( ActionScheduler_Action $action, \DateTime $scheduled_date = null ) {
+ return $this->save_action_to_db( $action, $scheduled_date, false );
+ }
+
+ /**
+ * Save an action.
+ *
+ * @param ActionScheduler_Action $action Action object.
+ * @param ?DateTime $date Optional schedule date. Default null.
+ * @param bool $unique Whether the action should be unique.
+ *
+ * @return int Action ID.
+ * @throws RuntimeException Throws exception when saving the action fails.
+ */
+ private function save_action_to_db( ActionScheduler_Action $action, DateTime $date = null, $unique = false ) {
+ global $wpdb;
+
+ try {
+ $this->validate_action( $action );
+
+ $data = array(
+ 'hook' => $action->get_hook(),
+ 'status' => ( $action->is_finished() ? self::STATUS_COMPLETE : self::STATUS_PENDING ),
+ 'scheduled_date_gmt' => $this->get_scheduled_date_string( $action, $date ),
+ 'scheduled_date_local' => $this->get_scheduled_date_string_local( $action, $date ),
+ 'schedule' => serialize( $action->get_schedule() ), // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize
+ 'group_id' => current( $this->get_group_ids( $action->get_group() ) ),
+ 'priority' => $action->get_priority(),
+ );
+
+ $args = wp_json_encode( $action->get_args() );
+ if ( strlen( $args ) <= static::$max_index_length ) {
+ $data['args'] = $args;
+ } else {
+ $data['args'] = $this->hash_args( $args );
+ $data['extended_args'] = $args;
+ }
+
+ $insert_sql = $this->build_insert_sql( $data, $unique );
+
+ // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- $insert_sql should be already prepared.
+ $wpdb->query( $insert_sql );
+ $action_id = $wpdb->insert_id;
+
+ if ( is_wp_error( $action_id ) ) {
+ throw new \RuntimeException( $action_id->get_error_message() );
+ } elseif ( empty( $action_id ) ) {
+ if ( $unique ) {
+ return 0;
+ }
+ throw new \RuntimeException( $wpdb->last_error ? $wpdb->last_error : __( 'Database error.', 'woocommerce' ) );
+ }
+
+ do_action( 'action_scheduler_stored_action', $action_id );
+
+ return $action_id;
+ } catch ( \Exception $e ) {
+ /* translators: %s: error message */
+ throw new \RuntimeException( sprintf( __( 'Error saving action: %s', 'woocommerce' ), $e->getMessage() ), 0 );
+ }
+ }
+
+ /**
+ * Helper function to build insert query.
+ *
+ * @param array $data Row data for action.
+ * @param bool $unique Whether the action should be unique.
+ *
+ * @return string Insert query.
+ */
+ private function build_insert_sql( array $data, $unique ) {
+ global $wpdb;
+ $columns = array_keys( $data );
+ $values = array_values( $data );
+ $placeholders = array_map( array( $this, 'get_placeholder_for_column' ), $columns );
+
+ $table_name = ! empty( $wpdb->actionscheduler_actions ) ? $wpdb->actionscheduler_actions : $wpdb->prefix . 'actionscheduler_actions';
+
+ $column_sql = '`' . implode( '`, `', $columns ) . '`';
+ $placeholder_sql = implode( ', ', $placeholders );
+ $where_clause = $this->build_where_clause_for_insert( $data, $table_name, $unique );
+ // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $column_sql and $where_clause are already prepared. $placeholder_sql is hardcoded.
+ $insert_query = $wpdb->prepare(
+ "
+INSERT INTO $table_name ( $column_sql )
+SELECT $placeholder_sql FROM DUAL
+WHERE ( $where_clause ) IS NULL",
+ $values
+ );
+ // phpcs:enable
+
+ return $insert_query;
+ }
+
+ /**
+ * Helper method to build where clause for action insert statement.
+ *
+ * @param array $data Row data for action.
+ * @param string $table_name Action table name.
+ * @param bool $unique Where action should be unique.
+ *
+ * @return string Where clause to be used with insert.
+ */
+ private function build_where_clause_for_insert( $data, $table_name, $unique ) {
+ global $wpdb;
+
+ if ( ! $unique ) {
+ return 'SELECT NULL FROM DUAL';
+ }
+
+ $pending_statuses = array(
+ ActionScheduler_Store::STATUS_PENDING,
+ ActionScheduler_Store::STATUS_RUNNING,
+ );
+ $pending_status_placeholders = implode( ', ', array_fill( 0, count( $pending_statuses ), '%s' ) );
+
+ // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $pending_status_placeholders is hardcoded.
+ $where_clause = $wpdb->prepare(
+ "
+SELECT action_id FROM $table_name
+WHERE status IN ( $pending_status_placeholders )
+AND hook = %s
+AND `group_id` = %d
+",
+ array_merge(
+ $pending_statuses,
+ array(
+ $data['hook'],
+ $data['group_id'],
+ )
+ )
+ );
+ // phpcs:enable
+
+ return "$where_clause" . ' LIMIT 1';
+ }
+
+ /**
+ * Helper method to get $wpdb->prepare placeholder for a given column name.
+ *
+ * @param string $column_name Name of column in actions table.
+ *
+ * @return string Placeholder to use for given column.
+ */
+ private function get_placeholder_for_column( $column_name ) {
+ $string_columns = array(
+ 'hook',
+ 'status',
+ 'scheduled_date_gmt',
+ 'scheduled_date_local',
+ 'args',
+ 'schedule',
+ 'last_attempt_gmt',
+ 'last_attempt_local',
+ 'extended_args',
+ );
+
+ return in_array( $column_name, $string_columns ) ? '%s' : '%d';
+ }
+
+ /**
+ * Generate a hash from json_encoded $args using MD5 as this isn't for security.
+ *
+ * @param string $args JSON encoded action args.
+ * @return string
+ */
+ protected function hash_args( $args ) {
+ return md5( $args );
+ }
+
+ /**
+ * Get action args query param value from action args.
+ *
+ * @param array $args Action args.
+ * @return string
+ */
+ protected function get_args_for_query( $args ) {
+ $encoded = wp_json_encode( $args );
+ if ( strlen( $encoded ) <= static::$max_index_length ) {
+ return $encoded;
+ }
+ return $this->hash_args( $encoded );
+ }
+ /**
+ * Get a group's ID based on its name/slug.
+ *
+ * @param string|array $slugs The string name of a group, or names for several groups.
+ * @param bool $create_if_not_exists Whether to create the group if it does not already exist. Default, true - create the group.
+ *
+ * @return array The group IDs, if they exist or were successfully created. May be empty.
+ */
+ protected function get_group_ids( $slugs, $create_if_not_exists = true ) {
+ $slugs = (array) $slugs;
+ $group_ids = array();
+
+ if ( empty( $slugs ) ) {
+ return array();
+ }
+
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ foreach ( $slugs as $slug ) {
+ $group_id = (int) $wpdb->get_var( $wpdb->prepare( "SELECT group_id FROM {$wpdb->actionscheduler_groups} WHERE slug=%s", $slug ) );
+
+ if ( empty( $group_id ) && $create_if_not_exists ) {
+ $group_id = $this->create_group( $slug );
+ }
+
+ if ( $group_id ) {
+ $group_ids[] = $group_id;
+ }
+ }
+
+ return $group_ids;
+ }
+
+ /**
+ * Create an action group.
+ *
+ * @param string $slug Group slug.
+ *
+ * @return int Group ID.
+ */
+ protected function create_group( $slug ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $wpdb->insert( $wpdb->actionscheduler_groups, array( 'slug' => $slug ) );
+
+ return (int) $wpdb->insert_id;
+ }
+
+ /**
+ * Retrieve an action.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return ActionScheduler_Action
+ */
+ public function fetch_action( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $data = $wpdb->get_row(
+ $wpdb->prepare(
+ "SELECT a.*, g.slug AS `group` FROM {$wpdb->actionscheduler_actions} a LEFT JOIN {$wpdb->actionscheduler_groups} g ON a.group_id=g.group_id WHERE a.action_id=%d",
+ $action_id
+ )
+ );
+
+ if ( empty( $data ) ) {
+ return $this->get_null_action();
+ }
+
+ if ( ! empty( $data->extended_args ) ) {
+ $data->args = $data->extended_args;
+ unset( $data->extended_args );
+ }
+
+ // Convert NULL dates to zero dates.
+ $date_fields = array(
+ 'scheduled_date_gmt',
+ 'scheduled_date_local',
+ 'last_attempt_gmt',
+ 'last_attempt_gmt',
+ );
+ foreach ( $date_fields as $date_field ) {
+ if ( is_null( $data->$date_field ) ) {
+ $data->$date_field = ActionScheduler_StoreSchema::DEFAULT_DATE;
+ }
+ }
+
+ try {
+ $action = $this->make_action_from_db_record( $data );
+ } catch ( ActionScheduler_InvalidActionException $exception ) {
+ do_action( 'action_scheduler_failed_fetch_action', $action_id, $exception );
+ return $this->get_null_action();
+ }
+
+ return $action;
+ }
+
+ /**
+ * Create a null action.
+ *
+ * @return ActionScheduler_NullAction
+ */
+ protected function get_null_action() {
+ return new ActionScheduler_NullAction();
+ }
+
+ /**
+ * Create an action from a database record.
+ *
+ * @param object $data Action database record.
+ *
+ * @return ActionScheduler_Action|ActionScheduler_CanceledAction|ActionScheduler_FinishedAction
+ */
+ protected function make_action_from_db_record( $data ) {
+
+ $hook = $data->hook;
+ $args = json_decode( $data->args, true );
+ $schedule = unserialize( $data->schedule ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize
+
+ $this->validate_args( $args, $data->action_id );
+ $this->validate_schedule( $schedule, $data->action_id );
+
+ if ( empty( $schedule ) ) {
+ $schedule = new ActionScheduler_NullSchedule();
+ }
+ $group = $data->group ? $data->group : '';
+
+ return ActionScheduler::factory()->get_stored_action( $data->status, $data->hook, $args, $schedule, $group, $data->priority );
+ }
+
+ /**
+ * Returns the SQL statement to query (or count) actions.
+ *
+ * @since 3.3.0 $query['status'] accepts array of statuses instead of a single status.
+ *
+ * @param array $query Filtering options.
+ * @param string $select_or_count Whether the SQL should select and return the IDs or just the row count.
+ *
+ * @return string SQL statement already properly escaped.
+ * @throws InvalidArgumentException If the query is invalid.
+ */
+ protected function get_query_actions_sql( array $query, $select_or_count = 'select' ) {
+
+ if ( ! in_array( $select_or_count, array( 'select', 'count' ), true ) ) {
+ throw new InvalidArgumentException( __( 'Invalid value for select or count parameter. Cannot query actions.', 'woocommerce' ) );
+ }
+
+ $query = wp_parse_args( $query, array(
+ 'hook' => '',
+ 'args' => null,
+ 'partial_args_matching' => 'off', // can be 'like' or 'json'
+ 'date' => null,
+ 'date_compare' => '<=',
+ 'modified' => null,
+ 'modified_compare' => '<=',
+ 'group' => '',
+ 'status' => '',
+ 'claimed' => null,
+ 'per_page' => 5,
+ 'offset' => 0,
+ 'orderby' => 'date',
+ 'order' => 'ASC',
+ ) );
+
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ $db_server_info = is_callable( array( $wpdb, 'db_server_info' ) ) ? $wpdb->db_server_info() : $wpdb->db_version();
+ if ( false !== strpos( $db_server_info, 'MariaDB' ) ) {
+ $supports_json = version_compare(
+ PHP_VERSION_ID >= 80016 ? $wpdb->db_version() : preg_replace( '/[^0-9.].*/', '', str_replace( '5.5.5-', '', $db_server_info ) ),
+ '10.2',
+ '>='
+ );
+ } else {
+ $supports_json = version_compare( $wpdb->db_version(), '5.7', '>=' );
+ }
+
+ $sql = ( 'count' === $select_or_count ) ? 'SELECT count(a.action_id)' : 'SELECT a.action_id';
+ $sql .= " FROM {$wpdb->actionscheduler_actions} a";
+ $sql_params = array();
+
+ if ( ! empty( $query['group'] ) || 'group' === $query['orderby'] ) {
+ $sql .= " LEFT JOIN {$wpdb->actionscheduler_groups} g ON g.group_id=a.group_id";
+ }
+
+ $sql .= " WHERE 1=1";
+
+ if ( ! empty( $query['group'] ) ) {
+ $sql .= " AND g.slug=%s";
+ $sql_params[] = $query['group'];
+ }
+
+ if ( ! empty( $query['hook'] ) ) {
+ $sql .= " AND a.hook=%s";
+ $sql_params[] = $query['hook'];
+ }
+
+ if ( ! is_null( $query['args'] ) ) {
+ switch ( $query['partial_args_matching'] ) {
+ case 'json':
+ if ( ! $supports_json ) {
+ throw new \RuntimeException( __( 'JSON partial matching not supported in your environment. Please check your MySQL/MariaDB version.', 'woocommerce' ) );
+ }
+ $supported_types = array(
+ 'integer' => '%d',
+ 'boolean' => '%s',
+ 'double' => '%f',
+ 'string' => '%s',
+ );
+ foreach ( $query['args'] as $key => $value ) {
+ $value_type = gettype( $value );
+ if ( 'boolean' === $value_type ) {
+ $value = $value ? 'true' : 'false';
+ }
+ $placeholder = isset( $supported_types[ $value_type ] ) ? $supported_types[ $value_type ] : false;
+ if ( ! $placeholder ) {
+ throw new \RuntimeException( sprintf(
+ /* translators: %s: provided value type */
+ __( 'The value type for the JSON partial matching is not supported. Must be either integer, boolean, double or string. %s type provided.', 'woocommerce' ),
+ $value_type
+ ) );
+ }
+ $sql .= ' AND JSON_EXTRACT(a.args, %s)='.$placeholder;
+ $sql_params[] = '$.'.$key;
+ $sql_params[] = $value;
+ }
+ break;
+ case 'like':
+ foreach ( $query['args'] as $key => $value ) {
+ $sql .= ' AND a.args LIKE %s';
+ $json_partial = $wpdb->esc_like( trim( json_encode( array( $key => $value ) ), '{}' ) );
+ $sql_params[] = "%{$json_partial}%";
+ }
+ break;
+ case 'off':
+ $sql .= " AND a.args=%s";
+ $sql_params[] = $this->get_args_for_query( $query['args'] );
+ break;
+ default:
+ throw new \RuntimeException( __( 'Unknown partial args matching value.', 'woocommerce' ) );
+ }
+ }
+
+ if ( $query['status'] ) {
+ $statuses = (array) $query['status'];
+ $placeholders = array_fill( 0, count( $statuses ), '%s' );
+ $sql .= ' AND a.status IN (' . join( ', ', $placeholders ) . ')';
+ $sql_params = array_merge( $sql_params, array_values( $statuses ) );
+ }
+
+ if ( $query['date'] instanceof \DateTime ) {
+ $date = clone $query['date'];
+ $date->setTimezone( new \DateTimeZone( 'UTC' ) );
+ $date_string = $date->format( 'Y-m-d H:i:s' );
+ $comparator = $this->validate_sql_comparator( $query['date_compare'] );
+ $sql .= " AND a.scheduled_date_gmt $comparator %s";
+ $sql_params[] = $date_string;
+ }
+
+ if ( $query['modified'] instanceof \DateTime ) {
+ $modified = clone $query['modified'];
+ $modified->setTimezone( new \DateTimeZone( 'UTC' ) );
+ $date_string = $modified->format( 'Y-m-d H:i:s' );
+ $comparator = $this->validate_sql_comparator( $query['modified_compare'] );
+ $sql .= " AND a.last_attempt_gmt $comparator %s";
+ $sql_params[] = $date_string;
+ }
+
+ if ( true === $query['claimed'] ) {
+ $sql .= ' AND a.claim_id != 0';
+ } elseif ( false === $query['claimed'] ) {
+ $sql .= ' AND a.claim_id = 0';
+ } elseif ( ! is_null( $query['claimed'] ) ) {
+ $sql .= ' AND a.claim_id = %d';
+ $sql_params[] = $query['claimed'];
+ }
+
+ if ( ! empty( $query['search'] ) ) {
+ $sql .= ' AND (a.hook LIKE %s OR (a.extended_args IS NULL AND a.args LIKE %s) OR a.extended_args LIKE %s';
+ for ( $i = 0; $i < 3; $i++ ) {
+ $sql_params[] = sprintf( '%%%s%%', $query['search'] );
+ }
+
+ $search_claim_id = (int) $query['search'];
+ if ( $search_claim_id ) {
+ $sql .= ' OR a.claim_id = %d';
+ $sql_params[] = $search_claim_id;
+ }
+
+ $sql .= ')';
+ }
+
+ if ( 'select' === $select_or_count ) {
+ if ( 'ASC' === strtoupper( $query['order'] ) ) {
+ $order = 'ASC';
+ } else {
+ $order = 'DESC';
+ }
+ switch ( $query['orderby'] ) {
+ case 'hook':
+ $sql .= " ORDER BY a.hook $order";
+ break;
+ case 'group':
+ $sql .= " ORDER BY g.slug $order";
+ break;
+ case 'modified':
+ $sql .= " ORDER BY a.last_attempt_gmt $order";
+ break;
+ case 'none':
+ break;
+ case 'action_id':
+ $sql .= " ORDER BY a.action_id $order";
+ break;
+ case 'date':
+ default:
+ $sql .= " ORDER BY a.scheduled_date_gmt $order";
+ break;
+ }
+
+ if ( $query['per_page'] > 0 ) {
+ $sql .= ' LIMIT %d, %d';
+ $sql_params[] = $query['offset'];
+ $sql_params[] = $query['per_page'];
+ }
+ }
+
+ if ( ! empty( $sql_params ) ) {
+ $sql = $wpdb->prepare( $sql, $sql_params ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+
+ return $sql;
+ }
+
+ /**
+ * Query for action count or list of action IDs.
+ *
+ * @since 3.3.0 $query['status'] accepts array of statuses instead of a single status.
+ *
+ * @see ActionScheduler_Store::query_actions for $query arg usage.
+ *
+ * @param array $query Query filtering options.
+ * @param string $query_type Whether to select or count the results. Defaults to select.
+ *
+ * @return string|array|null The IDs of actions matching the query. Null on failure.
+ */
+ public function query_actions( $query = array(), $query_type = 'select' ) {
+ /** @var wpdb $wpdb */
+ global $wpdb;
+
+ $sql = $this->get_query_actions_sql( $query, $query_type );
+
+ return ( 'count' === $query_type ) ? $wpdb->get_var( $sql ) : $wpdb->get_col( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoSql, WordPress.DB.DirectDatabaseQuery.NoCaching
+ }
+
+ /**
+ * Get a count of all actions in the store, grouped by status.
+ *
+ * @return array Set of 'status' => int $count pairs for statuses with 1 or more actions of that status.
+ */
+ public function action_counts() {
+ global $wpdb;
+
+ $sql = "SELECT a.status, count(a.status) as 'count'";
+ $sql .= " FROM {$wpdb->actionscheduler_actions} a";
+ $sql .= ' GROUP BY a.status';
+
+ $actions_count_by_status = array();
+ $action_stati_and_labels = $this->get_status_labels();
+
+ foreach ( $wpdb->get_results( $sql ) as $action_data ) { // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ // Ignore any actions with invalid status.
+ if ( array_key_exists( $action_data->status, $action_stati_and_labels ) ) {
+ $actions_count_by_status[ $action_data->status ] = $action_data->count;
+ }
+ }
+
+ return $actions_count_by_status;
+ }
+
+ /**
+ * Cancel an action.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return void
+ * @throws \InvalidArgumentException If the action update failed.
+ */
+ public function cancel_action( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ $updated = $wpdb->update(
+ $wpdb->actionscheduler_actions,
+ array( 'status' => self::STATUS_CANCELED ),
+ array( 'action_id' => $action_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ if ( false === $updated ) {
+ /* translators: %s: action ID */
+ throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) );
+ }
+ do_action( 'action_scheduler_canceled_action', $action_id );
+ }
+
+ /**
+ * Cancel pending actions by hook.
+ *
+ * @since 3.0.0
+ *
+ * @param string $hook Hook name.
+ *
+ * @return void
+ */
+ public function cancel_actions_by_hook( $hook ) {
+ $this->bulk_cancel_actions( array( 'hook' => $hook ) );
+ }
+
+ /**
+ * Cancel pending actions by group.
+ *
+ * @param string $group Group slug.
+ *
+ * @return void
+ */
+ public function cancel_actions_by_group( $group ) {
+ $this->bulk_cancel_actions( array( 'group' => $group ) );
+ }
+
+ /**
+ * Bulk cancel actions.
+ *
+ * @since 3.0.0
+ *
+ * @param array $query_args Query parameters.
+ */
+ protected function bulk_cancel_actions( $query_args ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ if ( ! is_array( $query_args ) ) {
+ return;
+ }
+
+ // Don't cancel actions that are already canceled.
+ if ( isset( $query_args['status'] ) && self::STATUS_CANCELED === $query_args['status'] ) {
+ return;
+ }
+
+ $action_ids = true;
+ $query_args = wp_parse_args(
+ $query_args,
+ array(
+ 'per_page' => 1000,
+ 'status' => self::STATUS_PENDING,
+ 'orderby' => 'none',
+ )
+ );
+
+ while ( $action_ids ) {
+ $action_ids = $this->query_actions( $query_args );
+ if ( empty( $action_ids ) ) {
+ break;
+ }
+
+ $format = array_fill( 0, count( $action_ids ), '%d' );
+ $query_in = '(' . implode( ',', $format ) . ')';
+ $parameters = $action_ids;
+ array_unshift( $parameters, self::STATUS_CANCELED );
+
+ $wpdb->query(
+ $wpdb->prepare(
+ "UPDATE {$wpdb->actionscheduler_actions} SET status = %s WHERE action_id IN {$query_in}", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
+ $parameters
+ )
+ );
+
+ do_action( 'action_scheduler_bulk_cancel_actions', $action_ids );
+ }
+ }
+
+ /**
+ * Delete an action.
+ *
+ * @param int $action_id Action ID.
+ * @throws \InvalidArgumentException If the action deletion failed.
+ */
+ public function delete_action( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $deleted = $wpdb->delete( $wpdb->actionscheduler_actions, array( 'action_id' => $action_id ), array( '%d' ) );
+ if ( empty( $deleted ) ) {
+ throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
+ }
+ do_action( 'action_scheduler_deleted_action', $action_id );
+ }
+
+ /**
+ * Get the schedule date for an action.
+ *
+ * @param string $action_id Action ID.
+ *
+ * @return \DateTime The local date the action is scheduled to run, or the date that it ran.
+ */
+ public function get_date( $action_id ) {
+ $date = $this->get_date_gmt( $action_id );
+ ActionScheduler_TimezoneHelper::set_local_timezone( $date );
+ return $date;
+ }
+
+ /**
+ * Get the GMT schedule date for an action.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @throws \InvalidArgumentException If action cannot be identified.
+ * @return \DateTime The GMT date the action is scheduled to run, or the date that it ran.
+ */
+ protected function get_date_gmt( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $record = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->actionscheduler_actions} WHERE action_id=%d", $action_id ) );
+ if ( empty( $record ) ) {
+ throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
+ }
+ if ( self::STATUS_PENDING === $record->status ) {
+ return as_get_datetime_object( $record->scheduled_date_gmt );
+ } else {
+ return as_get_datetime_object( $record->last_attempt_gmt );
+ }
+ }
+
+ /**
+ * Stake a claim on actions.
+ *
+ * @param int $max_actions Maximum number of action to include in claim.
+ * @param \DateTime $before_date Jobs must be schedule before this date. Defaults to now.
+ * @param array $hooks Hooks to filter for.
+ * @param string $group Group to filter for.
+ *
+ * @return ActionScheduler_ActionClaim
+ */
+ public function stake_claim( $max_actions = 10, \DateTime $before_date = null, $hooks = array(), $group = '' ) {
+ $claim_id = $this->generate_claim_id();
+
+ $this->claim_before_date = $before_date;
+ $this->claim_actions( $claim_id, $max_actions, $before_date, $hooks, $group );
+ $action_ids = $this->find_actions_by_claim_id( $claim_id );
+ $this->claim_before_date = null;
+
+ return new ActionScheduler_ActionClaim( $claim_id, $action_ids );
+ }
+
+ /**
+ * Generate a new action claim.
+ *
+ * @return int Claim ID.
+ */
+ protected function generate_claim_id() {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $now = as_get_datetime_object();
+ $wpdb->insert( $wpdb->actionscheduler_claims, array( 'date_created_gmt' => $now->format( 'Y-m-d H:i:s' ) ) );
+
+ return $wpdb->insert_id;
+ }
+
+ /**
+ * Set a claim filter.
+ *
+ * @param string $filter_name Claim filter name.
+ * @param mixed $filter_values Values to filter.
+ * @return void
+ */
+ public function set_claim_filter( $filter_name, $filter_values ) {
+ if ( isset( $this->claim_filters[ $filter_name ] ) ) {
+ $this->claim_filters[ $filter_name ] = $filter_values;
+ }
+ }
+
+ /**
+ * Get the claim filter value.
+ *
+ * @param string $filter_name Claim filter name.
+ * @return mixed
+ */
+ public function get_claim_filter( $filter_name ) {
+ if ( isset( $this->claim_filters[ $filter_name ] ) ) {
+ return $this->claim_filters[ $filter_name ];
+ }
+
+ return '';
+ }
+
+ /**
+ * Mark actions claimed.
+ *
+ * @param string $claim_id Claim Id.
+ * @param int $limit Number of action to include in claim.
+ * @param \DateTime $before_date Should use UTC timezone.
+ * @param array $hooks Hooks to filter for.
+ * @param string $group Group to filter for.
+ *
+ * @return int The number of actions that were claimed.
+ * @throws \InvalidArgumentException Throws InvalidArgumentException if group doesn't exist.
+ * @throws \RuntimeException Throws RuntimeException if unable to claim action.
+ */
+ protected function claim_actions( $claim_id, $limit, \DateTime $before_date = null, $hooks = array(), $group = '' ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ $now = as_get_datetime_object();
+ $date = is_null( $before_date ) ? $now : clone $before_date;
+ // can't use $wpdb->update() because of the <= condition.
+ $update = "UPDATE {$wpdb->actionscheduler_actions} SET claim_id=%d, last_attempt_gmt=%s, last_attempt_local=%s";
+ $params = array(
+ $claim_id,
+ $now->format( 'Y-m-d H:i:s' ),
+ current_time( 'mysql' ),
+ );
+
+ // Set claim filters.
+ if ( ! empty( $hooks ) ) {
+ $this->set_claim_filter( 'hooks', $hooks );
+ } else {
+ $hooks = $this->get_claim_filter( 'hooks' );
+ }
+ if ( ! empty( $group ) ) {
+ $this->set_claim_filter( 'group', $group );
+ } else {
+ $group = $this->get_claim_filter( 'group' );
+ }
+
+ $where = 'WHERE claim_id = 0 AND scheduled_date_gmt <= %s AND status=%s';
+ $params[] = $date->format( 'Y-m-d H:i:s' );
+ $params[] = self::STATUS_PENDING;
+
+ if ( ! empty( $hooks ) ) {
+ $placeholders = array_fill( 0, count( $hooks ), '%s' );
+ $where .= ' AND hook IN (' . join( ', ', $placeholders ) . ')';
+ $params = array_merge( $params, array_values( $hooks ) );
+ }
+
+ $group_operator = 'IN';
+ if ( empty( $group ) ) {
+ $group = $this->get_claim_filter( 'exclude-groups' );
+ $group_operator = 'NOT IN';
+ }
+
+ if ( ! empty( $group ) ) {
+ $group_ids = $this->get_group_ids( $group, false );
+
+ // throw exception if no matching group(s) found, this matches ActionScheduler_wpPostStore's behaviour.
+ if ( empty( $group_ids ) ) {
+ throw new InvalidArgumentException(
+ sprintf(
+ /* translators: %s: group name(s) */
+ _n(
+ 'The group "%s" does not exist.',
+ 'The groups "%s" do not exist.',
+ is_array( $group ) ? count( $group ) : 1,
+ 'woocommerce'
+ ),
+ $group
+ )
+ );
+ }
+
+ $id_list = implode( ',', array_map( 'intval', $group_ids ) );
+ $where .= " AND group_id {$group_operator} ( $id_list )";
+ }
+
+ /**
+ * Sets the order-by clause used in the action claim query.
+ *
+ * @since 3.4.0
+ *
+ * @param string $order_by_sql
+ */
+ $order = apply_filters( 'action_scheduler_claim_actions_order_by', 'ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC' );
+ $params[] = $limit;
+
+ $sql = $wpdb->prepare( "{$update} {$where} {$order} LIMIT %d", $params ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders
+ $rows_affected = $wpdb->query( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ if ( false === $rows_affected ) {
+ $error = empty( $wpdb->last_error )
+ ? _x( 'unknown', 'database error', 'woocommerce' )
+ : $wpdb->last_error;
+
+ throw new \RuntimeException(
+ sprintf(
+ /* translators: %s database error. */
+ __( 'Unable to claim actions. Database error: %s.', 'woocommerce' ),
+ $error
+ )
+ );
+ }
+
+ return (int) $rows_affected;
+ }
+
+ /**
+ * Get the number of active claims.
+ *
+ * @return int
+ */
+ public function get_claim_count() {
+ global $wpdb;
+
+ $sql = "SELECT COUNT(DISTINCT claim_id) FROM {$wpdb->actionscheduler_actions} WHERE claim_id != 0 AND status IN ( %s, %s)";
+ $sql = $wpdb->prepare( $sql, array( self::STATUS_PENDING, self::STATUS_RUNNING ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+
+ return (int) $wpdb->get_var( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+
+ /**
+ * Return an action's claim ID, as stored in the claim_id column.
+ *
+ * @param string $action_id Action ID.
+ * @return mixed
+ */
+ public function get_claim_id( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ $sql = "SELECT claim_id FROM {$wpdb->actionscheduler_actions} WHERE action_id=%d";
+ $sql = $wpdb->prepare( $sql, $action_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+
+ return (int) $wpdb->get_var( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+
+ /**
+ * Retrieve the action IDs of action in a claim.
+ *
+ * @param int $claim_id Claim ID.
+ * @return int[]
+ */
+ public function find_actions_by_claim_id( $claim_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ $action_ids = array();
+ $before_date = isset( $this->claim_before_date ) ? $this->claim_before_date : as_get_datetime_object();
+ $cut_off = $before_date->format( 'Y-m-d H:i:s' );
+
+ $sql = $wpdb->prepare(
+ "SELECT action_id, scheduled_date_gmt FROM {$wpdb->actionscheduler_actions} WHERE claim_id = %d ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC",
+ $claim_id
+ );
+
+ // Verify that the scheduled date for each action is within the expected bounds (in some unusual
+ // cases, we cannot depend on MySQL to honor all of the WHERE conditions we specify).
+ foreach ( $wpdb->get_results( $sql ) as $claimed_action ) { // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ if ( $claimed_action->scheduled_date_gmt <= $cut_off ) {
+ $action_ids[] = absint( $claimed_action->action_id );
+ }
+ }
+
+ return $action_ids;
+ }
+
+ /**
+ * Release actions from a claim and delete the claim.
+ *
+ * @param ActionScheduler_ActionClaim $claim Claim object.
+ */
+ public function release_claim( ActionScheduler_ActionClaim $claim ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ /**
+ * Deadlock warning: This function modifies actions to release them from claims that have been processed. Earlier, we used to it in a atomic query, i.e. we would update all actions belonging to a particular claim_id with claim_id = 0.
+ * While this was functionally correct, it would cause deadlock, since this update query will hold a lock on the claim_id_.. index on the action table.
+ * This allowed the possibility of a race condition, where the claimer query is also running at the same time, then the claimer query will also try to acquire a lock on the claim_id_.. index, and in this case if claim release query has already progressed to the point of acquiring the lock, but have not updated yet, it would cause a deadlock.
+ *
+ * We resolve this by getting all the actions_id that we want to release claim from in a separate query, and then releasing the claim on each of them. This way, our lock is acquired on the action_id index instead of the claim_id index. Note that the lock on claim_id will still be acquired, but it will only when we actually make the update, rather than when we select the actions.
+ */
+ $action_ids = $wpdb->get_col( $wpdb->prepare( "SELECT action_id FROM {$wpdb->actionscheduler_actions} WHERE claim_id = %d", $claim->get_id() ) );
+
+ $row_updates = 0;
+ if ( count( $action_ids ) > 0 ) {
+ $action_id_string = implode( ',', array_map( 'absint', $action_ids ) );
+ $row_updates = $wpdb->query( "UPDATE {$wpdb->actionscheduler_actions} SET claim_id = 0 WHERE action_id IN ({$action_id_string})" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+
+ $wpdb->delete( $wpdb->actionscheduler_claims, array( 'claim_id' => $claim->get_id() ), array( '%d' ) );
+
+ if ( $row_updates < count( $action_ids ) ) {
+ throw new RuntimeException(
+ sprintf(
+ __( 'Unable to release actions from claim id %d.', 'woocommerce' ),
+ $claim->get_id()
+ )
+ );
+ }
+ }
+
+ /**
+ * Remove the claim from an action.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return void
+ */
+ public function unclaim_action( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $wpdb->update(
+ $wpdb->actionscheduler_actions,
+ array( 'claim_id' => 0 ),
+ array( 'action_id' => $action_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ }
+
+ /**
+ * Mark an action as failed.
+ *
+ * @param int $action_id Action ID.
+ * @throws \InvalidArgumentException Throw an exception if action was not updated.
+ */
+ public function mark_failure( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $updated = $wpdb->update(
+ $wpdb->actionscheduler_actions,
+ array( 'status' => self::STATUS_FAILED ),
+ array( 'action_id' => $action_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ if ( empty( $updated ) ) {
+ throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
+ }
+ }
+
+ /**
+ * Add execution message to action log.
+ *
+ * @throws Exception If the action status cannot be updated to self::STATUS_RUNNING ('in-progress').
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return void
+ */
+ public function log_execution( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+
+ $sql = "UPDATE {$wpdb->actionscheduler_actions} SET attempts = attempts+1, status=%s, last_attempt_gmt = %s, last_attempt_local = %s WHERE action_id = %d";
+ $sql = $wpdb->prepare( $sql, self::STATUS_RUNNING, current_time( 'mysql', true ), current_time( 'mysql' ), $action_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+
+ // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ $status_updated = $wpdb->query( $sql );
+
+ if ( ! $status_updated ) {
+ throw new Exception(
+ sprintf(
+ /* translators: 1: action ID. 2: status slug. */
+ __( 'Unable to update the status of action %1$d to %2$s.', 'woocommerce' ),
+ $action_id,
+ self::STATUS_RUNNING
+ )
+ );
+ }
+ }
+
+ /**
+ * Mark an action as complete.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return void
+ * @throws \InvalidArgumentException Throw an exception if action was not updated.
+ */
+ public function mark_complete( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $updated = $wpdb->update(
+ $wpdb->actionscheduler_actions,
+ array(
+ 'status' => self::STATUS_COMPLETE,
+ 'last_attempt_gmt' => current_time( 'mysql', true ),
+ 'last_attempt_local' => current_time( 'mysql' ),
+ ),
+ array( 'action_id' => $action_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ if ( empty( $updated ) ) {
+ throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
+ }
+
+ /**
+ * Fires after a scheduled action has been completed.
+ *
+ * @since 3.4.2
+ *
+ * @param int $action_id Action ID.
+ */
+ do_action( 'action_scheduler_completed_action', $action_id );
+ }
+
+ /**
+ * Get an action's status.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return string
+ * @throws \InvalidArgumentException Throw an exception if not status was found for action_id.
+ * @throws \RuntimeException Throw an exception if action status could not be retrieved.
+ */
+ public function get_status( $action_id ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $sql = "SELECT status FROM {$wpdb->actionscheduler_actions} WHERE action_id=%d";
+ $sql = $wpdb->prepare( $sql, $action_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ $status = $wpdb->get_var( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+
+ if ( null === $status ) {
+ throw new \InvalidArgumentException( __( 'Invalid action ID. No status found.', 'woocommerce' ) );
+ } elseif ( empty( $status ) ) {
+ throw new \RuntimeException( __( 'Unknown status found for action.', 'woocommerce' ) );
+ } else {
+ return $status;
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php
new file mode 100644
index 00000000..36779d47
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php
@@ -0,0 +1,427 @@
+demarkation_id = (int) get_option( self::DEMARKATION_OPTION, 0 );
+ if ( empty( $config ) ) {
+ $config = Controller::instance()->get_migration_config_object();
+ }
+ $this->primary_store = $config->get_destination_store();
+ $this->secondary_store = $config->get_source_store();
+ $this->migration_runner = new Runner( $config );
+ }
+
+ /**
+ * Initialize the table data store tables.
+ *
+ * @codeCoverageIgnore
+ */
+ public function init() {
+ add_action( 'action_scheduler/created_table', [ $this, 'set_autoincrement' ], 10, 2 );
+ $this->primary_store->init();
+ $this->secondary_store->init();
+ remove_action( 'action_scheduler/created_table', [ $this, 'set_autoincrement' ], 10 );
+ }
+
+ /**
+ * When the actions table is created, set its autoincrement
+ * value to be one higher than the posts table to ensure that
+ * there are no ID collisions.
+ *
+ * @param string $table_name
+ * @param string $table_suffix
+ *
+ * @return void
+ * @codeCoverageIgnore
+ */
+ public function set_autoincrement( $table_name, $table_suffix ) {
+ if ( ActionScheduler_StoreSchema::ACTIONS_TABLE === $table_suffix ) {
+ if ( empty( $this->demarkation_id ) ) {
+ $this->demarkation_id = $this->set_demarkation_id();
+ }
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ /**
+ * A default date of '0000-00-00 00:00:00' is invalid in MySQL 5.7 when configured with
+ * sql_mode including both STRICT_TRANS_TABLES and NO_ZERO_DATE.
+ */
+ $default_date = new DateTime( 'tomorrow' );
+ $null_action = new ActionScheduler_NullAction();
+ $date_gmt = $this->get_scheduled_date_string( $null_action, $default_date );
+ $date_local = $this->get_scheduled_date_string_local( $null_action, $default_date );
+
+ $row_count = $wpdb->insert(
+ $wpdb->{ActionScheduler_StoreSchema::ACTIONS_TABLE},
+ [
+ 'action_id' => $this->demarkation_id,
+ 'hook' => '',
+ 'status' => '',
+ 'scheduled_date_gmt' => $date_gmt,
+ 'scheduled_date_local' => $date_local,
+ 'last_attempt_gmt' => $date_gmt,
+ 'last_attempt_local' => $date_local,
+ ]
+ );
+ if ( $row_count > 0 ) {
+ $wpdb->delete(
+ $wpdb->{ActionScheduler_StoreSchema::ACTIONS_TABLE},
+ [ 'action_id' => $this->demarkation_id ]
+ );
+ }
+ }
+ }
+
+ /**
+ * Store the demarkation id in WP options.
+ *
+ * @param int $id The ID to set as the demarkation point between the two stores
+ * Leave null to use the next ID from the WP posts table.
+ *
+ * @return int The new ID.
+ *
+ * @codeCoverageIgnore
+ */
+ private function set_demarkation_id( $id = null ) {
+ if ( empty( $id ) ) {
+ /** @var \wpdb $wpdb */
+ global $wpdb;
+ $id = (int) $wpdb->get_var( "SELECT MAX(ID) FROM $wpdb->posts" );
+ $id ++;
+ }
+ update_option( self::DEMARKATION_OPTION, $id );
+
+ return $id;
+ }
+
+ /**
+ * Find the first matching action from the secondary store.
+ * If it exists, migrate it to the primary store immediately.
+ * After it migrates, the secondary store will logically contain
+ * the next matching action, so return the result thence.
+ *
+ * @param string $hook
+ * @param array $params
+ *
+ * @return string
+ */
+ public function find_action( $hook, $params = [] ) {
+ $found_unmigrated_action = $this->secondary_store->find_action( $hook, $params );
+ if ( ! empty( $found_unmigrated_action ) ) {
+ $this->migrate( [ $found_unmigrated_action ] );
+ }
+
+ return $this->primary_store->find_action( $hook, $params );
+ }
+
+ /**
+ * Find actions matching the query in the secondary source first.
+ * If any are found, migrate them immediately. Then the secondary
+ * store will contain the canonical results.
+ *
+ * @param array $query
+ * @param string $query_type Whether to select or count the results. Default, select.
+ *
+ * @return int[]
+ */
+ public function query_actions( $query = [], $query_type = 'select' ) {
+ $found_unmigrated_actions = $this->secondary_store->query_actions( $query, 'select' );
+ if ( ! empty( $found_unmigrated_actions ) ) {
+ $this->migrate( $found_unmigrated_actions );
+ }
+
+ return $this->primary_store->query_actions( $query, $query_type );
+ }
+
+ /**
+ * Get a count of all actions in the store, grouped by status
+ *
+ * @return array Set of 'status' => int $count pairs for statuses with 1 or more actions of that status.
+ */
+ public function action_counts() {
+ $unmigrated_actions_count = $this->secondary_store->action_counts();
+ $migrated_actions_count = $this->primary_store->action_counts();
+ $actions_count_by_status = array();
+
+ foreach ( $this->get_status_labels() as $status_key => $status_label ) {
+
+ $count = 0;
+
+ if ( isset( $unmigrated_actions_count[ $status_key ] ) ) {
+ $count += $unmigrated_actions_count[ $status_key ];
+ }
+
+ if ( isset( $migrated_actions_count[ $status_key ] ) ) {
+ $count += $migrated_actions_count[ $status_key ];
+ }
+
+ $actions_count_by_status[ $status_key ] = $count;
+ }
+
+ $actions_count_by_status = array_filter( $actions_count_by_status );
+
+ return $actions_count_by_status;
+ }
+
+ /**
+ * If any actions would have been claimed by the secondary store,
+ * migrate them immediately, then ask the primary store for the
+ * canonical claim.
+ *
+ * @param int $max_actions
+ * @param DateTime|null $before_date
+ *
+ * @return ActionScheduler_ActionClaim
+ */
+ public function stake_claim( $max_actions = 10, DateTime $before_date = null, $hooks = array(), $group = '' ) {
+ $claim = $this->secondary_store->stake_claim( $max_actions, $before_date, $hooks, $group );
+
+ $claimed_actions = $claim->get_actions();
+ if ( ! empty( $claimed_actions ) ) {
+ $this->migrate( $claimed_actions );
+ }
+
+ $this->secondary_store->release_claim( $claim );
+
+ return $this->primary_store->stake_claim( $max_actions, $before_date, $hooks, $group );
+ }
+
+ /**
+ * Migrate a list of actions to the table data store.
+ *
+ * @param array $action_ids List of action IDs.
+ */
+ private function migrate( $action_ids ) {
+ $this->migration_runner->migrate_actions( $action_ids );
+ }
+
+ /**
+ * Save an action to the primary store.
+ *
+ * @param ActionScheduler_Action $action Action object to be saved.
+ * @param DateTime $date Optional. Schedule date. Default null.
+ *
+ * @return int The action ID
+ */
+ public function save_action( ActionScheduler_Action $action, DateTime $date = null ) {
+ return $this->primary_store->save_action( $action, $date );
+ }
+
+ /**
+ * Retrieve an existing action whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function fetch_action( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id, true );
+ if ( $store ) {
+ return $store->fetch_action( $action_id );
+ } else {
+ return new ActionScheduler_NullAction();
+ }
+ }
+
+ /**
+ * Cancel an existing action whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function cancel_action( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ $store->cancel_action( $action_id );
+ }
+ }
+
+ /**
+ * Delete an existing action whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function delete_action( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ $store->delete_action( $action_id );
+ }
+ }
+
+ /**
+ * Get the schedule date an existing action whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function get_date( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ return $store->get_date( $action_id );
+ } else {
+ return null;
+ }
+ }
+
+ /**
+ * Mark an existing action as failed whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function mark_failure( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ $store->mark_failure( $action_id );
+ }
+ }
+
+ /**
+ * Log the execution of an existing action whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function log_execution( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ $store->log_execution( $action_id );
+ }
+ }
+
+ /**
+ * Mark an existing action complete whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function mark_complete( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ $store->mark_complete( $action_id );
+ }
+ }
+
+ /**
+ * Get an existing action status whether migrated or not.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function get_status( $action_id ) {
+ $store = $this->get_store_from_action_id( $action_id );
+ if ( $store ) {
+ return $store->get_status( $action_id );
+ }
+ return null;
+ }
+
+ /**
+ * Return which store an action is stored in.
+ *
+ * @param int $action_id ID of the action.
+ * @param bool $primary_first Optional flag indicating search the primary store first.
+ * @return ActionScheduler_Store
+ */
+ protected function get_store_from_action_id( $action_id, $primary_first = false ) {
+ if ( $primary_first ) {
+ $stores = [
+ $this->primary_store,
+ $this->secondary_store,
+ ];
+ } elseif ( $action_id < $this->demarkation_id ) {
+ $stores = [
+ $this->secondary_store,
+ $this->primary_store,
+ ];
+ } else {
+ $stores = [
+ $this->primary_store,
+ ];
+ }
+
+ foreach ( $stores as $store ) {
+ $action = $store->fetch_action( $action_id );
+ if ( ! is_a( $action, 'ActionScheduler_NullAction' ) ) {
+ return $store;
+ }
+ }
+ return null;
+ }
+
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * All claim-related functions should operate solely
+ * on the primary store.
+ * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+ /**
+ * Get the claim count from the table data store.
+ */
+ public function get_claim_count() {
+ return $this->primary_store->get_claim_count();
+ }
+
+ /**
+ * Retrieve the claim ID for an action from the table data store.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function get_claim_id( $action_id ) {
+ return $this->primary_store->get_claim_id( $action_id );
+ }
+
+ /**
+ * Release a claim in the table data store.
+ *
+ * @param ActionScheduler_ActionClaim $claim Claim object.
+ */
+ public function release_claim( ActionScheduler_ActionClaim $claim ) {
+ $this->primary_store->release_claim( $claim );
+ }
+
+ /**
+ * Release claims on an action in the table data store.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function unclaim_action( $action_id ) {
+ $this->primary_store->unclaim_action( $action_id );
+ }
+
+ /**
+ * Retrieve a list of action IDs by claim.
+ *
+ * @param int $claim_id Claim ID.
+ */
+ public function find_actions_by_claim_id( $claim_id ) {
+ return $this->primary_store->find_actions_by_claim_id( $claim_id );
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php
new file mode 100644
index 00000000..edbca31d
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php
@@ -0,0 +1,241 @@
+create_wp_comment( $action_id, $message, $date );
+ return $comment_id;
+ }
+
+ protected function create_wp_comment( $action_id, $message, DateTime $date ) {
+
+ $comment_date_gmt = $date->format('Y-m-d H:i:s');
+ ActionScheduler_TimezoneHelper::set_local_timezone( $date );
+ $comment_data = array(
+ 'comment_post_ID' => $action_id,
+ 'comment_date' => $date->format('Y-m-d H:i:s'),
+ 'comment_date_gmt' => $comment_date_gmt,
+ 'comment_author' => self::AGENT,
+ 'comment_content' => $message,
+ 'comment_agent' => self::AGENT,
+ 'comment_type' => self::TYPE,
+ );
+ return wp_insert_comment($comment_data);
+ }
+
+ /**
+ * @param string $entry_id
+ *
+ * @return ActionScheduler_LogEntry
+ */
+ public function get_entry( $entry_id ) {
+ $comment = $this->get_comment( $entry_id );
+ if ( empty($comment) || $comment->comment_type != self::TYPE ) {
+ return new ActionScheduler_NullLogEntry();
+ }
+
+ $date = as_get_datetime_object( $comment->comment_date_gmt );
+ ActionScheduler_TimezoneHelper::set_local_timezone( $date );
+ return new ActionScheduler_LogEntry( $comment->comment_post_ID, $comment->comment_content, $date );
+ }
+
+ /**
+ * @param string $action_id
+ *
+ * @return ActionScheduler_LogEntry[]
+ */
+ public function get_logs( $action_id ) {
+ $status = 'all';
+ if ( get_post_status($action_id) == 'trash' ) {
+ $status = 'post-trashed';
+ }
+ $comments = get_comments(array(
+ 'post_id' => $action_id,
+ 'orderby' => 'comment_date_gmt',
+ 'order' => 'ASC',
+ 'type' => self::TYPE,
+ 'status' => $status,
+ ));
+ $logs = array();
+ foreach ( $comments as $c ) {
+ $entry = $this->get_entry( $c );
+ if ( !empty($entry) ) {
+ $logs[] = $entry;
+ }
+ }
+ return $logs;
+ }
+
+ protected function get_comment( $comment_id ) {
+ return get_comment( $comment_id );
+ }
+
+
+
+ /**
+ * @param WP_Comment_Query $query
+ */
+ public function filter_comment_queries( $query ) {
+ foreach ( array('ID', 'parent', 'post_author', 'post_name', 'post_parent', 'type', 'post_type', 'post_id', 'post_ID') as $key ) {
+ if ( !empty($query->query_vars[$key]) ) {
+ return; // don't slow down queries that wouldn't include action_log comments anyway
+ }
+ }
+ $query->query_vars['action_log_filter'] = TRUE;
+ add_filter( 'comments_clauses', array( $this, 'filter_comment_query_clauses' ), 10, 2 );
+ }
+
+ /**
+ * @param array $clauses
+ * @param WP_Comment_Query $query
+ *
+ * @return array
+ */
+ public function filter_comment_query_clauses( $clauses, $query ) {
+ if ( !empty($query->query_vars['action_log_filter']) ) {
+ $clauses['where'] .= $this->get_where_clause();
+ }
+ return $clauses;
+ }
+
+ /**
+ * Make sure Action Scheduler logs are excluded from comment feeds, which use WP_Query, not
+ * the WP_Comment_Query class handled by @see self::filter_comment_queries().
+ *
+ * @param string $where
+ * @param WP_Query $query
+ *
+ * @return string
+ */
+ public function filter_comment_feed( $where, $query ) {
+ if ( is_comment_feed() ) {
+ $where .= $this->get_where_clause();
+ }
+ return $where;
+ }
+
+ /**
+ * Return a SQL clause to exclude Action Scheduler comments.
+ *
+ * @return string
+ */
+ protected function get_where_clause() {
+ global $wpdb;
+ return sprintf( " AND {$wpdb->comments}.comment_type != '%s'", self::TYPE );
+ }
+
+ /**
+ * Remove action log entries from wp_count_comments()
+ *
+ * @param array $stats
+ * @param int $post_id
+ *
+ * @return object
+ */
+ public function filter_comment_count( $stats, $post_id ) {
+ global $wpdb;
+
+ if ( 0 === $post_id ) {
+ $stats = $this->get_comment_count();
+ }
+
+ return $stats;
+ }
+
+ /**
+ * Retrieve the comment counts from our cache, or the database if the cached version isn't set.
+ *
+ * @return object
+ */
+ protected function get_comment_count() {
+ global $wpdb;
+
+ $stats = get_transient( 'as_comment_count' );
+
+ if ( ! $stats ) {
+ $stats = array();
+
+ $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} WHERE comment_type NOT IN('order_note','action_log') GROUP BY comment_approved", ARRAY_A );
+
+ $total = 0;
+ $stats = array();
+ $approved = array( '0' => 'moderated', '1' => 'approved', 'spam' => 'spam', 'trash' => 'trash', 'post-trashed' => 'post-trashed' );
+
+ foreach ( (array) $count as $row ) {
+ // Don't count post-trashed toward totals
+ if ( 'post-trashed' != $row['comment_approved'] && 'trash' != $row['comment_approved'] ) {
+ $total += $row['num_comments'];
+ }
+ if ( isset( $approved[ $row['comment_approved'] ] ) ) {
+ $stats[ $approved[ $row['comment_approved'] ] ] = $row['num_comments'];
+ }
+ }
+
+ $stats['total_comments'] = $total;
+ $stats['all'] = $total;
+
+ foreach ( $approved as $key ) {
+ if ( empty( $stats[ $key ] ) ) {
+ $stats[ $key ] = 0;
+ }
+ }
+
+ $stats = (object) $stats;
+ set_transient( 'as_comment_count', $stats );
+ }
+
+ return $stats;
+ }
+
+ /**
+ * Delete comment count cache whenever there is new comment or the status of a comment changes. Cache
+ * will be regenerated next time ActionScheduler_wpCommentLogger::filter_comment_count() is called.
+ */
+ public function delete_comment_count_cache() {
+ delete_transient( 'as_comment_count' );
+ }
+
+ /**
+ * @codeCoverageIgnore
+ */
+ public function init() {
+ add_action( 'action_scheduler_before_process_queue', array( $this, 'disable_comment_counting' ), 10, 0 );
+ add_action( 'action_scheduler_after_process_queue', array( $this, 'enable_comment_counting' ), 10, 0 );
+
+ parent::init();
+
+ add_action( 'pre_get_comments', array( $this, 'filter_comment_queries' ), 10, 1 );
+ add_action( 'wp_count_comments', array( $this, 'filter_comment_count' ), 20, 2 ); // run after WC_Comments::wp_count_comments() to make sure we exclude order notes and action logs
+ add_action( 'comment_feed_where', array( $this, 'filter_comment_feed' ), 10, 2 );
+
+ // Delete comments count cache whenever there is a new comment or a comment status changes
+ add_action( 'wp_insert_comment', array( $this, 'delete_comment_count_cache' ) );
+ add_action( 'wp_set_comment_status', array( $this, 'delete_comment_count_cache' ) );
+ }
+
+ public function disable_comment_counting() {
+ wp_defer_comment_counting(true);
+ }
+ public function enable_comment_counting() {
+ wp_defer_comment_counting(false);
+ }
+
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php
new file mode 100644
index 00000000..d8ab9a35
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php
@@ -0,0 +1,1089 @@
+validate_action( $action );
+ $post_array = $this->create_post_array( $action, $scheduled_date );
+ $post_id = $this->save_post_array( $post_array );
+ $this->save_post_schedule( $post_id, $action->get_schedule() );
+ $this->save_action_group( $post_id, $action->get_group() );
+ do_action( 'action_scheduler_stored_action', $post_id );
+ return $post_id;
+ } catch ( Exception $e ) {
+ /* translators: %s: action error message */
+ throw new RuntimeException( sprintf( __( 'Error saving action: %s', 'woocommerce' ), $e->getMessage() ), 0 );
+ }
+ }
+
+ /**
+ * Create post array.
+ *
+ * @param ActionScheduler_Action $action Scheduled Action.
+ * @param DateTime $scheduled_date Scheduled Date.
+ *
+ * @return array Returns an array of post data.
+ */
+ protected function create_post_array( ActionScheduler_Action $action, DateTime $scheduled_date = null ) {
+ $post = array(
+ 'post_type' => self::POST_TYPE,
+ 'post_title' => $action->get_hook(),
+ 'post_content' => wp_json_encode( $action->get_args() ),
+ 'post_status' => ( $action->is_finished() ? 'publish' : 'pending' ),
+ 'post_date_gmt' => $this->get_scheduled_date_string( $action, $scheduled_date ),
+ 'post_date' => $this->get_scheduled_date_string_local( $action, $scheduled_date ),
+ );
+ return $post;
+ }
+
+ /**
+ * Save post array.
+ *
+ * @param array $post_array Post array.
+ * @return int Returns the post ID.
+ * @throws RuntimeException Throws an exception if the action could not be saved.
+ */
+ protected function save_post_array( $post_array ) {
+ add_filter( 'wp_insert_post_data', array( $this, 'filter_insert_post_data' ), 10, 1 );
+ add_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10, 5 );
+
+ $has_kses = false !== has_filter( 'content_save_pre', 'wp_filter_post_kses' );
+
+ if ( $has_kses ) {
+ // Prevent KSES from corrupting JSON in post_content.
+ kses_remove_filters();
+ }
+
+ $post_id = wp_insert_post( $post_array );
+
+ if ( $has_kses ) {
+ kses_init_filters();
+ }
+
+ remove_filter( 'wp_insert_post_data', array( $this, 'filter_insert_post_data' ), 10 );
+ remove_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10 );
+
+ if ( is_wp_error( $post_id ) || empty( $post_id ) ) {
+ throw new RuntimeException( __( 'Unable to save action.', 'woocommerce' ) );
+ }
+ return $post_id;
+ }
+
+ /**
+ * Filter insert post data.
+ *
+ * @param array $postdata Post data to filter.
+ *
+ * @return array
+ */
+ public function filter_insert_post_data( $postdata ) {
+ if ( self::POST_TYPE === $postdata['post_type'] ) {
+ $postdata['post_author'] = 0;
+ if ( 'future' === $postdata['post_status'] ) {
+ $postdata['post_status'] = 'publish';
+ }
+ }
+ return $postdata;
+ }
+
+ /**
+ * Create a (probably unique) post name for scheduled actions in a more performant manner than wp_unique_post_slug().
+ *
+ * When an action's post status is transitioned to something other than 'draft', 'pending' or 'auto-draft, like 'publish'
+ * or 'failed' or 'trash', WordPress will find a unique slug (stored in post_name column) using the wp_unique_post_slug()
+ * function. This is done to ensure URL uniqueness. The approach taken by wp_unique_post_slug() is to iterate over existing
+ * post_name values that match, and append a number 1 greater than the largest. This makes sense when manually creating a
+ * post from the Edit Post screen. It becomes a bottleneck when automatically processing thousands of actions, with a
+ * database containing thousands of related post_name values.
+ *
+ * WordPress 5.1 introduces the 'pre_wp_unique_post_slug' filter for plugins to address this issue.
+ *
+ * We can short-circuit WordPress's wp_unique_post_slug() approach using the 'pre_wp_unique_post_slug' filter. This
+ * method is available to be used as a callback on that filter. It provides a more scalable approach to generating a
+ * post_name/slug that is probably unique. Because Action Scheduler never actually uses the post_name field, or an
+ * action's slug, being probably unique is good enough.
+ *
+ * For more backstory on this issue, see:
+ * - https://github.com/woocommerce/action-scheduler/issues/44 and
+ * - https://core.trac.wordpress.org/ticket/21112
+ *
+ * @param string $override_slug Short-circuit return value.
+ * @param string $slug The desired slug (post_name).
+ * @param int $post_ID Post ID.
+ * @param string $post_status The post status.
+ * @param string $post_type Post type.
+ * @return string
+ */
+ public function set_unique_post_slug( $override_slug, $slug, $post_ID, $post_status, $post_type ) {
+ if ( self::POST_TYPE === $post_type ) {
+ $override_slug = uniqid( self::POST_TYPE . '-', true ) . '-' . wp_generate_password( 32, false );
+ }
+ return $override_slug;
+ }
+
+ /**
+ * Save post schedule.
+ *
+ * @param int $post_id Post ID of the scheduled action.
+ * @param string $schedule Schedule to save.
+ *
+ * @return void
+ */
+ protected function save_post_schedule( $post_id, $schedule ) {
+ update_post_meta( $post_id, self::SCHEDULE_META_KEY, $schedule );
+ }
+
+ /**
+ * Save action group.
+ *
+ * @param int $post_id Post ID.
+ * @param string $group Group to save.
+ * @return void
+ */
+ protected function save_action_group( $post_id, $group ) {
+ if ( empty( $group ) ) {
+ wp_set_object_terms( $post_id, array(), self::GROUP_TAXONOMY, false );
+ } else {
+ wp_set_object_terms( $post_id, array( $group ), self::GROUP_TAXONOMY, false );
+ }
+ }
+
+ /**
+ * Fetch actions.
+ *
+ * @param int $action_id Action ID.
+ * @return object
+ */
+ public function fetch_action( $action_id ) {
+ $post = $this->get_post( $action_id );
+ if ( empty( $post ) || self::POST_TYPE !== $post->post_type ) {
+ return $this->get_null_action();
+ }
+
+ try {
+ $action = $this->make_action_from_post( $post );
+ } catch ( ActionScheduler_InvalidActionException $exception ) {
+ do_action( 'action_scheduler_failed_fetch_action', $post->ID, $exception );
+ return $this->get_null_action();
+ }
+
+ return $action;
+ }
+
+ /**
+ * Get post.
+ *
+ * @param string $action_id - Action ID.
+ * @return WP_Post|null
+ */
+ protected function get_post( $action_id ) {
+ if ( empty( $action_id ) ) {
+ return null;
+ }
+ return get_post( $action_id );
+ }
+
+ /**
+ * Get NULL action.
+ *
+ * @return ActionScheduler_NullAction
+ */
+ protected function get_null_action() {
+ return new ActionScheduler_NullAction();
+ }
+
+ /**
+ * Make action from post.
+ *
+ * @param WP_Post $post Post object.
+ * @return WP_Post
+ */
+ protected function make_action_from_post( $post ) {
+ $hook = $post->post_title;
+
+ $args = json_decode( $post->post_content, true );
+ $this->validate_args( $args, $post->ID );
+
+ $schedule = get_post_meta( $post->ID, self::SCHEDULE_META_KEY, true );
+ $this->validate_schedule( $schedule, $post->ID );
+
+ $group = wp_get_object_terms( $post->ID, self::GROUP_TAXONOMY, array( 'fields' => 'names' ) );
+ $group = empty( $group ) ? '' : reset( $group );
+
+ return ActionScheduler::factory()->get_stored_action( $this->get_action_status_by_post_status( $post->post_status ), $hook, $args, $schedule, $group );
+ }
+
+ /**
+ * Get action status by post status.
+ *
+ * @param string $post_status Post status.
+ *
+ * @throws InvalidArgumentException Throw InvalidArgumentException if $post_status not in known status fields returned by $this->get_status_labels().
+ * @return string
+ */
+ protected function get_action_status_by_post_status( $post_status ) {
+
+ switch ( $post_status ) {
+ case 'publish':
+ $action_status = self::STATUS_COMPLETE;
+ break;
+ case 'trash':
+ $action_status = self::STATUS_CANCELED;
+ break;
+ default:
+ if ( ! array_key_exists( $post_status, $this->get_status_labels() ) ) {
+ throw new InvalidArgumentException( sprintf( 'Invalid post status: "%s". No matching action status available.', $post_status ) );
+ }
+ $action_status = $post_status;
+ break;
+ }
+
+ return $action_status;
+ }
+
+ /**
+ * Get post status by action status.
+ *
+ * @param string $action_status Action status.
+ *
+ * @throws InvalidArgumentException Throws InvalidArgumentException if $post_status not in known status fields returned by $this->get_status_labels().
+ * @return string
+ */
+ protected function get_post_status_by_action_status( $action_status ) {
+
+ switch ( $action_status ) {
+ case self::STATUS_COMPLETE:
+ $post_status = 'publish';
+ break;
+ case self::STATUS_CANCELED:
+ $post_status = 'trash';
+ break;
+ default:
+ if ( ! array_key_exists( $action_status, $this->get_status_labels() ) ) {
+ throw new InvalidArgumentException( sprintf( 'Invalid action status: "%s".', $action_status ) );
+ }
+ $post_status = $action_status;
+ break;
+ }
+
+ return $post_status;
+ }
+
+ /**
+ * Returns the SQL statement to query (or count) actions.
+ *
+ * @param array $query - Filtering options.
+ * @param string $select_or_count - Whether the SQL should select and return the IDs or just the row count.
+ *
+ * @throws InvalidArgumentException - Throw InvalidArgumentException if $select_or_count not count or select.
+ * @return string SQL statement. The returned SQL is already properly escaped.
+ */
+ protected function get_query_actions_sql( array $query, $select_or_count = 'select' ) {
+
+ if ( ! in_array( $select_or_count, array( 'select', 'count' ), true ) ) {
+ throw new InvalidArgumentException( __( 'Invalid schedule. Cannot save action.', 'woocommerce' ) );
+ }
+
+ $query = wp_parse_args(
+ $query,
+ array(
+ 'hook' => '',
+ 'args' => null,
+ 'date' => null,
+ 'date_compare' => '<=',
+ 'modified' => null,
+ 'modified_compare' => '<=',
+ 'group' => '',
+ 'status' => '',
+ 'claimed' => null,
+ 'per_page' => 5,
+ 'offset' => 0,
+ 'orderby' => 'date',
+ 'order' => 'ASC',
+ 'search' => '',
+ )
+ );
+
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+ $sql = ( 'count' === $select_or_count ) ? 'SELECT count(p.ID)' : 'SELECT p.ID ';
+ $sql .= "FROM {$wpdb->posts} p";
+ $sql_params = array();
+ if ( empty( $query['group'] ) && 'group' === $query['orderby'] ) {
+ $sql .= " LEFT JOIN {$wpdb->term_relationships} tr ON tr.object_id=p.ID";
+ $sql .= " LEFT JOIN {$wpdb->term_taxonomy} tt ON tr.term_taxonomy_id=tt.term_taxonomy_id";
+ $sql .= " LEFT JOIN {$wpdb->terms} t ON tt.term_id=t.term_id";
+ } elseif ( ! empty( $query['group'] ) ) {
+ $sql .= " INNER JOIN {$wpdb->term_relationships} tr ON tr.object_id=p.ID";
+ $sql .= " INNER JOIN {$wpdb->term_taxonomy} tt ON tr.term_taxonomy_id=tt.term_taxonomy_id";
+ $sql .= " INNER JOIN {$wpdb->terms} t ON tt.term_id=t.term_id";
+ $sql .= ' AND t.slug=%s';
+ $sql_params[] = $query['group'];
+ }
+ $sql .= ' WHERE post_type=%s';
+ $sql_params[] = self::POST_TYPE;
+ if ( $query['hook'] ) {
+ $sql .= ' AND p.post_title=%s';
+ $sql_params[] = $query['hook'];
+ }
+ if ( ! is_null( $query['args'] ) ) {
+ $sql .= ' AND p.post_content=%s';
+ $sql_params[] = wp_json_encode( $query['args'] );
+ }
+
+ if ( $query['status'] ) {
+ $post_statuses = array_map( array( $this, 'get_post_status_by_action_status' ), (array) $query['status'] );
+ $placeholders = array_fill( 0, count( $post_statuses ), '%s' );
+ $sql .= ' AND p.post_status IN (' . join( ', ', $placeholders ) . ')';
+ $sql_params = array_merge( $sql_params, array_values( $post_statuses ) );
+ }
+
+ if ( $query['date'] instanceof DateTime ) {
+ $date = clone $query['date'];
+ $date->setTimezone( new DateTimeZone( 'UTC' ) );
+ $date_string = $date->format( 'Y-m-d H:i:s' );
+ $comparator = $this->validate_sql_comparator( $query['date_compare'] );
+ $sql .= " AND p.post_date_gmt $comparator %s";
+ $sql_params[] = $date_string;
+ }
+
+ if ( $query['modified'] instanceof DateTime ) {
+ $modified = clone $query['modified'];
+ $modified->setTimezone( new DateTimeZone( 'UTC' ) );
+ $date_string = $modified->format( 'Y-m-d H:i:s' );
+ $comparator = $this->validate_sql_comparator( $query['modified_compare'] );
+ $sql .= " AND p.post_modified_gmt $comparator %s";
+ $sql_params[] = $date_string;
+ }
+
+ if ( true === $query['claimed'] ) {
+ $sql .= " AND p.post_password != ''";
+ } elseif ( false === $query['claimed'] ) {
+ $sql .= " AND p.post_password = ''";
+ } elseif ( ! is_null( $query['claimed'] ) ) {
+ $sql .= ' AND p.post_password = %s';
+ $sql_params[] = $query['claimed'];
+ }
+
+ if ( ! empty( $query['search'] ) ) {
+ $sql .= ' AND (p.post_title LIKE %s OR p.post_content LIKE %s OR p.post_password LIKE %s)';
+ for ( $i = 0; $i < 3; $i++ ) {
+ $sql_params[] = sprintf( '%%%s%%', $query['search'] );
+ }
+ }
+
+ if ( 'select' === $select_or_count ) {
+ switch ( $query['orderby'] ) {
+ case 'hook':
+ $orderby = 'p.post_title';
+ break;
+ case 'group':
+ $orderby = 't.name';
+ break;
+ case 'status':
+ $orderby = 'p.post_status';
+ break;
+ case 'modified':
+ $orderby = 'p.post_modified';
+ break;
+ case 'claim_id':
+ $orderby = 'p.post_password';
+ break;
+ case 'schedule':
+ case 'date':
+ default:
+ $orderby = 'p.post_date_gmt';
+ break;
+ }
+ if ( 'ASC' === strtoupper( $query['order'] ) ) {
+ $order = 'ASC';
+ } else {
+ $order = 'DESC';
+ }
+ $sql .= " ORDER BY $orderby $order";
+ if ( $query['per_page'] > 0 ) {
+ $sql .= ' LIMIT %d, %d';
+ $sql_params[] = $query['offset'];
+ $sql_params[] = $query['per_page'];
+ }
+ }
+
+ return $wpdb->prepare( $sql, $sql_params ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+
+ /**
+ * Query for action count or list of action IDs.
+ *
+ * @since 3.3.0 $query['status'] accepts array of statuses instead of a single status.
+ *
+ * @see ActionScheduler_Store::query_actions for $query arg usage.
+ *
+ * @param array $query Query filtering options.
+ * @param string $query_type Whether to select or count the results. Defaults to select.
+ *
+ * @return string|array|null The IDs of actions matching the query. Null on failure.
+ */
+ public function query_actions( $query = array(), $query_type = 'select' ) {
+ /**
+ * Global $wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ $sql = $this->get_query_actions_sql( $query, $query_type );
+
+ return ( 'count' === $query_type ) ? $wpdb->get_var( $sql ) : $wpdb->get_col( $sql ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared
+ }
+
+ /**
+ * Get a count of all actions in the store, grouped by status
+ *
+ * @return array
+ */
+ public function action_counts() {
+
+ $action_counts_by_status = array();
+ $action_stati_and_labels = $this->get_status_labels();
+ $posts_count_by_status = (array) wp_count_posts( self::POST_TYPE, 'readable' );
+
+ foreach ( $posts_count_by_status as $post_status_name => $count ) {
+
+ try {
+ $action_status_name = $this->get_action_status_by_post_status( $post_status_name );
+ } catch ( Exception $e ) {
+ // Ignore any post statuses that aren't for actions.
+ continue;
+ }
+ if ( array_key_exists( $action_status_name, $action_stati_and_labels ) ) {
+ $action_counts_by_status[ $action_status_name ] = $count;
+ }
+ }
+
+ return $action_counts_by_status;
+ }
+
+ /**
+ * Cancel action.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @throws InvalidArgumentException If $action_id is not identified.
+ */
+ public function cancel_action( $action_id ) {
+ $post = get_post( $action_id );
+ if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) {
+ /* translators: %s is the action ID */
+ throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) );
+ }
+ do_action( 'action_scheduler_canceled_action', $action_id );
+ add_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10, 5 );
+ wp_trash_post( $action_id );
+ remove_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10 );
+ }
+
+ /**
+ * Delete action.
+ *
+ * @param int $action_id Action ID.
+ * @return void
+ * @throws InvalidArgumentException If action is not identified.
+ */
+ public function delete_action( $action_id ) {
+ $post = get_post( $action_id );
+ if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) {
+ /* translators: %s is the action ID */
+ throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) );
+ }
+ do_action( 'action_scheduler_deleted_action', $action_id );
+
+ wp_delete_post( $action_id, true );
+ }
+
+ /**
+ * Get date for claim id.
+ *
+ * @param int $action_id Action ID.
+ * @return ActionScheduler_DateTime The date the action is schedule to run, or the date that it ran.
+ */
+ public function get_date( $action_id ) {
+ $next = $this->get_date_gmt( $action_id );
+ return ActionScheduler_TimezoneHelper::set_local_timezone( $next );
+ }
+
+ /**
+ * Get Date GMT.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @throws InvalidArgumentException If $action_id is not identified.
+ * @return ActionScheduler_DateTime The date the action is schedule to run, or the date that it ran.
+ */
+ public function get_date_gmt( $action_id ) {
+ $post = get_post( $action_id );
+ if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) {
+ /* translators: %s is the action ID */
+ throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) );
+ }
+ if ( 'publish' === $post->post_status ) {
+ return as_get_datetime_object( $post->post_modified_gmt );
+ } else {
+ return as_get_datetime_object( $post->post_date_gmt );
+ }
+ }
+
+ /**
+ * Stake claim.
+ *
+ * @param int $max_actions Maximum number of actions.
+ * @param DateTime $before_date Jobs must be schedule before this date. Defaults to now.
+ * @param array $hooks Claim only actions with a hook or hooks.
+ * @param string $group Claim only actions in the given group.
+ *
+ * @return ActionScheduler_ActionClaim
+ * @throws RuntimeException When there is an error staking a claim.
+ * @throws InvalidArgumentException When the given group is not valid.
+ */
+ public function stake_claim( $max_actions = 10, DateTime $before_date = null, $hooks = array(), $group = '' ) {
+ $this->claim_before_date = $before_date;
+ $claim_id = $this->generate_claim_id();
+ $this->claim_actions( $claim_id, $max_actions, $before_date, $hooks, $group );
+ $action_ids = $this->find_actions_by_claim_id( $claim_id );
+ $this->claim_before_date = null;
+
+ return new ActionScheduler_ActionClaim( $claim_id, $action_ids );
+ }
+
+ /**
+ * Get claim count.
+ *
+ * @return int
+ */
+ public function get_claim_count() {
+ global $wpdb;
+
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching
+ return $wpdb->get_var(
+ $wpdb->prepare(
+ "SELECT COUNT(DISTINCT post_password) FROM {$wpdb->posts} WHERE post_password != '' AND post_type = %s AND post_status IN ('in-progress','pending')",
+ array( self::POST_TYPE )
+ )
+ );
+ }
+
+ /**
+ * Generate claim id.
+ *
+ * @return string
+ */
+ protected function generate_claim_id() {
+ $claim_id = md5( microtime( true ) . wp_rand( 0, 1000 ) );
+ return substr( $claim_id, 0, 20 ); // to fit in db field with 20 char limit.
+ }
+
+ /**
+ * Claim actions.
+ *
+ * @param string $claim_id Claim ID.
+ * @param int $limit Limit.
+ * @param DateTime $before_date Should use UTC timezone.
+ * @param array $hooks Claim only actions with a hook or hooks.
+ * @param string $group Claim only actions in the given group.
+ *
+ * @return int The number of actions that were claimed.
+ * @throws RuntimeException When there is a database error.
+ */
+ protected function claim_actions( $claim_id, $limit, DateTime $before_date = null, $hooks = array(), $group = '' ) {
+ // Set up initial variables.
+ $date = null === $before_date ? as_get_datetime_object() : clone $before_date;
+ $limit_ids = ! empty( $group );
+ $ids = $limit_ids ? $this->get_actions_by_group( $group, $limit, $date ) : array();
+
+ // If limiting by IDs and no posts found, then return early since we have nothing to update.
+ if ( $limit_ids && 0 === count( $ids ) ) {
+ return 0;
+ }
+
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ /*
+ * Build up custom query to update the affected posts. Parameters are built as a separate array
+ * to make it easier to identify where they are in the query.
+ *
+ * We can't use $wpdb->update() here because of the "ID IN ..." clause.
+ */
+ $update = "UPDATE {$wpdb->posts} SET post_password = %s, post_modified_gmt = %s, post_modified = %s";
+ $params = array(
+ $claim_id,
+ current_time( 'mysql', true ),
+ current_time( 'mysql' ),
+ );
+
+ // Build initial WHERE clause.
+ $where = "WHERE post_type = %s AND post_status = %s AND post_password = ''";
+ $params[] = self::POST_TYPE;
+ $params[] = ActionScheduler_Store::STATUS_PENDING;
+
+ if ( ! empty( $hooks ) ) {
+ $placeholders = array_fill( 0, count( $hooks ), '%s' );
+ $where .= ' AND post_title IN (' . join( ', ', $placeholders ) . ')';
+ $params = array_merge( $params, array_values( $hooks ) );
+ }
+
+ /*
+ * Add the IDs to the WHERE clause. IDs not escaped because they came directly from a prior DB query.
+ *
+ * If we're not limiting by IDs, then include the post_date_gmt clause.
+ */
+ if ( $limit_ids ) {
+ $where .= ' AND ID IN (' . join( ',', $ids ) . ')';
+ } else {
+ $where .= ' AND post_date_gmt <= %s';
+ $params[] = $date->format( 'Y-m-d H:i:s' );
+ }
+
+ // Add the ORDER BY clause and,ms limit.
+ $order = 'ORDER BY menu_order ASC, post_date_gmt ASC, ID ASC LIMIT %d';
+ $params[] = $limit;
+
+ // Run the query and gather results.
+ $rows_affected = $wpdb->query( $wpdb->prepare( "{$update} {$where} {$order}", $params ) ); // phpcs:ignore // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
+
+ if ( false === $rows_affected ) {
+ throw new RuntimeException( __( 'Unable to claim actions. Database error.', 'woocommerce' ) );
+ }
+
+ return (int) $rows_affected;
+ }
+
+ /**
+ * Get IDs of actions within a certain group and up to a certain date/time.
+ *
+ * @param string $group The group to use in finding actions.
+ * @param int $limit The number of actions to retrieve.
+ * @param DateTime $date DateTime object representing cutoff time for actions. Actions retrieved will be
+ * up to and including this DateTime.
+ *
+ * @return array IDs of actions in the appropriate group and before the appropriate time.
+ * @throws InvalidArgumentException When the group does not exist.
+ */
+ protected function get_actions_by_group( $group, $limit, DateTime $date ) {
+ // Ensure the group exists before continuing.
+ if ( ! term_exists( $group, self::GROUP_TAXONOMY ) ) {
+ /* translators: %s is the group name */
+ throw new InvalidArgumentException( sprintf( __( 'The group "%s" does not exist.', 'woocommerce' ), $group ) );
+ }
+
+ // Set up a query for post IDs to use later.
+ $query = new WP_Query();
+ $query_args = array(
+ 'fields' => 'ids',
+ 'post_type' => self::POST_TYPE,
+ 'post_status' => ActionScheduler_Store::STATUS_PENDING,
+ 'has_password' => false,
+ 'posts_per_page' => $limit * 3,
+ 'suppress_filters' => true,
+ 'no_found_rows' => true,
+ 'orderby' => array(
+ 'menu_order' => 'ASC',
+ 'date' => 'ASC',
+ 'ID' => 'ASC',
+ ),
+ 'date_query' => array(
+ 'column' => 'post_date_gmt',
+ 'before' => $date->format( 'Y-m-d H:i' ),
+ 'inclusive' => true,
+ ),
+ 'tax_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery
+ array(
+ 'taxonomy' => self::GROUP_TAXONOMY,
+ 'field' => 'slug',
+ 'terms' => $group,
+ 'include_children' => false,
+ ),
+ ),
+ );
+
+ return $query->query( $query_args );
+ }
+
+ /**
+ * Find actions by claim ID.
+ *
+ * @param string $claim_id Claim ID.
+ * @return array
+ */
+ public function find_actions_by_claim_id( $claim_id ) {
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ $action_ids = array();
+ $before_date = isset( $this->claim_before_date ) ? $this->claim_before_date : as_get_datetime_object();
+ $cut_off = $before_date->format( 'Y-m-d H:i:s' );
+
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ $results = $wpdb->get_results(
+ $wpdb->prepare(
+ "SELECT ID, post_date_gmt FROM {$wpdb->posts} WHERE post_type = %s AND post_password = %s",
+ array(
+ self::POST_TYPE,
+ $claim_id,
+ )
+ )
+ );
+
+ // Verify that the scheduled date for each action is within the expected bounds (in some unusual
+ // cases, we cannot depend on MySQL to honor all of the WHERE conditions we specify).
+ foreach ( $results as $claimed_action ) {
+ if ( $claimed_action->post_date_gmt <= $cut_off ) {
+ $action_ids[] = absint( $claimed_action->ID );
+ }
+ }
+
+ return $action_ids;
+ }
+
+ /**
+ * Release claim.
+ *
+ * @param ActionScheduler_ActionClaim $claim Claim object to release.
+ * @return void
+ * @throws RuntimeException When the claim is not unlocked.
+ */
+ public function release_claim( ActionScheduler_ActionClaim $claim ) {
+ $action_ids = $this->find_actions_by_claim_id( $claim->get_id() );
+ if ( empty( $action_ids ) ) {
+ return; // nothing to do.
+ }
+ $action_id_string = implode( ',', array_map( 'intval', $action_ids ) );
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ $result = $wpdb->query(
+ $wpdb->prepare(
+ "UPDATE {$wpdb->posts} SET post_password = '' WHERE ID IN ($action_id_string) AND post_password = %s", //phpcs:ignore
+ array(
+ $claim->get_id(),
+ )
+ )
+ );
+ if ( false === $result ) {
+ /* translators: %s: claim ID */
+ throw new RuntimeException( sprintf( __( 'Unable to unlock claim %s. Database error.', 'woocommerce' ), $claim->get_id() ) );
+ }
+ }
+
+ /**
+ * Unclaim action.
+ *
+ * @param string $action_id Action ID.
+ * @throws RuntimeException When unable to unlock claim on action ID.
+ */
+ public function unclaim_action( $action_id ) {
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ $result = $wpdb->query(
+ $wpdb->prepare(
+ "UPDATE {$wpdb->posts} SET post_password = '' WHERE ID = %d AND post_type = %s",
+ $action_id,
+ self::POST_TYPE
+ )
+ );
+ if ( false === $result ) {
+ /* translators: %s: action ID */
+ throw new RuntimeException( sprintf( __( 'Unable to unlock claim on action %s. Database error.', 'woocommerce' ), $action_id ) );
+ }
+ }
+
+ /**
+ * Mark failure on action.
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return void
+ * @throws RuntimeException When unable to mark failure on action ID.
+ */
+ public function mark_failure( $action_id ) {
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ $result = $wpdb->query(
+ $wpdb->prepare( "UPDATE {$wpdb->posts} SET post_status = %s WHERE ID = %d AND post_type = %s", self::STATUS_FAILED, $action_id, self::POST_TYPE )
+ );
+ if ( false === $result ) {
+ /* translators: %s: action ID */
+ throw new RuntimeException( sprintf( __( 'Unable to mark failure on action %s. Database error.', 'woocommerce' ), $action_id ) );
+ }
+ }
+
+ /**
+ * Return an action's claim ID, as stored in the post password column
+ *
+ * @param int $action_id Action ID.
+ * @return mixed
+ */
+ public function get_claim_id( $action_id ) {
+ return $this->get_post_column( $action_id, 'post_password' );
+ }
+
+ /**
+ * Return an action's status, as stored in the post status column
+ *
+ * @param int $action_id Action ID.
+ *
+ * @return mixed
+ * @throws InvalidArgumentException When the action ID is invalid.
+ */
+ public function get_status( $action_id ) {
+ $status = $this->get_post_column( $action_id, 'post_status' );
+
+ if ( null === $status ) {
+ throw new InvalidArgumentException( __( 'Invalid action ID. No status found.', 'woocommerce' ) );
+ }
+
+ return $this->get_action_status_by_post_status( $status );
+ }
+
+ /**
+ * Get post column
+ *
+ * @param string $action_id Action ID.
+ * @param string $column_name Column Name.
+ *
+ * @return string|null
+ */
+ private function get_post_column( $action_id, $column_name ) {
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ return $wpdb->get_var(
+ $wpdb->prepare(
+ "SELECT {$column_name} FROM {$wpdb->posts} WHERE ID=%d AND post_type=%s", // phpcs:ignore
+ $action_id,
+ self::POST_TYPE
+ )
+ );
+ }
+
+ /**
+ * Log Execution.
+ *
+ * @throws Exception If the action status cannot be updated to self::STATUS_RUNNING ('in-progress').
+ *
+ * @param string $action_id Action ID.
+ */
+ public function log_execution( $action_id ) {
+ /**
+ * Global wpdb object.
+ *
+ * @var wpdb $wpdb
+ */
+ global $wpdb;
+
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ $status_updated = $wpdb->query(
+ $wpdb->prepare(
+ "UPDATE {$wpdb->posts} SET menu_order = menu_order+1, post_status=%s, post_modified_gmt = %s, post_modified = %s WHERE ID = %d AND post_type = %s",
+ self::STATUS_RUNNING,
+ current_time( 'mysql', true ),
+ current_time( 'mysql' ),
+ $action_id,
+ self::POST_TYPE
+ )
+ );
+
+ if ( ! $status_updated ) {
+ throw new Exception(
+ sprintf(
+ /* translators: 1: action ID. 2: status slug. */
+ __( 'Unable to update the status of action %1$d to %2$s.', 'woocommerce' ),
+ $action_id,
+ self::STATUS_RUNNING
+ )
+ );
+ }
+ }
+
+ /**
+ * Record that an action was completed.
+ *
+ * @param string $action_id ID of the completed action.
+ *
+ * @throws InvalidArgumentException When the action ID is invalid.
+ * @throws RuntimeException When there was an error executing the action.
+ */
+ public function mark_complete( $action_id ) {
+ $post = get_post( $action_id );
+ if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) {
+ /* translators: %s is the action ID */
+ throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) );
+ }
+ add_filter( 'wp_insert_post_data', array( $this, 'filter_insert_post_data' ), 10, 1 );
+ add_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10, 5 );
+ $result = wp_update_post(
+ array(
+ 'ID' => $action_id,
+ 'post_status' => 'publish',
+ ),
+ true
+ );
+ remove_filter( 'wp_insert_post_data', array( $this, 'filter_insert_post_data' ), 10 );
+ remove_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10 );
+ if ( is_wp_error( $result ) ) {
+ throw new RuntimeException( $result->get_error_message() );
+ }
+
+ /**
+ * Fires after a scheduled action has been completed.
+ *
+ * @since 3.4.2
+ *
+ * @param int $action_id Action ID.
+ */
+ do_action( 'action_scheduler_completed_action', $action_id );
+ }
+
+ /**
+ * Mark action as migrated when there is an error deleting the action.
+ *
+ * @param int $action_id Action ID.
+ */
+ public function mark_migrated( $action_id ) {
+ wp_update_post(
+ array(
+ 'ID' => $action_id,
+ 'post_status' => 'migrated',
+ )
+ );
+ }
+
+ /**
+ * Determine whether the post store can be migrated.
+ *
+ * @param [type] $setting - Setting value.
+ * @return bool
+ */
+ public function migration_dependencies_met( $setting ) {
+ global $wpdb;
+
+ $dependencies_met = get_transient( self::DEPENDENCIES_MET );
+ if ( empty( $dependencies_met ) ) {
+ $maximum_args_length = apply_filters( 'action_scheduler_maximum_args_length', 191 );
+ $found_action = $wpdb->get_var( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
+ $wpdb->prepare(
+ "SELECT ID FROM {$wpdb->posts} WHERE post_type = %s AND CHAR_LENGTH(post_content) > %d LIMIT 1",
+ $maximum_args_length,
+ self::POST_TYPE
+ )
+ );
+ $dependencies_met = $found_action ? 'no' : 'yes';
+ set_transient( self::DEPENDENCIES_MET, $dependencies_met, DAY_IN_SECONDS );
+ }
+
+ return 'yes' === $dependencies_met ? $setting : false;
+ }
+
+ /**
+ * InnoDB indexes have a maximum size of 767 bytes by default, which is only 191 characters with utf8mb4.
+ *
+ * Previously, AS wasn't concerned about args length, as we used the (unindex) post_content column. However,
+ * as we prepare to move to custom tables, and can use an indexed VARCHAR column instead, we want to warn
+ * developers of this impending requirement.
+ *
+ * @param ActionScheduler_Action $action Action object.
+ */
+ protected function validate_action( ActionScheduler_Action $action ) {
+ try {
+ parent::validate_action( $action );
+ } catch ( Exception $e ) {
+ /* translators: %s is the error message */
+ $message = sprintf( __( '%s Support for strings longer than this will be removed in a future version.', 'woocommerce' ), $e->getMessage() );
+ _doing_it_wrong( 'ActionScheduler_Action::$args', esc_html( $message ), '2.1.0' );
+ }
+ }
+
+ /**
+ * (@codeCoverageIgnore)
+ */
+ public function init() {
+ add_filter( 'action_scheduler_migration_dependencies_met', array( $this, 'migration_dependencies_met' ) );
+
+ $post_type_registrar = new ActionScheduler_wpPostStore_PostTypeRegistrar();
+ $post_type_registrar->register();
+
+ $post_status_registrar = new ActionScheduler_wpPostStore_PostStatusRegistrar();
+ $post_status_registrar->register();
+
+ $taxonomy_registrar = new ActionScheduler_wpPostStore_TaxonomyRegistrar();
+ $taxonomy_registrar->register();
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php
new file mode 100644
index 00000000..aac99d96
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php
@@ -0,0 +1,59 @@
+post_status_args(), $this->post_status_running_labels() ) );
+ register_post_status( ActionScheduler_Store::STATUS_FAILED, array_merge( $this->post_status_args(), $this->post_status_failed_labels() ) );
+ }
+
+ /**
+ * Build the args array for the post type definition
+ *
+ * @return array
+ */
+ protected function post_status_args() {
+ $args = array(
+ 'public' => false,
+ 'exclude_from_search' => false,
+ 'show_in_admin_all_list' => true,
+ 'show_in_admin_status_list' => true,
+ );
+
+ return apply_filters( 'action_scheduler_post_status_args', $args );
+ }
+
+ /**
+ * Build the args array for the post type definition
+ *
+ * @return array
+ */
+ protected function post_status_failed_labels() {
+ $labels = array(
+ 'label' => _x( 'Failed', 'post', 'woocommerce' ),
+ /* translators: %s: count */
+ 'label_count' => _n_noop( 'Failed (%s)', 'Failed (%s)', 'woocommerce' ),
+ );
+
+ return apply_filters( 'action_scheduler_post_status_failed_labels', $labels );
+ }
+
+ /**
+ * Build the args array for the post type definition
+ *
+ * @return array
+ */
+ protected function post_status_running_labels() {
+ $labels = array(
+ 'label' => _x( 'In-Progress', 'post', 'woocommerce' ),
+ /* translators: %s: count */
+ 'label_count' => _n_noop( 'In-Progress (%s)', 'In-Progress (%s)', 'woocommerce' ),
+ );
+
+ return apply_filters( 'action_scheduler_post_status_running_labels', $labels );
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php
new file mode 100644
index 00000000..c94925b2
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php
@@ -0,0 +1,51 @@
+post_type_args() );
+ }
+
+ /**
+ * Build the args array for the post type definition
+ *
+ * @return array
+ */
+ protected function post_type_args() {
+ $args = array(
+ 'label' => __( 'Scheduled Actions', 'woocommerce' ),
+ 'description' => __( 'Scheduled actions are hooks triggered on a cetain date and time.', 'woocommerce' ),
+ 'public' => false,
+ 'map_meta_cap' => true,
+ 'hierarchical' => false,
+ 'supports' => array('title', 'editor','comments'),
+ 'rewrite' => false,
+ 'query_var' => false,
+ 'can_export' => true,
+ 'ep_mask' => EP_NONE,
+ 'labels' => array(
+ 'name' => __( 'Scheduled Actions', 'woocommerce' ),
+ 'singular_name' => __( 'Scheduled Action', 'woocommerce' ),
+ 'menu_name' => _x( 'Scheduled Actions', 'Admin menu name', 'woocommerce' ),
+ 'add_new' => __( 'Add', 'woocommerce' ),
+ 'add_new_item' => __( 'Add New Scheduled Action', 'woocommerce' ),
+ 'edit' => __( 'Edit', 'woocommerce' ),
+ 'edit_item' => __( 'Edit Scheduled Action', 'woocommerce' ),
+ 'new_item' => __( 'New Scheduled Action', 'woocommerce' ),
+ 'view' => __( 'View Action', 'woocommerce' ),
+ 'view_item' => __( 'View Action', 'woocommerce' ),
+ 'search_items' => __( 'Search Scheduled Actions', 'woocommerce' ),
+ 'not_found' => __( 'No actions found', 'woocommerce' ),
+ 'not_found_in_trash' => __( 'No actions found in trash', 'woocommerce' ),
+ ),
+ );
+
+ $args = apply_filters('action_scheduler_post_type_args', $args);
+ return $args;
+ }
+}
+
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_TaxonomyRegistrar.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_TaxonomyRegistrar.php
new file mode 100644
index 00000000..4b7f8517
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_TaxonomyRegistrar.php
@@ -0,0 +1,27 @@
+taxonomy_args() );
+ }
+
+ protected function taxonomy_args() {
+ $args = array(
+ 'label' => __( 'Action Group', 'woocommerce' ),
+ 'public' => false,
+ 'hierarchical' => false,
+ 'show_admin_column' => true,
+ 'query_var' => false,
+ 'rewrite' => false,
+ );
+
+ $args = apply_filters( 'action_scheduler_taxonomy_args', $args );
+ return $args;
+ }
+}
+
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/ActionMigrator.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/ActionMigrator.php
new file mode 100644
index 00000000..3d1c7be5
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/ActionMigrator.php
@@ -0,0 +1,110 @@
+source = $source_store;
+ $this->destination = $destination_store;
+ $this->log_migrator = $log_migrator;
+ }
+
+ /**
+ * Migrate an action.
+ *
+ * @param int $source_action_id Action ID.
+ *
+ * @return int 0|new action ID
+ */
+ public function migrate( $source_action_id ) {
+ try {
+ $action = $this->source->fetch_action( $source_action_id );
+ $status = $this->source->get_status( $source_action_id );
+ } catch ( \Exception $e ) {
+ $action = null;
+ $status = '';
+ }
+
+ if ( is_null( $action ) || empty( $status ) || ! $action->get_schedule()->get_date() ) {
+ // null action or empty status means the fetch operation failed or the action didn't exist
+ // null schedule means it's missing vital data
+ // delete it and move on
+ try {
+ $this->source->delete_action( $source_action_id );
+ } catch ( \Exception $e ) {
+ // nothing to do, it didn't exist in the first place
+ }
+ do_action( 'action_scheduler/no_action_to_migrate', $source_action_id, $this->source, $this->destination );
+
+ return 0;
+ }
+
+ try {
+
+ // Make sure the last attempt date is set correctly for completed and failed actions
+ $last_attempt_date = ( $status !== \ActionScheduler_Store::STATUS_PENDING ) ? $this->source->get_date( $source_action_id ) : null;
+
+ $destination_action_id = $this->destination->save_action( $action, null, $last_attempt_date );
+ } catch ( \Exception $e ) {
+ do_action( 'action_scheduler/migrate_action_failed', $source_action_id, $this->source, $this->destination );
+
+ return 0; // could not save the action in the new store
+ }
+
+ try {
+ switch ( $status ) {
+ case \ActionScheduler_Store::STATUS_FAILED :
+ $this->destination->mark_failure( $destination_action_id );
+ break;
+ case \ActionScheduler_Store::STATUS_CANCELED :
+ $this->destination->cancel_action( $destination_action_id );
+ break;
+ }
+
+ $this->log_migrator->migrate( $source_action_id, $destination_action_id );
+ $this->source->delete_action( $source_action_id );
+
+ $test_action = $this->source->fetch_action( $source_action_id );
+ if ( ! is_a( $test_action, 'ActionScheduler_NullAction' ) ) {
+ throw new \RuntimeException( sprintf( __( 'Unable to remove source migrated action %s', 'woocommerce' ), $source_action_id ) );
+ }
+ do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
+
+ return $destination_action_id;
+ } catch ( \Exception $e ) {
+ // could not delete from the old store
+ $this->source->mark_migrated( $source_action_id );
+ do_action( 'action_scheduler/migrate_action_incomplete', $source_action_id, $destination_action_id, $this->source, $this->destination );
+ do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
+
+ return $destination_action_id;
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php
new file mode 100644
index 00000000..a0dee1bb
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php
@@ -0,0 +1,48 @@
+ $this->get_scheduled_date_string( $action, $last_attempt_date ),
+ 'last_attempt_local' => $this->get_scheduled_date_string_local( $action, $last_attempt_date ),
+ ];
+
+ $wpdb->update( $wpdb->actionscheduler_actions, $data, array( 'action_id' => $action_id ), array( '%s', '%s' ), array( '%d' ) );
+ }
+
+ return $action_id;
+ } catch ( \Exception $e ) {
+ throw new \RuntimeException( sprintf( __( 'Error saving action: %s', 'woocommerce' ), $e->getMessage() ), 0 );
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/BatchFetcher.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/BatchFetcher.php
new file mode 100644
index 00000000..7547bd49
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/BatchFetcher.php
@@ -0,0 +1,87 @@
+store = $source_store;
+ }
+
+ /**
+ * Retrieve a list of actions.
+ *
+ * @param int $count The number of actions to retrieve
+ *
+ * @return int[] A list of action IDs
+ */
+ public function fetch( $count = 10 ) {
+ foreach ( $this->get_query_strategies( $count ) as $query ) {
+ $action_ids = $this->store->query_actions( $query );
+ if ( ! empty( $action_ids ) ) {
+ return $action_ids;
+ }
+ }
+
+ return [];
+ }
+
+ /**
+ * Generate a list of prioritized of action search parameters.
+ *
+ * @param int $count Number of actions to find.
+ *
+ * @return array
+ */
+ private function get_query_strategies( $count ) {
+ $now = as_get_datetime_object();
+ $args = [
+ 'date' => $now,
+ 'per_page' => $count,
+ 'offset' => 0,
+ 'orderby' => 'date',
+ 'order' => 'ASC',
+ ];
+
+ $priorities = [
+ Store::STATUS_PENDING,
+ Store::STATUS_FAILED,
+ Store::STATUS_CANCELED,
+ Store::STATUS_COMPLETE,
+ Store::STATUS_RUNNING,
+ '', // any other unanticipated status
+ ];
+
+ foreach ( $priorities as $status ) {
+ yield wp_parse_args( [
+ 'status' => $status,
+ 'date_compare' => '<=',
+ ], $args );
+ yield wp_parse_args( [
+ 'status' => $status,
+ 'date_compare' => '>=',
+ ], $args );
+ }
+ }
+}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Config.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Config.php
new file mode 100644
index 00000000..03717d40
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Config.php
@@ -0,0 +1,169 @@
+source_store ) ) {
+ throw new \RuntimeException( __( 'Source store must be configured before running a migration', 'woocommerce' ) );
+ }
+
+ return $this->source_store;
+ }
+
+ /**
+ * Set the configured source store.
+ *
+ * @param ActionScheduler_Store $store Source store object.
+ */
+ public function set_source_store( Store $store ) {
+ $this->source_store = $store;
+ }
+
+ /**
+ * Get the configured source loger.
+ *
+ * @return ActionScheduler_Logger
+ */
+ public function get_source_logger() {
+ if ( empty( $this->source_logger ) ) {
+ throw new \RuntimeException( __( 'Source logger must be configured before running a migration', 'woocommerce' ) );
+ }
+
+ return $this->source_logger;
+ }
+
+ /**
+ * Set the configured source logger.
+ *
+ * @param ActionScheduler_Logger $logger
+ */
+ public function set_source_logger( Logger $logger ) {
+ $this->source_logger = $logger;
+ }
+
+ /**
+ * Get the configured destination store.
+ *
+ * @return ActionScheduler_Store
+ */
+ public function get_destination_store() {
+ if ( empty( $this->destination_store ) ) {
+ throw new \RuntimeException( __( 'Destination store must be configured before running a migration', 'woocommerce' ) );
+ }
+
+ return $this->destination_store;
+ }
+
+ /**
+ * Set the configured destination store.
+ *
+ * @param ActionScheduler_Store $store
+ */
+ public function set_destination_store( Store $store ) {
+ $this->destination_store = $store;
+ }
+
+ /**
+ * Get the configured destination logger.
+ *
+ * @return ActionScheduler_Logger
+ */
+ public function get_destination_logger() {
+ if ( empty( $this->destination_logger ) ) {
+ throw new \RuntimeException( __( 'Destination logger must be configured before running a migration', 'woocommerce' ) );
+ }
+
+ return $this->destination_logger;
+ }
+
+ /**
+ * Set the configured destination logger.
+ *
+ * @param ActionScheduler_Logger $logger
+ */
+ public function set_destination_logger( Logger $logger ) {
+ $this->destination_logger = $logger;
+ }
+
+ /**
+ * Get flag indicating whether it's a dry run.
+ *
+ * @return bool
+ */
+ public function get_dry_run() {
+ return $this->dry_run;
+ }
+
+ /**
+ * Set flag indicating whether it's a dry run.
+ *
+ * @param bool $dry_run
+ */
+ public function set_dry_run( $dry_run ) {
+ $this->dry_run = (bool) $dry_run;
+ }
+
+ /**
+ * Get progress bar object.
+ *
+ * @return ActionScheduler\WPCLI\ProgressBar
+ */
+ public function get_progress_bar() {
+ return $this->progress_bar;
+ }
+
+ /**
+ * Set progress bar object.
+ *
+ * @param ActionScheduler\WPCLI\ProgressBar $progress_bar
+ */
+ public function set_progress_bar( ProgressBar $progress_bar ) {
+ $this->progress_bar = $progress_bar;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Controller.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Controller.php
new file mode 100644
index 00000000..0009c4b1
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Controller.php
@@ -0,0 +1,227 @@
+migration_scheduler = $migration_scheduler;
+ $this->store_classname = '';
+ }
+
+ /**
+ * Set the action store class name.
+ *
+ * @param string $class Classname of the store class.
+ *
+ * @return string
+ */
+ public function get_store_class( $class ) {
+ if ( \ActionScheduler_DataController::is_migration_complete() ) {
+ return \ActionScheduler_DataController::DATASTORE_CLASS;
+ } elseif ( \ActionScheduler_Store::DEFAULT_CLASS !== $class ) {
+ $this->store_classname = $class;
+ return $class;
+ } else {
+ return 'ActionScheduler_HybridStore';
+ }
+ }
+
+ /**
+ * Set the action logger class name.
+ *
+ * @param string $class Classname of the logger class.
+ *
+ * @return string
+ */
+ public function get_logger_class( $class ) {
+ \ActionScheduler_Store::instance();
+
+ if ( $this->has_custom_datastore() ) {
+ $this->logger_classname = $class;
+ return $class;
+ } else {
+ return \ActionScheduler_DataController::LOGGER_CLASS;
+ }
+ }
+
+ /**
+ * Get flag indicating whether a custom datastore is in use.
+ *
+ * @return bool
+ */
+ public function has_custom_datastore() {
+ return (bool) $this->store_classname;
+ }
+
+ /**
+ * Set up the background migration process.
+ *
+ * @return void
+ */
+ public function schedule_migration() {
+ $logging_tables = new ActionScheduler_LoggerSchema();
+ $store_tables = new ActionScheduler_StoreSchema();
+
+ /*
+ * In some unusual cases, the expected tables may not have been created. In such cases
+ * we do not schedule a migration as doing so will lead to fatal error conditions.
+ *
+ * In such cases the user will likely visit the Tools > Scheduled Actions screen to
+ * investigate, and will see appropriate messaging (this step also triggers an attempt
+ * to rebuild any missing tables).
+ *
+ * @see https://github.com/woocommerce/action-scheduler/issues/653
+ */
+ if (
+ ActionScheduler_DataController::is_migration_complete()
+ || $this->migration_scheduler->is_migration_scheduled()
+ || ! $store_tables->tables_exist()
+ || ! $logging_tables->tables_exist()
+ ) {
+ return;
+ }
+
+ $this->migration_scheduler->schedule_migration();
+ }
+
+ /**
+ * Get the default migration config object
+ *
+ * @return ActionScheduler\Migration\Config
+ */
+ public function get_migration_config_object() {
+ static $config = null;
+
+ if ( ! $config ) {
+ $source_store = $this->store_classname ? new $this->store_classname() : new \ActionScheduler_wpPostStore();
+ $source_logger = $this->logger_classname ? new $this->logger_classname() : new \ActionScheduler_wpCommentLogger();
+
+ $config = new Config();
+ $config->set_source_store( $source_store );
+ $config->set_source_logger( $source_logger );
+ $config->set_destination_store( new \ActionScheduler_DBStoreMigrator() );
+ $config->set_destination_logger( new \ActionScheduler_DBLogger() );
+
+ if ( defined( 'WP_CLI' ) && WP_CLI ) {
+ $config->set_progress_bar( new ProgressBar( '', 0 ) );
+ }
+ }
+
+ return apply_filters( 'action_scheduler/migration_config', $config );
+ }
+
+ /**
+ * Hook dashboard migration notice.
+ */
+ public function hook_admin_notices() {
+ if ( ! $this->allow_migration() || \ActionScheduler_DataController::is_migration_complete() ) {
+ return;
+ }
+ add_action( 'admin_notices', array( $this, 'display_migration_notice' ), 10, 0 );
+ }
+
+ /**
+ * Show a dashboard notice that migration is in progress.
+ */
+ public function display_migration_notice() {
+ printf( '
%s
', esc_html__( 'Action Scheduler migration in progress. The list of scheduled actions may be incomplete.', 'woocommerce' ) );
+ }
+
+ /**
+ * Add store classes. Hook migration.
+ */
+ private function hook() {
+ add_filter( 'action_scheduler_store_class', array( $this, 'get_store_class' ), 100, 1 );
+ add_filter( 'action_scheduler_logger_class', array( $this, 'get_logger_class' ), 100, 1 );
+ add_action( 'init', array( $this, 'maybe_hook_migration' ) );
+ add_action( 'wp_loaded', array( $this, 'schedule_migration' ) );
+
+ // Action Scheduler may be displayed as a Tools screen or WooCommerce > Status administration screen
+ add_action( 'load-tools_page_action-scheduler', array( $this, 'hook_admin_notices' ), 10, 0 );
+ add_action( 'load-woocommerce_page_wc-status', array( $this, 'hook_admin_notices' ), 10, 0 );
+ }
+
+ /**
+ * Possibly hook the migration scheduler action.
+ *
+ * @author Jeremy Pry
+ */
+ public function maybe_hook_migration() {
+ if ( ! $this->allow_migration() || \ActionScheduler_DataController::is_migration_complete() ) {
+ return;
+ }
+
+ $this->migration_scheduler->hook();
+ }
+
+ /**
+ * Allow datastores to enable migration to AS tables.
+ */
+ public function allow_migration() {
+ if ( ! \ActionScheduler_DataController::dependencies_met() ) {
+ return false;
+ }
+
+ if ( null === $this->migrate_custom_store ) {
+ $this->migrate_custom_store = apply_filters( 'action_scheduler_migrate_data_store', false );
+ }
+
+ return ( ! $this->has_custom_datastore() ) || $this->migrate_custom_store;
+ }
+
+ /**
+ * Proceed with the migration if the dependencies have been met.
+ */
+ public static function init() {
+ if ( \ActionScheduler_DataController::dependencies_met() ) {
+ self::instance()->hook();
+ }
+ }
+
+ /**
+ * Singleton factory.
+ */
+ public static function instance() {
+ if ( ! isset( self::$instance ) ) {
+ self::$instance = new static( new Scheduler() );
+ }
+
+ return self::$instance;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/DryRun_ActionMigrator.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/DryRun_ActionMigrator.php
new file mode 100644
index 00000000..bee36caa
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/DryRun_ActionMigrator.php
@@ -0,0 +1,29 @@
+source = $source_logger;
+ $this->destination = $destination_Logger;
+ }
+
+ /**
+ * Migrate an action log.
+ *
+ * @param int $source_action_id Source logger object.
+ * @param int $destination_action_id Destination logger object.
+ */
+ public function migrate( $source_action_id, $destination_action_id ) {
+ $logs = $this->source->get_logs( $source_action_id );
+ foreach ( $logs as $log ) {
+ if ( $log->get_action_id() == $source_action_id ) {
+ $this->destination->log( $destination_action_id, $log->get_message(), $log->get_date() );
+ }
+ }
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Runner.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Runner.php
new file mode 100644
index 00000000..d0bea0a0
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Runner.php
@@ -0,0 +1,137 @@
+source_store = $config->get_source_store();
+ $this->destination_store = $config->get_destination_store();
+ $this->source_logger = $config->get_source_logger();
+ $this->destination_logger = $config->get_destination_logger();
+
+ $this->batch_fetcher = new BatchFetcher( $this->source_store );
+ if ( $config->get_dry_run() ) {
+ $this->log_migrator = new DryRun_LogMigrator( $this->source_logger, $this->destination_logger );
+ $this->action_migrator = new DryRun_ActionMigrator( $this->source_store, $this->destination_store, $this->log_migrator );
+ } else {
+ $this->log_migrator = new LogMigrator( $this->source_logger, $this->destination_logger );
+ $this->action_migrator = new ActionMigrator( $this->source_store, $this->destination_store, $this->log_migrator );
+ }
+
+ if ( defined( 'WP_CLI' ) && WP_CLI ) {
+ $this->progress_bar = $config->get_progress_bar();
+ }
+ }
+
+ /**
+ * Run migration batch.
+ *
+ * @param int $batch_size Optional batch size. Default 10.
+ *
+ * @return int Size of batch processed.
+ */
+ public function run( $batch_size = 10 ) {
+ $batch = $this->batch_fetcher->fetch( $batch_size );
+ $batch_size = count( $batch );
+
+ if ( ! $batch_size ) {
+ return 0;
+ }
+
+ if ( $this->progress_bar ) {
+ /* translators: %d: amount of actions */
+ $this->progress_bar->set_message( sprintf( _n( 'Migrating %d action', 'Migrating %d actions', $batch_size, 'woocommerce' ), $batch_size ) );
+ $this->progress_bar->set_count( $batch_size );
+ }
+
+ $this->migrate_actions( $batch );
+
+ return $batch_size;
+ }
+
+ /**
+ * Migration a batch of actions.
+ *
+ * @param array $action_ids List of action IDs to migrate.
+ */
+ public function migrate_actions( array $action_ids ) {
+ do_action( 'action_scheduler/migration_batch_starting', $action_ids );
+
+ \ActionScheduler::logger()->unhook_stored_action();
+ $this->destination_logger->unhook_stored_action();
+
+ foreach ( $action_ids as $source_action_id ) {
+ $destination_action_id = $this->action_migrator->migrate( $source_action_id );
+ if ( $destination_action_id ) {
+ $this->destination_logger->log( $destination_action_id, sprintf(
+ /* translators: 1: source action ID 2: source store class 3: destination action ID 4: destination store class */
+ __( 'Migrated action with ID %1$d in %2$s to ID %3$d in %4$s', 'woocommerce' ),
+ $source_action_id,
+ get_class( $this->source_store ),
+ $destination_action_id,
+ get_class( $this->destination_store )
+ ) );
+ }
+
+ if ( $this->progress_bar ) {
+ $this->progress_bar->tick();
+ }
+ }
+
+ if ( $this->progress_bar ) {
+ $this->progress_bar->finish();
+ }
+
+ \ActionScheduler::logger()->hook_stored_action();
+
+ do_action( 'action_scheduler/migration_batch_complete', $action_ids );
+ }
+
+ /**
+ * Initialize destination store and logger.
+ */
+ public function init_destination() {
+ $this->destination_store->init();
+ $this->destination_logger->init();
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Scheduler.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Scheduler.php
new file mode 100644
index 00000000..8050e8e9
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/migration/Scheduler.php
@@ -0,0 +1,129 @@
+get_migration_runner();
+ $count = $migration_runner->run( $this->get_batch_size() );
+
+ if ( $count === 0 ) {
+ $this->mark_complete();
+ } else {
+ $this->schedule_migration( time() + $this->get_schedule_interval() );
+ }
+ }
+
+ /**
+ * Mark the migration complete.
+ */
+ public function mark_complete() {
+ $this->unschedule_migration();
+
+ \ActionScheduler_DataController::mark_migration_complete();
+ do_action( 'action_scheduler/migration_complete' );
+ }
+
+ /**
+ * Get a flag indicating whether the migration is scheduled.
+ *
+ * @return bool Whether there is a pending action in the store to handle the migration
+ */
+ public function is_migration_scheduled() {
+ $next = as_next_scheduled_action( self::HOOK );
+
+ return ! empty( $next );
+ }
+
+ /**
+ * Schedule the migration.
+ *
+ * @param int $when Optional timestamp to run the next migration batch. Defaults to now.
+ *
+ * @return string The action ID
+ */
+ public function schedule_migration( $when = 0 ) {
+ $next = as_next_scheduled_action( self::HOOK );
+
+ if ( ! empty( $next ) ) {
+ return $next;
+ }
+
+ if ( empty( $when ) ) {
+ $when = time() + MINUTE_IN_SECONDS;
+ }
+
+ return as_schedule_single_action( $when, self::HOOK, array(), self::GROUP );
+ }
+
+ /**
+ * Remove the scheduled migration action.
+ */
+ public function unschedule_migration() {
+ as_unschedule_action( self::HOOK, null, self::GROUP );
+ }
+
+ /**
+ * Get migration batch schedule interval.
+ *
+ * @return int Seconds between migration runs. Defaults to 0 seconds to allow chaining migration via Async Runners.
+ */
+ private function get_schedule_interval() {
+ return (int) apply_filters( 'action_scheduler/migration_interval', 0 );
+ }
+
+ /**
+ * Get migration batch size.
+ *
+ * @return int Number of actions to migrate in each batch. Defaults to 250.
+ */
+ private function get_batch_size() {
+ return (int) apply_filters( 'action_scheduler/migration_batch_size', 250 );
+ }
+
+ /**
+ * Get migration runner object.
+ *
+ * @return Runner
+ */
+ private function get_migration_runner() {
+ $config = Controller::instance()->get_migration_config_object();
+
+ return new Runner( $config );
+ }
+
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php
new file mode 100644
index 00000000..091513e6
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php
@@ -0,0 +1,58 @@
+__wakeup() for details.
+ **/
+ private $timestamp = NULL;
+
+ /**
+ * @param DateTime $after
+ *
+ * @return DateTime|null
+ */
+ public function calculate_next( DateTime $after ) {
+ return null;
+ }
+
+ /**
+ * Cancelled actions should never have a next schedule, even if get_next()
+ * is called with $after < $this->scheduled_date.
+ *
+ * @param DateTime $after
+ * @return DateTime|null
+ */
+ public function get_next( DateTime $after ) {
+ return null;
+ }
+
+ /**
+ * @return bool
+ */
+ public function is_recurring() {
+ return false;
+ }
+
+ /**
+ * Unserialize recurring schedules serialized/stored prior to AS 3.0.0
+ *
+ * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
+ * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
+ * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
+ * aligned properties and property names for better inheritance. To maintain backward
+ * compatibility with schedules serialized and stored prior to 3.0, we need to correctly
+ * map the old property names with matching visibility.
+ */
+ public function __wakeup() {
+ if ( ! is_null( $this->timestamp ) ) {
+ $this->scheduled_timestamp = $this->timestamp;
+ unset( $this->timestamp );
+ }
+ parent::__wakeup();
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php
new file mode 100644
index 00000000..5851b0e7
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php
@@ -0,0 +1,103 @@
+__wakeup() for details.
+ **/
+ private $start_timestamp = NULL;
+
+ /**
+ * Deprecated property @see $this->__wakeup() for details.
+ **/
+ private $cron = NULL;
+
+ /**
+ * Wrapper for parent constructor to accept a cron expression string and map it to a CronExpression for this
+ * objects $recurrence property.
+ *
+ * @param DateTime $start The date & time to run the action at or after. If $start aligns with the CronSchedule passed via $recurrence, it will be used. If it does not align, the first matching date after it will be used.
+ * @param CronExpression|string $recurrence The CronExpression used to calculate the schedule's next instance.
+ * @param DateTime|null $first (Optional) The date & time the first instance of this interval schedule ran. Default null, meaning this is the first instance.
+ */
+ public function __construct( DateTime $start, $recurrence, DateTime $first = null ) {
+ if ( ! is_a( $recurrence, 'CronExpression' ) ) {
+ $recurrence = CronExpression::factory( $recurrence );
+ }
+
+ // For backward compatibility, we need to make sure the date is set to the first matching cron date, not whatever date is passed in. Importantly, by passing true as the 3rd param, if $start matches the cron expression, then it will be used. This was previously handled in the now deprecated next() method.
+ $date = $recurrence->getNextRunDate( $start, 0, true );
+
+ // parent::__construct() will set this to $date by default, but that may be different to $start now.
+ $first = empty( $first ) ? $start : $first;
+
+ parent::__construct( $date, $recurrence, $first );
+ }
+
+ /**
+ * Calculate when an instance of this schedule would start based on a given
+ * date & time using its the CronExpression.
+ *
+ * @param DateTime $after
+ * @return DateTime
+ */
+ protected function calculate_next( DateTime $after ) {
+ return $this->recurrence->getNextRunDate( $after, 0, false );
+ }
+
+ /**
+ * @return string
+ */
+ public function get_recurrence() {
+ return strval( $this->recurrence );
+ }
+
+ /**
+ * Serialize cron schedules with data required prior to AS 3.0.0
+ *
+ * Prior to Action Scheduler 3.0.0, reccuring schedules used different property names to
+ * refer to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
+ * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
+ * aligned properties and property names for better inheritance. To guard against the
+ * possibility of infinite loops if downgrading to Action Scheduler < 3.0.0, we need to
+ * also store the data with the old property names so if it's unserialized in AS < 3.0,
+ * the schedule doesn't end up with a null recurrence.
+ *
+ * @return array
+ */
+ public function __sleep() {
+
+ $sleep_params = parent::__sleep();
+
+ $this->start_timestamp = $this->scheduled_timestamp;
+ $this->cron = $this->recurrence;
+
+ return array_merge( $sleep_params, array(
+ 'start_timestamp',
+ 'cron'
+ ) );
+ }
+
+ /**
+ * Unserialize cron schedules serialized/stored prior to AS 3.0.0
+ *
+ * For more background, @see ActionScheduler_Abstract_RecurringSchedule::__wakeup().
+ */
+ public function __wakeup() {
+ if ( is_null( $this->scheduled_timestamp ) && ! is_null( $this->start_timestamp ) ) {
+ $this->scheduled_timestamp = $this->start_timestamp;
+ unset( $this->start_timestamp );
+ }
+
+ if ( is_null( $this->recurrence ) && ! is_null( $this->cron ) ) {
+ $this->recurrence = $this->cron;
+ unset( $this->cron );
+ }
+ parent::__wakeup();
+ }
+}
+
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php
new file mode 100644
index 00000000..4124f2a6
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php
@@ -0,0 +1,82 @@
+__wakeup() for details.
+ **/
+ private $start_timestamp = NULL;
+
+ /**
+ * Deprecated property @see $this->__wakeup() for details.
+ **/
+ private $interval_in_seconds = NULL;
+
+ /**
+ * Calculate when this schedule should start after a given date & time using
+ * the number of seconds between recurrences.
+ *
+ * @param DateTime $after
+ * @return DateTime
+ */
+ protected function calculate_next( DateTime $after ) {
+ $after->modify( '+' . (int) $this->get_recurrence() . ' seconds' );
+ return $after;
+ }
+
+ /**
+ * @return int
+ */
+ public function interval_in_seconds() {
+ _deprecated_function( __METHOD__, '3.0.0', '(int)ActionScheduler_Abstract_RecurringSchedule::get_recurrence()' );
+ return (int) $this->get_recurrence();
+ }
+
+ /**
+ * Serialize interval schedules with data required prior to AS 3.0.0
+ *
+ * Prior to Action Scheduler 3.0.0, reccuring schedules used different property names to
+ * refer to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
+ * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
+ * aligned properties and property names for better inheritance. To guard against the
+ * possibility of infinite loops if downgrading to Action Scheduler < 3.0.0, we need to
+ * also store the data with the old property names so if it's unserialized in AS < 3.0,
+ * the schedule doesn't end up with a null/false/0 recurrence.
+ *
+ * @return array
+ */
+ public function __sleep() {
+
+ $sleep_params = parent::__sleep();
+
+ $this->start_timestamp = $this->scheduled_timestamp;
+ $this->interval_in_seconds = $this->recurrence;
+
+ return array_merge( $sleep_params, array(
+ 'start_timestamp',
+ 'interval_in_seconds'
+ ) );
+ }
+
+ /**
+ * Unserialize interval schedules serialized/stored prior to AS 3.0.0
+ *
+ * For more background, @see ActionScheduler_Abstract_RecurringSchedule::__wakeup().
+ */
+ public function __wakeup() {
+ if ( is_null( $this->scheduled_timestamp ) && ! is_null( $this->start_timestamp ) ) {
+ $this->scheduled_timestamp = $this->start_timestamp;
+ unset( $this->start_timestamp );
+ }
+
+ if ( is_null( $this->recurrence ) && ! is_null( $this->interval_in_seconds ) ) {
+ $this->recurrence = $this->interval_in_seconds;
+ unset( $this->interval_in_seconds );
+ }
+ parent::__wakeup();
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php
new file mode 100644
index 00000000..34f1b801
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php
@@ -0,0 +1,32 @@
+scheduled_date = null;
+ }
+
+ /**
+ * This schedule has no scheduled DateTime, so we need to override the parent __sleep()
+ * @return array
+ */
+ public function __sleep() {
+ return array();
+ }
+
+ public function __wakeup() {
+ $this->scheduled_date = null;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_Schedule.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_Schedule.php
new file mode 100644
index 00000000..78a9899a
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_Schedule.php
@@ -0,0 +1,19 @@
+__wakeup() for details.
+ **/
+ private $timestamp = NULL;
+
+ /**
+ * @param DateTime $after
+ *
+ * @return DateTime|null
+ */
+ public function calculate_next( DateTime $after ) {
+ return null;
+ }
+
+ /**
+ * @return bool
+ */
+ public function is_recurring() {
+ return false;
+ }
+
+ /**
+ * Serialize schedule with data required prior to AS 3.0.0
+ *
+ * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
+ * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
+ * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
+ * aligned properties and property names for better inheritance. To guard against the
+ * scheduled date for single actions always being seen as "now" if downgrading to
+ * Action Scheduler < 3.0.0, we need to also store the data with the old property names
+ * so if it's unserialized in AS < 3.0, the schedule doesn't end up with a null recurrence.
+ *
+ * @return array
+ */
+ public function __sleep() {
+
+ $sleep_params = parent::__sleep();
+
+ $this->timestamp = $this->scheduled_timestamp;
+
+ return array_merge( $sleep_params, array(
+ 'timestamp',
+ ) );
+ }
+
+ /**
+ * Unserialize recurring schedules serialized/stored prior to AS 3.0.0
+ *
+ * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
+ * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
+ * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
+ * aligned properties and property names for better inheritance. To maintain backward
+ * compatibility with schedules serialized and stored prior to 3.0, we need to correctly
+ * map the old property names with matching visibility.
+ */
+ public function __wakeup() {
+
+ if ( is_null( $this->scheduled_timestamp ) && ! is_null( $this->timestamp ) ) {
+ $this->scheduled_timestamp = $this->timestamp;
+ unset( $this->timestamp );
+ }
+ parent::__wakeup();
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php
new file mode 100644
index 00000000..566a014c
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php
@@ -0,0 +1,91 @@
+tables = [
+ self::LOG_TABLE,
+ ];
+ }
+
+ /**
+ * Performs additional setup work required to support this schema.
+ */
+ public function init() {
+ add_action( 'action_scheduler_before_schema_update', array( $this, 'update_schema_3_0' ), 10, 2 );
+ }
+
+ protected function get_table_definition( $table ) {
+ global $wpdb;
+ $table_name = $wpdb->$table;
+ $charset_collate = $wpdb->get_charset_collate();
+ switch ( $table ) {
+
+ case self::LOG_TABLE:
+
+ $default_date = ActionScheduler_StoreSchema::DEFAULT_DATE;
+ return "CREATE TABLE $table_name (
+ log_id bigint(20) unsigned NOT NULL auto_increment,
+ action_id bigint(20) unsigned NOT NULL,
+ message text NOT NULL,
+ log_date_gmt datetime NULL default '{$default_date}',
+ log_date_local datetime NULL default '{$default_date}',
+ PRIMARY KEY (log_id),
+ KEY action_id (action_id),
+ KEY log_date_gmt (log_date_gmt)
+ ) $charset_collate";
+
+ default:
+ return '';
+ }
+ }
+
+ /**
+ * Update the logs table schema, allowing datetime fields to be NULL.
+ *
+ * This is needed because the NOT NULL constraint causes a conflict with some versions of MySQL
+ * configured with sql_mode=NO_ZERO_DATE, which can for instance lead to tables not being created.
+ *
+ * Most other schema updates happen via ActionScheduler_Abstract_Schema::update_table(), however
+ * that method relies on dbDelta() and this change is not possible when using that function.
+ *
+ * @param string $table Name of table being updated.
+ * @param string $db_version The existing schema version of the table.
+ */
+ public function update_schema_3_0( $table, $db_version ) {
+ global $wpdb;
+
+ if ( 'actionscheduler_logs' !== $table || version_compare( $db_version, '3', '>=' ) ) {
+ return;
+ }
+
+ // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
+ $table_name = $wpdb->prefix . 'actionscheduler_logs';
+ $table_list = $wpdb->get_col( "SHOW TABLES LIKE '{$table_name}'" );
+ $default_date = ActionScheduler_StoreSchema::DEFAULT_DATE;
+
+ if ( ! empty( $table_list ) ) {
+ $query = "
+ ALTER TABLE {$table_name}
+ MODIFY COLUMN log_date_gmt datetime NULL default '{$default_date}',
+ MODIFY COLUMN log_date_local datetime NULL default '{$default_date}'
+ ";
+ $wpdb->query( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+ // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php
new file mode 100644
index 00000000..033a3ba6
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php
@@ -0,0 +1,132 @@
+tables = [
+ self::ACTIONS_TABLE,
+ self::CLAIMS_TABLE,
+ self::GROUPS_TABLE,
+ ];
+ }
+
+ /**
+ * Performs additional setup work required to support this schema.
+ */
+ public function init() {
+ add_action( 'action_scheduler_before_schema_update', array( $this, 'update_schema_5_0' ), 10, 2 );
+ }
+
+ protected function get_table_definition( $table ) {
+ global $wpdb;
+ $table_name = $wpdb->$table;
+ $charset_collate = $wpdb->get_charset_collate();
+ $max_index_length = 191; // @see wp_get_db_schema()
+ $hook_status_scheduled_date_gmt_max_index_length = $max_index_length - 20 - 8; // - status, - scheduled_date_gmt
+ $default_date = self::DEFAULT_DATE;
+ switch ( $table ) {
+
+ case self::ACTIONS_TABLE:
+
+ return "CREATE TABLE {$table_name} (
+ action_id bigint(20) unsigned NOT NULL auto_increment,
+ hook varchar(191) NOT NULL,
+ status varchar(20) NOT NULL,
+ scheduled_date_gmt datetime NULL default '{$default_date}',
+ scheduled_date_local datetime NULL default '{$default_date}',
+ priority tinyint unsigned NOT NULL default '10',
+ args varchar($max_index_length),
+ schedule longtext,
+ group_id bigint(20) unsigned NOT NULL default '0',
+ attempts int(11) NOT NULL default '0',
+ last_attempt_gmt datetime NULL default '{$default_date}',
+ last_attempt_local datetime NULL default '{$default_date}',
+ claim_id bigint(20) unsigned NOT NULL default '0',
+ extended_args varchar(8000) DEFAULT NULL,
+ PRIMARY KEY (action_id),
+ KEY hook_status_scheduled_date_gmt (hook($hook_status_scheduled_date_gmt_max_index_length), status, scheduled_date_gmt),
+ KEY status_scheduled_date_gmt (status, scheduled_date_gmt),
+ KEY scheduled_date_gmt (scheduled_date_gmt),
+ KEY args (args($max_index_length)),
+ KEY group_id (group_id),
+ KEY last_attempt_gmt (last_attempt_gmt),
+ KEY `claim_id_status_scheduled_date_gmt` (`claim_id`, `status`, `scheduled_date_gmt`)
+ ) $charset_collate";
+
+ case self::CLAIMS_TABLE:
+
+ return "CREATE TABLE {$table_name} (
+ claim_id bigint(20) unsigned NOT NULL auto_increment,
+ date_created_gmt datetime NULL default '{$default_date}',
+ PRIMARY KEY (claim_id),
+ KEY date_created_gmt (date_created_gmt)
+ ) $charset_collate";
+
+ case self::GROUPS_TABLE:
+
+ return "CREATE TABLE {$table_name} (
+ group_id bigint(20) unsigned NOT NULL auto_increment,
+ slug varchar(255) NOT NULL,
+ PRIMARY KEY (group_id),
+ KEY slug (slug($max_index_length))
+ ) $charset_collate";
+
+ default:
+ return '';
+ }
+ }
+
+ /**
+ * Update the actions table schema, allowing datetime fields to be NULL.
+ *
+ * This is needed because the NOT NULL constraint causes a conflict with some versions of MySQL
+ * configured with sql_mode=NO_ZERO_DATE, which can for instance lead to tables not being created.
+ *
+ * Most other schema updates happen via ActionScheduler_Abstract_Schema::update_table(), however
+ * that method relies on dbDelta() and this change is not possible when using that function.
+ *
+ * @param string $table Name of table being updated.
+ * @param string $db_version The existing schema version of the table.
+ */
+ public function update_schema_5_0( $table, $db_version ) {
+ global $wpdb;
+
+ if ( 'actionscheduler_actions' !== $table || version_compare( $db_version, '5', '>=' ) ) {
+ return;
+ }
+
+ // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
+ $table_name = $wpdb->prefix . 'actionscheduler_actions';
+ $table_list = $wpdb->get_col( "SHOW TABLES LIKE '{$table_name}'" );
+ $default_date = self::DEFAULT_DATE;
+
+ if ( ! empty( $table_list ) ) {
+ $query = "
+ ALTER TABLE {$table_name}
+ MODIFY COLUMN scheduled_date_gmt datetime NULL default '{$default_date}',
+ MODIFY COLUMN scheduled_date_local datetime NULL default '{$default_date}',
+ MODIFY COLUMN last_attempt_gmt datetime NULL default '{$default_date}',
+ MODIFY COLUMN last_attempt_local datetime NULL default '{$default_date}'
+ ";
+ $wpdb->query( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
+ }
+ // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php
new file mode 100644
index 00000000..6f271688
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php
@@ -0,0 +1,28 @@
+get_date();
+ $replacement_method = 'get_date()';
+ } else {
+ $return_value = $this->get_next( $after );
+ $replacement_method = 'get_next( $after )';
+ }
+
+ _deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+
+ return $return_value;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/ActionScheduler_Store_Deprecated.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/ActionScheduler_Store_Deprecated.php
new file mode 100644
index 00000000..eaf15b72
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/ActionScheduler_Store_Deprecated.php
@@ -0,0 +1,50 @@
+mark_failure( $action_id );
+ }
+
+ /**
+ * Add base hooks
+ *
+ * @since 2.2.6
+ */
+ protected static function hook() {
+ _deprecated_function( __METHOD__, '3.0.0' );
+ }
+
+ /**
+ * Remove base hooks
+ *
+ * @since 2.2.6
+ */
+ protected static function unhook() {
+ _deprecated_function( __METHOD__, '3.0.0' );
+ }
+
+ /**
+ * Get the site's local time.
+ *
+ * @deprecated 2.1.0
+ * @return DateTimeZone
+ */
+ protected function get_local_timezone() {
+ _deprecated_function( __FUNCTION__, '2.1.0', 'ActionScheduler_TimezoneHelper::set_local_timezone()' );
+ return ActionScheduler_TimezoneHelper::get_local_timezone();
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/functions.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/functions.php
new file mode 100644
index 00000000..56953362
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/deprecated/functions.php
@@ -0,0 +1,127 @@
+ '' - the name of the action that will be triggered
+ * 'args' => NULL - the args array that will be passed with the action
+ * 'date' => NULL - the scheduled date of the action. Expects a DateTime object, a unix timestamp, or a string that can parsed with strtotime(). Used in UTC timezone.
+ * 'date_compare' => '<=' - operator for testing "date". accepted values are '!=', '>', '>=', '<', '<=', '='
+ * 'modified' => NULL - the date the action was last updated. Expects a DateTime object, a unix timestamp, or a string that can parsed with strtotime(). Used in UTC timezone.
+ * 'modified_compare' => '<=' - operator for testing "modified". accepted values are '!=', '>', '>=', '<', '<=', '='
+ * 'group' => '' - the group the action belongs to
+ * 'status' => '' - ActionScheduler_Store::STATUS_COMPLETE or ActionScheduler_Store::STATUS_PENDING
+ * 'claimed' => NULL - TRUE to find claimed actions, FALSE to find unclaimed actions, a string to find a specific claim ID
+ * 'per_page' => 5 - Number of results to return
+ * 'offset' => 0
+ * 'orderby' => 'date' - accepted values are 'hook', 'group', 'modified', or 'date'
+ * 'order' => 'ASC'
+ * @param string $return_format OBJECT, ARRAY_A, or ids
+ *
+ * @deprecated 2.1.0
+ *
+ * @return array
+ */
+function wc_get_scheduled_actions( $args = array(), $return_format = OBJECT ) {
+ _deprecated_function( __FUNCTION__, '2.1.0', 'as_get_scheduled_actions()' );
+ return as_get_scheduled_actions( $args, $return_format );
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/functions.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/functions.php
new file mode 100644
index 00000000..1b02c489
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/functions.php
@@ -0,0 +1,494 @@
+create(
+ array(
+ 'type' => 'async',
+ 'hook' => $hook,
+ 'arguments' => $args,
+ 'group' => $group,
+ 'unique' => $unique,
+ 'priority' => $priority,
+ )
+ );
+}
+
+/**
+ * Schedule an action to run one time
+ *
+ * @param int $timestamp When the job will run.
+ * @param string $hook The hook to trigger.
+ * @param array $args Arguments to pass when the hook triggers.
+ * @param string $group The group to assign this job to.
+ * @param bool $unique Whether the action should be unique.
+ * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255.
+ *
+ * @return int The action ID. Zero if there was an error scheduling the action.
+ */
+function as_schedule_single_action( $timestamp, $hook, $args = array(), $group = '', $unique = false, $priority = 10 ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return 0;
+ }
+
+ /**
+ * Provides an opportunity to short-circuit the default process for enqueuing single
+ * actions.
+ *
+ * Returning a value other than null from the filter will short-circuit the normal
+ * process. The expectation in such a scenario is that callbacks will return an integer
+ * representing the scheduled action ID (scheduled using some alternative process) or else
+ * zero.
+ *
+ * @param int|null $pre_option The value to return instead of the option value.
+ * @param int $timestamp When the action will run.
+ * @param string $hook Action hook.
+ * @param array $args Action arguments.
+ * @param string $group Action group.
+ * @param int $priorities Action priority.
+ */
+ $pre = apply_filters( 'pre_as_schedule_single_action', null, $timestamp, $hook, $args, $group, $priority );
+ if ( null !== $pre ) {
+ return is_int( $pre ) ? $pre : 0;
+ }
+
+ return ActionScheduler::factory()->create(
+ array(
+ 'type' => 'single',
+ 'hook' => $hook,
+ 'arguments' => $args,
+ 'when' => $timestamp,
+ 'group' => $group,
+ 'unique' => $unique,
+ 'priority' => $priority,
+ )
+ );
+}
+
+/**
+ * Schedule a recurring action
+ *
+ * @param int $timestamp When the first instance of the job will run.
+ * @param int $interval_in_seconds How long to wait between runs.
+ * @param string $hook The hook to trigger.
+ * @param array $args Arguments to pass when the hook triggers.
+ * @param string $group The group to assign this job to.
+ * @param bool $unique Whether the action should be unique.
+ * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255.
+ *
+ * @return int The action ID. Zero if there was an error scheduling the action.
+ */
+function as_schedule_recurring_action( $timestamp, $interval_in_seconds, $hook, $args = array(), $group = '', $unique = false, $priority = 10 ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return 0;
+ }
+
+ $interval = (int) $interval_in_seconds;
+
+ // We expect an integer and allow it to be passed using float and string types, but otherwise
+ // should reject unexpected values.
+ if ( ! is_numeric( $interval_in_seconds ) || $interval_in_seconds != $interval ) {
+ _doing_it_wrong(
+ __METHOD__,
+ sprintf(
+ /* translators: 1: provided value 2: provided type. */
+ esc_html__( 'An integer was expected but "%1$s" (%2$s) was received.', 'woocommerce' ),
+ esc_html( $interval_in_seconds ),
+ esc_html( gettype( $interval_in_seconds ) )
+ ),
+ '3.6.0'
+ );
+
+ return 0;
+ }
+
+ /**
+ * Provides an opportunity to short-circuit the default process for enqueuing recurring
+ * actions.
+ *
+ * Returning a value other than null from the filter will short-circuit the normal
+ * process. The expectation in such a scenario is that callbacks will return an integer
+ * representing the scheduled action ID (scheduled using some alternative process) or else
+ * zero.
+ *
+ * @param int|null $pre_option The value to return instead of the option value.
+ * @param int $timestamp When the action will run.
+ * @param int $interval_in_seconds How long to wait between runs.
+ * @param string $hook Action hook.
+ * @param array $args Action arguments.
+ * @param string $group Action group.
+ * @param int $priority Action priority.
+ */
+ $pre = apply_filters( 'pre_as_schedule_recurring_action', null, $timestamp, $interval_in_seconds, $hook, $args, $group, $priority );
+ if ( null !== $pre ) {
+ return is_int( $pre ) ? $pre : 0;
+ }
+
+ return ActionScheduler::factory()->create(
+ array(
+ 'type' => 'recurring',
+ 'hook' => $hook,
+ 'arguments' => $args,
+ 'when' => $timestamp,
+ 'pattern' => $interval_in_seconds,
+ 'group' => $group,
+ 'unique' => $unique,
+ 'priority' => $priority,
+ )
+ );
+}
+
+/**
+ * Schedule an action that recurs on a cron-like schedule.
+ *
+ * @param int $timestamp The first instance of the action will be scheduled
+ * to run at a time calculated after this timestamp matching the cron
+ * expression. This can be used to delay the first instance of the action.
+ * @param string $schedule A cron-link schedule string.
+ * @see http://en.wikipedia.org/wiki/Cron
+ * * * * * * *
+ * ┬ ┬ ┬ ┬ ┬ ┬
+ * | | | | | |
+ * | | | | | + year [optional]
+ * | | | | +----- day of week (0 - 7) (Sunday=0 or 7)
+ * | | | +---------- month (1 - 12)
+ * | | +--------------- day of month (1 - 31)
+ * | +-------------------- hour (0 - 23)
+ * +------------------------- min (0 - 59)
+ * @param string $hook The hook to trigger.
+ * @param array $args Arguments to pass when the hook triggers.
+ * @param string $group The group to assign this job to.
+ * @param bool $unique Whether the action should be unique.
+ * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255.
+ *
+ * @return int The action ID. Zero if there was an error scheduling the action.
+ */
+function as_schedule_cron_action( $timestamp, $schedule, $hook, $args = array(), $group = '', $unique = false, $priority = 10 ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return 0;
+ }
+
+ /**
+ * Provides an opportunity to short-circuit the default process for enqueuing cron
+ * actions.
+ *
+ * Returning a value other than null from the filter will short-circuit the normal
+ * process. The expectation in such a scenario is that callbacks will return an integer
+ * representing the scheduled action ID (scheduled using some alternative process) or else
+ * zero.
+ *
+ * @param int|null $pre_option The value to return instead of the option value.
+ * @param int $timestamp When the action will run.
+ * @param string $schedule Cron-like schedule string.
+ * @param string $hook Action hook.
+ * @param array $args Action arguments.
+ * @param string $group Action group.
+ * @param int $priority Action priority.
+ */
+ $pre = apply_filters( 'pre_as_schedule_cron_action', null, $timestamp, $schedule, $hook, $args, $group, $priority );
+ if ( null !== $pre ) {
+ return is_int( $pre ) ? $pre : 0;
+ }
+
+ return ActionScheduler::factory()->create(
+ array(
+ 'type' => 'cron',
+ 'hook' => $hook,
+ 'arguments' => $args,
+ 'when' => $timestamp,
+ 'pattern' => $schedule,
+ 'group' => $group,
+ 'unique' => $unique,
+ 'priority' => $priority,
+ )
+ );
+}
+
+/**
+ * Cancel the next occurrence of a scheduled action.
+ *
+ * While only the next instance of a recurring or cron action is unscheduled by this method, that will also prevent
+ * all future instances of that recurring or cron action from being run. Recurring and cron actions are scheduled in
+ * a sequence instead of all being scheduled at once. Each successive occurrence of a recurring action is scheduled
+ * only after the former action is run. If the next instance is never run, because it's unscheduled by this function,
+ * then the following instance will never be scheduled (or exist), which is effectively the same as being unscheduled
+ * by this method also.
+ *
+ * @param string $hook The hook that the job will trigger.
+ * @param array $args Args that would have been passed to the job.
+ * @param string $group The group the job is assigned to.
+ *
+ * @return int|null The scheduled action ID if a scheduled action was found, or null if no matching action found.
+ */
+function as_unschedule_action( $hook, $args = array(), $group = '' ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return 0;
+ }
+ $params = array(
+ 'hook' => $hook,
+ 'status' => ActionScheduler_Store::STATUS_PENDING,
+ 'orderby' => 'date',
+ 'order' => 'ASC',
+ 'group' => $group,
+ );
+ if ( is_array( $args ) ) {
+ $params['args'] = $args;
+ }
+
+ $action_id = ActionScheduler::store()->query_action( $params );
+
+ if ( $action_id ) {
+ try {
+ ActionScheduler::store()->cancel_action( $action_id );
+ } catch ( Exception $exception ) {
+ ActionScheduler::logger()->log(
+ $action_id,
+ sprintf(
+ /* translators: %1$s is the name of the hook to be cancelled, %2$s is the exception message. */
+ __( 'Caught exception while cancelling action "%1$s": %2$s', 'woocommerce' ),
+ $hook,
+ $exception->getMessage()
+ )
+ );
+
+ $action_id = null;
+ }
+ }
+
+ return $action_id;
+}
+
+/**
+ * Cancel all occurrences of a scheduled action.
+ *
+ * @param string $hook The hook that the job will trigger.
+ * @param array $args Args that would have been passed to the job.
+ * @param string $group The group the job is assigned to.
+ */
+function as_unschedule_all_actions( $hook, $args = array(), $group = '' ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return;
+ }
+ if ( empty( $args ) ) {
+ if ( ! empty( $hook ) && empty( $group ) ) {
+ ActionScheduler_Store::instance()->cancel_actions_by_hook( $hook );
+ return;
+ }
+ if ( ! empty( $group ) && empty( $hook ) ) {
+ ActionScheduler_Store::instance()->cancel_actions_by_group( $group );
+ return;
+ }
+ }
+ do {
+ $unscheduled_action = as_unschedule_action( $hook, $args, $group );
+ } while ( ! empty( $unscheduled_action ) );
+}
+
+/**
+ * Check if there is an existing action in the queue with a given hook, args and group combination.
+ *
+ * An action in the queue could be pending, in-progress or async. If the is pending for a time in
+ * future, its scheduled date will be returned as a timestamp. If it is currently being run, or an
+ * async action sitting in the queue waiting to be processed, in which case boolean true will be
+ * returned. Or there may be no async, in-progress or pending action for this hook, in which case,
+ * boolean false will be the return value.
+ *
+ * @param string $hook Name of the hook to search for.
+ * @param array $args Arguments of the action to be searched.
+ * @param string $group Group of the action to be searched.
+ *
+ * @return int|bool The timestamp for the next occurrence of a pending scheduled action, true for an async or in-progress action or false if there is no matching action.
+ */
+function as_next_scheduled_action( $hook, $args = null, $group = '' ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return false;
+ }
+
+ $params = array(
+ 'hook' => $hook,
+ 'orderby' => 'date',
+ 'order' => 'ASC',
+ 'group' => $group,
+ );
+
+ if ( is_array( $args ) ) {
+ $params['args'] = $args;
+ }
+
+ $params['status'] = ActionScheduler_Store::STATUS_RUNNING;
+ $action_id = ActionScheduler::store()->query_action( $params );
+ if ( $action_id ) {
+ return true;
+ }
+
+ $params['status'] = ActionScheduler_Store::STATUS_PENDING;
+ $action_id = ActionScheduler::store()->query_action( $params );
+ if ( null === $action_id ) {
+ return false;
+ }
+
+ $action = ActionScheduler::store()->fetch_action( $action_id );
+ $scheduled_date = $action->get_schedule()->get_date();
+ if ( $scheduled_date ) {
+ return (int) $scheduled_date->format( 'U' );
+ } elseif ( null === $scheduled_date ) { // pending async action with NullSchedule.
+ return true;
+ }
+
+ return false;
+}
+
+/**
+ * Check if there is a scheduled action in the queue but more efficiently than as_next_scheduled_action().
+ *
+ * It's recommended to use this function when you need to know whether a specific action is currently scheduled
+ * (pending or in-progress).
+ *
+ * @since 3.3.0
+ *
+ * @param string $hook The hook of the action.
+ * @param array $args Args that have been passed to the action. Null will matches any args.
+ * @param string $group The group the job is assigned to.
+ *
+ * @return bool True if a matching action is pending or in-progress, false otherwise.
+ */
+function as_has_scheduled_action( $hook, $args = null, $group = '' ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return false;
+ }
+
+ $query_args = array(
+ 'hook' => $hook,
+ 'status' => array( ActionScheduler_Store::STATUS_RUNNING, ActionScheduler_Store::STATUS_PENDING ),
+ 'group' => $group,
+ 'orderby' => 'none',
+ );
+
+ if ( null !== $args ) {
+ $query_args['args'] = $args;
+ }
+
+ $action_id = ActionScheduler::store()->query_action( $query_args );
+
+ return null !== $action_id;
+}
+
+/**
+ * Find scheduled actions
+ *
+ * @param array $args Possible arguments, with their default values.
+ * 'hook' => '' - the name of the action that will be triggered.
+ * 'args' => NULL - the args array that will be passed with the action.
+ * 'date' => NULL - the scheduled date of the action. Expects a DateTime object, a unix timestamp, or a string that can parsed with strtotime(). Used in UTC timezone.
+ * 'date_compare' => '<=' - operator for testing "date". accepted values are '!=', '>', '>=', '<', '<=', '='.
+ * 'modified' => NULL - the date the action was last updated. Expects a DateTime object, a unix timestamp, or a string that can parsed with strtotime(). Used in UTC timezone.
+ * 'modified_compare' => '<=' - operator for testing "modified". accepted values are '!=', '>', '>=', '<', '<=', '='.
+ * 'group' => '' - the group the action belongs to.
+ * 'status' => '' - ActionScheduler_Store::STATUS_COMPLETE or ActionScheduler_Store::STATUS_PENDING.
+ * 'claimed' => NULL - TRUE to find claimed actions, FALSE to find unclaimed actions, a string to find a specific claim ID.
+ * 'per_page' => 5 - Number of results to return.
+ * 'offset' => 0.
+ * 'orderby' => 'date' - accepted values are 'hook', 'group', 'modified', 'date' or 'none'.
+ * 'order' => 'ASC'.
+ *
+ * @param string $return_format OBJECT, ARRAY_A, or ids.
+ *
+ * @return array
+ */
+function as_get_scheduled_actions( $args = array(), $return_format = OBJECT ) {
+ if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
+ return array();
+ }
+ $store = ActionScheduler::store();
+ foreach ( array( 'date', 'modified' ) as $key ) {
+ if ( isset( $args[ $key ] ) ) {
+ $args[ $key ] = as_get_datetime_object( $args[ $key ] );
+ }
+ }
+ $ids = $store->query_actions( $args );
+
+ if ( 'ids' === $return_format || 'int' === $return_format ) {
+ return $ids;
+ }
+
+ $actions = array();
+ foreach ( $ids as $action_id ) {
+ $actions[ $action_id ] = $store->fetch_action( $action_id );
+ }
+
+ if ( ARRAY_A == $return_format ) {
+ foreach ( $actions as $action_id => $action_object ) {
+ $actions[ $action_id ] = get_object_vars( $action_object );
+ }
+ }
+
+ return $actions;
+}
+
+/**
+ * Helper function to create an instance of DateTime based on a given
+ * string and timezone. By default, will return the current date/time
+ * in the UTC timezone.
+ *
+ * Needed because new DateTime() called without an explicit timezone
+ * will create a date/time in PHP's timezone, but we need to have
+ * assurance that a date/time uses the right timezone (which we almost
+ * always want to be UTC), which means we need to always include the
+ * timezone when instantiating datetimes rather than leaving it up to
+ * the PHP default.
+ *
+ * @param mixed $date_string A date/time string. Valid formats are explained in http://php.net/manual/en/datetime.formats.php.
+ * @param string $timezone A timezone identifier, like UTC or Europe/Lisbon. The list of valid identifiers is available http://php.net/manual/en/timezones.php.
+ *
+ * @return ActionScheduler_DateTime
+ */
+function as_get_datetime_object( $date_string = null, $timezone = 'UTC' ) {
+ if ( is_object( $date_string ) && $date_string instanceof DateTime ) {
+ $date = new ActionScheduler_DateTime( $date_string->format( 'Y-m-d H:i:s' ), new DateTimeZone( $timezone ) );
+ } elseif ( is_numeric( $date_string ) ) {
+ $date = new ActionScheduler_DateTime( '@' . $date_string, new DateTimeZone( $timezone ) );
+ } else {
+ $date = new ActionScheduler_DateTime( null === $date_string ? 'now' : $date_string, new DateTimeZone( $timezone ) );
+ }
+ return $date;
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/WP_Async_Request.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/WP_Async_Request.php
new file mode 100644
index 00000000..f41641a4
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/WP_Async_Request.php
@@ -0,0 +1,192 @@
+identifier = $this->prefix . '_' . $this->action;
+
+ add_action( 'wp_ajax_' . $this->identifier, array( $this, 'maybe_handle' ) );
+ add_action( 'wp_ajax_nopriv_' . $this->identifier, array( $this, 'maybe_handle' ) );
+ }
+
+ /**
+ * Set data used during the request
+ *
+ * @param array $data Data.
+ *
+ * @return $this
+ */
+ public function data( $data ) {
+ $this->data = $data;
+
+ return $this;
+ }
+
+ /**
+ * Dispatch the async request
+ *
+ * @return array|WP_Error
+ */
+ public function dispatch() {
+ $url = add_query_arg( $this->get_query_args(), $this->get_query_url() );
+ $args = $this->get_post_args();
+
+ return wp_remote_post( esc_url_raw( $url ), $args );
+ }
+
+ /**
+ * Get query args
+ *
+ * @return array
+ */
+ protected function get_query_args() {
+ if ( property_exists( $this, 'query_args' ) ) {
+ return $this->query_args;
+ }
+
+ $args = array(
+ 'action' => $this->identifier,
+ 'nonce' => wp_create_nonce( $this->identifier ),
+ );
+
+ /**
+ * Filters the post arguments used during an async request.
+ *
+ * @param array $url
+ */
+ return apply_filters( $this->identifier . '_query_args', $args );
+ }
+
+ /**
+ * Get query URL
+ *
+ * @return string
+ */
+ protected function get_query_url() {
+ if ( property_exists( $this, 'query_url' ) ) {
+ return $this->query_url;
+ }
+
+ $url = admin_url( 'admin-ajax.php' );
+
+ /**
+ * Filters the post arguments used during an async request.
+ *
+ * @param string $url
+ */
+ return apply_filters( $this->identifier . '_query_url', $url );
+ }
+
+ /**
+ * Get post args
+ *
+ * @return array
+ */
+ protected function get_post_args() {
+ if ( property_exists( $this, 'post_args' ) ) {
+ return $this->post_args;
+ }
+
+ $args = array(
+ 'timeout' => 0.01,
+ 'blocking' => false,
+ 'body' => $this->data,
+ 'cookies' => $_COOKIE,
+ 'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
+ );
+
+ /**
+ * Filters the post arguments used during an async request.
+ *
+ * @param array $args
+ */
+ return apply_filters( $this->identifier . '_post_args', $args );
+ }
+
+ /**
+ * Maybe handle
+ *
+ * Check for correct nonce and pass to handler.
+ */
+ public function maybe_handle() {
+ // Don't lock up other requests while processing
+ session_write_close();
+
+ check_ajax_referer( $this->identifier, 'nonce' );
+
+ $this->handle();
+
+ wp_die();
+ }
+
+ /**
+ * Handle
+ *
+ * Override this method to perform any actions required
+ * during the async request.
+ */
+ abstract protected function handle();
+
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression.php
new file mode 100644
index 00000000..eabb8df0
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression.php
@@ -0,0 +1,319 @@
+
+ * @link http://en.wikipedia.org/wiki/Cron
+ */
+class CronExpression
+{
+ const MINUTE = 0;
+ const HOUR = 1;
+ const DAY = 2;
+ const MONTH = 3;
+ const WEEKDAY = 4;
+ const YEAR = 5;
+
+ /**
+ * @var array CRON expression parts
+ */
+ private $cronParts;
+
+ /**
+ * @var CronExpression_FieldFactory CRON field factory
+ */
+ private $fieldFactory;
+
+ /**
+ * @var array Order in which to test of cron parts
+ */
+ private static $order = array(self::YEAR, self::MONTH, self::DAY, self::WEEKDAY, self::HOUR, self::MINUTE);
+
+ /**
+ * Factory method to create a new CronExpression.
+ *
+ * @param string $expression The CRON expression to create. There are
+ * several special predefined values which can be used to substitute the
+ * CRON expression:
+ *
+ * @yearly, @annually) - Run once a year, midnight, Jan. 1 - 0 0 1 1 *
+ * @monthly - Run once a month, midnight, first of month - 0 0 1 * *
+ * @weekly - Run once a week, midnight on Sun - 0 0 * * 0
+ * @daily - Run once a day, midnight - 0 0 * * *
+ * @hourly - Run once an hour, first minute - 0 * * * *
+ *
+*@param CronExpression_FieldFactory $fieldFactory (optional) Field factory to use
+ *
+ * @return CronExpression
+ */
+ public static function factory($expression, CronExpression_FieldFactory $fieldFactory = null)
+ {
+ $mappings = array(
+ '@yearly' => '0 0 1 1 *',
+ '@annually' => '0 0 1 1 *',
+ '@monthly' => '0 0 1 * *',
+ '@weekly' => '0 0 * * 0',
+ '@daily' => '0 0 * * *',
+ '@hourly' => '0 * * * *'
+ );
+
+ if (isset($mappings[$expression])) {
+ $expression = $mappings[$expression];
+ }
+
+ return new self($expression, $fieldFactory ? $fieldFactory : new CronExpression_FieldFactory());
+ }
+
+ /**
+ * Parse a CRON expression
+ *
+ * @param string $expression CRON expression (e.g. '8 * * * *')
+ * @param CronExpression_FieldFactory $fieldFactory Factory to create cron fields
+ */
+ public function __construct($expression, CronExpression_FieldFactory $fieldFactory)
+ {
+ $this->fieldFactory = $fieldFactory;
+ $this->setExpression($expression);
+ }
+
+ /**
+ * Set or change the CRON expression
+ *
+ * @param string $value CRON expression (e.g. 8 * * * *)
+ *
+ * @return CronExpression
+ * @throws InvalidArgumentException if not a valid CRON expression
+ */
+ public function setExpression($value)
+ {
+ $this->cronParts = preg_split('/\s/', $value, -1, PREG_SPLIT_NO_EMPTY);
+ if (count($this->cronParts) < 5) {
+ throw new InvalidArgumentException(
+ $value . ' is not a valid CRON expression'
+ );
+ }
+
+ foreach ($this->cronParts as $position => $part) {
+ $this->setPart($position, $part);
+ }
+
+ return $this;
+ }
+
+ /**
+ * Set part of the CRON expression
+ *
+ * @param int $position The position of the CRON expression to set
+ * @param string $value The value to set
+ *
+ * @return CronExpression
+ * @throws InvalidArgumentException if the value is not valid for the part
+ */
+ public function setPart($position, $value)
+ {
+ if (!$this->fieldFactory->getField($position)->validate($value)) {
+ throw new InvalidArgumentException(
+ 'Invalid CRON field value ' . $value . ' as position ' . $position
+ );
+ }
+
+ $this->cronParts[$position] = $value;
+
+ return $this;
+ }
+
+ /**
+ * Get a next run date relative to the current date or a specific date
+ *
+ * @param string|DateTime $currentTime (optional) Relative calculation date
+ * @param int $nth (optional) Number of matches to skip before returning a
+ * matching next run date. 0, the default, will return the current
+ * date and time if the next run date falls on the current date and
+ * time. Setting this value to 1 will skip the first match and go to
+ * the second match. Setting this value to 2 will skip the first 2
+ * matches and so on.
+ * @param bool $allowCurrentDate (optional) Set to TRUE to return the
+ * current date if it matches the cron expression
+ *
+ * @return DateTime
+ * @throws RuntimeException on too many iterations
+ */
+ public function getNextRunDate($currentTime = 'now', $nth = 0, $allowCurrentDate = false)
+ {
+ return $this->getRunDate($currentTime, $nth, false, $allowCurrentDate);
+ }
+
+ /**
+ * Get a previous run date relative to the current date or a specific date
+ *
+ * @param string|DateTime $currentTime (optional) Relative calculation date
+ * @param int $nth (optional) Number of matches to skip before returning
+ * @param bool $allowCurrentDate (optional) Set to TRUE to return the
+ * current date if it matches the cron expression
+ *
+ * @return DateTime
+ * @throws RuntimeException on too many iterations
+ * @see CronExpression::getNextRunDate
+ */
+ public function getPreviousRunDate($currentTime = 'now', $nth = 0, $allowCurrentDate = false)
+ {
+ return $this->getRunDate($currentTime, $nth, true, $allowCurrentDate);
+ }
+
+ /**
+ * Get multiple run dates starting at the current date or a specific date
+ *
+ * @param int $total Set the total number of dates to calculate
+ * @param string|DateTime $currentTime (optional) Relative calculation date
+ * @param bool $invert (optional) Set to TRUE to retrieve previous dates
+ * @param bool $allowCurrentDate (optional) Set to TRUE to return the
+ * current date if it matches the cron expression
+ *
+ * @return array Returns an array of run dates
+ */
+ public function getMultipleRunDates($total, $currentTime = 'now', $invert = false, $allowCurrentDate = false)
+ {
+ $matches = array();
+ for ($i = 0; $i < max(0, $total); $i++) {
+ $matches[] = $this->getRunDate($currentTime, $i, $invert, $allowCurrentDate);
+ }
+
+ return $matches;
+ }
+
+ /**
+ * Get all or part of the CRON expression
+ *
+ * @param string $part (optional) Specify the part to retrieve or NULL to
+ * get the full cron schedule string.
+ *
+ * @return string|null Returns the CRON expression, a part of the
+ * CRON expression, or NULL if the part was specified but not found
+ */
+ public function getExpression($part = null)
+ {
+ if (null === $part) {
+ return implode(' ', $this->cronParts);
+ } elseif (array_key_exists($part, $this->cronParts)) {
+ return $this->cronParts[$part];
+ }
+
+ return null;
+ }
+
+ /**
+ * Helper method to output the full expression.
+ *
+ * @return string Full CRON expression
+ */
+ public function __toString()
+ {
+ return $this->getExpression();
+ }
+
+ /**
+ * Determine if the cron is due to run based on the current date or a
+ * specific date. This method assumes that the current number of
+ * seconds are irrelevant, and should be called once per minute.
+ *
+ * @param string|DateTime $currentTime (optional) Relative calculation date
+ *
+ * @return bool Returns TRUE if the cron is due to run or FALSE if not
+ */
+ public function isDue($currentTime = 'now')
+ {
+ if ('now' === $currentTime) {
+ $currentDate = date('Y-m-d H:i');
+ $currentTime = strtotime($currentDate);
+ } elseif ($currentTime instanceof DateTime) {
+ $currentDate = $currentTime->format('Y-m-d H:i');
+ $currentTime = strtotime($currentDate);
+ } else {
+ $currentTime = new DateTime($currentTime);
+ $currentTime->setTime($currentTime->format('H'), $currentTime->format('i'), 0);
+ $currentDate = $currentTime->format('Y-m-d H:i');
+ $currentTime = (int)($currentTime->getTimestamp());
+ }
+
+ return $this->getNextRunDate($currentDate, 0, true)->getTimestamp() == $currentTime;
+ }
+
+ /**
+ * Get the next or previous run date of the expression relative to a date
+ *
+ * @param string|DateTime $currentTime (optional) Relative calculation date
+ * @param int $nth (optional) Number of matches to skip before returning
+ * @param bool $invert (optional) Set to TRUE to go backwards in time
+ * @param bool $allowCurrentDate (optional) Set to TRUE to return the
+ * current date if it matches the cron expression
+ *
+ * @return DateTime
+ * @throws RuntimeException on too many iterations
+ */
+ protected function getRunDate($currentTime = null, $nth = 0, $invert = false, $allowCurrentDate = false)
+ {
+ if ($currentTime instanceof DateTime) {
+ $currentDate = $currentTime;
+ } else {
+ $currentDate = new DateTime($currentTime ? $currentTime : 'now');
+ $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));
+ }
+
+ $currentDate->setTime($currentDate->format('H'), $currentDate->format('i'), 0);
+ $nextRun = clone $currentDate;
+ $nth = (int) $nth;
+
+ // Set a hard limit to bail on an impossible date
+ for ($i = 0; $i < 1000; $i++) {
+
+ foreach (self::$order as $position) {
+ $part = $this->getExpression($position);
+ if (null === $part) {
+ continue;
+ }
+
+ $satisfied = false;
+ // Get the field object used to validate this part
+ $field = $this->fieldFactory->getField($position);
+ // Check if this is singular or a list
+ if (strpos($part, ',') === false) {
+ $satisfied = $field->isSatisfiedBy($nextRun, $part);
+ } else {
+ foreach (array_map('trim', explode(',', $part)) as $listPart) {
+ if ($field->isSatisfiedBy($nextRun, $listPart)) {
+ $satisfied = true;
+ break;
+ }
+ }
+ }
+
+ // If the field is not satisfied, then start over
+ if (!$satisfied) {
+ $field->increment($nextRun, $invert);
+ continue 2;
+ }
+ }
+
+ // Skip this match if needed
+ if ((!$allowCurrentDate && $nextRun == $currentDate) || --$nth > -1) {
+ $this->fieldFactory->getField(0)->increment($nextRun, $invert);
+ continue;
+ }
+
+ return $nextRun;
+ }
+
+ // @codeCoverageIgnoreStart
+ throw new RuntimeException('Impossible CRON expression');
+ // @codeCoverageIgnoreEnd
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php
new file mode 100644
index 00000000..546c9d55
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php
@@ -0,0 +1,101 @@
+
+ */
+abstract class CronExpression_AbstractField implements CronExpression_FieldInterface
+{
+ /**
+ * Check to see if a field is satisfied by a value
+ *
+ * @param string $dateValue Date value to check
+ * @param string $value Value to test
+ *
+ * @return bool
+ */
+ public function isSatisfied($dateValue, $value)
+ {
+ if ($this->isIncrementsOfRanges($value)) {
+ return $this->isInIncrementsOfRanges($dateValue, $value);
+ } elseif ($this->isRange($value)) {
+ return $this->isInRange($dateValue, $value);
+ }
+
+ return $value == '*' || $dateValue == $value;
+ }
+
+ /**
+ * Check if a value is a range
+ *
+ * @param string $value Value to test
+ *
+ * @return bool
+ */
+ public function isRange($value)
+ {
+ return strpos($value, '-') !== false;
+ }
+
+ /**
+ * Check if a value is an increments of ranges
+ *
+ * @param string $value Value to test
+ *
+ * @return bool
+ */
+ public function isIncrementsOfRanges($value)
+ {
+ return strpos($value, '/') !== false;
+ }
+
+ /**
+ * Test if a value is within a range
+ *
+ * @param string $dateValue Set date value
+ * @param string $value Value to test
+ *
+ * @return bool
+ */
+ public function isInRange($dateValue, $value)
+ {
+ $parts = array_map('trim', explode('-', $value, 2));
+
+ return $dateValue >= $parts[0] && $dateValue <= $parts[1];
+ }
+
+ /**
+ * Test if a value is within an increments of ranges (offset[-to]/step size)
+ *
+ * @param string $dateValue Set date value
+ * @param string $value Value to test
+ *
+ * @return bool
+ */
+ public function isInIncrementsOfRanges($dateValue, $value)
+ {
+ $parts = array_map('trim', explode('/', $value, 2));
+ $stepSize = isset($parts[1]) ? $parts[1] : 0;
+ if ($parts[0] == '*' || $parts[0] === '0') {
+ return (int) $dateValue % $stepSize == 0;
+ }
+
+ $range = explode('-', $parts[0], 2);
+ $offset = $range[0];
+ $to = isset($range[1]) ? $range[1] : $dateValue;
+ // Ensure that the date value is within the range
+ if ($dateValue < $offset || $dateValue > $to) {
+ return false;
+ }
+
+ for ($i = $offset; $i <= $to; $i+= $stepSize) {
+ if ($i == $dateValue) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php
new file mode 100644
index 00000000..a7d0c4ba
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php
@@ -0,0 +1,111 @@
+
+ */
+class CronExpression_DayOfMonthField extends CronExpression_AbstractField
+{
+ /**
+ * Get the nearest day of the week for a given day in a month
+ *
+ * @param int $currentYear Current year
+ * @param int $currentMonth Current month
+ * @param int $targetDay Target day of the month
+ *
+ * @return DateTime Returns the nearest date
+ */
+ private static function getNearestWeekday($currentYear, $currentMonth, $targetDay)
+ {
+ $tday = str_pad($targetDay, 2, '0', STR_PAD_LEFT);
+ $target = new DateTime("$currentYear-$currentMonth-$tday");
+ $currentWeekday = (int) $target->format('N');
+
+ if ($currentWeekday < 6) {
+ return $target;
+ }
+
+ $lastDayOfMonth = $target->format('t');
+
+ foreach (array(-1, 1, -2, 2) as $i) {
+ $adjusted = $targetDay + $i;
+ if ($adjusted > 0 && $adjusted <= $lastDayOfMonth) {
+ $target->setDate($currentYear, $currentMonth, $adjusted);
+ if ($target->format('N') < 6 && $target->format('m') == $currentMonth) {
+ return $target;
+ }
+ }
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isSatisfiedBy(DateTime $date, $value)
+ {
+ // ? states that the field value is to be skipped
+ if ($value == '?') {
+ return true;
+ }
+
+ $fieldValue = $date->format('d');
+
+ // Check to see if this is the last day of the month
+ if ($value == 'L') {
+ return $fieldValue == $date->format('t');
+ }
+
+ // Check to see if this is the nearest weekday to a particular value
+ if (strpos($value, 'W')) {
+ // Parse the target day
+ $targetDay = substr($value, 0, strpos($value, 'W'));
+ // Find out if the current day is the nearest day of the week
+ return $date->format('j') == self::getNearestWeekday(
+ $date->format('Y'),
+ $date->format('m'),
+ $targetDay
+ )->format('j');
+ }
+
+ return $this->isSatisfied($date->format('d'), $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function increment(DateTime $date, $invert = false)
+ {
+ if ($invert) {
+ $date->modify('previous day');
+ $date->setTime(23, 59);
+ } else {
+ $date->modify('next day');
+ $date->setTime(0, 0);
+ }
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate($value)
+ {
+ return (bool) preg_match('/[\*,\/\-\?LW0-9A-Za-z]+/', $value);
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php
new file mode 100644
index 00000000..164c532d
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php
@@ -0,0 +1,125 @@
+
+ */
+class CronExpression_DayOfWeekField extends CronExpression_AbstractField
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function isSatisfiedBy(DateTime $date, $value)
+ {
+ if ($value == '?') {
+ return true;
+ }
+
+ // Convert text day of the week values to integers
+ $value = str_ireplace(
+ array('SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'),
+ range(0, 6),
+ $value
+ );
+
+ $currentYear = $date->format('Y');
+ $currentMonth = $date->format('m');
+ $lastDayOfMonth = $date->format('t');
+
+ // Find out if this is the last specific weekday of the month
+ if (strpos($value, 'L')) {
+ $weekday = str_replace('7', '0', substr($value, 0, strpos($value, 'L')));
+ $tdate = clone $date;
+ $tdate->setDate($currentYear, $currentMonth, $lastDayOfMonth);
+ while ($tdate->format('w') != $weekday) {
+ $tdate->setDate($currentYear, $currentMonth, --$lastDayOfMonth);
+ }
+
+ return $date->format('j') == $lastDayOfMonth;
+ }
+
+ // Handle # hash tokens
+ if (strpos($value, '#')) {
+ list($weekday, $nth) = explode('#', $value);
+ // Validate the hash fields
+ if ($weekday < 1 || $weekday > 5) {
+ throw new InvalidArgumentException("Weekday must be a value between 1 and 5. {$weekday} given");
+ }
+ if ($nth > 5) {
+ throw new InvalidArgumentException('There are never more than 5 of a given weekday in a month');
+ }
+ // The current weekday must match the targeted weekday to proceed
+ if ($date->format('N') != $weekday) {
+ return false;
+ }
+
+ $tdate = clone $date;
+ $tdate->setDate($currentYear, $currentMonth, 1);
+ $dayCount = 0;
+ $currentDay = 1;
+ while ($currentDay < $lastDayOfMonth + 1) {
+ if ($tdate->format('N') == $weekday) {
+ if (++$dayCount >= $nth) {
+ break;
+ }
+ }
+ $tdate->setDate($currentYear, $currentMonth, ++$currentDay);
+ }
+
+ return $date->format('j') == $currentDay;
+ }
+
+ // Handle day of the week values
+ if (strpos($value, '-')) {
+ $parts = explode('-', $value);
+ if ($parts[0] == '7') {
+ $parts[0] = '0';
+ } elseif ($parts[1] == '0') {
+ $parts[1] = '7';
+ }
+ $value = implode('-', $parts);
+ }
+
+ // Test to see which Sunday to use -- 0 == 7 == Sunday
+ $format = in_array(7, str_split($value)) ? 'N' : 'w';
+ $fieldValue = $date->format($format);
+
+ return $this->isSatisfied($fieldValue, $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function increment(DateTime $date, $invert = false)
+ {
+ if ($invert) {
+ $date->modify('-1 day');
+ $date->setTime(23, 59, 0);
+ } else {
+ $date->modify('+1 day');
+ $date->setTime(0, 0, 0);
+ }
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate($value)
+ {
+ return (bool) preg_match('/[\*,\/\-0-9A-Z]+/', $value);
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_FieldFactory.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_FieldFactory.php
new file mode 100644
index 00000000..29a427b7
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_FieldFactory.php
@@ -0,0 +1,56 @@
+
+ * @link http://en.wikipedia.org/wiki/Cron
+ */
+class CronExpression_FieldFactory
+{
+ /**
+ * @var array Cache of instantiated fields
+ */
+ private $fields = array();
+
+ /**
+ * Get an instance of a field object for a cron expression position
+ *
+ * @param int $position CRON expression position value to retrieve
+ *
+ * @return CronExpression_FieldInterface
+ * @throws InvalidArgumentException if a position is not valid
+ */
+ public function getField($position)
+ {
+ if (!isset($this->fields[$position])) {
+ switch ($position) {
+ case 0:
+ $this->fields[$position] = new CronExpression_MinutesField();
+ break;
+ case 1:
+ $this->fields[$position] = new CronExpression_HoursField();
+ break;
+ case 2:
+ $this->fields[$position] = new CronExpression_DayOfMonthField();
+ break;
+ case 3:
+ $this->fields[$position] = new CronExpression_MonthField();
+ break;
+ case 4:
+ $this->fields[$position] = new CronExpression_DayOfWeekField();
+ break;
+ case 5:
+ $this->fields[$position] = new CronExpression_YearField();
+ break;
+ default:
+ throw new InvalidArgumentException(
+ $position . ' is not a valid position'
+ );
+ }
+ }
+
+ return $this->fields[$position];
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_FieldInterface.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_FieldInterface.php
new file mode 100644
index 00000000..8105042c
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_FieldInterface.php
@@ -0,0 +1,40 @@
+
+ */
+interface CronExpression_FieldInterface
+{
+ /**
+ * Check if the respective value of a DateTime field satisfies a CRON exp
+ *
+ * @param DateTime $date DateTime object to check
+ * @param string $value CRON expression to test against
+ *
+ * @return bool Returns TRUE if satisfied, FALSE otherwise
+ */
+ public function isSatisfiedBy(DateTime $date, $value);
+
+ /**
+ * When a CRON expression is not satisfied, this method is used to increment
+ * or decrement a DateTime object by the unit of the cron field
+ *
+ * @param DateTime $date DateTime object to change
+ * @param bool $invert (optional) Set to TRUE to decrement
+ *
+ * @return CronExpression_FieldInterface
+ */
+ public function increment(DateTime $date, $invert = false);
+
+ /**
+ * Validates a CRON expression for a given field
+ *
+ * @param string $value CRON expression value to validate
+ *
+ * @return bool Returns TRUE if valid, FALSE otherwise
+ */
+ public function validate($value);
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_HoursField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_HoursField.php
new file mode 100644
index 00000000..731a6997
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_HoursField.php
@@ -0,0 +1,48 @@
+
+ */
+class CronExpression_HoursField extends CronExpression_AbstractField
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function isSatisfiedBy(DateTime $date, $value)
+ {
+ return $this->isSatisfied($date->format('H'), $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function increment(DateTime $date, $invert = false)
+ {
+ // Change timezone to UTC temporarily. This will
+ // allow us to go back or forwards and hour even
+ // if DST will be changed between the hours.
+ $timezone = $date->getTimezone();
+ $date->setTimezone(new DateTimeZone('UTC'));
+ if ($invert) {
+ $date->modify('-1 hour');
+ $date->setTime($date->format('H'), 59);
+ } else {
+ $date->modify('+1 hour');
+ $date->setTime($date->format('H'), 0);
+ }
+ $date->setTimezone($timezone);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate($value)
+ {
+ return (bool) preg_match('/[\*,\/\-0-9]+/', $value);
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php
new file mode 100644
index 00000000..5e6fd8b6
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php
@@ -0,0 +1,40 @@
+
+ */
+class CronExpression_MinutesField extends CronExpression_AbstractField
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function isSatisfiedBy(DateTime $date, $value)
+ {
+ return $this->isSatisfied($date->format('i'), $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function increment(DateTime $date, $invert = false)
+ {
+ if ($invert) {
+ $date->modify('-1 minute');
+ } else {
+ $date->modify('+1 minute');
+ }
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate($value)
+ {
+ return (bool) preg_match('/[\*,\/\-0-9]+/', $value);
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MonthField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MonthField.php
new file mode 100644
index 00000000..e9a5e386
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MonthField.php
@@ -0,0 +1,56 @@
+
+ */
+class CronExpression_MonthField extends CronExpression_AbstractField
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function isSatisfiedBy(DateTime $date, $value)
+ {
+ // Convert text month values to integers
+ $value = str_ireplace(
+ array(
+ 'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN',
+ 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'
+ ),
+ range(1, 12),
+ $value
+ );
+
+ return $this->isSatisfied($date->format('m'), $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function increment(DateTime $date, $invert = false)
+ {
+ if ($invert) {
+ // $date->modify('last day of previous month'); // remove for php 5.2 compat
+ $date->modify('previous month');
+ $date->modify($date->format('Y-m-t'));
+ $date->setTime(23, 59);
+ } else {
+ //$date->modify('first day of next month'); // remove for php 5.2 compat
+ $date->modify('next month');
+ $date->modify($date->format('Y-m-01'));
+ $date->setTime(0, 0);
+ }
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate($value)
+ {
+ return (bool) preg_match('/[\*,\/\-0-9A-Z]+/', $value);
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_YearField.php b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_YearField.php
new file mode 100644
index 00000000..1403f7f1
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_YearField.php
@@ -0,0 +1,44 @@
+
+ */
+class CronExpression_YearField extends CronExpression_AbstractField
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function isSatisfiedBy(DateTime $date, $value)
+ {
+ return $this->isSatisfied($date->format('Y'), $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function increment(DateTime $date, $invert = false)
+ {
+ if ($invert) {
+ $date->modify('-1 year');
+ $date->setDate($date->format('Y'), 12, 31);
+ $date->setTime(23, 59, 0);
+ } else {
+ $date->modify('+1 year');
+ $date->setDate($date->format('Y'), 1, 1);
+ $date->setTime(0, 0, 0);
+ }
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validate($value)
+ {
+ return (bool) preg_match('/[\*,\/\-0-9]+/', $value);
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/LICENSE b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/LICENSE
new file mode 100644
index 00000000..c6d88ac6
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/lib/cron-expression/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Michael Dowling and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/license.txt b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/license.txt
new file mode 100644
index 00000000..f288702d
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/license.txt
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/readme.txt b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/readme.txt
new file mode 100644
index 00000000..ba7d0143
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/readme.txt
@@ -0,0 +1,177 @@
+=== Action Scheduler ===
+Contributors: Automattic, wpmuguru, claudiosanches, peterfabian1000, vedjain, jamosova, obliviousharmony, konamiman, sadowski, royho, barryhughes-1
+Tags: scheduler, cron
+Stable tag: 3.7.0
+License: GPLv3
+Tested up to: 6.4
+
+Action Scheduler - Job Queue for WordPress
+
+== Description ==
+
+Action Scheduler is a scalable, traceable job queue for background processing large sets of actions in WordPress. It's specially designed to be distributed in WordPress plugins.
+
+Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occassions.
+
+Think of it like an extension to `do_action()` which adds the ability to delay and repeat a hook.
+
+## Battle-Tested Background Processing
+
+Every month, Action Scheduler processes millions of payments for [Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/), webhooks for [WooCommerce](https://wordpress.org/plugins/woocommerce/), as well as emails and other events for a range of other plugins.
+
+It's been seen on live sites processing queues in excess of 50,000 jobs and doing resource intensive operations, like processing payments and creating orders, at a sustained rate of over 10,000 / hour without negatively impacting normal site operations.
+
+This is all on infrastructure and WordPress sites outside the control of the plugin author.
+
+If your plugin needs background processing, especially of large sets of tasks, Action Scheduler can help.
+
+## Learn More
+
+To learn more about how to Action Scheduler works, and how to use it in your plugin, check out the docs on [ActionScheduler.org](https://actionscheduler.org).
+
+There you will find:
+
+* [Usage guide](https://actionscheduler.org/usage/): instructions on installing and using Action Scheduler
+* [WP CLI guide](https://actionscheduler.org/wp-cli/): instructions on running Action Scheduler at scale via WP CLI
+* [API Reference](https://actionscheduler.org/api/): complete reference guide for all API functions
+* [Administration Guide](https://actionscheduler.org/admin/): guide to managing scheduled actions via the administration screen
+* [Guide to Background Processing at Scale](https://actionscheduler.org/perf/): instructions for running Action Scheduler at scale via the default WP Cron queue runner
+
+## Credits
+
+Action Scheduler is developed and maintained by [Automattic](http://automattic.com/) with significant early development completed by [Flightless](https://flightless.us/).
+
+Collaboration is cool. We'd love to work with you to improve Action Scheduler. [Pull Requests](https://github.com/woocommerce/action-scheduler/pulls) welcome.
+
+== Changelog ==
+
+= 3.7.0 - 2023-11-20 =
+* Add extended indexes for hook_status_scheduled_date_gmt and status_sheduled_date_gmt.
+* Catch and log exceptions thrown when actions can't be created, e.g. under a corrupt database schema.
+* Release/3.6.4.
+* Tweak - WP 6.4 compatibility.
+* Update unit tests for upcoming dependency version policy.
+* make sure hook action_scheduler_failed_execution can access original exception object.
+* mention dependency version policy in usage.md.
+
+= 3.6.4 - 2023-10-11 =
+* Performance improvements when bulk cancelling actions.
+* Dev-related fixes.
+
+= 3.6.3 - 2023-09-13 =
+* Use `_doing_it_wrong` in initialization check.
+
+= 3.6.2 - 2023-08-09 =
+* Add guidance about passing arguments.
+* Atomic option locking.
+* Improve bulk delete handling.
+* Include database error in the exception message.
+* Tweak - WP 6.3 compatibility.
+
+= 3.6.1 - 2023-06-14 =
+* Document new optional `$priority` arg for various API functions.
+* Document the new `--exclude-groups` WP CLI option.
+* Document the new `action_scheduler_init` hook.
+* Ensure actions within each claim are executed in the expected order.
+* Fix incorrect text domain.
+* Remove SHOW TABLES usage when checking if tables exist.
+
+= 3.6.0 - 2023-05-10 =
+* Add $unique parameter to function signatures.
+* Add a cast-to-int for extra safety before forming new DateTime object.
+* Add a hook allowing exceptions for consistently failing recurring actions.
+* Add action priorities.
+* Add init hook.
+* Always raise the time limit.
+* Bump minimatch from 3.0.4 to 3.0.8.
+* Bump yaml from 2.2.1 to 2.2.2.
+* Defensive coding relating to gaps in declared schedule types.
+* Do not process an action if it cannot be set to `in-progress`.
+* Filter view labels (status names) should be translatable | #919.
+* Fix WPCLI progress messages.
+* Improve data-store initialization flow.
+* Improve error handling across all supported PHP versions.
+* Improve logic for flushing the runtime cache.
+* Support exclusion of multiple groups.
+* Update lint-staged and Node/NPM requirements.
+* add CLI clean command.
+* add CLI exclude-group filter.
+* exclude past-due from list table all filter count.
+* throwing an exception if as_schedule_recurring_action interval param is not of type integer.
+
+= 3.5.4 - 2023-01-17 =
+* Add pre filters during action registration.
+* Async scheduling.
+* Calculate timeouts based on total actions.
+* Correctly order the parameters for `ActionScheduler_ActionFactory`'s calls to `single_unique`.
+* Fetch action in memory first before releasing claim to avoid deadlock.
+* PHP 8.2: declare property to fix creation of dynamic property warning.
+* PHP 8.2: fix "Using ${var} in strings is deprecated, use {$var} instead".
+* Prevent `undefined variable` warning for `$num_pastdue_actions`.
+
+= 3.5.3 - 2022-11-09 =
+* Query actions with partial match.
+
+= 3.5.2 - 2022-09-16 =
+* Fix - erroneous 3.5.1 release.
+
+= 3.5.1 - 2022-09-13 =
+* Maintenance on A/S docs.
+* fix: PHP 8.2 deprecated notice.
+
+= 3.5.0 - 2022-08-25 =
+* Add - The active view link within the "Tools > Scheduled Actions" screen is now clickable.
+* Add - A warning when there are past-due actions.
+* Enhancement - Added the ability to schedule unique actions via an atomic operation.
+* Enhancement - Improvements to cache invalidation when processing batches (when running on WordPress 6.0+).
+* Enhancement - If a recurring action is found to be consistently failing, it will stop being rescheduled.
+* Enhancement - Adds a new "Past Due" view to the scheduled actions list table.
+
+= 3.4.2 - 2022-06-08 =
+* Fix - Change the include for better linting.
+* Fix - update: Added Action scheduler completed action hook.
+
+= 3.4.1 - 2022-05-24 =
+* Fix - Change the include for better linting.
+* Fix - Fix the documented return type.
+
+= 3.4.0 - 2021-10-29 =
+* Enhancement - Number of items per page can now be set for the Scheduled Actions view (props @ovidiul). #771
+* Fix - Do not lower the max_execution_time if it is already set to 0 (unlimited) (props @barryhughes). #755
+* Fix - Avoid triggering autoloaders during the version resolution process (props @olegabr). #731 & #776
+* Dev - ActionScheduler_wcSystemStatus PHPCS fixes (props @ovidiul). #761
+* Dev - ActionScheduler_DBLogger.php PHPCS fixes (props @ovidiul). #768
+* Dev - Fixed phpcs for ActionScheduler_Schedule_Deprecated (props @ovidiul). #762
+* Dev - Improve actions table indicies (props @glagonikas). #774 & #777
+* Dev - PHPCS fixes for ActionScheduler_DBStore.php (props @ovidiul). #769 & #778
+* Dev - PHPCS Fixes for ActionScheduler_Abstract_ListTable (props @ovidiul). #763 & #779
+* Dev - Adds new filter action_scheduler_claim_actions_order_by to allow tuning of the claim query (props @glagonikas). #773
+* Dev - PHPCS fixes for ActionScheduler_WpPostStore class (props @ovidiul). #780
+
+= 3.3.0 - 2021-09-15 =
+* Enhancement - Adds as_has_scheduled_action() to provide a performant way to test for existing actions. #645
+* Fix - Improves compatibility with environments where NO_ZERO_DATE is enabled. #519
+* Fix - Adds safety checks to guard against errors when our database tables cannot be created. #645
+* Dev - Now supports queries that use multiple statuses. #649
+* Dev - Minimum requirements for WordPress and PHP bumped (to 5.2 and 5.6 respectively). #723
+
+= 3.2.1 - 2021-06-21 =
+* Fix - Add extra safety/account for different versions of AS and different loading patterns. #714
+* Fix - Handle hidden columns (Tools → Scheduled Actions) | #600.
+
+= 3.2.0 - 2021-06-03 =
+* Fix - Add "no ordering" option to as_next_scheduled_action().
+* Fix - Add secondary scheduled date checks when claiming actions (DBStore) | #634.
+* Fix - Add secondary scheduled date checks when claiming actions (wpPostStore) | #634.
+* Fix - Adds a new index to the action table, reducing the potential for deadlocks (props: @glagonikas).
+* Fix - Fix unit tests infrastructure and adapt tests to PHP 8.
+* Fix - Identify in-use data store.
+* Fix - Improve test_migration_is_scheduled.
+* Fix - PHP notice on list table.
+* Fix - Speed up clean up and batch selects.
+* Fix - Update pending dependencies.
+* Fix - [PHP 8.0] Only pass action arg values through to do_action_ref_array().
+* Fix - [PHP 8] Set the PHP version to 7.1 in composer.json for PHP 8 compatibility.
+* Fix - add is_initialized() to docs.
+* Fix - fix file permissions.
+* Fix - fixes #664 by replacing __ with esc_html__.
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-035dc61797ac8bfb6d6ed258fe72ad8c.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-035dc61797ac8bfb6d6ed258fe72ad8c.json
new file mode 100644
index 00000000..a789f0b2
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-035dc61797ac8bfb6d6ed258fe72ad8c.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/src\/js\/send-coupon-form\/block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Frontend\u0004Send coupons to...":[""],"Frontend\u0004Your order contains coupons. What would you like to do?":[""],"Frontend\u0004Send to me":[""],"Frontend\u0004Gift to someone else":[""],"Frontend\u0004Send to one person":[""],"Frontend\u0004Send to different people":[""],"Frontend\u0004Deliver coupon":[""],"Frontend\u0004Receiver email address":[""],"Frontend\u0004Enter recipient e-mail address":[""],"Frontend\u0004Message for receiver":[""],"Frontend\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-0fac2f3b919d34656822c41cb1ed8c2c.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-0fac2f3b919d34656822c41cb1ed8c2c.json
new file mode 100644
index 00000000..97d93ab4
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-0fac2f3b919d34656822c41cb1ed8c2c.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/build\/woocommerce-smart-coupons-send-coupon-form-block-frontend.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Frontend\u0004Send coupons to...":[""],"Frontend\u0004Your order contains coupons. What would you like to do?":[""],"Frontend\u0004Send to me":[""],"Frontend\u0004Gift to someone else":[""],"Frontend\u0004Send to one person":[""],"Frontend\u0004Send to different people":[""],"Frontend\u0004Deliver coupon":[""],"Frontend\u0004Receiver email address":[""],"Frontend\u0004Enter recipient e-mail address":[""],"Frontend\u0004Message for receiver":[""],"Frontend\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-88ba117fdcd48887044ec0ca59856410.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-88ba117fdcd48887044ec0ca59856410.json
new file mode 100644
index 00000000..06ea3737
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-88ba117fdcd48887044ec0ca59856410.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/build\/woocommerce-smart-coupons-available-coupons-block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Block editor\u0004Available Coupons (click on a coupon to use it)":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-9b3491f4c368ce2ad4994aa24713559a.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-9b3491f4c368ce2ad4994aa24713559a.json
new file mode 100644
index 00000000..174b317d
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-9b3491f4c368ce2ad4994aa24713559a.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/src\/js\/available-coupons\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Block editor\u0004Available Coupons (click on a coupon to use it)":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-b8d31255012dc50a25232a24e5b093ad.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-b8d31255012dc50a25232a24e5b093ad.json
new file mode 100644
index 00000000..bdfcc231
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-b8d31255012dc50a25232a24e5b093ad.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/src\/js\/send-coupon-form\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Block editor\u0004Send coupons to...":[""],"Block editor\u0004Your order contains coupons. What would you like to do?":[""],"Block editor\u0004Send to me":[""],"Block editor\u0004Gift to someone else":[""],"Block editor\u0004Send to one person":[""],"Block editor\u0004Send to different people":[""],"Block editor\u0004Deliver coupon":[""],"Block editor\u0004now":[""],"Block editor\u0004later":[""],"Block editor\u0004Receiver email address":[""],"Block editor\u0004Enter recipient e-mail address":[""],"Block editor\u0004Message for receiver":[""],"Block editor\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-d811137fe50d78464704a484441a64be.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-d811137fe50d78464704a484441a64be.json
new file mode 100644
index 00000000..852fe6ed
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-d811137fe50d78464704a484441a64be.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"includes\/blocks\/sc-gutenberg-block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Smart Coupons":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-fd0f2ef4bb9ad5ddc0e7e6898a11a573.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-fd0f2ef4bb9ad5ddc0e7e6898a11a573.json
new file mode 100644
index 00000000..65a4c186
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE-fd0f2ef4bb9ad5ddc0e7e6898a11a573.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:52+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/build\/woocommerce-smart-coupons-send-coupon-form-block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de-DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Block editor\u0004Send coupons to...":[""],"Block editor\u0004Your order contains coupons. What would you like to do?":[""],"Block editor\u0004Send to me":[""],"Block editor\u0004Gift to someone else":[""],"Block editor\u0004Send to one person":[""],"Block editor\u0004Send to different people":[""],"Block editor\u0004Deliver coupon":[""],"Block editor\u0004now":[""],"Block editor\u0004later":[""],"Block editor\u0004Receiver email address":[""],"Block editor\u0004Enter recipient e-mail address":[""],"Block editor\u0004Message for receiver":[""],"Block editor\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE.mo b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE.mo
new file mode 100644
index 00000000..4bbab8f7
Binary files /dev/null and b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE.mo differ
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE.po b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE.po
new file mode 100644
index 00000000..4971ff13
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-de_DE.po
@@ -0,0 +1,4549 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: WooCommerce Smart Coupons 8.13.0\n"
+"Report-Msgid-Bugs-To: https://www.storeapps.org/support/contact-us/\n"
+"Last-Translator: \n"
+"Language-Team: German\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-01-12T12:54:20+05:30\n"
+"PO-Revision-Date: 2024-06-07 07:20+0000\n"
+"Language: de-DE\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Loco https://localise.biz/\n"
+"X-Domain: woocommerce-smart-coupons\n"
+"X-Loco-Version: 2.6.6; wp-6.4.3\n"
+
+#. translators: Add more detail to coupon description
+#: includes/class-wc-sc-display-coupons.php:649
+msgid " &"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:278
+#: includes/class-wc-sc-display-coupons.php:869
+#: includes/class-wc-sc-display-coupons.php:2410
+#: includes/class-wc-sc-shortcode.php:540
+#: includes/class-wc-smart-coupons.php:4893
+#: templates/combined-email.php:125
+#: templates/email.php:123
+#: templates/print-coupons-default.php:142
+msgid " & "
+msgstr " & "
+
+#: templates/plain/combined-email.php:88
+#: templates/plain/email.php:83
+msgid " & "
+msgstr " & "
+
+#. translators: 1. Discount type 2. Discount Type Label
+#: includes/class-wc-sc-product-fields.php:114
+#: includes/class-wc-sc-product-fields.php:175
+msgid " ( %1$s: %2$s )"
+msgstr ""
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid " coupon"
+msgstr " Gutschein"
+
+#: includes/class-wc-sc-display-coupons.php:634
+msgid " discount"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:610
+#: includes/class-wc-sc-display-coupons.php:619
+msgid " discount on "
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:601
+msgid " discount on your entire purchase"
+msgstr " Rabatt auf den gesamten Einkauf"
+
+#: includes/class-wc-sc-display-coupons.php:634
+msgid " on "
+msgstr ""
+
+#. translators: %s: Maximum coupon discount amount
+#: includes/class-wc-sc-display-coupons.php:632
+#: includes/class-wc-smart-coupons.php:1168
+#: includes/emails/class-wc-sc-email-coupon.php:439
+msgid " upto %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "! If things aren't going quite as expected, we're happy to help -- please reach out to"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:647
+msgid "\"Coupons with Product\" description"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:414
+msgid "\"Store Credit Receiver detail\" form not appearing on checkout page?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6022
+msgid "$coupon is not an object of WC_Coupon"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6024
+msgid "$coupon is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6642
+#: includes/class-wc-smart-coupons.php:6690
+msgid "$item is not an object of WC_Order_Item"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6644
+#: includes/class-wc-smart-coupons.php:6692
+msgid "$item is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6768
+msgid "$item_id is required"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6509
+#: includes/class-wc-smart-coupons.php:6563
+#: includes/class-wc-smart-coupons.php:6592
+#: includes/class-wc-smart-coupons.php:6616
+#: includes/class-wc-smart-coupons.php:6770
+msgid "$item_id is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6510
+#: includes/class-wc-smart-coupons.php:6564
+#: includes/class-wc-smart-coupons.php:6593
+#: includes/class-wc-smart-coupons.php:6617
+msgid "$item_key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6395
+#: includes/class-wc-smart-coupons.php:6450
+msgid "$key is required"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6397
+#: includes/class-wc-smart-coupons.php:6452
+msgid "$key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6125
+#: includes/class-wc-smart-coupons.php:6240
+#: includes/class-wc-smart-coupons.php:6354
+msgid "$meta_key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6124
+#: includes/class-wc-smart-coupons.php:6239
+#: includes/class-wc-smart-coupons.php:6353
+msgid "$post_id is: "
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1006
+msgid "%"
+msgstr ""
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+msgid "%1$s %2$s %3$s removed because coupon %4$s is removed."
+msgstr ""
+
+#. translators: 1. The coupon code, 2. The discount type
+#: includes/class-wc-sc-ajax.php:252
+#: includes/class-wc-sc-settings.php:332
+msgid "%1$s (Type: %2$s)"
+msgstr ""
+
+#. translators: 1. Discount type 2. Discount amount
+#. translators: 1: coupon type 2: coupon amount
+#: includes/class-wc-sc-display-coupons.php:641
+#: includes/emails/class-wc-sc-email-coupon.php:452
+msgid "%1$s coupon of %2$s"
+msgstr ""
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "%1$s Free Shipping%2$s"
+msgstr "%1$s Kostenloser Versand%2$s"
+
+#. translators: 1. amount of store credit 2. store credit label 3. coupon code
+#: includes/class-wc-sc-coupon-process.php:776
+msgid "%1$s worth of %2$s restored to coupon %3$s."
+msgstr ""
+
+#. translators: 1. amount of store credit 2. coupon code
+#: includes/class-wc-sc-coupon-process.php:779
+msgid "%1$s worth of Store Credit restored to coupon %2$s."
+msgstr ""
+
+#. translators: 1: HTML small tag start 2: HTML small tag end
+#: includes/class-wc-sc-admin-pages.php:1268
+msgid "%1$s(This will add the same coupon description in all the bulk generated coupons)%2$s"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "%1$s: %2$s to avoid issues related to missing data for %3$s. %4$s"
+msgstr ""
+
+#. translators: 1. Error title 2. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:385
+msgid "%1$s: The coupon bulk %2$s process stopped. Please review the coupons list to check the status."
+msgstr ""
+
+#. translators: 1. Important 2. Upload path
+#: includes/class-wc-sc-background-coupon-importer.php:333
+msgid "%1$s: To allow bulk generation of coupons, please make sure %2$s directory is writable."
+msgstr ""
+
+#. translators: 1: WooCommerce Smart Coupons 2: Link for the Smart Coupons settings
+#: includes/class-wc-sc-admin-notifications.php:256
+msgid "%1$s: You are using a custom coupon style which is planned to be removed from the plugin in upcoming versions. New, improved styles & colors are added in the version 4.9.0. We would request you to choose a color scheme & a style for coupon from the newly added colors & styles. You can do this from %2$s."
+msgstr ""
+
+#. translators: 1$-2$: opening and closing tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin.
+#: woocommerce-smart-coupons.php:61
+msgid "%1$sWooCommerce Smart Coupons is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for the Smart Coupons to work. Please %5$sinstall & activate WooCommerce »%6$s"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:53
+msgid "%s - Coupon Personal Data Eraser"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:51
+msgid "%s - Coupon Personal Data Exporter"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:58
+msgid "%s - Order Personal Data Eraser"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:56
+msgid "%s - Order Personal Data Exporter"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:63
+msgid "%s - User Personal Data Eraser"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:61
+msgid "%s - User Personal Data Exporter"
+msgstr ""
+
+#. translators: 1. Coupon type
+#: includes/class-wc-sc-background-coupon-importer.php:400
+msgid "%s are being"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:501
+msgid "%s Balance "
+msgstr "%s Guthaben "
+
+#. translators: Order notes
+#: includes/class-wc-sc-coupon-process.php:787
+msgid "%s Because PayPal doesn't accept discount on shipping & tax."
+msgstr ""
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:467
+msgid "%s database update completed. Thank you for updating to the latest version!"
+msgstr ""
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:416
+msgid "%s database update required"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:758
+msgid "%s discount is inclusive of tax"
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1617
+msgid "%s discount on anything you want."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1619
+msgid "%s discount on entire store."
+msgstr ""
+
+#. translators: Add more detail to coupon description
+#: includes/class-wc-sc-display-coupons.php:649
+msgid "%s Free Shipping"
+msgstr ""
+
+#. translators: 1. Product title
+#: includes/class-wc-sc-coupon-actions.php:421
+msgid "%s has been added to your cart!"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:756
+msgid "%s include tax?"
+msgstr ""
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:454
+msgid "%s is updating the database in the background. The database update process may take a little while, so please be patient."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-display-coupons.php:591
+msgid "%s of "
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:624
+msgid "%s product CTA"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:672
+msgid "%s sent successfully."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:197
+msgid "%s Used"
+msgstr "%s Verwendet"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:254
+msgid "%s Used:"
+msgstr "%s Verwendet:"
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "&"
+msgstr "&"
+
+#: includes/class-wc-sc-admin-pages.php:1194
+msgid "(Add to store and email generated coupons to recipients)"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:199
+msgid "(Copy)"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1184
+msgid "(Does not add to store, but creates a .csv file, that you can"
+msgstr ""
+
+#. translators: %s: Note for admin
+#: includes/class-wc-sc-settings.php:557
+msgid "(Note: It's recommended to keep it Disabled)"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:815
+#: includes/class-wc-sc-admin-pages.php:1229
+msgid "(optional)"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:445
+msgid "(Used only for auto-generated coupons)"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:484
+msgid "(We recommend up to three letters for prefix/suffix)"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:406
+msgid "--:--:--"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid ". If still the issue persist, temporarily de-activate all plugins except WooCommerce & Smart Coupons. Re-check the issue, if the issue still persists, contact us (from the link at the end of this page). If the issue goes away, re-activate other plugins one-by-one & re-checking the fields, to find out which plugin is conflicting."
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid ". Replace www.mysite.com with your own site URL and replace discount5 with the your coupon code."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:784
+#: includes/class-wc-sc-coupon-fields.php:1004
+msgid "0.00"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:999
+msgid "1"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1160
+msgid "10"
+msgstr ""
+
+#. Description of the plugin
+#: woocommerce-smart-coupons.php
+msgid "WooCommerce Smart Coupons lets customers buy gift certificates, store credits or coupons easily. They can use purchased credits themselves or gift to someone else."
+msgstr ""
+
+#. translators: 1: Singular name for post type 2: Email
+#: includes/class-wc-sc-admin-pages.php:1551
+msgid "[%1$s restricted with email: %2$s]"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:501
+#: includes/class-wc-sc-settings.php:510
+#: includes/class-wc-sc-settings.php:519
+#: includes/class-wc-sc-settings.php:528
+#: includes/class-wc-sc-settings.php:537
+#: includes/class-wc-sc-settings.php:625
+#: includes/class-wc-sc-settings.php:637
+#: includes/class-wc-sc-settings.php:648
+#: includes/class-wc-sc-settings.php:658
+#: includes/class-wc-sc-settings.php:668
+#: includes/class-wc-sc-settings.php:689
+#: includes/class-wc-sc-settings.php:698
+#: includes/class-wc-sc-settings.php:708
+#: includes/class-wc-sc-settings.php:717
+msgid "[Preview]"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:575
+#: includes/class-wc-sc-settings.php:586
+#: includes/class-wc-sc-settings.php:606
+msgid "[Read More]"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:87
+msgid "About Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5873
+msgid "Account endpoints > Coupons"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5864
+msgid "Acknowledgement email"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1611
+msgid "Act before the offer expires."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1153
+msgid "Action"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:934
+msgid "Actions"
+msgstr ""
+
+#: includes/compat/class-wcs-sc-compatibility.php:1072
+msgid "Active for x payments"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:551
+msgid "Add Coupon"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:96
+msgid "Add new coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-actions.php:580
+msgid "Add product details"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:964
+msgid "Add products to cart"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:146
+#: includes/class-wc-sc-coupons-by-taxonomy.php:219
+msgid "Add taxonomy restriction"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1166
+msgid "Add to store"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:586
+#: includes/class-wc-sc-background-coupon-importer.php:595
+msgid "added"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:578
+#: includes/class-wc-sc-background-coupon-importer.php:582
+msgid "added & emailed"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:7377
+msgid "Added by coupon"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:711
+msgid "Additional text below the title."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:196
+msgid "Address to look in"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:89
+msgctxt "Admin menu name"
+msgid "Categories"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:264
+msgid "Advanced restrictions - payment, shipping, location, user roles, product attributes"
+msgstr ""
+
+#. translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce'
+#: includes/class-wc-sc-admin-welcome.php:449
+msgid "Aelia Currency Switcher for WooCommerce"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:962
+msgid "After applying the coupon do these also"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:91
+msgid "All coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:608
+#: includes/class-wc-sc-display-coupons.php:617
+msgid "all products"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:936
+msgid "All set, Begin import?"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:716
+#: includes/class-wc-smart-coupons.php:5860
+msgid "Allow schedule sending of coupons?"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:586
+msgid "Allow selling %s at discounted price"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:688
+#: includes/class-wc-smart-coupons.php:5859
+msgid "Allow sending of coupons to others"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:689
+msgid "Allow the buyer to send coupons to someone else."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:468
+msgid "Allowed emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:116
+msgid "Allowed user roles"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1077
+msgid "Already uploaded CSV to the server?"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:359
+msgid "Amaranth red"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2495
+msgid "Amount"
+msgstr "Summe"
+
+#: includes/class-wc-smart-coupons.php:986
+msgid "An error has occurred. Please try again later."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:411
+msgid "An error occurred:"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:267
+msgid "and a lot more…"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "and create your CSV based on that."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:497
+msgid "and my account?"
+msgstr ""
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "any amount"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1344
+msgid "Apply"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:741
+msgid "Apply before tax"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:263
+msgid "Apply multiple coupons via URL"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:215
+msgid "Are you sure you want to remove the selected items? If you have previously reduced this item's stock, or this order was submitted by a customer, you will need to manually restore the item's stock."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:272
+msgid "Are you sure you want to revoke access to this download?"
+msgstr ""
+
+#. translators: 1. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:551
+msgid "Are you sure you want to stop the coupon bulk %s process? Click OK to stop."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:218
+#: includes/class-wc-sc-coupon-refund-process.php:566
+msgid "Are you sure you wish to delete this refund? This action cannot be undone."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:219
+msgid "Are you sure you wish to delete this tax column? This action cannot be undone."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:217
+msgid "Are you sure you wish to process this refund? This action cannot be undone."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:300
+msgid "Attach a gift of any value (free or paid product) to a particular coupon. Here, instead of a discount, a product is redeemed for the coupon code."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1608
+msgid "Attention!"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:167
+msgid "Attribute="
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:545
+msgid "Auto apply coupons"
+msgstr ""
+
+#: includes/class-wc-sc-auto-apply-coupon.php:120
+#: includes/class-wc-sc-auto-apply-coupon.php:186
+msgid "Auto apply?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4650
+msgid "Auto Generate Coupon"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:459
+msgid "Auto generate new coupons with each item"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5862
+msgid "Auto generated coupon email"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:225
+msgid "Auto-fill refund amount"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:555
+#: includes/class-wc-smart-coupons.php:5853
+msgid "Automatic deletion"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:271
+msgid "Automatic payment for subscription renewals"
+msgstr ""
+
+#. translators: %s: plural name for store credit
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-display-coupons.php:749
+#: includes/class-wc-sc-display-coupons.php:940
+#: includes/class-wc-sc-settings.php:673
+msgid "Available Coupons & %s"
+msgstr ""
+
+#. translators: %s: plural name for store credit
+#: includes/class-wc-sc-display-coupons.php:749
+#: includes/class-wc-sc-display-coupons.php:940
+msgid "Available Coupons & Store Credits"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:342
+#: includes/class-wc-sc-display-coupons.php:735
+#: includes/class-wc-sc-settings.php:662
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr "Verfügbare Gutscheine (Klicke, um einen zu nutzen)"
+
+#: includes/class-wc-sc-admin-welcome.php:398
+msgid "Available coupons are not visible on Cart, Checkout & My Account page?"
+msgstr ""
+
+#. translators: %s: list of placeholders
+#: includes/emails/class-wc-sc-email.php:97
+msgid "Available placeholders: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "Awesome, you successfully auto-generated a coupon! Are you having a great experience with"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:408
+msgid "Basic"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1061
+msgid "Before you can upload your import file, you will need to fix the following error:"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:199
+msgid "Billing"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "billing address"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:494
+msgid "Billing Locations"
+msgstr ""
+
+#: blocks/build/js/available-coupons/block.json
+#: blocks/src/js/available-coupons/block.json
+msgctxt "block description"
+msgid "Displays available coupons."
+msgstr ""
+
+#: blocks/build/js/send-coupon-form/block.json
+#: blocks/src/js/send-coupon-form/block.json
+msgctxt "block description"
+msgid "Displays Send coupon form."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-available-coupons-block.js:7
+#: blocks/src/js/available-coupons/edit.js:19
+msgctxt "Block editor"
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:59
+#: blocks/src/js/send-coupon-form/edit.js:63
+msgctxt "Block editor"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:84
+msgctxt "Block editor"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:39
+msgctxt "Block editor"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:71
+msgctxt "Block editor"
+msgid "later"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:88
+msgctxt "Block editor"
+msgid "Message for receiver"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:67
+msgctxt "Block editor"
+msgid "now"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:80
+msgctxt "Block editor"
+msgid "Receiver email address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:30
+msgctxt "Block editor"
+msgid "Send coupons to..."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:53
+msgctxt "Block editor"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:35
+msgctxt "Block editor"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:49
+msgctxt "Block editor"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/blocks.php:51
+msgctxt "Block editor"
+msgid "WooCommerce Smart Coupons"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:92
+msgctxt "Block editor"
+msgid "Write a message"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:31
+msgctxt "Block editor"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:423
+msgctxt "Block editor & frontend"
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:600
+msgctxt "Block editor & frontend"
+msgid "coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:653
+msgctxt "Block editor & frontend"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:654
+msgctxt "Block editor & frontend"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:597
+msgctxt "Block editor & frontend"
+msgid "Free Shipping coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:629
+msgctxt "Block editor & frontend"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:649
+msgctxt "Block editor & frontend"
+msgid "later"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:645
+msgctxt "Block editor & frontend"
+msgid "now"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:604
+msgctxt "Block editor & frontend"
+msgid "of"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:604
+msgctxt "Block editor & frontend"
+msgid "Send"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:515
+#: blocks/class-wc-sc-blocks-integration.php:516
+msgctxt "Block editor & frontend"
+msgid "Send Coupons to..."
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:639
+msgctxt "Block editor & frontend"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:625
+msgctxt "Block editor & frontend"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:635
+msgctxt "Block editor & frontend"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:621
+msgctxt "Block editor & frontend"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/build/js/available-coupons/block.json
+#: blocks/src/js/available-coupons/block.json
+msgctxt "block title"
+msgid "Available coupons"
+msgstr ""
+
+#: blocks/build/js/send-coupon-form/block.json
+#: blocks/src/js/send-coupon-form/block.json
+msgctxt "block title"
+msgid "Send coupon form"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5874
+msgid "Block-enabled Cart"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5875
+msgid "Block-enabled Checkout"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:292
+msgid "Bulk create unique coupons & email them"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:124
+#: includes/class-wc-sc-admin-pages.php:556
+#: includes/class-wc-sc-admin-pages.php:1594
+msgid "Bulk Generate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:262
+msgid "Bulk generate coupons"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:338
+msgid "Bulk generation is disabled since uploads directory is not writable. Please ensure uploads directory is writable before starting bulk generate process."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1623
+msgid "Buy as much as you want. Flat %s off everything."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:684
+msgid "Buyers can send purchased coupons to anyone – right while they're checking out."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5872
+msgid "Calculate coupon discounts sequentially"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:231
+msgid "Calculate line taxes? This will calculate taxes based on the customers country. If no billing/shipping is set it will use the store base country."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:230
+msgid "Calculate totals based on order items, discounts, and shipping?"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:601
+msgid "Call it something else! Use these to quickly change text labels through your store. Use translations for complete control."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:376
+msgid "Can coupon code have any spaces in the name? / My Store Credit/Gift Certificate is not working (not generating new coupon code)."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:944
+msgid "Cancel"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:360
+msgid "Carolina Blue"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:120
+msgid "Cart"
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:337
+#: includes/class-wc-sc-ajax.php:352
+#: includes/class-wc-smart-coupons.php:1148
+#: includes/class-wc-smart-coupons.php:1163
+msgid "Cart Discount"
+msgstr "Warenkorb Rabatt"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:191
+#: includes/class-wc-sc-coupons-by-product-quantity.php:208
+#: includes/class-wc-sc-coupons-by-product-quantity.php:253
+#: includes/class-wc-sc-coupons-by-product-quantity.php:263
+msgid "Categories"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:88
+msgid "Category"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:71
+msgid "Cheatin’ huh?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:134
+msgid "Check this box to include above message in order confirmation email"
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:129
+#: includes/class-wc-sc-product-fields.php:185
+msgid "Check this box to send above coupons on each renewal order."
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "Checkout"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:368
+msgid "Chocolate"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:355
+msgid "Choose a color scheme for coupons."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1070
+msgid "Choose a CSV file"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:395
+msgid "Choose a style for coupon on the website."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:456
+msgid "Choose order status which will trigger the auto-generation of coupon, if the order contains product which will generate the coupon."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:127
+msgid "Choose whether to validate the quantity, cart-wise or product-wise"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:109
+msgid "Choose which format of email to send."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1020
+msgid "Chosen"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3275
+msgid "Clear Smart Coupons Cache"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "Click here to download a sample"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:146
+#: includes/class-wc-sc-coupon-fields.php:1434
+msgid "Click to copy"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:825
+msgid "Click to select coupon code."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:224
+msgid "Click to toggle"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:607
+#: templates/combined-email.php:195
+#: templates/email.php:182
+msgid "Click to visit store. This coupon will be applied automatically."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:407
+msgid "Clipper"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2494
+msgid "Code"
+msgstr "Gutscheincode"
+
+#: includes/class-wc-sc-settings.php:351
+msgid "Colors"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:726
+#: includes/class-wc-smart-coupons.php:5861
+msgid "Combine emails"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5863
+msgid "Combined auto generated coupons email"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1432
+#: includes/class-wc-sc-coupon-fields.php:1447
+msgid "Copied!"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:116
+msgid "Copy"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:232
+msgid "Copy billing information to shipping information? This will remove any currently entered shipping information."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1439
+#: includes/class-wc-sc-coupon-fields.php:1449
+msgid "Copy coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:118
+msgid "Copy coupon shareable link and apply via URL"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:139
+msgid "Copy the following link and share it to apply this coupon via URL."
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:116
+msgid "Copy this coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:271
+msgid "Could not grant access - the user may already have permission for this file or billing email is not set. Ensure the billing email is set, and the order has been saved."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1312
+msgid "Could not locate WooCommerce"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:605
+#: includes/class-wc-sc-purchase-credit.php:991
+#: includes/emails/class-wc-sc-email-coupon.php:488
+msgid "coupon"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:384
+#: includes/emails/class-wc-sc-acknowledgement-email.php:342
+#: templates/acknowledgement-email.php:66
+#: templates/coupon-design/basic.php:39
+#: templates/coupon-design/clipper.php:38
+#: templates/coupon-design/cutout.php:55
+#: templates/coupon-design/deal.php:29
+#: templates/coupon-design/deliver.php:34
+#: templates/coupon-design/shipment.php:33
+#: templates/coupon-design/special.php:58
+#: templates/coupon-design/ticket.php:40
+#: templates/plain/acknowledgement-email.php:56
+msgid "Coupon"
+msgid_plural "Coupons"
+msgstr[0] "Gutschein"
+msgstr[1] "Gutscheine"
+
+#. translators: The coupon code
+#: includes/class-wc-smart-coupons.php:3319
+msgid "Coupon %s is valid for a new user only, hence removed."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:602
+#: includes/class-wc-smart-coupons.php:5009
+msgid "Coupon Amount"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:122
+msgid "Coupon amount, email & message entered for gift card receiver"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:581
+#: includes/class-wc-sc-background-coupon-importer.php:594
+msgid "Coupon bulk generation"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1298
+#: includes/class-wc-sc-coupon-categories.php:87
+#: includes/class-wc-sc-coupon-categories.php:225
+msgid "Coupon categories"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5031
+msgid "Coupon Category"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:599
+#: includes/class-wc-smart-coupons.php:4997
+msgid "Coupon Code"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:879
+msgid "Coupon code"
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+msgid "Coupon code %1$s has been removed. It is valid only for %2$s: %3$s. You can change the payment method from the %4$s page."
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "Coupon code %1$s is valid only for %2$s: %3$s. You can change payment method from the %4$s page."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:480
+msgid "Coupon code format"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:120
+msgid "Coupon code generated for you"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:121
+msgid "Coupon code passed via URL"
+msgstr ""
+
+#: templates/plain/combined-email.php:97
+#: templates/plain/email.php:92
+msgid "Coupon Code:"
+msgstr "Gutscheincode:"
+
+#. translators: %d: Post ID
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:288
+msgid "Coupon creation failed, could not find original coupon: %d"
+msgstr ""
+
+#. translators: %s: coupon id
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:311
+msgid "Coupon creation failed, could not find original coupon: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1288
+msgid "Coupon Data"
+msgstr ""
+
+#. translators: %s: field name
+#: includes/class-wc-sc-purchase-credit.php:1427
+msgid "Coupon delivery date and time is a required field."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1266
+msgid "Coupon Description "
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:565
+#: includes/class-wc-smart-coupons.php:5854
+msgid "Coupon emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:391
+#: includes/class-wc-smart-coupons.php:4661
+msgid "Coupon expiry time"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:605
+msgid "Coupon For"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:577
+#: includes/class-wc-sc-background-coupon-importer.php:585
+msgid "Coupon import"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Coupon Import Error"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "Coupon is not valid for the"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4655
+msgid "Coupon Is Visible Storewide"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:418
+#: includes/class-wc-sc-coupon-message.php:435
+msgid "Coupon Message"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:401
+msgid "Coupon passed in URL"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2167
+msgid "Coupon Received"
+msgstr "Deine Gutscheine"
+
+#: includes/class-wc-sc-settings.php:682
+msgid "Coupon Receiver Details during Checkout"
+msgstr ""
+
+#. translators: The coupon code
+#: includes/class-wc-smart-coupons.php:3378
+msgid "Coupon removed. There is no credit remaining in %s."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:101
+msgid "Coupon shareable link"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4651
+msgid "Coupon Title Prefix"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4652
+msgid "Coupon Title Suffix"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4648
+msgid "Coupon Validity"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:452
+msgid "Coupon value same as product's price?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:123
+#: includes/class-wc-sc-admin-pages.php:550
+#: includes/class-wc-sc-admin-pages.php:555
+#: includes/class-wc-sc-admin-pages.php:1620
+#: includes/class-wc-sc-background-coupon-importer.php:396
+#: includes/class-wc-sc-display-coupons.php:791
+#: includes/class-wc-sc-display-coupons.php:828
+#: includes/class-wc-sc-display-coupons.php:1940
+#: includes/class-wc-sc-product-fields.php:99
+#: includes/class-wc-sc-product-fields.php:159
+msgid "Coupons"
+msgstr "Gutscheine"
+
+#: includes/class-wc-sc-background-coupon-importer.php:606
+msgid "coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:261
+msgid "Create and gift Store Credit / Gift Cards"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:627
+msgid "CSV file has been generated. You can download it from "
+msgstr ""
+
+#. translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce'
+#: includes/class-wc-sc-admin-welcome.php:449
+msgid "Currently, Smart Coupons is compatible with %s. But it is not compatible with any other multi-currency plugin or with WPML."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:384
+msgid "Custom colors"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5286
+msgid "Custom Style"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5020
+msgid "Customer Email"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:436
+msgid "Customers can apply store credit on a subscription during purchase of subscription. If the same store credit has sufficient balance, it'll keep applying it to renewals till the remainder in store credit is higher than renewal price. Customers will be able to apply store credit only during signup. They will not get an option to apply store credit in renewals. But if the store credit will not have sufficient balance to pay for the renewals, then the order will go into pending mode. Now when the customer will go to pay for this renewal order, they'll get an option to apply store credit again. To activate the subscription again, the customer will have to pay for the renewals. When the customer is paying for the renewals from their account, then in that process they can use the same store credit which didn't have the sufficient balance, again & pay for the remaining amount."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:380
+msgid "Customize color scheme for coupons."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:376
+msgid "Customize colors"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:405
+msgid "Cutout"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:440
+msgid "Days"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:409
+msgid "Deal"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:742
+#: includes/class-wc-smart-coupons.php:5851
+msgid "Deduct credit/gift before doing tax calculations"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+msgid "Delete Gift / Credit, when credit is used up"
+msgstr ""
+
+#. translators: %s: Note for admin
+#: includes/class-wc-sc-settings.php:557
+msgid "Delete the %1$s when entire credit amount is used up %2$s"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:406
+msgid "Deliver"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:854
+msgid "Deliver coupon"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:707
+msgid "Description"
+msgstr ""
+
+#: templates/plain/combined-email.php:103
+#: templates/plain/email.php:98
+msgid "Description:"
+msgstr "Beschreibung:"
+
+#: includes/class-wc-smart-coupons.php:4654
+msgid "Disable Email Restriction"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:536
+msgid "Disable email restriction?"
+msgstr ""
+
+#. translators: %s: Explanation of the setting
+#: includes/class-wc-sc-settings.php:547
+msgid "Disabling this, no coupons will be auto-applied - even if any coupon has \"Auto apply?\" enabled."
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:352
+#: includes/class-wc-sc-settings.php:1051
+#: includes/class-wc-smart-coupons.php:1163
+msgid "Discount"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1213
+msgid "Discount Coupons"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5008
+msgid "Discount Type"
+msgstr ""
+
+#: includes/class-wc-sc-order-fields.php:280
+#: templates/plain/combined-email.php:83
+#: templates/plain/email.php:78
+msgid "Discount:"
+msgstr "Rabatt:"
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:537
+msgid "Display coupon description along with coupon code (on site as well as in emails) %s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:125
+msgid "Display message"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5868
+msgid "Display prices during cart and checkout"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5867
+msgid "Display prices in the shop"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5870
+msgid "Display tax totals"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:499
+msgid "Displaying coupons"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:537
+msgid "Do not restrict auto-generated coupons to buyer/receiver email, anyone with coupon code can use it"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:385
+msgid "Do not want to tie store credit to be used by only one customer? / Can a customer send a gift certificate to themselves to pass on to someone else?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:101
+#: includes/class-wc-sc-admin-welcome.php:198
+msgid "Docs"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:418
+msgid "Does Smart Coupons allow printing of coupon as Gift Card?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1612
+msgid "Don't Miss Out."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Download a sample.csv to confirm"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:123
+msgid "Duplicate"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:998
+msgid "each with quantity"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:94
+msgid "Edit coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:386
+msgid "Edit the main coupon which is entered in \"Coupons\" field of the product edit page, then go to \"Usage Restrictions\" > \"Disable Email Restriction\" and disable this setting and save the coupon."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:322
+msgid "Email address"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:35
+msgid "Email auto generated coupon to recipients. One email per coupon."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:566
+msgid "Email auto generated coupons to recipients"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:424
+msgid "Email coupon"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:951
+msgid "Email coupon to recipients"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:124
+msgid "Email heading"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:133
+msgid "Email message?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1212
+msgid "Email to "
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1192
+msgid "Email to recipients"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:107
+msgid "Email type"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:176
+msgid "Enable"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:575
+msgid "Enable feature to allow printing of coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:470
+msgid "Enable store notice for the coupon"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5865
+msgid "Enable taxes"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5871
+msgid "Enable the use of coupon codes"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:103
+msgid "Enable this email notification"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:717
+msgid "Enable this to allow buyers to select date & time for delivering the coupon."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:951
+msgid "Enable this to send coupon to recipient's email addresses, provided in imported file."
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:101
+msgid "Enable/Disable"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1605
+msgid "Ending Soon!"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1941
+msgid "Endpoint for the My Account → Coupons page"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1045
+#: includes/class-wc-smart-coupons.php:5140
+msgctxt "enhanced select"
+msgid "%qty% results are available, use up and down arrow keys to navigate."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5142
+msgctxt "enhanced select"
+msgid "Loading failed"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1054
+#: includes/class-wc-smart-coupons.php:5149
+msgctxt "enhanced select"
+msgid "Loading more results…"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1046
+#: includes/class-wc-smart-coupons.php:5141
+msgctxt "enhanced select"
+msgid "No matches found"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1044
+#: includes/class-wc-smart-coupons.php:5139
+msgctxt "enhanced select"
+msgid "One result is available, press enter to select it."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1051
+#: includes/class-wc-smart-coupons.php:5146
+msgctxt "enhanced select"
+msgid "Please delete %qty% characters"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1050
+#: includes/class-wc-smart-coupons.php:5145
+msgctxt "enhanced select"
+msgid "Please delete 1 character"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1049
+#: includes/class-wc-smart-coupons.php:5144
+msgctxt "enhanced select"
+msgid "Please enter %qty% or more characters"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1048
+#: includes/class-wc-smart-coupons.php:5143
+msgctxt "enhanced select"
+msgid "Please enter 1 or more characters"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1047
+#: includes/class-wc-sc-coupon-fields.php:1055
+#: includes/class-wc-smart-coupons.php:5150
+msgctxt "enhanced select"
+msgid "Searching…"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1053
+#: includes/class-wc-smart-coupons.php:5148
+msgctxt "enhanced select"
+msgid "You can only select %qty% items"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1052
+#: includes/class-wc-smart-coupons.php:5147
+msgctxt "enhanced select"
+msgid "You can only select 1 item"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:229
+msgid "Enter a name for the new attribute term:"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:158
+msgid "Enter a numeric value."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1077
+msgid "Enter location on the server"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:809
+msgid "Enter more than one character to search."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:887
+#: includes/class-wc-sc-purchase-credit.php:998
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:226
+msgid "Enter some text, or some attributes by pipe (|) separating values."
+msgstr ""
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:1200
+msgid "Enter the email addresses of the recipients separated by comma under %1$1s. Make sure to match the count of email addresses in %2$2s to %3$3s"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:306
+msgid "Entered location not found. On pressing \"Enter\" button, a new custom location will be saved as: "
+msgstr ""
+
+#. translators: 1. Error title 2. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:385
+msgid "Error"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-coupon-process.php:352
+msgid "Error: %s Receivers E-mail address is invalid."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:354
+msgid "Error: Gift Card Receivers E-mail address is invalid."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:1257
+msgid "Every 5 Seconds"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:104
+#: includes/class-wc-sc-coupons-by-taxonomy.php:291
+msgid "Exclude"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:546
+msgid "Exclude Attributes"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:200
+msgid "Exclude attributes"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5019
+msgid "Exclude Product categories"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5017
+msgid "Exclude product IDs"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5015
+msgid "Exclude Sale Items"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:244
+msgid "Exclude User Role"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:133
+msgid "Exclude user roles"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:105
+#: includes/class-wc-sc-coupons-by-excluded-email.php:341
+#: includes/class-wc-sc-coupons-by-excluded-email.php:469
+msgid "Excluded emails"
+msgstr ""
+
+#. translators: Discount amount applied on tax
+#: includes/class-wc-smart-coupons.php:2777
+msgid "excludes -%s on tax"
+msgstr ""
+
+#: templates/plain/combined-email.php:108
+#: templates/plain/email.php:103
+msgid "Expires on:"
+msgstr "Gültig bis:"
+
+#: includes/class-wc-sc-admin-pages.php:800
+msgid "Expiry Date"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5011
+msgid "Expiry date"
+msgstr ""
+
+#. translators: 1: The expiry date
+#: includes/class-wc-smart-coupons.php:1278
+msgid "Expiry: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:206
+#: includes/class-wc-smart-coupons.php:4257
+msgid "Export"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1172
+msgid "Export to CSV"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:743
+#: includes/class-wc-sc-background-coupon-importer.php:760
+msgid "Failed to create export file."
+msgstr ""
+
+#. translators: 1. Receiver email 2. Coupon code 3. Order id
+#: includes/class-wc-sc-coupon-process.php:1081
+#: includes/class-wc-smart-coupons.php:873
+msgid "Failed to schedule email to \"%1$s\" for coupon \"%2$s\" received from order #%3$s."
+msgstr ""
+
+#. translators: 1. Receiver email 2. Coupon code
+#: includes/class-wc-sc-coupon-import.php:669
+msgid "Failed to schedule email to \"%1$s\" for coupon \"%2$s\"."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:1324
+#: includes/compat/class-wc-sc-kco-compatibility.php:123
+msgid "Failed to update coupon receiver details in session."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:502
+msgid "Failed to update store credit refund details."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:349
+msgid "FAQ / Common Problems"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:100
+#: includes/class-wc-sc-admin-pages.php:159
+#: includes/class-wc-sc-admin-pages.php:608
+#: includes/class-wc-sc-admin-welcome.php:223
+msgid "FAQ's"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:235
+msgid "Featured"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:177
+msgid "features."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:402
+msgid "Festive"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:941
+msgid "File format seems OK"
+msgstr ""
+
+#. translators: File path
+#: includes/class-wc-smart-coupons.php:5317
+#: includes/class-wc-smart-coupons.php:5325
+msgid "File not found %s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:940
+msgid "File uploaded OK"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4224
+msgid "Filter by category"
+msgstr ""
+
+#. translators: Email address of users
+#: includes/class-wc-smart-coupons.php:7070
+msgid "Find coupons restricted to %s"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:399
+msgid "Flat"
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1625
+msgid "Flat %s discount on everything today."
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:410
+#: includes/emails/class-wc-sc-email-coupon.php:421
+msgid "for all products"
+msgstr "für alle Produkte"
+
+#: includes/emails/class-wc-sc-email-coupon.php:432
+msgid "for entire purchase"
+msgstr "für den gesamten Einkauf"
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "For more details you can refer to this article: %s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:422
+#: includes/class-wc-smart-coupons.php:4656
+#: includes/class-wc-smart-coupons.php:5026
+msgid "For new user only?"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:408
+#: includes/emails/class-wc-sc-email-coupon.php:419
+#: includes/emails/class-wc-sc-email-coupon.php:430
+msgid "for some products"
+msgstr "für einige Produkte"
+
+#: includes/class-wc-sc-display-coupons.php:280
+#: includes/class-wc-sc-display-coupons.php:871
+#: includes/class-wc-sc-display-coupons.php:2412
+#: includes/class-wc-sc-shortcode.php:542
+#: includes/class-wc-smart-coupons.php:4895
+#: templates/combined-email.php:127
+#: templates/email.php:125
+#: templates/plain/combined-email.php:93
+#: templates/plain/email.php:88
+#: templates/print-coupons-default.php:144
+msgid "Free Shipping"
+msgstr "Kostenloser Versand"
+
+#: includes/class-wc-smart-coupons.php:5010
+msgid "Free shipping"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:988
+msgid "Free Shipping coupon"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:144
+#: includes/emails/class-wc-sc-combined-email-coupon.php:221
+#: includes/emails/class-wc-sc-email-coupon.php:202
+#: includes/emails/class-wc-sc-email-coupon.php:281
+msgid "from"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:424
+msgid "From version 4.11.0, you can add/link coupons to product variations as well. This feature is not available in a version lower than 4.11.0."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:235
+#: blocks/src/js/send-coupon-form/block.js:239
+msgctxt "Frontend"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:262
+#: blocks/src/js/send-coupon-form/block.js:287
+msgctxt "Frontend"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:207
+msgctxt "Frontend"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:267
+#: blocks/src/js/send-coupon-form/block.js:294
+msgctxt "Frontend"
+msgid "Message for receiver"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:259
+#: blocks/src/js/send-coupon-form/block.js:284
+msgctxt "Frontend"
+msgid "Receiver email address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:195
+msgctxt "Frontend"
+msgid "Send coupons to..."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:225
+msgctxt "Frontend"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:202
+msgctxt "Frontend"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:220
+msgctxt "Frontend"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:271
+#: blocks/src/js/send-coupon-form/block.js:298
+msgctxt "Frontend"
+msgid "Write a message"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:197
+msgctxt "Frontend"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:366
+#: includes/class-wc-sc-background-coupon-importer.php:371
+msgid "generate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:284
+msgid "Generate coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1164
+msgid "Generate coupons and"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:460
+msgid "Generate exact copy of this coupon with unique coupon code for each purchased product (needs this coupon to be linked with that product)"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:370
+#: includes/class-wc-sc-background-coupon-importer.php:595
+msgid "generated"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:489
+msgid "Generated %s amount"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:365
+msgid "generated & sent"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:390
+msgid "Generated Coupon Data"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2595
+msgid "Generated coupons"
+msgstr "Generierte Gutscheine"
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "arrow"
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Coupons are not generated for this order. You can regenerate it from %1$s. Select an appropriate action from the %2$s dropdown menu and hit the %3$s button next to it."
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Order actions"
+msgstr ""
+
+#. translators: 1. Label for Order action for regenerating coupons
+#: includes/class-wc-sc-display-coupons.php:2120
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Select %s to only regenerate coupons. No email will be sent for this."
+msgstr ""
+
+#. translators: 1. Label for Order action for regenerating & resending coupons
+#: includes/class-wc-sc-display-coupons.php:2130
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Select %s to regenerate as well as resend coupons to the recipients via email."
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:118
+msgid "Get shareable link"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:389
+msgid "Getting 'Page Not Found Error' when accessing Coupons tab from My Account Page?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:298
+msgid "Gift a product via coupon"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:355
+#: includes/emails/class-wc-sc-email-coupon.php:479
+msgid "Gift Card"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:336
+#: templates/acknowledgement-email.php:61
+#: templates/plain/acknowledgement-email.php:51
+msgid "Gift card"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5852
+msgid "Gift Card discount is inclusive of tax"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:337
+#: templates/acknowledgement-email.php:62
+#: templates/plain/acknowledgement-email.php:52
+msgid "Gift cards"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:847
+msgid "Gift to someone else"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:610
+msgid "Give alternate singular name to Store Credit / Gift Certificate. This label will only rename Store Credit / Gift Certificate used in the Smart Coupons plugin."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:432
+msgid "Give away a discount or credit on signing up a subscription, give away recurring discount or credits, apply credit during sign up, automatic payment for renewals from credit (Note: When using PayPal Standard Gateway, store credit can be applied only during sign up. Automatic payment for renewals by credit will not work for PayPal Standard Gateway)."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:314
+msgid "Give bigger discounts without hurting your profits. Offer a percentage off coupon upto a particular value. Example - Flat 50% off upto $100."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:306
+msgid "Give discounts to customers for next purchase"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:617
+msgid "Give plural name for the above singular name."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:179
+msgid "Glad to have you onboard. We hope WooCommerce Smart Coupons adds to your desired success 🏆"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:183
+msgid "Go To Coupons"
+msgstr "Zu den Gutscheinen"
+
+#: includes/class-wc-sc-admin-welcome.php:390
+msgid "Go to WordPress -> Settings -> Permalinks and click on Save Settings once."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:363
+msgid "Gold"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1603
+msgid "Great News!"
+msgstr ""
+
+#. translators: %s: link to submit idea for Smart Coupons on WooCommerce idea board
+#: includes/class-wc-sc-admin-notifications.php:330
+msgid "Have a feature request? Submit it %s."
+msgstr ""
+
+#. translators: %s: link to submit idea for Smart Coupons on WooCommerce idea board
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-notifications.php:330
+#: includes/class-wc-sc-admin-welcome.php:361
+#: includes/class-wc-sc-admin-welcome.php:369
+#: includes/class-wc-sc-admin-welcome.php:395
+#: includes/class-wc-sc-background-coupon-importer.php:627
+#: includes/class-wc-sc-print-coupon.php:278
+msgid "here"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:392
+msgid "HH:MM"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1036
+msgid "Hi there! Upload a CSV file with coupons details to import them into your shop."
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "Hide this notice"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:402
+msgid "How can I resend gift card coupon bought by customers?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:435
+msgid "How does automatic payment by store credit work with Subscriptions?"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:432
+msgid "How many coupons (at max) should be shown on cart, checkout & my account page? If set to 0 (zero) then coupons will not be displayed at all on the website."
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "How to Apply Single or Multiple Coupons on Click of a Link"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:372
+msgid "How to change texts of the emails sent from Smart Coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:373
+msgid "How to override email template"
+msgstr ""
+
+#. translators: Documentation link for 'How to Print Coupons'
+#: includes/class-wc-sc-admin-welcome.php:420
+msgid "How to Print Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:368
+msgid "How to translate texts from Smart Coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:280
+msgid "How to use Smart Coupons the best way"
+msgstr ""
+
+#. Plugin URI of the plugin
+#: woocommerce-smart-coupons.php
+msgid "https://woocommerce.com/products/smart-coupons/"
+msgstr "https://woocommerce.com/products/smart-coupons/"
+
+#. Author URI of the plugin
+#: woocommerce-smart-coupons.php
+msgid "https://www.storeapps.org/"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:1052
+msgid "Hurry. Going fast! On the entire range of products."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:447
+msgid "I'm using WPML & WPML provides support for multi-currency, but Smart Coupons only changes currency symbol & the price value remains same. Can Smart Coupons change the currency symbol and the price value associated with it?"
+msgstr ""
+
+#. translators: 1: ID who refunded
+#: includes/class-wc-sc-coupon-refund-process.php:671
+msgid "ID: %d"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "If enabled, existing coupons that match by coupon code will be updated. Coupons that do not exist will be skipped."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:116
+msgid "If you are a visitor: We access your billing email address entered during purchase"
+msgstr ""
+
+#. translators: WooCommerce My Account support link
+#: includes/class-wc-sc-admin-welcome.php:476
+msgid "If you are facing any issues, please %s from your WooCommerce account."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:115
+msgid "If you are logged in: We access your billing email address saved in your account & billing email address entered during purchase"
+msgstr ""
+
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-welcome.php:395
+msgid "If you want to import coupon through file, the file should be like"
+msgstr ""
+
+#. translators: WooCommerce Subscriptions product link
+#: includes/class-wc-sc-admin-welcome.php:275
+msgid "If your store is using %s and your customer has purchased a subscription using a Store Credit. If that store credit has balance left in it, store will automatically use it for renewing that subscription."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:205
+#: includes/class-wc-sc-coupon-import.php:955
+msgid "Import"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1184
+#: includes/class-wc-sc-background-coupon-importer.php:360
+msgid "import"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:385
+msgid "Import coupons to your store via a csv file."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:294
+msgid "Import and export unique coupons in bulk via CSV. Share coupon codes to deal sites or email them to your customers."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:320
+msgid "Import complete - imported"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:133
+#: includes/class-wc-sc-admin-pages.php:566
+#: includes/class-wc-sc-admin-pages.php:1587
+msgid "Import Coupons"
+msgstr "Gutscheine importieren"
+
+#. translators: 1. Important 2. Upload path
+#. translators: 1. Coupon type
+#: includes/class-wc-sc-admin-notifications.php:165
+#: includes/class-wc-sc-background-coupon-importer.php:333
+#: includes/class-wc-sc-background-coupon-importer.php:400
+#: includes/class-wc-smart-coupons.php:5409
+msgid "Important"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:906
+msgid "Important setting"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:359
+msgid "imported"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:402
+msgid "in the background. You will be notified when it is completed."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:103
+#: includes/class-wc-sc-coupons-by-taxonomy.php:290
+msgid "Include"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:501
+msgid "Include coupon details on product's page, for products that issue coupons %s"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:519
+msgid "Include coupons received from other people on My Account > Coupons page %s"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:491
+msgid "Include tax in the amount of the generated %s"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5850
+msgid "Include tax in the amount of the generated gift card"
+msgstr ""
+
+#. translators: Discount amount applied on tax
+#: includes/class-wc-smart-coupons.php:2780
+msgid "includes -%s on tax"
+msgstr ""
+
+#. translators: 1. Coupon code 2. Expiry date
+#: includes/class-wc-sc-coupon-parser.php:416
+msgid "Incorrect format for expiry date of coupon \"%1$s\". Entered date is %2$s. Expected date format: YYYY-MM-DD"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5014
+msgid "Individual USe"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:941
+msgid "Insert Shortcode"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1245
+msgid "Invalid / Used Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:790
+#: includes/class-wc-sc-purchase-credit.php:156
+msgid "Invalid amount."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Invalid CSV file. Make sure your CSV file contains all columns, header row, and data in correct format."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:770
+msgid "Invalid email address."
+msgstr ""
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+msgid "is"
+msgid_plural "are"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-smart-coupons.php:5409
+msgid "is active but it will only work with WooCommerce 3.0.0+."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:436
+msgid "Is Email Coupon Message"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:423
+msgid "Is it possible to have a coupon for each variation of the variable product?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:439
+msgid "Is it possible to partially pay for a subscription with store credit and the remainder by another method?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4653
+msgid "Is Pick Price of Product"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:427
+msgid "Is Smart Coupons compatible with WooCommerce Subscriptions?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:443
+msgid "Is Smart Coupons WPML compatible?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:393
+msgid "Is there any reference file for creating an import file for coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:177
+msgid "it to use"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:361
+msgid "Keppel"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:214
+msgid "Know Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:599
+msgid "Labels"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:545
+msgid "Later"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1184
+msgid "later"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid "latest version of Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "leaving a review"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2218
+#: includes/class-wc-sc-display-coupons.php:2229
+msgid "Less details"
+msgstr "Weniger Details"
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "Let customers purchase gift cards from you or you issue store credit that your users can redeem on the current or next purchase. See how: %1$s or %2$s"
+msgstr ""
+
+#. translators: %s: link to review WooCommerce Smart Coupons
+#: includes/class-wc-sc-admin-notifications.php:304
+msgid "Liked WooCommerce Smart Coupons? Leave us a %s. A huge thank you from WooCommerce & StoreApps in advance!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5023
+msgid "Limit Usage to X Items"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1606
+msgid "Limited Time Offer!"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2168
+msgid "List of coupons & their details which you have received from the store. Click on the coupon to see the details."
+msgstr "Liste aller Gutscheine und deren Details, die Du erhalten hast. Klicke auf einen Gutschein, um die Details zu sehen."
+
+#: includes/class-wc-sc-display-coupons.php:978
+msgid "List of coupons which are valid & available for use. Click on the coupon to use it. The coupon discount will be visible only when at least one product is present in the cart."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1260
+msgid "List of coupons which can not be used. The reason can be based on its usage restrictions, usage limits, expiry date."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:107
+msgid "List of excluded billing emails to check against when an order is placed. Separate email addresses with commas. You can also use an asterisk (*) to match parts of an email. For example \"*@gmail.com\" would match all gmail addresses."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:233
+msgid "Load the customer's billing information? This will remove any currently entered billing information."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:234
+msgid "Load the customer's shipping information? This will remove any currently entered shipping information."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:207
+msgid "Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:493
+msgid "Locations lookup in"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "Loco Translate"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:364
+msgid "Majorelle Blue"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:123
+msgid "Make a duplicate from this coupon"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:318
+msgid "Make customer's coupon usage, easy & simple"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:355
+msgid "Make sure use of coupon is enabled in your store. You can find this setting"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid "Make sure you are using the "
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1302
+#: includes/class-wc-sc-coupon-categories.php:105
+#: includes/class-wc-sc-coupon-categories.php:165
+#: includes/class-wc-smart-coupons.php:4261
+msgid "Manage coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1615
+msgid "Marketing"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:407
+#: includes/class-wc-smart-coupons.php:4657
+msgid "Max discount"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1075
+msgid "Maximum file size"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:135
+msgid "Maximum quantity"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5013
+msgid "Maximum Spend"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:362
+msgid "McDonald"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5001
+msgid "Menu Order"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:815
+#: includes/class-wc-sc-admin-pages.php:1229
+#: includes/class-wc-sc-display-coupons.php:2464
+#: includes/class-wc-sc-display-coupons.php:2497
+#: includes/class-wc-sc-privacy.php:608
+msgid "Message"
+msgstr ""
+
+#: templates/plain/combined-email.php:75
+#: templates/plain/email.php:26
+msgid "Message:"
+msgstr "Nachricht:"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:131
+msgid "Minimum quantity"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5012
+msgid "Minimum Spend"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:442
+msgid "Months"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2220
+#: includes/class-wc-sc-display-coupons.php:2232
+#: includes/class-wc-sc-display-coupons.php:2335
+msgid "More details"
+msgstr "Mehr Details"
+
+#: includes/class-wc-sc-settings.php:667
+msgid "My Account page"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:820
+msgid "N/A"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:222
+msgid "Name"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1109
+msgid "Need a lot of coupons? You can easily do that with Smart Coupons."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:297
+#: includes/class-wc-sc-display-coupons.php:885
+#: includes/class-wc-sc-display-coupons.php:2442
+#: includes/class-wc-sc-shortcode.php:572
+#: includes/class-wc-smart-coupons.php:4922
+#: includes/emails/class-wc-sc-email-coupon.php:173
+#: templates/combined-email.php:158
+#: templates/email.php:156
+#: templates/plain/combined-email.php:125
+#: templates/plain/email.php:120
+#: templates/print-coupons-default.php:176
+msgid "Never expires"
+msgstr "Kein Ablaufdatum"
+
+#: includes/class-wc-sc-admin-notifications.php:240
+#: includes/class-wc-sc-print-coupon.php:275
+msgid "Never show again"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:97
+msgid "New coupon category name"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "New feature"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:98
+msgid "No coupon categories found"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:827
+msgid "No coupon code found."
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:266
+msgid "No coupon to duplicate has been supplied!"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:238
+msgid "No customer selected"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:136
+#: includes/class-wc-sc-coupons-by-product-quantity.php:158
+#: includes/class-wc-sc-coupons-by-product-quantity.php:196
+#: includes/class-wc-sc-coupons-by-product-quantity.php:226
+#: includes/class-wc-sc-coupons-by-product-quantity.php:238
+msgid "No maximum"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:132
+#: includes/class-wc-sc-coupons-by-product-quantity.php:157
+#: includes/class-wc-sc-coupons-by-product-quantity.php:195
+#: includes/class-wc-sc-coupons-by-product-quantity.php:225
+#: includes/class-wc-sc-coupons-by-product-quantity.php:237
+msgid "No minimum"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:105
+msgid "No payment methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:182
+#: includes/class-wc-sc-coupons-by-product-attribute.php:201
+msgid "No product attributes"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:106
+msgid "No restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:805
+#: includes/class-wc-sc-shortcode.php:846
+#: includes/class-wc-sc-shortcode.php:883
+msgid "No search term specified."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:107
+msgid "No shipping methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:117
+#: includes/class-wc-sc-coupons-by-user-role.php:134
+msgid "No user roles"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:440
+msgid "No, this is possible only in those cases where subscription amount is more than store credit's balance. If store credit's balance is more than subscription's total then your bank account or credit card will not be charged."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:377
+msgid "No. Coupon code should not have any spaces in the name, Eg, Coupon code should be “gift-certificate” & not “gift certificate”."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:513
+msgid "Nonce verification failed for action \"wc_sc_refund_store_credit\"."
+msgstr ""
+
+#. translators: Excluded product names
+#: includes/class-wc-smart-coupons.php:1251
+msgid "Not valid for %s"
+msgstr ""
+
+#. translators: 1: The category names excluded
+#: includes/class-wc-smart-coupons.php:1265
+msgid "Not valid for category %s"
+msgid_plural "Not valid for categories %s"
+msgstr[0] ""
+msgstr[1] ""
+
+#. translators: Formatted maximum amount
+#: includes/class-wc-smart-coupons.php:1239
+msgid "Not valid for sale items"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:444
+msgid "Not yet, but this is being worked on. You will find this in later versions."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1038
+msgid "Note: If any coupon from the CSV file already exists in the store, it will not update the existing coupon, instead a new coupon will be imported & the previous coupon with the same code will become inactive."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:456
+msgid "Note: WP CRON has been disabled on your install which may prevent this update from completing."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:535
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:440
+#: includes/class-wc-smart-coupons.php:5848
+msgid "Number of characters in auto-generated coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:441
+msgid "Number of characters in auto-generated coupon code will be restricted to this number excluding prefix and/or suffix. The default length will be 13. It is recommended to keep this number between 10 to 15 to avoid coupon code duplication."
+msgstr ""
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:1159
+#: includes/class-wc-sc-admin-pages.php:1200
+msgid "Number of coupons to generate"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:431
+#: includes/class-wc-smart-coupons.php:5847
+msgid "Number of coupons to show"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:369
+msgid "Ocean"
+msgstr ""
+
+#. translators: 1. Coupon type 2. Coupon amount
+#: includes/class-wc-sc-purchase-credit.php:997
+msgid "of"
+msgstr ""
+
+#: templates/acknowledgement-email.php:53
+msgid "on"
+msgstr "an"
+
+#: includes/class-wc-sc-settings.php:657
+msgid "On Cart/Checkout pages"
+msgstr ""
+
+#: includes/class-wc-sc-product-columns.php:235
+msgid "Open in a new tab"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1076
+msgid "OR"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1850
+msgctxt "Order edit admin page"
+msgid "Coupon details manually sent."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1845
+msgctxt "Order edit admin page"
+msgid "Coupons manually regenerated & sent."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1843
+msgctxt "Order edit admin page"
+msgid "Coupons manually regenerated."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1816
+msgctxt "Order edit admin page"
+msgid "Regenerate & resend coupon emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1815
+msgctxt "Order edit admin page"
+msgid "Regenerate coupons"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1813
+msgctxt "Order edit admin page"
+msgid "Resend coupon emails"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:894
+msgid "Order paid by %s"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:894
+msgid "Order paid by store credit."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1633
+msgid "Original amount"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "our support team"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:123
+msgctxt "Page slug"
+msgid "wc-sc-coupons-terms"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:124
+msgctxt "Page title"
+msgid "Smart Coupons Terms"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:92
+msgid "Parent coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:93
+msgid "Parent coupon category:"
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "payment method"
+msgid_plural "payment methods"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:104
+#: includes/class-wc-sc-coupons-by-payment-method.php:233
+msgid "Payment methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:115
+msgid "Payment methods that must be selected during checkout for this coupon to be valid."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:890
+#: includes/class-wc-sc-purchase-credit.php:1003
+msgid "Pick a delivery date & time"
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1621
+msgid "Pick any item today for %s off."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "Please consider"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1028
+msgid "Please enter a valid value for Number of Coupons to Generate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:201
+msgid "Please enter in a value less than the regular price."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:200
+msgid "Please enter in country code with two capital letters."
+msgstr ""
+
+#. translators: Decimal point
+#: includes/class-wc-sc-admin-pages.php:197
+msgid "Please enter in decimal (%s) format without thousand separators."
+msgstr ""
+
+#. translators: Decimal point
+#: includes/class-wc-sc-admin-pages.php:199
+msgid "Please enter in monetary decimal (%s) format without thousand separators and currency symbols."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4244
+msgid "Please select at least one coupon to print."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:210
+#: includes/class-wc-sc-coupons-by-product-quantity.php:255
+msgid "Please select some categories"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:216
+msgid "Please select some items."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:171
+#: includes/class-wc-sc-coupons-by-product-quantity.php:247
+msgid "Please select some products"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:677
+msgid "Please try again later."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5409
+msgid "Please update WooCommerce to the latest version"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "plugin and then following steps listed "
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:618
+msgid "Plural name"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5002
+msgid "Post Date"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4998
+msgid "Post Excerpt"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5000
+msgid "Post Parent"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4999
+msgid "Post Status"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:481
+msgid "Prefix"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:209
+#: includes/class-wc-sc-shortcode.php:892
+msgid "Preview"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:830
+#: includes/class-wc-sc-admin-pages.php:1244
+msgid "Preview Email"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5866
+msgid "Prices entered with tax"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4259
+msgid "Print"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1120
+#: templates/combined-email.php:228
+#: templates/email.php:209
+msgid "Print coupon"
+msgid_plural "Print coupons"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-smart-coupons.php:4259
+msgid "Print selected coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:574
+#: includes/class-wc-smart-coupons.php:5855
+msgid "Printing coupons"
+msgstr ""
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+#: includes/class-wc-sc-coupons-by-product-quantity.php:124
+msgid "Product"
+msgid_plural "Products"
+msgstr[0] ""
+msgstr[1] ""
+
+#. translators: 1. Singular/plural label for product(s) 2. Excluded product names
+#: includes/class-wc-sc-coupons-by-product-attribute.php:525
+#: includes/class-wc-sc-coupons-by-taxonomy.php:729
+msgid "product"
+msgid_plural "products"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:545
+msgid "Product Attributes"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:181
+msgid "Product attributes"
+msgstr ""
+
+#. translators: Non product type coupon labels
+#: includes/class-wc-sc-coupons-by-product-attribute.php:193
+msgid "Product attributes that the coupon will be applied to, or that need to be in the cart in order for the %s to be applied."
+msgstr ""
+
+#. translators: Non product type coupon labels
+#: includes/class-wc-sc-coupons-by-product-attribute.php:212
+msgid "Product attributes that the coupon will not be applied to, or that cannot be in the cart in order for the %s to be applied."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5018
+msgid "Product categories"
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:342
+#: includes/class-wc-sc-ajax.php:347
+#: includes/class-wc-smart-coupons.php:1153
+#: includes/class-wc-smart-coupons.php:1158
+msgid "Product Discount"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5016
+msgid "Product IDs"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:115
+#: includes/class-wc-sc-coupons-by-product-quantity.php:663
+msgid "Product quantity based restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:183
+msgid "Product taxonomies that the coupon will be applicable for, or its availability in the cart in order for the \"Fixed cart discount\" to be applied, based on whether the taxonomies are included or excluded."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:142
+msgid "Product taxonomies that the coupon will be applicable for, or its availability in the cart in order for the \"Fixed cart discount\" to be applied, based on whether the taxonomies are included or excluded. All the taxonomies selected here, should be valid, for this coupon to be valid."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:153
+#: includes/class-wc-sc-coupons-by-product-quantity.php:169
+#: includes/class-wc-sc-coupons-by-product-quantity.php:245
+#: includes/class-wc-sc-coupons-by-product-quantity.php:260
+msgid "Products"
+msgstr "Produkte"
+
+#: includes/class-wc-sc-background-coupon-importer.php:405
+msgid "Progress"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:400
+msgid "Promotion"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-purchase-credit.php:218
+msgid "Purchase %s worth"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-purchase-credit.php:218
+#: includes/class-wc-sc-settings.php:642
+msgid "Purchase credit worth"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:727
+msgid "Quickly create and email %s to one or more people."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:729
+msgid "Quickly create and email Store Credit or Gift Card to one or more people."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1039
+msgid "Ready to import? Choose a .csv file, then click \"Upload file\"."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2462
+#: includes/class-wc-sc-display-coupons.php:2496
+msgid "Receiver"
+msgstr "Empfänger"
+
+#: includes/compat/class-wcs-sc-compatibility.php:951
+msgid "Recurring subscriptions"
+msgstr ""
+
+#. translators: 1: refund id 2: refund date
+#: includes/class-wc-sc-coupon-refund-process.php:678
+msgid "Refund %1$s - %2$s"
+msgstr ""
+
+#. translators: 1: refund id 2: refund date 3: username
+#: includes/class-wc-sc-coupon-refund-process.php:665
+msgid "Refund %1$s - %2$s by %3$s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:213
+msgid "Refund to Store Credit"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:239
+msgid "Remind me after a month"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:223
+msgid "Remove"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:219
+msgid "Remove taxonomy restriction"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:221
+msgid "Remove this attribute?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:220
+msgid "Remove this item meta?"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:324
+msgid "Removed Coupon Personal Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:734
+msgid "Removed Order Personal Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:443
+msgid "Removed User Personal Data"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5858
+#: includes/compat/class-wcs-sc-compatibility.php:961
+msgid "Renewal orders should not generate coupons even when they include a product that issues coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1159
+msgid "Required"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:133
+msgctxt "REST API"
+msgid "Coupons scheduled date & time"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:118
+msgctxt "REST API"
+msgid "Email address of recipients"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:148
+msgctxt "REST API"
+msgid "Message for coupon recipient"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:106
+msgctxt "REST API"
+msgid "Whether to send coupons now or schedule for later."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:94
+msgctxt "REST API"
+msgid "Whether to send coupons to only one person or multiple people."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:81
+msgctxt "REST API"
+msgid "Whether to send coupons to someone else."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:816
+msgid "Retain Store Credit/Gift Certificate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:103
+msgid "Review"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:145
+msgid "Role of the users for whom this coupon is not valid. Keep empty if you want this coupon to be valid for users with any role."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:128
+msgid "Role of the users for whom this coupon is valid. Keep empty if you want this coupon to be valid for users with any role."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:365
+msgid "Rose Pink"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5869
+msgid "Rounding"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:116
+msgid "Scheduled email heading"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:108
+msgid "Scheduled email subject"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:474
+msgid "Search & select a coupon which you want to display as store notice. The selected coupon's description will be displayed along with the coupon code (if it is set) otherwise, a description will be generated automatically. To disable the feature, keep this field empty."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:90
+msgid "Search coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:879
+msgid "Search coupon..."
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:100
+#: includes/class-wc-sc-product-fields.php:161
+msgid "Search for a coupon…"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:480
+msgid "Search for a coupon..."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:967
+#: includes/class-wc-sc-coupon-fields.php:994
+msgid "Search for a product…"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:211
+msgid "See coupon search limitations"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:294
+#: includes/class-wc-sc-admin-welcome.php:300
+#: includes/class-wc-sc-admin-welcome.php:308
+#: includes/class-wc-sc-admin-welcome.php:403
+msgid "See how"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:282
+msgid "Select Additional Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:219
+msgid "Select location"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:722
+#: includes/class-wc-sc-settings.php:630
+#: includes/class-wc-smart-coupons.php:296
+msgid "Select options"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:465
+msgid "Select order status…"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:584
+msgid "Sell %s at less price?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5856
+msgid "Sell gift cards at less price?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:283
+msgid "Sell or issue store credit / gift cards"
+msgstr ""
+
+#. translators: 1. Coupon type 2. Coupon amount
+#: includes/class-wc-sc-admin-pages.php:824
+#: includes/class-wc-sc-purchase-credit.php:997
+msgid "Send"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#. translators: Store Credit label
+#: includes/class-wc-sc-admin-pages.php:143
+#: includes/class-wc-sc-admin-pages.php:579
+#: includes/class-wc-sc-admin-pages.php:1591
+msgid "Send %s"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:42
+msgid "Send an acknowledgement email to the purchaser. One email per customer."
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:127
+#: includes/class-wc-sc-product-fields.php:186
+msgid "Send coupons on renewals?"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:820
+#: includes/class-wc-sc-settings.php:702
+msgid "Send Coupons to..."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:727
+msgid "Send only one email instead of multiple emails when multiple coupons are generated for same recipient"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:35
+msgid "Send only one email instead of multiple emails when multiple coupons are generated per recipient."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:143
+#: includes/class-wc-sc-admin-pages.php:579
+msgid "Send Store Credit"
+msgstr ""
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:762
+#: includes/class-wc-sc-admin-pages.php:1200
+#: includes/class-wc-sc-admin-pages.php:1218
+msgid "Send to"
+msgstr "Senden an"
+
+#: includes/class-wc-sc-purchase-credit.php:850
+msgid "Send to different people"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:845
+msgid "Send to me"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:849
+msgid "Send to one person"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2461
+#: includes/class-wc-sc-display-coupons.php:2498
+msgid "Sender"
+msgstr "Absender"
+
+#: includes/class-wc-sc-background-coupon-importer.php:590
+msgid "sent"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:312
+msgid "Set a maximum discount limit"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:347
+msgid "Set up Smart Coupons the way you like. Use these options to configure/change the way Smart Coupons works."
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "Setting"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:165
+msgid "Setting \"Enable the use of coupon codes\" is disabled."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:99
+#: includes/class-wc-sc-admin-welcome.php:197
+msgid "Settings"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:404
+msgid "Shipment"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:203
+msgid "Shipping"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "shipping address"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:495
+msgid "Shipping Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:106
+#: includes/class-wc-sc-coupons-by-shipping-method.php:224
+msgid "Shipping methods"
+msgstr "Versandarten"
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:117
+msgid "Shipping methods that must be selected during checkout for this coupon to be valid."
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:510
+msgid "Show coupons available to customers on their My Account > Coupons page %s"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:528
+msgid "Show invalid or used coupons in My Account > Coupons %s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:497
+msgid "Show on cart, checkout"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:320
+msgid "Show only valid coupons to your customer (if logged in) on cart, checkout & My Account page. Coupons can be applied with single click. So, no need to remember the coupon code or copy-pasting."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "Simplest method is by installing"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:609
+msgid "Singular name"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:617
+msgid "Skipped"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:320
+msgid "skipped"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:521
+#: includes/class-wc-sc-admin-pages.php:523
+msgid "Smart Coupon"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:364
+msgid "Smart Coupon's fields are broken?"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:94
+#: includes/blocks/sc-gutenberg-block.js:43
+msgid "Smart Coupons"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:41
+msgid "Smart Coupons - Acknowledgement email"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:34
+msgid "Smart Coupons - Auto generated coupon email"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:34
+msgid "Smart Coupons - Combined auto generated coupons email"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:255
+msgid "Smart Coupons enable coupons to become an automatic/interactive system."
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:278
+msgid "Smart Coupons has created a coupon's terms page (used during coupon printing) for you. Please edit it as required from"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:254
+msgid "Smart Coupons is a powerful extension, built on top of WooCommerce coupons. It adds a new discount type - Store Credit - and advanced functionality to the default coupons."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:410
+msgid "Smart Coupons is not sending emails."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5883
+msgid "Smart Coupons related settings"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:411
+msgid "Smart Coupons sends email only after order completion. So make sure that order complete email is enabled and sending. If enabled, then make sure all settings of coupons, products are in place. Also check by switching your theme."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:152
+#: includes/class-wc-sc-admin-pages.php:595
+#: includes/class-wc-sc-settings.php:345
+msgid "Smart Coupons Settings"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:266
+msgid "Smart Coupons settings"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:399
+msgid "Smart Coupons uses hooks of Cart, Checkout & My Account page to display available coupons. If your theme is not using those hooks in cart, checkout & my-account template, coupons will not be displayed."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "so far?"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:606
+#: includes/class-wc-sc-display-coupons.php:615
+#: includes/class-wc-sc-display-coupons.php:624
+msgid "some products"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6507
+#: includes/class-wc-smart-coupons.php:6561
+#: includes/class-wc-smart-coupons.php:6590
+#: includes/class-wc-smart-coupons.php:6614
+msgid "Some values required for $item_id & $item_key"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6122
+#: includes/class-wc-smart-coupons.php:6237
+#: includes/class-wc-smart-coupons.php:6351
+msgid "Some values required for $post_id & $meta_key"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:925
+#: includes/class-wc-sc-display-coupons.php:981
+msgid "Sorry, No coupons available for you."
+msgstr "Keine Gutscheine verfügbar."
+
+#: includes/class-wc-sc-coupon-import.php:702
+#: includes/class-wc-sc-coupon-import.php:758
+#: includes/class-wc-sc-coupon-import.php:770
+msgid "Sorry, there has been an error."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:491
+#: includes/class-wc-sc-coupons-by-taxonomy.php:700
+msgid "Sorry, this coupon is not applicable to selected products."
+msgstr ""
+
+#. translators: 1. Singular/plural label for product(s) 2. Excluded product names
+#: includes/class-wc-sc-coupons-by-product-attribute.php:525
+#: includes/class-wc-sc-coupons-by-taxonomy.php:729
+msgid "Sorry, this coupon is not applicable to the %1$s: %2$s."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:367
+msgid "Spanish Orange"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:403
+msgid "Special"
+msgstr ""
+
+#. translators: Formatted minimum amount
+#: includes/class-wc-smart-coupons.php:1231
+msgid "Spend at least %s"
+msgstr ""
+
+#. translators: Formatted maximum amount
+#: includes/class-wc-smart-coupons.php:1235
+msgid "Spend up to %s"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:407
+msgid "Stop"
+msgstr ""
+
+#. translators: Store Credit label
+#: includes/class-wc-sc-admin-pages.php:1426
+#: includes/class-wc-sc-admin-pages.php:1436
+#: includes/class-wc-sc-admin-pages.php:1591
+#: includes/class-wc-sc-ajax.php:332
+#: includes/class-wc-sc-coupon-refund-process.php:666
+#: includes/class-wc-sc-coupon-refund-process.php:679
+#: includes/class-wc-smart-coupons.php:1143
+#: includes/emails/class-wc-sc-email-coupon.php:357
+#: includes/emails/class-wc-sc-email-coupon.php:481
+msgid "Store Credit"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:589
+msgid "Store credit"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:301
+#: includes/compat/class-wcs-sc-compatibility.php:947
+msgid "store credit"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:602
+msgid "store credit / gift card"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:501
+msgid "Store Credit / Gift Card Balance"
+msgstr "Shop-Guthaben / Geschenkkarten-Guthaben"
+
+#: includes/class-wc-sc-coupon-fields.php:1359
+#: includes/class-wc-sc-settings.php:605
+msgid "Store Credit / Gift Certificate"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:672
+msgid "Store Credit / Gift Certificate sent successfully."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-display-coupons.php:591
+msgid "Store Credit of "
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:197
+msgid "Store Credit Used"
+msgstr "Verbrauchtes Gutschein-Guthaben"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:254
+msgid "Store Credit Used:"
+msgstr "Verbrauchtes Gutschein-Guthaben:"
+
+#: includes/class-wc-sc-admin-welcome.php:407
+msgid "Store Credit's default behavior is auto-generate because, when using a store credit, it's balance keeps reducing. Therefore it should be uniquely created for every user automatically."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:112
+#: includes/class-wc-sc-privacy.php:324
+#: includes/class-wc-sc-privacy.php:443
+#: includes/class-wc-sc-privacy.php:734
+msgid "Store Credit/Gift Certificate"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:247
+msgid "Store Credit/Gift Certificate - Coupon Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:618
+msgid "Store Credit/Gift Certificate - Order Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:817
+msgid "Store Credit/Gift Certificate that are stored for customers via coupons. If erased, the customer will not be able to use the coupons."
+msgstr ""
+
+#: includes/class-wc-sc-order-fields.php:341
+msgid "Store Credit:"
+msgstr "Guthaben:"
+
+#: includes/class-wc-sc-display-coupons.php:1185
+msgid "Store Credits"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:302
+#: includes/class-wc-sc-settings.php:896
+msgid "store credits"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:394
+msgid "Store Credits / Gift Cards"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:603
+msgid "store credits / gift cards"
+msgstr ""
+
+#. Author of the plugin
+#: woocommerce-smart-coupons.php
+msgid "StoreApps"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5280
+msgid "Style 1"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5281
+msgid "Style 2"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5282
+msgid "Style 3"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5283
+msgid "Style 4"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5284
+msgid "Style 5"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5285
+msgid "Style 6"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:420
+msgid "Style for coupon in email."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:416
+msgid "Style for email"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:391
+msgid "Styles"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:116
+msgid "Subject"
+msgstr ""
+
+#. translators: WooCommerce My Account support link
+#: includes/class-wc-sc-admin-welcome.php:476
+msgid "submit a ticket"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:614
+msgid "Successfully"
+msgstr ""
+
+#: includes/class-wc-sc-act-deact.php:268
+msgid "Successfully cleared WooCommerce Smart Coupons cache!"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:500
+msgid "Successfully updated store credit refund details."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:483
+msgid "Suffix"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1604
+msgid "Super Savings!"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:102
+msgid "Support"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:141
+#: includes/class-wc-sc-coupons-by-taxonomy.php:182
+msgid "Taxonomy"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:871
+msgid "Taxonomy based restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:177
+msgid "Thank you for installing WooCommerce Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-rest-coupons-controller.php:147
+msgid "The coupon code already exists"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:717
+msgid "The coupons will be sent to the recipients via email on the selected date & time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "The CSV must adhere to a specific format and include a header row."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:417
+msgid "The database update process runs in the background and may take a little while, so please be patient."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:703
+msgid "The file does not exist, please try again."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:409
+msgid "The maximum discount this coupon can give on a cart."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:807
+msgid "The store credit will expire at 00:00:00 of this date."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:701
+msgid "The title for coupon receiver details block."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:163
+msgid "The value should not be greater than"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:161
+msgid "The value should not be less than"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:676
+msgid "There has been an error in sending %s."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:676
+msgid "There has been an error in sending Store Credit / Gift Certificate."
+msgstr ""
+
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-welcome.php:395
+msgid "There is one file which is located inside the plugin. You can download the %1$s file from %2$s."
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:123
+#: includes/class-wc-sc-product-fields.php:160
+msgid "These coupon/s will be given to customers who buy this product. The coupon code will be automatically sent to their email address on purchase."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:977
+msgid "This coupon has pending emails to be sent. Deleting it will delete those emails also. Are you sure to delete this coupon?"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:200
+#: includes/class-wc-sc-coupons-by-shipping-method.php:205
+msgid "This coupon is not valid for selected shipping method."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:239
+#: includes/class-wc-sc-coupons-by-excluded-email.php:253
+#: includes/class-wc-sc-coupons-by-user-role.php:220
+#: includes/class-wc-sc-coupons-by-user-role.php:227
+msgid "This coupon is not valid for you."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3416
+msgid "This coupon is valid for the first order only."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:415
+msgid "This form is displayed using a hook which is available in My Account template. Make sure your theme's my-account template contains all hooks required for that template. Update your theme if it is not updated."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:651
+msgid "This is the heading above coupon details displayed on products that issue coupons."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:661
+msgid "This is the title for the list of available coupons, shown on Cart and Checkout pages."
+msgstr ""
+
+#: includes/class-wc-sc-order-fields.php:199
+msgid "This is the total credit used."
+msgstr "Das ist der Gesamtkredit, der verwendet wird."
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:629
+msgid "This is what will be shown instead of \"Add to Cart\" for products that sell %s."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1000
+msgid "This much quantity of each product, selected above, will be added to cart."
+msgstr ""
+
+#. translators: %s: $coupon_code coupon code
+#: includes/class-wc-sc-url-coupon.php:347
+msgctxt "This notice will be shown on the cart or the checkout page if the coupon is already applied."
+msgid "Coupon code \"%s\" already applied! Please add some products to the cart to see the discount."
+msgstr ""
+
+#. translators: %s: $coupon_code coupon code
+#: includes/class-wc-sc-url-coupon.php:343
+msgctxt "This notice will be shown on the cart or the checkout page if the coupon will be applied successfully."
+msgid "Coupon code \"%s\" applied successfully. Please add some products to the cart to see the discount."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5883
+msgid "This section shows settings that affects Smart Coupons' functionalities."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3276
+msgid "This tool will clear the cache created by WooCommerce Smart Coupons."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1607
+msgid "This Week Only!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1610
+msgid "This will be over soon! Hurry."
+msgstr ""
+
+#. translators: %s: list of placeholders
+#: includes/emails/class-wc-sc-acknowledgement-email.php:104
+msgid "This will be used when the setting \"WooCommerce > Settings > Smart Coupons > Allow schedule sending of coupons?\" is enabled. Available placeholders: %s."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:401
+msgid "Ticket"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:393
+msgid "Time after which coupon will be expired. This will work in conjunction with Coupon expiry date."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:352
+msgctxt "Timepicker on the admin side"
+msgid "Choose Time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:286
+msgctxt "Timepicker on the admin side"
+msgid "Done"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:350
+msgctxt "Timepicker on the admin side"
+msgid "HH:mm"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:354
+msgctxt "Timepicker on the admin side"
+msgid "Hour"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:358
+msgctxt "Timepicker on the admin side"
+msgid "Microsecond"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:357
+msgctxt "Timepicker on the admin side"
+msgid "Millisecond"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:355
+msgctxt "Timepicker on the admin side"
+msgid "Minute"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:285
+msgctxt "Timepicker on the admin side"
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:356
+msgctxt "Timepicker on the admin side"
+msgid "Second"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:353
+msgctxt "Timepicker on the admin side"
+msgid "Time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:359
+msgctxt "Timepicker on the admin side"
+msgid "Time Zone"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:682
+msgctxt "Timepicker on the frontend side"
+msgid "Choose Time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:616
+msgctxt "Timepicker on the frontend side"
+msgid "Done"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:680
+msgctxt "Timepicker on the frontend side"
+msgid "HH:mm"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:684
+msgctxt "Timepicker on the frontend side"
+msgid "Hour"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:688
+msgctxt "Timepicker on the frontend side"
+msgid "Microsecond"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:687
+msgctxt "Timepicker on the frontend side"
+msgid "Millisecond"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:685
+msgctxt "Timepicker on the frontend side"
+msgid "Minute"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:615
+msgctxt "Timepicker on the frontend side"
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:686
+msgctxt "Timepicker on the frontend side"
+msgid "Second"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:683
+msgctxt "Timepicker on the frontend side"
+msgid "Time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:689
+msgctxt "Timepicker on the frontend side"
+msgid "Time Zone"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:697
+msgid "Title"
+msgstr ""
+
+#: includes/class-wc-sc-product-columns.php:102
+msgctxt "Title for coupon column on the products page"
+msgid "Linked coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:671
+msgid "Title of available coupons list on My Account page."
+msgstr ""
+
+#: templates/acknowledgement-email.php:71
+msgid "to"
+msgstr "bis"
+
+#: templates/combined-email.php:82
+msgid "To redeem your discount click on the following coupon(s):"
+msgstr "Um den Rabatt einzulösen, klicke auf nachfolgende(n) Gutscheincode(s):"
+
+#: templates/plain/combined-email.php:22
+msgid "To redeem your discount use below coupon codes during checkout or copy and paste the below URLs and hit enter in your browser"
+msgstr "Um deinen Gutschein einzulösen gib den Gutscheincode %s im Warenkorb während deines Einkaufes ein oder kopiere die untenstehenden URLs in deinen Browser"
+
+#. translators: %s: Coupon code
+#: templates/email.php:85
+msgid "To redeem your discount use coupon code %s during checkout or click on the following coupon:"
+msgstr "Um deinen Gutschein einlösen zu können, gib den Gutscheincode %s auf der Kasse-Seite ein oder klicke auf den folgenden Gutschein:"
+
+#. translators: %s: Coupon code
+#: templates/plain/email.php:23
+msgid "To redeem your discount use coupon code %s during checkout or copy and paste the below URL and hit enter in your browser:"
+msgstr "Um Deinen Gutschein einzulösen gebe den Gutscheincode %s im Warenkorb während Deines Einkaufes ein:"
+
+#: includes/class-wc-sc-admin-welcome.php:259
+msgid "Top Smart Coupons features"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1194
+msgid "Total Credit Amount"
+msgstr ""
+
+#. translators: 1. Discount type 2. Discount Type Label
+#: includes/class-wc-sc-ajax.php:132
+#: includes/class-wc-sc-product-fields.php:114
+#: includes/class-wc-sc-product-fields.php:175
+msgid "Type"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+msgid "Uncheck"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:406
+msgid "Uncheck \"Auto-generate\" option in Store Credit is not saving? Is it always checked?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:408
+msgid "Unlimited discount"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:95
+msgid "Update coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:430
+msgid "Update database"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "Update existing coupons"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:586
+msgid "updated"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:578
+msgid "updated & emailed"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1079
+msgid "Upload file"
+msgstr ""
+
+#. translators: %s: Maximum coupon discount amount
+#: includes/class-wc-sc-ajax.php:357
+msgid "upto %s"
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "URL of coupon should be like this:"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5024
+msgid "Usage Count"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5021
+msgid "Usage Limit"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5022
+msgid "Usage Limit Per User"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:953
+msgid "Use %s applied in first subscription order for subsequent renewals until credit reaches zero"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1637
+msgid "Use code"
+msgstr ""
+
+#. translators: 1. The coupon code
+#: includes/class-wc-smart-coupons.php:1654
+msgid "Use code: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:773
+#: includes/class-wc-sc-admin-pages.php:1224
+msgid "Use comma \",\" to separate multiple email addresses"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5857
+msgid "Use gift card applied in first subscription order for subsequent renewals until credit reaches zero"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5025
+msgid "Used By"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:420
+msgid "Used during coupon printing"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:228
+msgid "Used for variations"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-columns.php:128
+msgid "Used in orders"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:243
+msgid "User Role"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:437
+msgid "Valid for"
+msgstr ""
+
+#. translators: Product names
+#: includes/class-wc-smart-coupons.php:1245
+msgid "Valid for %s"
+msgstr ""
+
+#. translators: 1: The category names
+#: includes/class-wc-smart-coupons.php:1258
+msgid "Valid for category %s"
+msgid_plural "Valid for categories %s"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-smart-coupons.php:1287
+msgid "Valid on entire range of products. Buy anything in the store."
+msgstr "Gültig für alle Produkte."
+
+#: includes/class-wc-sc-settings.php:455
+#: includes/class-wc-smart-coupons.php:5849
+msgid "Valid order status for auto-generating coupon"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:117
+msgid "Validate quantity of"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4649
+msgid "Validity Suffix"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:225
+msgid "Value(s)"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:167
+msgid "Value="
+msgstr ""
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "variable but fixed amount"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:458
+msgid "View status"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:366
+msgid "Vintage"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:227
+msgid "Visible on the product page"
+msgstr ""
+
+#: templates/combined-email.php:209
+#: templates/email.php:194
+#: templates/plain/combined-email.php:131
+#: templates/plain/email.php:124
+msgid "Visit store"
+msgstr "Shop besuchen"
+
+#: includes/class-wc-sc-background-coupon-importer.php:487
+msgid "We are processing coupons in background. Please wait before starting new process."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:124
+msgid "We store these data so that we can process it for you whenever required."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:441
+msgid "Weeks"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:88
+msgid "Welcome to Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:252
+msgid "What is Smart Coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:113
+msgid "What we access?"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:118
+msgid "What we store & why?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:380
+msgid "What's the URL to a coupon, so it's automatically inserted when visiting?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:453
+msgid "When checked, generated coupon's value will be same as product's price"
+msgstr ""
+
+#: includes/class-wc-sc-auto-apply-coupon.php:121
+msgid "When checked, this coupon will be applied automatically, if it is valid. If enabled in more than 5 coupons, only 5 coupons will be applied automatically, rest will be ignored."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:423
+msgid "When checked, this coupon will be valid for the user's first order on the store."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:498
+msgid "When checked, this coupon will be visible on cart/checkout page for everyone"
+msgstr ""
+
+#. translators: %s: Explanation of the setting
+#: includes/class-wc-sc-settings.php:547
+msgid "When enabled, each coupon will have the option to enable auto-apply for that coupon %s"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:586
+msgid "When selling %1$s, if Regular and Sale price is found for the product, then coupon will be created with product's Regular Price but customer will pay product's Sale price. This setting will also make sure if any discount coupon is applied on the %2$s while purchasing, then customer will get %3$s in their picked price"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1009
+msgid "When this coupon will be applied, selected products will be added to cart with set discount. If discount is not set, this coupon's discount will be applied to these products."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:354
+msgid "When trying to add coupon/Smart Coupon, I get \"Invalid post type\" message."
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:641
+msgid "When you opt to allow people to buy %s of any amount, this label will be used."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:431
+msgid "Which features of Smart Coupons work with Subscriptions?"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:636
+msgid "While purchasing %s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1003
+msgid "with discount of"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1610
+msgid "WooCommerce"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5876
+msgid "WooCommerce Account Connected"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:385
+msgid "WooCommerce Coupons (CSV)"
+msgstr ""
+
+#. Plugin Name of the plugin
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: woocommerce-smart-coupons.php
+#: includes/class-wc-sc-admin-notifications.php:177
+#: includes/class-wc-sc-admin-notifications.php:243
+#: includes/class-wc-sc-admin-notifications.php:257
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "WooCommerce Smart Coupons"
+msgstr "WooCommerce Smart Coupons"
+
+#: includes/class-wc-smart-coupons.php:3274
+msgid "WooCommerce Smart Coupons Cache"
+msgstr ""
+
+#. translators: WooCommerce Subscriptions product link
+#: includes/class-wc-sc-admin-welcome.php:275
+msgid "WooCommerce Subscriptions"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:779
+msgid "Worth"
+msgstr ""
+
+#. translators: 1: coupon amount 2: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:414
+msgid "worth %1$s (%2$s) "
+msgstr "im Wert von %1$s (%2$s) "
+
+#. translators: 1: coupon amount 2: max discount text 3: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:443
+msgid "worth %1$s%% %2$s (%3$s) "
+msgstr "im Wert von %1$s%% %2$s (%3$s) "
+
+#. translators: 1: coupon amount 2: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:425
+msgid "worth %1$s%% (%2$s) "
+msgstr "im Wert von %1$s%% (%2$s) "
+
+#. translators: %s coupon amount
+#: includes/emails/class-wc-sc-email-coupon.php:398
+msgid "worth %s "
+msgstr "im Wert von %s "
+
+#. translators: %s: coupon amount
+#: includes/emails/class-wc-sc-email-coupon.php:403
+msgid "worth %s (for entire purchase) "
+msgstr "im Wert von %s (für den gesamten Einkauf) "
+
+#: includes/class-wc-sc-purchase-credit.php:894
+#: includes/class-wc-sc-purchase-credit.php:1009
+msgid "Write a message"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:443
+msgid "Years"
+msgstr ""
+
+#. translators: Documentation link for 'How to Print Coupons'
+#: includes/class-wc-sc-admin-welcome.php:420
+msgid "Yes, Smart Coupons does provide a feature for printing coupons. For more details, check this article: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:428
+msgid "Yes, Smart Coupons does work with WooCommerce Subscriptions."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:150
+msgid "You can also apply multiple coupon codes via a single URL. For example:"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:411
+msgid "You can continue with other work. But for bulk generating or importing new coupons, wait for the current process to complete."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:373
+msgid "You can do this by overriding the email template."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:308
+msgid "You can give a coupon to your customer after every purchase, which can encourage them to purchase again from you."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:403
+msgid "You can resend them from order admin edit page."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:273
+msgid "You cannot add the same tax rate twice!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1609
+msgid "You don't want to miss this..."
+msgstr ""
+
+#: templates/combined-email.php:237
+msgid "You got these coupons "
+msgstr "Du hast diese Gutscheine erhalten "
+
+#. translators: %s: singular name for store credit
+#: templates/email.php:219
+#: templates/plain/combined-email.php:137
+#: templates/plain/email.php:130
+msgid "You got this %s"
+msgstr "Du hast diesen %s bekommen"
+
+#. translators: %s: singular name for store credit
+#: templates/email.php:219
+#: templates/plain/combined-email.php:137
+#: templates/plain/email.php:130
+msgid "You got this gift card"
+msgstr "Du hast diesen Gutschein erhalten"
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "You have received a"
+msgstr "Du hast einen"
+
+#: includes/emails/class-wc-sc-email-coupon.php:73
+msgid "You have received a {coupon_type} {coupon_value}"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:70
+msgid "You have received coupons."
+msgstr "Du hast Gutscheine erhalten."
+
+#. translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details
+#: templates/acknowledgement-email.php:37
+msgid "You have scheduled to send %1$d %2$s %3$s %4$s"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details
+#: templates/plain/acknowledgement-email.php:27
+msgid "You have scheduled to send %1$d %2$s to %3$s (%4$s)"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details
+#: templates/acknowledgement-email.php:34
+msgid "You have successfully sent %1$d %2$s %3$s %4$s"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details
+#: templates/plain/acknowledgement-email.php:24
+msgid "You have successfully sent %1$d %2$s to %3$s (%4$s)"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:652
+msgid "You will get following coupon(s) when you buy this item"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:540
+msgid "You will get following coupon(s) when you buy this item:"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:559
+#: includes/class-wc-sc-coupons-by-product-quantity.php:561
+#: includes/class-wc-sc-coupons-by-product-quantity.php:563
+msgid "Your cart does not meet the product quantity requirement."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:523
+msgid "Your cart does not meet the quantity requirement."
+msgstr ""
+
+#. translators: 1. Number of quantity 2. Singular or plural text based on number of quantities
+#: includes/class-wc-sc-coupons-by-product-quantity.php:537
+msgid "Your cart should have a maximum of %1$d %2$s in total."
+msgstr ""
+
+#. translators: 1. Number of quantity 2. Singular or plural text based on number of quantities
+#: includes/class-wc-sc-coupons-by-product-quantity.php:541
+msgid "Your cart should have a minimum of %1$d %2$s in total."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:626
+msgid "your entire purchase"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:843
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:832
+msgid "Your order contains coupons. You will receive them after completion of this order."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:274
+msgid "Your product has variations! Before changing the product type, it is a good idea to delete the variations to avoid errors in the stock reports."
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:95
+msgid "{coupon_type} has been successfully scheduled"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:77
+msgid "{coupon_type} sent successfully"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:64
+msgid "{site_title}: Congratulations! You've received a {coupon_type} from {sender_name}"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:61
+msgid "{site_title}: Congratulations! You've received coupons from {sender_name}"
+msgstr "{site_title}: Herzlichen Glückwunsch! Du hast einen Gutschein von {sender_name} erhalten"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:86
+msgid "{site_title}: {coupon_type} has been successfully scheduled"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:68
+msgid "{site_title}: {coupon_type} sent successfully"
+msgstr ""
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-035dc61797ac8bfb6d6ed258fe72ad8c.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-035dc61797ac8bfb6d6ed258fe72ad8c.json
new file mode 100644
index 00000000..e86cab29
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-035dc61797ac8bfb6d6ed258fe72ad8c.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/src\/js\/send-coupon-form\/block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Frontend\u0004Send coupons to...":[""],"Frontend\u0004Your order contains coupons. What would you like to do?":[""],"Frontend\u0004Send to me":[""],"Frontend\u0004Gift to someone else":[""],"Frontend\u0004Send to one person":[""],"Frontend\u0004Send to different people":[""],"Frontend\u0004Deliver coupon":[""],"Frontend\u0004Receiver email address":[""],"Frontend\u0004Enter recipient e-mail address":[""],"Frontend\u0004Message for receiver":[""],"Frontend\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-0fac2f3b919d34656822c41cb1ed8c2c.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-0fac2f3b919d34656822c41cb1ed8c2c.json
new file mode 100644
index 00000000..711b60ed
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-0fac2f3b919d34656822c41cb1ed8c2c.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/build\/woocommerce-smart-coupons-send-coupon-form-block-frontend.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Frontend\u0004Send coupons to...":[""],"Frontend\u0004Your order contains coupons. What would you like to do?":[""],"Frontend\u0004Send to me":[""],"Frontend\u0004Gift to someone else":[""],"Frontend\u0004Send to one person":[""],"Frontend\u0004Send to different people":[""],"Frontend\u0004Deliver coupon":[""],"Frontend\u0004Receiver email address":[""],"Frontend\u0004Enter recipient e-mail address":[""],"Frontend\u0004Message for receiver":[""],"Frontend\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-88ba117fdcd48887044ec0ca59856410.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-88ba117fdcd48887044ec0ca59856410.json
new file mode 100644
index 00000000..8a0bbc54
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-88ba117fdcd48887044ec0ca59856410.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/build\/woocommerce-smart-coupons-available-coupons-block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Block editor\u0004Available Coupons (click on a coupon to use it)":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-9b3491f4c368ce2ad4994aa24713559a.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-9b3491f4c368ce2ad4994aa24713559a.json
new file mode 100644
index 00000000..89c973ba
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-9b3491f4c368ce2ad4994aa24713559a.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/src\/js\/available-coupons\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Block editor\u0004Available Coupons (click on a coupon to use it)":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-b8d31255012dc50a25232a24e5b093ad.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-b8d31255012dc50a25232a24e5b093ad.json
new file mode 100644
index 00000000..fb8bd7df
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-b8d31255012dc50a25232a24e5b093ad.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/src\/js\/send-coupon-form\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Block editor\u0004Send coupons to...":[""],"Block editor\u0004Your order contains coupons. What would you like to do?":[""],"Block editor\u0004Send to me":[""],"Block editor\u0004Gift to someone else":[""],"Block editor\u0004Send to one person":[""],"Block editor\u0004Send to different people":[""],"Block editor\u0004Deliver coupon":[""],"Block editor\u0004now":[""],"Block editor\u0004later":[""],"Block editor\u0004Receiver email address":[""],"Block editor\u0004Enter recipient e-mail address":[""],"Block editor\u0004Message for receiver":[""],"Block editor\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-d811137fe50d78464704a484441a64be.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-d811137fe50d78464704a484441a64be.json
new file mode 100644
index 00000000..5078ace8
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-d811137fe50d78464704a484441a64be.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"includes\/blocks\/sc-gutenberg-block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Smart Coupons":["Smart Coupons"]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-fd0f2ef4bb9ad5ddc0e7e6898a11a573.json b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-fd0f2ef4bb9ad5ddc0e7e6898a11a573.json
new file mode 100644
index 00000000..43d6b87d
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR-fd0f2ef4bb9ad5ddc0e7e6898a11a573.json
@@ -0,0 +1 @@
+{"translation-revision-date":"2024-03-11 09:49+0000","generator":"WP-CLI\/2.10.0","source":"blocks\/build\/woocommerce-smart-coupons-send-coupon-form-block.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr-FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Block editor\u0004Send coupons to...":[""],"Block editor\u0004Your order contains coupons. What would you like to do?":[""],"Block editor\u0004Send to me":[""],"Block editor\u0004Gift to someone else":[""],"Block editor\u0004Send to one person":[""],"Block editor\u0004Send to different people":[""],"Block editor\u0004Deliver coupon":[""],"Block editor\u0004now":[""],"Block editor\u0004later":[""],"Block editor\u0004Receiver email address":[""],"Block editor\u0004Enter recipient e-mail address":[""],"Block editor\u0004Message for receiver":[""],"Block editor\u0004Write a message":[""]}}}
\ No newline at end of file
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR.mo b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR.mo
new file mode 100644
index 00000000..9284c8fc
Binary files /dev/null and b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR.mo differ
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR.po b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR.po
new file mode 100644
index 00000000..c576ad59
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons-fr_FR.po
@@ -0,0 +1,4557 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: WooCommerce Smart Coupons\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: \n"
+"Language-Team: French (France)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2022-08-07 10:58+0200\n"
+"PO-Revision-Date: 2024-06-07 07:21+0000\n"
+"Language: fr-FR\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Loco https://localise.biz/\n"
+"X-Poedit-Basepath: ..\n"
+"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
+"X-Poedit-WPHeader: woocommerce-smart-coupons.php\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
+"X-Poedit-Bookmarks: -1,-1,-1,-1,182,-1,-1,-1,-1,-1\n"
+"X-Poedit-SearchPath-0: .\n"
+"X-Poedit-SearchPathExcluded-0: *.min.js\n"
+
+#. translators: Add more detail to coupon description
+#: includes/class-wc-sc-display-coupons.php:649
+msgid " &"
+msgstr " &"
+
+#: includes/class-wc-sc-display-coupons.php:278
+#: includes/class-wc-sc-display-coupons.php:869
+#: includes/class-wc-sc-display-coupons.php:2410
+#: includes/class-wc-sc-shortcode.php:540
+#: includes/class-wc-smart-coupons.php:4893
+#: templates/combined-email.php:125
+#: templates/email.php:123
+#: templates/print-coupons-default.php:142
+msgid " & "
+msgstr " & "
+
+#: templates/plain/combined-email.php:88
+#: templates/plain/email.php:83
+msgid " & "
+msgstr " & "
+
+#. translators: 1. Discount type 2. Discount Type Label
+#: includes/class-wc-sc-product-fields.php:114
+#: includes/class-wc-sc-product-fields.php:175
+msgid " ( %1$s: %2$s )"
+msgstr " ( %1$s : %2$s )"
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid " coupon"
+msgstr " code promo"
+
+#: includes/class-wc-sc-display-coupons.php:634
+msgid " discount"
+msgstr " Remise"
+
+#: includes/class-wc-sc-display-coupons.php:610
+#: includes/class-wc-sc-display-coupons.php:619
+msgid " discount on "
+msgstr " remise sur "
+
+#: includes/class-wc-sc-display-coupons.php:601
+msgid " discount on your entire purchase"
+msgstr " de remise sur la totalité de votre achat"
+
+#: includes/class-wc-sc-display-coupons.php:634
+msgid " on "
+msgstr " sur "
+
+#. translators: %s: Maximum coupon discount amount
+#: includes/class-wc-sc-display-coupons.php:632
+#: includes/class-wc-smart-coupons.php:1168
+#: includes/emails/class-wc-sc-email-coupon.php:439
+msgid " upto %s"
+msgstr " jusqu’à %s"
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "! If things aren't going quite as expected, we're happy to help -- please reach out to"
+msgstr "! Si les choses ne se passent pas tout à fait comme prévu, nous serons heureux de vous aider — contactez-nous pour"
+
+#: includes/class-wc-sc-settings.php:647
+msgid "\"Coupons with Product\" description"
+msgstr "Description des « Codes promo avec produit »"
+
+#: includes/class-wc-sc-admin-welcome.php:414
+msgid "\"Store Credit Receiver detail\" form not appearing on checkout page?"
+msgstr "Formulaire «Détail du bon d’achat du bénéficiaire » ne figure pas sur la page « Commande » ?"
+
+#: includes/class-wc-smart-coupons.php:6022
+msgid "$coupon is not an object of WC_Coupon"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6024
+msgid "$coupon is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6642
+#: includes/class-wc-smart-coupons.php:6690
+msgid "$item is not an object of WC_Order_Item"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6644
+#: includes/class-wc-smart-coupons.php:6692
+msgid "$item is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6768
+msgid "$item_id is required"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6509
+#: includes/class-wc-smart-coupons.php:6563
+#: includes/class-wc-smart-coupons.php:6592
+#: includes/class-wc-smart-coupons.php:6616
+#: includes/class-wc-smart-coupons.php:6770
+msgid "$item_id is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6510
+#: includes/class-wc-smart-coupons.php:6564
+#: includes/class-wc-smart-coupons.php:6593
+#: includes/class-wc-smart-coupons.php:6617
+msgid "$item_key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6395
+#: includes/class-wc-smart-coupons.php:6450
+msgid "$key is required"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6397
+#: includes/class-wc-smart-coupons.php:6452
+msgid "$key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6125
+#: includes/class-wc-smart-coupons.php:6240
+#: includes/class-wc-smart-coupons.php:6354
+msgid "$meta_key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6124
+#: includes/class-wc-smart-coupons.php:6239
+#: includes/class-wc-smart-coupons.php:6353
+msgid "$post_id is: "
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1006
+msgid "%"
+msgstr "%"
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+msgid "%1$s %2$s %3$s removed because coupon %4$s is removed."
+msgstr "%1$s %2$s %3$s supprimé car le code promo %4$s est supprimé."
+
+#. translators: 1. The coupon code, 2. The discount type
+#: includes/class-wc-sc-ajax.php:252
+#: includes/class-wc-sc-settings.php:332
+msgid "%1$s (Type: %2$s)"
+msgstr "%1$s (Type : %2$s)"
+
+#. translators: 1. Discount type 2. Discount amount
+#. translators: 1: coupon type 2: coupon amount
+#: includes/class-wc-sc-display-coupons.php:641
+#: includes/emails/class-wc-sc-email-coupon.php:452
+msgid "%1$s coupon of %2$s"
+msgstr "%1$s code promo de %2$s"
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "%1$s Free Shipping%2$s"
+msgstr "%1$s Livraison gratuite %2$s"
+
+#. translators: 1. amount of store credit 2. store credit label 3. coupon code
+#: includes/class-wc-sc-coupon-process.php:776
+msgid "%1$s worth of %2$s restored to coupon %3$s."
+msgstr "%1$s d’une valeur de %2$s restauré en code promo %3$s."
+
+#. translators: 1. amount of store credit 2. coupon code
+#: includes/class-wc-sc-coupon-process.php:779
+msgid "%1$s worth of Store Credit restored to coupon %2$s."
+msgstr "valeur de %1$s de bon d’achat restauré au code promo %2$s."
+
+#. translators: 1: HTML small tag start 2: HTML small tag end
+#: includes/class-wc-sc-admin-pages.php:1268
+msgid "%1$s(This will add the same coupon description in all the bulk generated coupons)%2$s"
+msgstr "%1$s(Ceci ajoutera la même description de code promo dans tous les codes promo générés en masse)%2$s"
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "%1$s: %2$s to avoid issues related to missing data for %3$s. %4$s"
+msgstr "%1$s : %2$s pour éviter les problèmes liés aux données manquantes pour %3$s. %4$s"
+
+#. translators: 1. Error title 2. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:385
+msgid "%1$s: The coupon bulk %2$s process stopped. Please review the coupons list to check the status."
+msgstr "%1$s : Le processus d’envoi de codes promo en masse %2$s s’est arrêté. Veuillez consulter la liste des codes promo pour vérifier le ."
+
+#. translators: 1. Important 2. Upload path
+#: includes/class-wc-sc-background-coupon-importer.php:333
+msgid "%1$s: To allow bulk generation of coupons, please make sure %2$s directory is writable."
+msgstr "%1$s: Pour permettre la génération en masse de codes promo, assurez-vous que le répertoire %2$s possède les autorisations d’écriture."
+
+#. translators: 1: WooCommerce Smart Coupons 2: Link for the Smart Coupons settings
+#: includes/class-wc-sc-admin-notifications.php:256
+msgid "%1$s: You are using a custom coupon style which is planned to be removed from the plugin in upcoming versions. New, improved styles & colors are added in the version 4.9.0. We would request you to choose a color scheme & a style for coupon from the newly added colors & styles. You can do this from %2$s."
+msgstr "%1$s : Vous utilisez un style de code promo personnalisé qu’il est prévu de supprimer de l’extension dans les prochaines versions. De nouveaux styles et couleurs améliorés ont été ajoutés dans la version 4.9.0. Nous vous demandons de choisir un schéma de couleurs et un style de code promo parmi les nouvelles couleurs et les nouveaux styles ajoutés. Vous pouvez le faire à partir de %2$s."
+
+#. translators: 1$-2$: opening and closing tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin.
+#: woocommerce-smart-coupons.php:61
+msgid "%1$sWooCommerce Smart Coupons is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for the Smart Coupons to work. Please %5$sinstall & activate WooCommerce »%6$s"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:53
+msgid "%s - Coupon Personal Data Eraser"
+msgstr "%s - Effacer les données personnelles de code promo"
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:51
+msgid "%s - Coupon Personal Data Exporter"
+msgstr "%s - Exporter les données personnelles de code promo"
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:58
+msgid "%s - Order Personal Data Eraser"
+msgstr "%s - Effacer les données personnelles de commande"
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:56
+msgid "%s - Order Personal Data Exporter"
+msgstr "%s - Exporter les données personnelles de commande"
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:63
+msgid "%s - User Personal Data Eraser"
+msgstr "%s - Effacer les données personnelles de l’utilisateur"
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:61
+msgid "%s - User Personal Data Exporter"
+msgstr "%s - Exporter les données personnelles de l’utilisateur"
+
+#. translators: 1. Coupon type
+#: includes/class-wc-sc-background-coupon-importer.php:400
+msgid "%s are being"
+msgstr "%s sont"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:501
+msgid "%s Balance "
+msgstr "%s solde "
+
+#. translators: Order notes
+#: includes/class-wc-sc-coupon-process.php:787
+msgid "%s Because PayPal doesn't accept discount on shipping & tax."
+msgstr "%s parce que PayPal n’accepte pas les rabais sur l’expédition & fiscale."
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:467
+msgid "%s database update completed. Thank you for updating to the latest version!"
+msgstr "Mise à jour de la base de données %s terminée. Merci d’avoir mis à jour à la dernière version !"
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:416
+msgid "%s database update required"
+msgstr "%s mise à jour de la base de données de requise"
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:758
+msgid "%s discount is inclusive of tax"
+msgstr "%s la remise inclus les taxes"
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1617
+msgid "%s discount on anything you want."
+msgstr "%s rabais sur tout ce que vous voulez."
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1619
+msgid "%s discount on entire store."
+msgstr "%s rabais sur tout le magasin."
+
+#. translators: Add more detail to coupon description
+#: includes/class-wc-sc-display-coupons.php:649
+msgid "%s Free Shipping"
+msgstr "%s Livraison gratuite"
+
+#. translators: 1. Product title
+#: includes/class-wc-sc-coupon-actions.php:421
+msgid "%s has been added to your cart!"
+msgstr "%s a été ajouté à votre panier !"
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:756
+msgid "%s include tax?"
+msgstr "%s inclure les taxes ?"
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:454
+msgid "%s is updating the database in the background. The database update process may take a little while, so please be patient."
+msgstr "%s met à jour la base de données en arrière-plan. Le processus de mise à jour de la base de données peut prendre un peu de temps, alors soyez patient."
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-display-coupons.php:591
+msgid "%s of "
+msgstr "%s de "
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:624
+msgid "%s product CTA"
+msgstr "%s Produit CTA"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:672
+msgid "%s sent successfully."
+msgstr "%s envoyé avec succès."
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:197
+msgid "%s Used"
+msgstr "%s utilisé"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:254
+msgid "%s Used:"
+msgstr "%s utilisé :"
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "&"
+msgstr "&"
+
+#: includes/class-wc-sc-admin-pages.php:1194
+msgid "(Add to store and email generated coupons to recipients)"
+msgstr "(Ajouter des codes promo automatiques et les envoyer par e-mail aux destinataires)"
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:199
+msgid "(Copy)"
+msgstr "(Copie)"
+
+#: includes/class-wc-sc-admin-pages.php:1184
+msgid "(Does not add to store, but creates a .csv file, that you can"
+msgstr "(Ne s’ajoute pas à la boutique, mais crée un fichier .csv que vous pouvez"
+
+#. translators: %s: Note for admin
+#: includes/class-wc-sc-settings.php:557
+msgid "(Note: It's recommended to keep it Disabled)"
+msgstr "(Note: il est recommandé de le garder désactivé)"
+
+#: includes/class-wc-sc-admin-pages.php:815
+#: includes/class-wc-sc-admin-pages.php:1229
+msgid "(optional)"
+msgstr "(facultatif)"
+
+#: includes/class-wc-sc-coupon-fields.php:445
+msgid "(Used only for auto-generated coupons)"
+msgstr "(Utilisé uniquement pour les codes promo auto-générés)"
+
+#: includes/class-wc-sc-coupon-fields.php:484
+msgid "(We recommend up to three letters for prefix/suffix)"
+msgstr "(Nous recommandons jusqu’à trois lettres pour le préfixe/suffixe)"
+
+#: includes/class-wc-sc-background-coupon-importer.php:406
+msgid "--:--:--"
+msgstr "--:--:--"
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid ". If still the issue persist, temporarily de-activate all plugins except WooCommerce & Smart Coupons. Re-check the issue, if the issue still persists, contact us (from the link at the end of this page). If the issue goes away, re-activate other plugins one-by-one & re-checking the fields, to find out which plugin is conflicting."
+msgstr ". Si le problème persiste, désactivez temporairement tous les plugins, à l’exception de WooCommerce et de Smart Coupons. Re-vérifier, et si le problème persiste, contactez-nous (à partir du lien à la fin de cette page). Si le problème disparaît, réactiver les autres plugins un par un pour savoir quel plugin est en conflit."
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid ". Replace www.mysite.com with your own site URL and replace discount5 with the your coupon code."
+msgstr ". Remplacez « www.mysite.com » par votre propre URL, et remplacez le « discount5 » par le code promo."
+
+#: includes/class-wc-sc-admin-pages.php:784
+#: includes/class-wc-sc-coupon-fields.php:1004
+msgid "0.00"
+msgstr "0.00"
+
+#: includes/class-wc-sc-coupon-fields.php:999
+msgid "1"
+msgstr "1. Sélectionnez la barre latérale"
+
+#: includes/class-wc-sc-admin-pages.php:1160
+msgid "10"
+msgstr "10"
+
+#. Description of the plugin
+#: woocommerce-smart-coupons.php
+msgid "WooCommerce Smart Coupons lets customers buy gift certificates, store credits or coupons easily. They can use purchased credits themselves or gift to someone else."
+msgstr "WooCommerce Smart Coupons permet aux clients d’utiliser des cartes cadeau, des bons d’achat ou des codes promo facilement. Ils peuvent utiliser les crédits achetés eux-mêmes ou en faire cadeau à quelqu’un d’autre."
+
+#. translators: 1: Singular name for post type 2: Email
+#: includes/class-wc-sc-admin-pages.php:1551
+msgid "[%1$s restricted with email: %2$s]"
+msgstr "[%1$s restreint avec e-mail: %2$s]"
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:501
+#: includes/class-wc-sc-settings.php:510
+#: includes/class-wc-sc-settings.php:519
+#: includes/class-wc-sc-settings.php:528
+#: includes/class-wc-sc-settings.php:537
+#: includes/class-wc-sc-settings.php:625
+#: includes/class-wc-sc-settings.php:637
+#: includes/class-wc-sc-settings.php:648
+#: includes/class-wc-sc-settings.php:658
+#: includes/class-wc-sc-settings.php:668
+#: includes/class-wc-sc-settings.php:689
+#: includes/class-wc-sc-settings.php:698
+#: includes/class-wc-sc-settings.php:708
+#: includes/class-wc-sc-settings.php:717
+msgid "[Preview]"
+msgstr "[Aperçu]"
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:575
+#: includes/class-wc-sc-settings.php:586
+#: includes/class-wc-sc-settings.php:606
+msgid "[Read More]"
+msgstr "[Lire la suite]"
+
+#: includes/class-wc-sc-admin-welcome.php:87
+msgid "About Smart Coupons"
+msgstr "À propos de Smart Coupon"
+
+#: includes/class-wc-smart-coupons.php:5873
+msgid "Account endpoints > Coupons"
+msgstr "Points de terminaison > Codes promo"
+
+#: includes/class-wc-smart-coupons.php:5864
+msgid "Acknowledgement email"
+msgstr "E-mail d’accusé de réception"
+
+#: includes/class-wc-smart-coupons.php:1611
+msgid "Act before the offer expires."
+msgstr "Profitez-en avant que l’offre n’expire."
+
+#: includes/class-wc-sc-admin-pages.php:1153
+msgid "Action"
+msgstr "Action"
+
+#: includes/class-wc-sc-coupon-fields.php:934
+msgid "Actions"
+msgstr "Actions"
+
+#: includes/compat/class-wcs-sc-compatibility.php:1072
+msgid "Active for x payments"
+msgstr "Actif pour x paiements"
+
+#: includes/class-wc-sc-admin-pages.php:551
+msgid "Add Coupon"
+msgstr "Ajouter un code promo"
+
+#: includes/class-wc-sc-coupon-categories.php:96
+msgid "Add new coupon category"
+msgstr "Ajouter une nouvelle catégorie de code promo"
+
+#: includes/class-wc-sc-coupon-actions.php:580
+msgid "Add product details"
+msgstr "Ajouter les détails du produit"
+
+#: includes/class-wc-sc-coupon-fields.php:964
+msgid "Add products to cart"
+msgstr "Ajouter des produits au panier"
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:146
+#: includes/class-wc-sc-coupons-by-taxonomy.php:219
+msgid "Add taxonomy restriction"
+msgstr "Ajouter une restriction sur une taxonomie"
+
+#: includes/class-wc-sc-admin-pages.php:1166
+msgid "Add to store"
+msgstr "Ajouter dans la boutique"
+
+#: includes/class-wc-sc-background-coupon-importer.php:586
+#: includes/class-wc-sc-background-coupon-importer.php:595
+msgid "added"
+msgstr "ajouté"
+
+#: includes/class-wc-sc-background-coupon-importer.php:578
+#: includes/class-wc-sc-background-coupon-importer.php:582
+msgid "added & emailed"
+msgstr "ajouté et envoyé par e-mail"
+
+#: includes/class-wc-smart-coupons.php:7377
+msgid "Added by coupon"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:711
+msgid "Additional text below the title."
+msgstr "Texte supplémentaire sous le titre."
+
+#: includes/class-wc-sc-coupons-by-location.php:196
+msgid "Address to look in"
+msgstr "Adresse à rechercher dans"
+
+#: includes/class-wc-sc-coupon-categories.php:89
+msgctxt "Admin menu name"
+msgid "Categories"
+msgstr "Catégories"
+
+#: includes/class-wc-sc-admin-welcome.php:264
+msgid "Advanced restrictions - payment, shipping, location, user roles, product attributes"
+msgstr "Restrictions avancées - paiement, expédition, localisation, rôles des utilisateurs, attributs des produits"
+
+#. translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce'
+#: includes/class-wc-sc-admin-welcome.php:449
+msgid "Aelia Currency Switcher for WooCommerce"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:962
+msgid "After applying the coupon do these also"
+msgstr "Après avoir appliqué le code promo faire également ceci"
+
+#: includes/class-wc-sc-coupon-categories.php:91
+msgid "All coupon categories"
+msgstr "Toutes les catégories de codes promo"
+
+#: includes/class-wc-sc-display-coupons.php:608
+#: includes/class-wc-sc-display-coupons.php:617
+msgid "all products"
+msgstr "tous les produits"
+
+#: includes/class-wc-sc-coupon-import.php:936
+msgid "All set, Begin import?"
+msgstr "Tout est prêt ! Commencer l’importation ?"
+
+#: includes/class-wc-sc-settings.php:716
+#: includes/class-wc-smart-coupons.php:5860
+msgid "Allow schedule sending of coupons?"
+msgstr "Autoriser l’envoi programmé de codes promo ?"
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:586
+msgid "Allow selling %s at discounted price"
+msgstr "Autoriser les ventes de %s à prix réduit"
+
+#: includes/class-wc-sc-settings.php:688
+#: includes/class-wc-smart-coupons.php:5859
+msgid "Allow sending of coupons to others"
+msgstr "Autoriser l’envoi de codes promo à d’autres personnes"
+
+#: includes/class-wc-sc-settings.php:689
+msgid "Allow the buyer to send coupons to someone else."
+msgstr "Permettre au client d’envoyer des codes promo à quelqu’un d’autre."
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:468
+msgid "Allowed emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:116
+msgid "Allowed user roles"
+msgstr "Rôles utilisateur autorisés"
+
+#: includes/class-wc-sc-coupon-import.php:1077
+msgid "Already uploaded CSV to the server?"
+msgstr "Déjà téléchargé CSV sur le serveur?"
+
+#: includes/class-wc-sc-settings.php:359
+msgid "Amaranth red"
+msgstr "Rouge amarante"
+
+#: includes/class-wc-sc-display-coupons.php:2495
+msgid "Amount"
+msgstr "Montant"
+
+#: includes/class-wc-smart-coupons.php:986
+msgid "An error has occurred. Please try again later."
+msgstr "Une erreur est apparue, merci de réessayer plus tard."
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:411
+msgid "An error occurred:"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:267
+msgid "and a lot more…"
+msgstr "et bien plus encore…"
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "and create your CSV based on that."
+msgstr "et créer votre CSV basé sur cela."
+
+#: includes/class-wc-sc-coupon-fields.php:497
+msgid "and my account?"
+msgstr "et « Mon compte » ?"
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "any amount"
+msgstr "n’importe quel montant"
+
+#: includes/class-wc-sc-admin-pages.php:1344
+msgid "Apply"
+msgstr "Appliquer"
+
+#: includes/class-wc-sc-settings.php:741
+msgid "Apply before tax"
+msgstr "Appliquer avant les taxes"
+
+#: includes/class-wc-sc-admin-welcome.php:263
+msgid "Apply multiple coupons via URL"
+msgstr "Appliquer plusieurs codes promo via l’URL"
+
+#: includes/class-wc-sc-admin-pages.php:215
+msgid "Are you sure you want to remove the selected items? If you have previously reduced this item's stock, or this order was submitted by a customer, you will need to manually restore the item's stock."
+msgstr "Êtes-vous sûr de vouloir supprimer ces articles ? Si vous avez précédemment réduit le stock de cet article, ou bien si cette commande a été envoyée par un client, vous devrez manuellement restaurer le stock de cet article."
+
+#: includes/class-wc-sc-admin-pages.php:272
+msgid "Are you sure you want to revoke access to this download?"
+msgstr "Êtes-vous certain de vouloir supprimer l’accès à ce téléchargement ?"
+
+#. translators: 1. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:551
+msgid "Are you sure you want to stop the coupon bulk %s process? Click OK to stop."
+msgstr "Êtes-vous sûr de vouloir arrêter le processus de génération de codes promo en masse %s ? Cliquez sur OK pour l’arrêter."
+
+#: includes/class-wc-sc-admin-pages.php:218
+#: includes/class-wc-sc-coupon-refund-process.php:566
+msgid "Are you sure you wish to delete this refund? This action cannot be undone."
+msgstr "Êtes-vous sûr de vouloir supprimer ce remboursement ? Cette action est irréversible."
+
+#: includes/class-wc-sc-admin-pages.php:219
+msgid "Are you sure you wish to delete this tax column? This action cannot be undone."
+msgstr "Êtes-vous sur de vouloir supprimer cette colonne de TVA ? Cette action est irréversible."
+
+#: includes/class-wc-sc-admin-pages.php:217
+msgid "Are you sure you wish to process this refund? This action cannot be undone."
+msgstr "Êtes-vous sûr de vouloir procéder à ce remboursement ? Cette action est irréversible."
+
+#: includes/class-wc-sc-admin-welcome.php:300
+msgid "Attach a gift of any value (free or paid product) to a particular coupon. Here, instead of a discount, a product is redeemed for the coupon code."
+msgstr "Attachez un cadeau de n’importe quelle valeur (produit gratuit ou payant) à un code promo particulier. Ici, au lieu d’une réduction, un produit est échangé contre le code promo."
+
+#: includes/class-wc-smart-coupons.php:1608
+msgid "Attention!"
+msgstr "Attention !"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:167
+msgid "Attribute="
+msgstr "Attribut="
+
+#: includes/class-wc-sc-settings.php:545
+msgid "Auto apply coupons"
+msgstr ""
+
+#: includes/class-wc-sc-auto-apply-coupon.php:120
+#: includes/class-wc-sc-auto-apply-coupon.php:186
+msgid "Auto apply?"
+msgstr "Appliquer automatiquement ?"
+
+#: includes/class-wc-smart-coupons.php:4650
+msgid "Auto Generate Coupon"
+msgstr "Génération automatique de code promo"
+
+#: includes/class-wc-sc-coupon-fields.php:459
+msgid "Auto generate new coupons with each item"
+msgstr "Autogénérer de nouveaux codes promo avec chaque article"
+
+#: includes/class-wc-smart-coupons.php:5862
+msgid "Auto generated coupon email"
+msgstr "E-mail de code promo généré automatiquement"
+
+#: includes/class-wc-sc-coupon-refund-process.php:225
+msgid "Auto-fill refund amount"
+msgstr "Remplir automatiquement le montant du remboursement"
+
+#: includes/class-wc-sc-settings.php:555
+#: includes/class-wc-smart-coupons.php:5853
+msgid "Automatic deletion"
+msgstr "Suppression automatique"
+
+#: includes/class-wc-sc-admin-welcome.php:271
+msgid "Automatic payment for subscription renewals"
+msgstr "Paiement automatique pour les renouvellements d’abonnement"
+
+#. translators: %s: plural name for store credit
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-display-coupons.php:749
+#: includes/class-wc-sc-display-coupons.php:940
+#: includes/class-wc-sc-settings.php:673
+msgid "Available Coupons & %s"
+msgstr "Codes promo et %s disponibles"
+
+#. translators: %s: plural name for store credit
+#: includes/class-wc-sc-display-coupons.php:749
+#: includes/class-wc-sc-display-coupons.php:940
+msgid "Available Coupons & Store Credits"
+msgstr "Codes promo & bons d’achat disponibles"
+
+#: includes/class-wc-sc-display-coupons.php:342
+#: includes/class-wc-sc-display-coupons.php:735
+#: includes/class-wc-sc-settings.php:662
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr "Codes promo disponibles (cliquer pour utiliser)"
+
+#: includes/class-wc-sc-admin-welcome.php:398
+msgid "Available coupons are not visible on Cart, Checkout & My Account page?"
+msgstr "Les codes promo disponibles ne sont pas visibles sur la page « Panier », la page « Commande » et la page « Mon compte » ?"
+
+#. translators: %s: list of placeholders
+#: includes/emails/class-wc-sc-email.php:97
+msgid "Available placeholders: %s"
+msgstr "Espaces réservés disponibles : %s"
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "Awesome, you successfully auto-generated a coupon! Are you having a great experience with"
+msgstr "Bravo, vous avez réussi à générer automatiquement un code promo ! Avez-vous une bonne expérience avec"
+
+#: includes/class-wc-sc-settings.php:408
+msgid "Basic"
+msgstr "Basique"
+
+#: includes/class-wc-sc-coupon-import.php:1061
+msgid "Before you can upload your import file, you will need to fix the following error:"
+msgstr "Avant de pouvoir transférer votre fichier d’importation, vous devez corriger les erreurs suivantes :"
+
+#: includes/class-wc-sc-coupons-by-location.php:199
+msgid "Billing"
+msgstr "Facturation"
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "billing address"
+msgstr "adresse de facturation"
+
+#: includes/class-wc-sc-coupons-by-location.php:494
+msgid "Billing Locations"
+msgstr "Emplacement de facturation"
+
+#: blocks/build/js/available-coupons/block.json
+#: blocks/src/js/available-coupons/block.json
+msgctxt "block description"
+msgid "Displays available coupons."
+msgstr ""
+
+#: blocks/build/js/send-coupon-form/block.json
+#: blocks/src/js/send-coupon-form/block.json
+msgctxt "block description"
+msgid "Displays Send coupon form."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-available-coupons-block.js:7
+#: blocks/src/js/available-coupons/edit.js:19
+msgctxt "Block editor"
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:59
+#: blocks/src/js/send-coupon-form/edit.js:63
+msgctxt "Block editor"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:84
+msgctxt "Block editor"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:39
+msgctxt "Block editor"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:71
+msgctxt "Block editor"
+msgid "later"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:88
+msgctxt "Block editor"
+msgid "Message for receiver"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:67
+msgctxt "Block editor"
+msgid "now"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:80
+msgctxt "Block editor"
+msgid "Receiver email address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:30
+msgctxt "Block editor"
+msgid "Send coupons to..."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:53
+msgctxt "Block editor"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:35
+msgctxt "Block editor"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:49
+msgctxt "Block editor"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/blocks.php:51
+msgctxt "Block editor"
+msgid "WooCommerce Smart Coupons"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:92
+msgctxt "Block editor"
+msgid "Write a message"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:31
+msgctxt "Block editor"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:423
+msgctxt "Block editor & frontend"
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:600
+msgctxt "Block editor & frontend"
+msgid "coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:653
+msgctxt "Block editor & frontend"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:654
+msgctxt "Block editor & frontend"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:597
+msgctxt "Block editor & frontend"
+msgid "Free Shipping coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:629
+msgctxt "Block editor & frontend"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:649
+msgctxt "Block editor & frontend"
+msgid "later"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:645
+msgctxt "Block editor & frontend"
+msgid "now"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:604
+msgctxt "Block editor & frontend"
+msgid "of"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:604
+msgctxt "Block editor & frontend"
+msgid "Send"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:515
+#: blocks/class-wc-sc-blocks-integration.php:516
+msgctxt "Block editor & frontend"
+msgid "Send Coupons to..."
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:639
+msgctxt "Block editor & frontend"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:625
+msgctxt "Block editor & frontend"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:635
+msgctxt "Block editor & frontend"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:621
+msgctxt "Block editor & frontend"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/build/js/available-coupons/block.json
+#: blocks/src/js/available-coupons/block.json
+msgctxt "block title"
+msgid "Available coupons"
+msgstr ""
+
+#: blocks/build/js/send-coupon-form/block.json
+#: blocks/src/js/send-coupon-form/block.json
+msgctxt "block title"
+msgid "Send coupon form"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5874
+msgid "Block-enabled Cart"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5875
+msgid "Block-enabled Checkout"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:292
+msgid "Bulk create unique coupons & email them"
+msgstr "Créez des codes promo uniques en lot et envoyez-les par e-mail"
+
+#: includes/class-wc-sc-admin-pages.php:124
+#: includes/class-wc-sc-admin-pages.php:556
+#: includes/class-wc-sc-admin-pages.php:1594
+msgid "Bulk Generate"
+msgstr "Générer en masse"
+
+#: includes/class-wc-sc-admin-welcome.php:262
+msgid "Bulk generate coupons"
+msgstr "Génère des codes promo en masse"
+
+#: includes/class-wc-sc-background-coupon-importer.php:338
+msgid "Bulk generation is disabled since uploads directory is not writable. Please ensure uploads directory is writable before starting bulk generate process."
+msgstr "La génération en masse est désactivée car le répertoire de téléchargements n’a pas les autorisation d’écriture. Assurez-vous que le répertoire de téléchargements est inscriptible avant de commencer le processus de génération en masse."
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1623
+msgid "Buy as much as you want. Flat %s off everything."
+msgstr "Achetez autant que vous voulez. %s net sur tout."
+
+#: includes/class-wc-sc-settings.php:684
+msgid "Buyers can send purchased coupons to anyone – right while they're checking out."
+msgstr "Les clients peuvent acheter et envoyer des codes promo à la personne de leur choix pendant qu’ils effectuent une commande."
+
+#: includes/class-wc-smart-coupons.php:5872
+msgid "Calculate coupon discounts sequentially"
+msgstr "Calculer les remises de coupon de manière séquentielle"
+
+#: includes/class-wc-sc-admin-pages.php:231
+msgid "Calculate line taxes? This will calculate taxes based on the customers country. If no billing/shipping is set it will use the store base country."
+msgstr "Calculer la TVA en ligne ? Cela calculera la TVA basée sur le pays des clients. Si aucune reçu/livraison n’est paramétrée cela prendra le pays de base de la boutique."
+
+#: includes/class-wc-sc-admin-pages.php:230
+msgid "Calculate totals based on order items, discounts, and shipping?"
+msgstr "Calculer le total des articles, les remises, et la livraison ?"
+
+#: includes/class-wc-sc-settings.php:601
+#, fuzzy
+msgid "Call it something else! Use these to quickly change text labels through your store. Use translations for complete control."
+msgstr "Appelez vos codes promo autrement ! Utilisez cette fonctionnalité pour modifier rapidement le libellé de vos codes promo depuis votre boutique. Utilisez les traductions pour un contrôle complet."
+
+#: includes/class-wc-sc-admin-welcome.php:376
+msgid "Can coupon code have any spaces in the name? / My Store Credit/Gift Certificate is not working (not generating new coupon code)."
+msgstr "Le code promo peut-il avoir des espaces dans le nom ? / Mon bon d’achat/carte cadeau ne fonctionne pas (ne génère pas de nouveau code promo)."
+
+#: includes/class-wc-sc-shortcode.php:944
+msgid "Cancel"
+msgstr "Annuler"
+
+#: includes/class-wc-sc-settings.php:360
+msgid "Carolina Blue"
+msgstr "Bleu Carolina"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:120
+msgid "Cart"
+msgstr "Panier"
+
+#: includes/class-wc-sc-ajax.php:337
+#: includes/class-wc-sc-ajax.php:352
+#: includes/class-wc-smart-coupons.php:1148
+#: includes/class-wc-smart-coupons.php:1163
+msgid "Cart Discount"
+msgstr "Remise du panier"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:191
+#: includes/class-wc-sc-coupons-by-product-quantity.php:208
+#: includes/class-wc-sc-coupons-by-product-quantity.php:253
+#: includes/class-wc-sc-coupons-by-product-quantity.php:263
+msgid "Categories"
+msgstr "Catégories"
+
+#: includes/class-wc-sc-coupon-categories.php:88
+msgid "Category"
+msgstr "Catégorie"
+
+#: includes/class-wc-smart-coupons.php:71
+msgid "Cheatin’ huh?"
+msgstr "Alors ’ on triche ?"
+
+#: includes/class-wc-sc-coupon-message.php:134
+msgid "Check this box to include above message in order confirmation email"
+msgstr "Cochez cette case pour inclure le message ci-dessus dans l’e-mail de confirmation de la commande"
+
+#: includes/class-wc-sc-product-fields.php:129
+#: includes/class-wc-sc-product-fields.php:185
+msgid "Check this box to send above coupons on each renewal order."
+msgstr "Cochez cette case pour envoyer les codes promo ci-dessus pour chaque commande renouvelée."
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "Checkout"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:368
+msgid "Chocolate"
+msgstr "Chocolat"
+
+#: includes/class-wc-sc-settings.php:355
+msgid "Choose a color scheme for coupons."
+msgstr "Choisissez un schéma de couleurs pour les codes promo."
+
+#: includes/class-wc-sc-coupon-import.php:1070
+msgid "Choose a CSV file"
+msgstr "Choisir un fichier CSV"
+
+#: includes/class-wc-sc-settings.php:395
+msgid "Choose a style for coupon on the website."
+msgstr "Choisissez un style de codes promo sur le site web."
+
+#: includes/class-wc-sc-settings.php:456
+msgid "Choose order status which will trigger the auto-generation of coupon, if the order contains product which will generate the coupon."
+msgstr "Choisissez l’état de la commande qui déclenchera la génération automatique du code promo, si la commande contient un produit générant des codes promo."
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:127
+msgid "Choose whether to validate the quantity, cart-wise or product-wise"
+msgstr "Choisissez de valider la quantité, par panier ou par produit"
+
+#: includes/emails/class-wc-sc-email.php:109
+msgid "Choose which format of email to send."
+msgstr "Choisissez quel format d’e-mail envoyer."
+
+#: includes/class-wc-sc-coupon-import.php:1020
+msgid "Chosen"
+msgstr "Choisi"
+
+#: includes/class-wc-smart-coupons.php:3275
+msgid "Clear Smart Coupons Cache"
+msgstr "Purger le cache des Smart Coupons"
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "Click here to download a sample"
+msgstr "Cliquez ici pour télécharger un échantillon"
+
+#: includes/class-wc-sc-coupon-fields.php:146
+#: includes/class-wc-sc-coupon-fields.php:1434
+msgid "Click to copy"
+msgstr "Cliquez pour copier"
+
+#: includes/class-wc-sc-shortcode.php:825
+msgid "Click to select coupon code."
+msgstr "Cliquez pour sélectionner le code promo."
+
+#: includes/class-wc-sc-admin-pages.php:224
+msgid "Click to toggle"
+msgstr "Cliquez ici pour basculer"
+
+#: includes/class-wc-sc-shortcode.php:607
+#: templates/combined-email.php:195
+#: templates/email.php:182
+msgid "Click to visit store. This coupon will be applied automatically."
+msgstr "Cliquez ici pour visiter la boutique. Ce code promo sera automatiquement appliqué."
+
+#: includes/class-wc-sc-settings.php:407
+msgid "Clipper"
+msgstr "Clipper"
+
+#: includes/class-wc-sc-display-coupons.php:2494
+msgid "Code"
+msgstr "Code"
+
+#: includes/class-wc-sc-settings.php:351
+msgid "Colors"
+msgstr "Couleurs"
+
+#: includes/class-wc-sc-settings.php:726
+#: includes/class-wc-smart-coupons.php:5861
+msgid "Combine emails"
+msgstr "Combiner les e-mails"
+
+#: includes/class-wc-smart-coupons.php:5863
+msgid "Combined auto generated coupons email"
+msgstr "E-mail regroupant plusieurs codes promo générés automatiquement"
+
+#: includes/class-wc-sc-coupon-fields.php:1432
+#: includes/class-wc-sc-coupon-fields.php:1447
+msgid "Copied!"
+msgstr "Copié !"
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:116
+msgid "Copy"
+msgstr "Copier"
+
+#: includes/class-wc-sc-admin-pages.php:232
+msgid "Copy billing information to shipping information? This will remove any currently entered shipping information."
+msgstr "Copier les informations de facturation vers les informations d’expédition ? Ceci enlèvera tout ce qui a été entré dans les informations d’expédition."
+
+#: includes/class-wc-sc-coupon-fields.php:1439
+#: includes/class-wc-sc-coupon-fields.php:1449
+msgid "Copy coupon code"
+msgstr "Copier le code promo"
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:118
+msgid "Copy coupon shareable link and apply via URL"
+msgstr "Copier le lien partageable du code promo et l’appliquer par URL"
+
+#: includes/class-wc-sc-coupon-fields.php:139
+msgid "Copy the following link and share it to apply this coupon via URL."
+msgstr "Copiez le lien suivant et partagez-le pour utiliser ce code promo via URL."
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:116
+msgid "Copy this coupon code"
+msgstr "Copier ce code promo"
+
+#: includes/class-wc-sc-admin-pages.php:271
+msgid "Could not grant access - the user may already have permission for this file or billing email is not set. Ensure the billing email is set, and the order has been saved."
+msgstr "Impossible d’accorder l’accès - l’utilisateur peut déjà avoir la permission pour ce fichier ou l’e-mail de facturation n’est pas défini. Assurez-vous que l’e-mail de facturation est défini, et que l’adhésion a été sauvegardée."
+
+#: includes/class-wc-sc-coupon-fields.php:1312
+msgid "Could not locate WooCommerce"
+msgstr "Impossible de localiser WooCommerce"
+
+#: includes/class-wc-sc-background-coupon-importer.php:605
+#: includes/class-wc-sc-purchase-credit.php:991
+#: includes/emails/class-wc-sc-email-coupon.php:488
+msgid "coupon"
+msgstr "code promo"
+
+#: includes/class-wc-sc-privacy.php:384
+#: includes/emails/class-wc-sc-acknowledgement-email.php:342
+#: templates/acknowledgement-email.php:66
+#: templates/coupon-design/basic.php:39
+#: templates/coupon-design/clipper.php:38
+#: templates/coupon-design/cutout.php:55
+#: templates/coupon-design/deal.php:29
+#: templates/coupon-design/deliver.php:34
+#: templates/coupon-design/shipment.php:33
+#: templates/coupon-design/special.php:58
+#: templates/coupon-design/ticket.php:40
+#: templates/plain/acknowledgement-email.php:56
+msgid "Coupon"
+msgid_plural "Coupons"
+msgstr[0] "Code promo"
+msgstr[1] "Codes promo"
+
+#. translators: The coupon code
+#: includes/class-wc-smart-coupons.php:3319
+msgid "Coupon %s is valid for a new user only, hence removed."
+msgstr "Le code promo %s n’est valable que pour les nouveaux utilisateurs, il est donc retiré."
+
+#: includes/class-wc-sc-privacy.php:602
+#: includes/class-wc-smart-coupons.php:5009
+msgid "Coupon Amount"
+msgstr "Montant du code promo"
+
+#: includes/class-wc-sc-privacy.php:122
+msgid "Coupon amount, email & message entered for gift card receiver"
+msgstr "Montant du code promo, e-mail & message entré pour le destinataire de la carte-cadeau"
+
+#: includes/class-wc-sc-background-coupon-importer.php:581
+#: includes/class-wc-sc-background-coupon-importer.php:594
+msgid "Coupon bulk generation"
+msgstr "Générer des codes promo"
+
+#: includes/class-wc-sc-admin-pages.php:1298
+#: includes/class-wc-sc-coupon-categories.php:87
+#: includes/class-wc-sc-coupon-categories.php:225
+msgid "Coupon categories"
+msgstr "Catégories de codes promo"
+
+#: includes/class-wc-smart-coupons.php:5031
+msgid "Coupon Category"
+msgstr "Catégorie de codes promo"
+
+#: includes/class-wc-sc-privacy.php:599
+#: includes/class-wc-smart-coupons.php:4997
+msgid "Coupon Code"
+msgstr "Code Promo"
+
+#: includes/class-wc-sc-shortcode.php:879
+msgid "Coupon code"
+msgstr "Code promo"
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+msgid "Coupon code %1$s has been removed. It is valid only for %2$s: %3$s. You can change the payment method from the %4$s page."
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "Coupon code %1$s is valid only for %2$s: %3$s. You can change payment method from the %4$s page."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:480
+msgid "Coupon code format"
+msgstr "Format du code promo"
+
+#: includes/class-wc-sc-privacy.php:120
+msgid "Coupon code generated for you"
+msgstr "Code promo généré pour vous"
+
+#: includes/class-wc-sc-privacy.php:121
+msgid "Coupon code passed via URL"
+msgstr "Code promo passé par URL"
+
+#: templates/plain/combined-email.php:97
+#: templates/plain/email.php:92
+msgid "Coupon Code:"
+msgstr "Code promo :"
+
+#. translators: %d: Post ID
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:288
+msgid "Coupon creation failed, could not find original coupon: %d"
+msgstr ""
+
+#. translators: %s: coupon id
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:311
+msgid "Coupon creation failed, could not find original coupon: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1288
+msgid "Coupon Data"
+msgstr "Données du code promo"
+
+#. translators: %s: field name
+#: includes/class-wc-sc-purchase-credit.php:1427
+msgid "Coupon delivery date and time is a required field."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1266
+msgid "Coupon Description "
+msgstr "Description du code promo "
+
+#: includes/class-wc-sc-settings.php:565
+#: includes/class-wc-smart-coupons.php:5854
+msgid "Coupon emails"
+msgstr "E-mails de code promo"
+
+#: includes/class-wc-sc-coupon-fields.php:391
+#: includes/class-wc-smart-coupons.php:4661
+msgid "Coupon expiry time"
+msgstr "Heure d’expiration du code"
+
+#: includes/class-wc-sc-privacy.php:605
+msgid "Coupon For"
+msgstr "Code promo pour"
+
+#: includes/class-wc-sc-background-coupon-importer.php:577
+#: includes/class-wc-sc-background-coupon-importer.php:585
+msgid "Coupon import"
+msgstr "Importation de codes promo"
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Coupon Import Error"
+msgstr "Erreur d’importation de code promo"
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "Coupon is not valid for the"
+msgstr "Le code promo n’est pas valide pour"
+
+#: includes/class-wc-smart-coupons.php:4655
+msgid "Coupon Is Visible Storewide"
+msgstr "Le code promo est visible dans toute la boutique"
+
+#: includes/class-wc-sc-coupon-message.php:418
+#: includes/class-wc-sc-coupon-message.php:435
+msgid "Coupon Message"
+msgstr "Message du code promo"
+
+#: includes/class-wc-sc-privacy.php:401
+msgid "Coupon passed in URL"
+msgstr "Code promo passé dans l’URL"
+
+#: includes/class-wc-sc-display-coupons.php:2167
+msgid "Coupon Received"
+msgstr "Code promo reçu"
+
+#: includes/class-wc-sc-settings.php:682
+msgid "Coupon Receiver Details during Checkout"
+msgstr "Détails du destinataire du code promo pendant la commande"
+
+#. translators: The coupon code
+#: includes/class-wc-smart-coupons.php:3378
+msgid "Coupon removed. There is no credit remaining in %s."
+msgstr "Code promo retiré. Il n’y a aucun crédit restant dans %s."
+
+#: includes/class-wc-sc-coupon-fields.php:101
+msgid "Coupon shareable link"
+msgstr "Lien partageable du code promo"
+
+#: includes/class-wc-smart-coupons.php:4651
+msgid "Coupon Title Prefix"
+msgstr "Préfixe du code promo"
+
+#: includes/class-wc-smart-coupons.php:4652
+msgid "Coupon Title Suffix"
+msgstr "Suffixe du code promo"
+
+#: includes/class-wc-smart-coupons.php:4648
+msgid "Coupon Validity"
+msgstr "Validité du code promo"
+
+#: includes/class-wc-sc-coupon-fields.php:452
+msgid "Coupon value same as product's price?"
+msgstr "Valeur du code promo identique au prix du produit ?"
+
+#: includes/class-wc-sc-admin-pages.php:123
+#: includes/class-wc-sc-admin-pages.php:550
+#: includes/class-wc-sc-admin-pages.php:555
+#: includes/class-wc-sc-admin-pages.php:1620
+#: includes/class-wc-sc-background-coupon-importer.php:396
+#: includes/class-wc-sc-display-coupons.php:791
+#: includes/class-wc-sc-display-coupons.php:828
+#: includes/class-wc-sc-display-coupons.php:1940
+#: includes/class-wc-sc-product-fields.php:99
+#: includes/class-wc-sc-product-fields.php:159
+msgid "Coupons"
+msgstr "Codes promo"
+
+#: includes/class-wc-sc-background-coupon-importer.php:606
+msgid "coupons"
+msgstr "codes promo"
+
+#: includes/class-wc-sc-admin-welcome.php:261
+msgid "Create and gift Store Credit / Gift Cards"
+msgstr "Créer et offrir des bons d’achat/cartes cadeaux"
+
+#: includes/class-wc-sc-background-coupon-importer.php:627
+msgid "CSV file has been generated. You can download it from "
+msgstr "Le fichier CSV a été généré. Vous pouvez le télécharger à partir de "
+
+#. translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce'
+#: includes/class-wc-sc-admin-welcome.php:449
+msgid "Currently, Smart Coupons is compatible with %s. But it is not compatible with any other multi-currency plugin or with WPML."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:384
+msgid "Custom colors"
+msgstr "Couleurs personnalisées"
+
+#: includes/class-wc-smart-coupons.php:5286
+msgid "Custom Style"
+msgstr "Style personnalisé"
+
+#: includes/class-wc-smart-coupons.php:5020
+msgid "Customer Email"
+msgstr "E-mail du client"
+
+#: includes/class-wc-sc-admin-welcome.php:436
+msgid "Customers can apply store credit on a subscription during purchase of subscription. If the same store credit has sufficient balance, it'll keep applying it to renewals till the remainder in store credit is higher than renewal price. Customers will be able to apply store credit only during signup. They will not get an option to apply store credit in renewals. But if the store credit will not have sufficient balance to pay for the renewals, then the order will go into pending mode. Now when the customer will go to pay for this renewal order, they'll get an option to apply store credit again. To activate the subscription again, the customer will have to pay for the renewals. When the customer is paying for the renewals from their account, then in that process they can use the same store credit which didn't have the sufficient balance, again & pay for the remaining amount."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:380
+msgid "Customize color scheme for coupons."
+msgstr "Personnalisez le schéma de couleurs des codes promo."
+
+#: includes/class-wc-sc-settings.php:376
+msgid "Customize colors"
+msgstr "Personnaliser les couleurs"
+
+#: includes/class-wc-sc-settings.php:405
+msgid "Cutout"
+msgstr "Découpe"
+
+#: includes/class-wc-sc-coupon-fields.php:440
+msgid "Days"
+msgstr "Jours"
+
+#: includes/class-wc-sc-settings.php:409
+msgid "Deal"
+msgstr "Offre"
+
+#: includes/class-wc-sc-settings.php:742
+#: includes/class-wc-smart-coupons.php:5851
+msgid "Deduct credit/gift before doing tax calculations"
+msgstr "Déduisez la promotion avant de calculer les taxes"
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+msgid "Delete Gift / Credit, when credit is used up"
+msgstr "Supprimer la carte cadeau ou le bon d’achat lorsque le crédit est épuisé"
+
+#. translators: %s: Note for admin
+#: includes/class-wc-sc-settings.php:557
+msgid "Delete the %1$s when entire credit amount is used up %2$s"
+msgstr "Supprimez la %1$s lorsque le montant total du crédit est épuisé %2$s"
+
+#: includes/class-wc-sc-settings.php:406
+msgid "Deliver"
+msgstr "Livraisons"
+
+#: includes/class-wc-sc-purchase-credit.php:854
+msgid "Deliver coupon"
+msgstr "Envoyer le code promo"
+
+#: includes/class-wc-sc-settings.php:707
+msgid "Description"
+msgstr "Description"
+
+#: templates/plain/combined-email.php:103
+#: templates/plain/email.php:98
+msgid "Description:"
+msgstr "Description :"
+
+#: includes/class-wc-smart-coupons.php:4654
+msgid "Disable Email Restriction"
+msgstr "Désactiver la restriction de l’e-mail"
+
+#: includes/class-wc-sc-coupon-fields.php:536
+msgid "Disable email restriction?"
+msgstr "Désactiver la restriction d’e-mail ?"
+
+#. translators: %s: Explanation of the setting
+#: includes/class-wc-sc-settings.php:547
+msgid "Disabling this, no coupons will be auto-applied - even if any coupon has \"Auto apply?\" enabled."
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:352
+#: includes/class-wc-sc-settings.php:1051
+#: includes/class-wc-smart-coupons.php:1163
+msgid "Discount"
+msgstr "Remise"
+
+#: includes/class-wc-sc-display-coupons.php:1213
+msgid "Discount Coupons"
+msgstr "Codes promo"
+
+#: includes/class-wc-smart-coupons.php:5008
+msgid "Discount Type"
+msgstr "Type de remise"
+
+#: includes/class-wc-sc-order-fields.php:280
+#: templates/plain/combined-email.php:83
+#: templates/plain/email.php:78
+msgid "Discount:"
+msgstr "Remise :"
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:537
+msgid "Display coupon description along with coupon code (on site as well as in emails) %s"
+msgstr "Afficher la description du code promo en plus du code (sur le site ainsi que dans les e-mails) %s"
+
+#: includes/class-wc-sc-coupon-message.php:125
+msgid "Display message"
+msgstr "Afficher le message"
+
+#: includes/class-wc-smart-coupons.php:5868
+msgid "Display prices during cart and checkout"
+msgstr "Afficher les prix sur le panier et la commande"
+
+#: includes/class-wc-smart-coupons.php:5867
+msgid "Display prices in the shop"
+msgstr "Afficher les prix dans la boutique"
+
+#: includes/class-wc-smart-coupons.php:5870
+msgid "Display tax totals"
+msgstr "Afficher le total des taxes"
+
+#: includes/class-wc-sc-settings.php:499
+msgid "Displaying coupons"
+msgstr "Afficher les codes promo"
+
+#: includes/class-wc-sc-coupon-fields.php:537
+msgid "Do not restrict auto-generated coupons to buyer/receiver email, anyone with coupon code can use it"
+msgstr "Ne pas restreindre l’utilisation des codes promo générés automatiquement au destinataire de l’e-mail : autoriser n’importe qui à l’utiliser"
+
+#: includes/class-wc-sc-admin-welcome.php:385
+msgid "Do not want to tie store credit to be used by only one customer? / Can a customer send a gift certificate to themselves to pass on to someone else?"
+msgstr "Vous ne voulez pas lier le bon d’achat à un seul client ? / Un client peut-il s’envoyer une carte cadeau pour la transmettre à quelqu’un d’autre ?"
+
+#: includes/class-wc-sc-admin-notifications.php:101
+#: includes/class-wc-sc-admin-welcome.php:198
+msgid "Docs"
+msgstr "Docs"
+
+#: includes/class-wc-sc-admin-welcome.php:418
+msgid "Does Smart Coupons allow printing of coupon as Gift Card?"
+msgstr "Smart Coupons permet-il l’impression d’un code promo en tant que carte-cadeau ?"
+
+#: includes/class-wc-smart-coupons.php:1612
+msgid "Don't Miss Out."
+msgstr "Ne manquez pas ça."
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Download a sample.csv to confirm"
+msgstr "Télécharger un sample.csv pour confirmer"
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:123
+msgid "Duplicate"
+msgstr "Dupliquer"
+
+#: includes/class-wc-sc-coupon-fields.php:998
+msgid "each with quantity"
+msgstr "chacun avec la quantité"
+
+#: includes/class-wc-sc-coupon-categories.php:94
+msgid "Edit coupon category"
+msgstr "Modifier la catégorie de code promo"
+
+#: includes/class-wc-sc-admin-welcome.php:386
+msgid "Edit the main coupon which is entered in \"Coupons\" field of the product edit page, then go to \"Usage Restrictions\" > \"Disable Email Restriction\" and disable this setting and save the coupon."
+msgstr "Modifiez le code promo principal saisi dans le champ « Code promo » de la page d’édition du produit, puis allez à « Restrictions d’utilisation » - « Désactiver la restriction d’e-mail » et désactiver ce paramètre puis enregistrer le code promo."
+
+#: includes/class-wc-sc-coupon-process.php:322
+msgid "Email address"
+msgstr "Adresse e-mail"
+
+#: includes/emails/class-wc-sc-email-coupon.php:35
+msgid "Email auto generated coupon to recipients. One email per coupon."
+msgstr "Envoyez le code promo généré automatiquement par e-mail aux destinataires. Un e-mail par coupon."
+
+#: includes/class-wc-sc-settings.php:566
+msgid "Email auto generated coupons to recipients"
+msgstr "Envoyer des codes promo auto générés par e-mail aux destinataires"
+
+#: includes/class-wc-sc-settings.php:424
+msgid "Email coupon"
+msgstr "Code promo d’e-mail"
+
+#: includes/class-wc-sc-coupon-import.php:951
+msgid "Email coupon to recipients"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:124
+msgid "Email heading"
+msgstr "Entête e-mail"
+
+#: includes/class-wc-sc-coupon-message.php:133
+msgid "Email message?"
+msgstr "Message de l’e-mail ?"
+
+#: includes/class-wc-sc-admin-pages.php:1212
+msgid "Email to "
+msgstr "Envoyer un e-mail à "
+
+#: includes/class-wc-sc-admin-pages.php:1192
+msgid "Email to recipients"
+msgstr "E-mail aux destinataires"
+
+#: includes/emails/class-wc-sc-email.php:107
+msgid "Email type"
+msgstr "Type d’e-mail"
+
+#: includes/class-wc-sc-admin-notifications.php:176
+msgid "Enable"
+msgstr "Activer"
+
+#: includes/class-wc-sc-settings.php:575
+msgid "Enable feature to allow printing of coupons"
+msgstr "Activer la fonction permettant l’impression de codes promo"
+
+#: includes/class-wc-sc-settings.php:470
+msgid "Enable store notice for the coupon"
+msgstr "Activer la notification de la boutique pour le code promo"
+
+#: includes/class-wc-smart-coupons.php:5865
+msgid "Enable taxes"
+msgstr "Activer les taxes"
+
+#: includes/class-wc-smart-coupons.php:5871
+msgid "Enable the use of coupon codes"
+msgstr "Activer l’utilisation des codes promo"
+
+#: includes/emails/class-wc-sc-email.php:103
+msgid "Enable this email notification"
+msgstr "Activer cette notification par e-mail"
+
+#: includes/class-wc-sc-settings.php:717
+msgid "Enable this to allow buyers to select date & time for delivering the coupon."
+msgstr "Activez ceci pour permettre aux acheteurs de sélectionner la date et l’heure pour l’envoi des codes promo."
+
+#: includes/class-wc-sc-coupon-import.php:951
+msgid "Enable this to send coupon to recipient's email addresses, provided in imported file."
+msgstr "Activez cette option pour envoyer un code promo aux adresses e-mail du destinataire, fournies dans le fichier importé."
+
+#: includes/emails/class-wc-sc-email.php:101
+msgid "Enable/Disable"
+msgstr "Activer/Désactiver"
+
+#: includes/class-wc-smart-coupons.php:1605
+msgid "Ending Soon!"
+msgstr "Bientôt la fin !"
+
+#: includes/class-wc-sc-display-coupons.php:1941
+msgid "Endpoint for the My Account → Coupons page"
+msgstr "Endpoint pour la page « Mon compte » → onglet « Codes promo »"
+
+#: includes/class-wc-sc-coupon-fields.php:1045
+#: includes/class-wc-smart-coupons.php:5140
+msgctxt "enhanced select"
+msgid "%qty% results are available, use up and down arrow keys to navigate."
+msgstr "%qty% résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."
+
+#: includes/class-wc-smart-coupons.php:5142
+msgctxt "enhanced select"
+msgid "Loading failed"
+msgstr "Échec du chargement"
+
+#: includes/class-wc-sc-coupon-fields.php:1054
+#: includes/class-wc-smart-coupons.php:5149
+msgctxt "enhanced select"
+msgid "Loading more results…"
+msgstr "Charger plus de résultats…"
+
+#: includes/class-wc-sc-coupon-fields.php:1046
+#: includes/class-wc-smart-coupons.php:5141
+msgctxt "enhanced select"
+msgid "No matches found"
+msgstr "Aucun résultat"
+
+#: includes/class-wc-sc-coupon-fields.php:1044
+#: includes/class-wc-smart-coupons.php:5139
+msgctxt "enhanced select"
+msgid "One result is available, press enter to select it."
+msgstr "Un résultat est disponible, appuyez sur Entrée pour le sélectionner."
+
+#: includes/class-wc-sc-coupon-fields.php:1051
+#: includes/class-wc-smart-coupons.php:5146
+msgctxt "enhanced select"
+msgid "Please delete %qty% characters"
+msgstr "Veuillez supprimer %qty% caractères"
+
+#: includes/class-wc-sc-coupon-fields.php:1050
+#: includes/class-wc-smart-coupons.php:5145
+msgctxt "enhanced select"
+msgid "Please delete 1 character"
+msgstr "Veuillez supprimer 1 caractère"
+
+#: includes/class-wc-sc-coupon-fields.php:1049
+#: includes/class-wc-smart-coupons.php:5144
+msgctxt "enhanced select"
+msgid "Please enter %qty% or more characters"
+msgstr "Veuillez saisir %qty% caractères ou plus"
+
+#: includes/class-wc-sc-coupon-fields.php:1048
+#: includes/class-wc-smart-coupons.php:5143
+msgctxt "enhanced select"
+msgid "Please enter 1 or more characters"
+msgstr "Veuillez saisir 1 caractère ou plus"
+
+#: includes/class-wc-sc-coupon-fields.php:1047
+#: includes/class-wc-sc-coupon-fields.php:1055
+#: includes/class-wc-smart-coupons.php:5150
+msgctxt "enhanced select"
+msgid "Searching…"
+msgstr "Recherche…"
+
+#: includes/class-wc-sc-coupon-fields.php:1053
+#: includes/class-wc-smart-coupons.php:5148
+msgctxt "enhanced select"
+msgid "You can only select %qty% items"
+msgstr "Vous ne pouvez sélectionner que %qty% articles"
+
+#: includes/class-wc-sc-coupon-fields.php:1052
+#: includes/class-wc-smart-coupons.php:5147
+msgctxt "enhanced select"
+msgid "You can only select 1 item"
+msgstr "Vous ne pouvez sélectionner qu’1 article"
+
+#: includes/class-wc-sc-admin-pages.php:229
+msgid "Enter a name for the new attribute term:"
+msgstr "Saisissez un nom pour le nouvel attribut du terme :"
+
+#: includes/class-wc-sc-purchase-credit.php:158
+msgid "Enter a numeric value."
+msgstr "Saisissez une valeur numérique."
+
+#: includes/class-wc-sc-coupon-import.php:1077
+msgid "Enter location on the server"
+msgstr "Entrez l’emplacement sur le serveur"
+
+#: includes/class-wc-sc-shortcode.php:809
+msgid "Enter more than one character to search."
+msgstr "Saisissez plus d’un caractère pour la recherche."
+
+#: includes/class-wc-sc-purchase-credit.php:887
+#: includes/class-wc-sc-purchase-credit.php:998
+msgid "Enter recipient e-mail address"
+msgstr "E-mail du destinataire"
+
+#: includes/class-wc-sc-admin-pages.php:226
+msgid "Enter some text, or some attributes by pipe (|) separating values."
+msgstr "Saisissez du texte, ou des attributs en les séparant avec une barre verticale (|)."
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:1200
+msgid "Enter the email addresses of the recipients separated by comma under %1$1s. Make sure to match the count of email addresses in %2$2s to %3$3s"
+msgstr "Entrez les adresses e-mail des destinataires séparées par des virgules %1$1s. Assurez-vous d’avoir le même nombre d’adresses e-mail en %2$2s à %3$3s"
+
+#: includes/class-wc-sc-coupons-by-location.php:306
+msgid "Entered location not found. On pressing \"Enter\" button, a new custom location will be saved as: "
+msgstr ""
+
+#. translators: 1. Error title 2. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:385
+msgid "Error"
+msgstr "Erreur"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-coupon-process.php:352
+msgid "Error: %s Receivers E-mail address is invalid."
+msgstr "Erreur: l’adresse de messagerie du %s Destinataire s n’est pas valide."
+
+#: includes/class-wc-sc-coupon-process.php:354
+msgid "Error: Gift Card Receivers E-mail address is invalid."
+msgstr "Erreur : l’e-mail du bénéficiaire de la carte cadeau n’est pas valide."
+
+#: includes/class-wc-sc-background-coupon-importer.php:1257
+msgid "Every 5 Seconds"
+msgstr "Toutes les 5 secondes"
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:104
+#: includes/class-wc-sc-coupons-by-taxonomy.php:291
+msgid "Exclude"
+msgstr "Exclure"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:546
+msgid "Exclude Attributes"
+msgstr "Exclure les attributs"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:200
+msgid "Exclude attributes"
+msgstr "Exclure les attributs"
+
+#: includes/class-wc-smart-coupons.php:5019
+msgid "Exclude Product categories"
+msgstr "Exclure catégorie"
+
+#: includes/class-wc-smart-coupons.php:5017
+msgid "Exclude product IDs"
+msgstr "Exclure les ID produit"
+
+#: includes/class-wc-smart-coupons.php:5015
+msgid "Exclude Sale Items"
+msgstr "Exclure des produits"
+
+#: includes/class-wc-sc-coupons-by-user-role.php:244
+msgid "Exclude User Role"
+msgstr "Rôle d’utilisateur à exclure"
+
+#: includes/class-wc-sc-coupons-by-user-role.php:133
+msgid "Exclude user roles"
+msgstr "Exclure les rôles utilisateur"
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:105
+#: includes/class-wc-sc-coupons-by-excluded-email.php:341
+#: includes/class-wc-sc-coupons-by-excluded-email.php:469
+msgid "Excluded emails"
+msgstr ""
+
+#. translators: Discount amount applied on tax
+#: includes/class-wc-smart-coupons.php:2777
+msgid "excludes -%s on tax"
+msgstr ""
+
+#: templates/plain/combined-email.php:108
+#: templates/plain/email.php:103
+msgid "Expires on:"
+msgstr "Expire le :"
+
+#: includes/class-wc-sc-admin-pages.php:800
+msgid "Expiry Date"
+msgstr "Date d’expiration"
+
+#: includes/class-wc-smart-coupons.php:5011
+msgid "Expiry date"
+msgstr "Date d’expiration"
+
+#. translators: 1: The expiry date
+#: includes/class-wc-smart-coupons.php:1278
+msgid "Expiry: %s"
+msgstr "Expiration : %s"
+
+#: includes/class-wc-sc-admin-pages.php:206
+#: includes/class-wc-smart-coupons.php:4257
+msgid "Export"
+msgstr "Exporter"
+
+#: includes/class-wc-sc-admin-pages.php:1172
+msgid "Export to CSV"
+msgstr "Exporter au format CSV"
+
+#: includes/class-wc-sc-background-coupon-importer.php:743
+#: includes/class-wc-sc-background-coupon-importer.php:760
+msgid "Failed to create export file."
+msgstr "Échec de la création du fichier d’exportation."
+
+#. translators: 1. Receiver email 2. Coupon code 3. Order id
+#: includes/class-wc-sc-coupon-process.php:1081
+#: includes/class-wc-smart-coupons.php:873
+msgid "Failed to schedule email to \"%1$s\" for coupon \"%2$s\" received from order #%3$s."
+msgstr "Impossible de planifier l’envoi du mail à « %1$s » pour le code promo « %2$s » reçu à partir de la commande #%3$s."
+
+#. translators: 1. Receiver email 2. Coupon code
+#: includes/class-wc-sc-coupon-import.php:669
+msgid "Failed to schedule email to \"%1$s\" for coupon \"%2$s\"."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:1324
+#: includes/compat/class-wc-sc-kco-compatibility.php:123
+msgid "Failed to update coupon receiver details in session."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:502
+msgid "Failed to update store credit refund details."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:349
+msgid "FAQ / Common Problems"
+msgstr "FAQ / Problèmes connus"
+
+#: includes/class-wc-sc-admin-notifications.php:100
+#: includes/class-wc-sc-admin-pages.php:159
+#: includes/class-wc-sc-admin-pages.php:608
+#: includes/class-wc-sc-admin-welcome.php:223
+msgid "FAQ's"
+msgstr "FAQ"
+
+#: includes/class-wc-sc-admin-pages.php:235
+msgid "Featured"
+msgstr "En vedette"
+
+#: includes/class-wc-sc-admin-notifications.php:177
+msgid "features."
+msgstr "caractéristiques."
+
+#: includes/class-wc-sc-settings.php:402
+msgid "Festive"
+msgstr "Festive"
+
+#: includes/class-wc-sc-coupon-import.php:941
+msgid "File format seems OK"
+msgstr "Format de fichier semble OK"
+
+#. translators: File path
+#: includes/class-wc-smart-coupons.php:5317
+#: includes/class-wc-smart-coupons.php:5325
+msgid "File not found %s"
+msgstr "Fichier non trouvé %s"
+
+#: includes/class-wc-sc-coupon-import.php:940
+msgid "File uploaded OK"
+msgstr "Fichier téléchargé OK"
+
+#: includes/class-wc-smart-coupons.php:4224
+msgid "Filter by category"
+msgstr "Filtrer par catégorie"
+
+#. translators: Email address of users
+#: includes/class-wc-smart-coupons.php:7070
+msgid "Find coupons restricted to %s"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:399
+msgid "Flat"
+msgstr "Plat"
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1625
+msgid "Flat %s discount on everything today."
+msgstr "%s de Remise sur tout aujourd’hui."
+
+#: includes/emails/class-wc-sc-email-coupon.php:410
+#: includes/emails/class-wc-sc-email-coupon.php:421
+msgid "for all products"
+msgstr "pour tous les produits"
+
+#: includes/emails/class-wc-sc-email-coupon.php:432
+msgid "for entire purchase"
+msgstr "pour la totalité de la commande"
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "For more details you can refer to this article: %s"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:422
+#: includes/class-wc-smart-coupons.php:4656
+#: includes/class-wc-smart-coupons.php:5026
+msgid "For new user only?"
+msgstr "Pour les nouveaux utilisateurs seulement ?"
+
+#: includes/emails/class-wc-sc-email-coupon.php:408
+#: includes/emails/class-wc-sc-email-coupon.php:419
+#: includes/emails/class-wc-sc-email-coupon.php:430
+msgid "for some products"
+msgstr "pour certains produits"
+
+#: includes/class-wc-sc-display-coupons.php:280
+#: includes/class-wc-sc-display-coupons.php:871
+#: includes/class-wc-sc-display-coupons.php:2412
+#: includes/class-wc-sc-shortcode.php:542
+#: includes/class-wc-smart-coupons.php:4895
+#: templates/combined-email.php:127
+#: templates/email.php:125
+#: templates/plain/combined-email.php:93
+#: templates/plain/email.php:88
+#: templates/print-coupons-default.php:144
+msgid "Free Shipping"
+msgstr "Livraison gratuite"
+
+#: includes/class-wc-smart-coupons.php:5010
+msgid "Free shipping"
+msgstr "Livraison gratuite"
+
+#: includes/class-wc-sc-purchase-credit.php:988
+msgid "Free Shipping coupon"
+msgstr "Code promo de livraison gratuite"
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:144
+#: includes/emails/class-wc-sc-combined-email-coupon.php:221
+#: includes/emails/class-wc-sc-email-coupon.php:202
+#: includes/emails/class-wc-sc-email-coupon.php:281
+msgid "from"
+msgstr "de"
+
+#: includes/class-wc-sc-admin-welcome.php:424
+msgid "From version 4.11.0, you can add/link coupons to product variations as well. This feature is not available in a version lower than 4.11.0."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:235
+#: blocks/src/js/send-coupon-form/block.js:239
+msgctxt "Frontend"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:262
+#: blocks/src/js/send-coupon-form/block.js:287
+msgctxt "Frontend"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:207
+msgctxt "Frontend"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:267
+#: blocks/src/js/send-coupon-form/block.js:294
+msgctxt "Frontend"
+msgid "Message for receiver"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:259
+#: blocks/src/js/send-coupon-form/block.js:284
+msgctxt "Frontend"
+msgid "Receiver email address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:195
+msgctxt "Frontend"
+msgid "Send coupons to..."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:225
+msgctxt "Frontend"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:202
+msgctxt "Frontend"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:220
+msgctxt "Frontend"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:271
+#: blocks/src/js/send-coupon-form/block.js:298
+msgctxt "Frontend"
+msgid "Write a message"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:197
+msgctxt "Frontend"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:366
+#: includes/class-wc-sc-background-coupon-importer.php:371
+msgid "generate"
+msgstr "générer"
+
+#: includes/class-wc-sc-admin-pages.php:284
+msgid "Generate coupon code"
+msgstr "Générer un code promo"
+
+#: includes/class-wc-sc-admin-pages.php:1164
+msgid "Generate coupons and"
+msgstr "Générer des codes promo et"
+
+#: includes/class-wc-sc-coupon-fields.php:460
+msgid "Generate exact copy of this coupon with unique coupon code for each purchased product (needs this coupon to be linked with that product)"
+msgstr "Générer une copie exacte de ce code promo avec un code promo unique pour chaque produit acheté (ce code promo doit être lié à ce produit)"
+
+#: includes/class-wc-sc-background-coupon-importer.php:370
+#: includes/class-wc-sc-background-coupon-importer.php:595
+msgid "generated"
+msgstr "généré"
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:489
+msgid "Generated %s amount"
+msgstr "Montant généré du %s"
+
+#: includes/class-wc-sc-background-coupon-importer.php:365
+msgid "generated & sent"
+msgstr "générés et envoyés"
+
+#: includes/class-wc-sc-privacy.php:390
+msgid "Generated Coupon Data"
+msgstr "Données de code promo générées"
+
+#: includes/class-wc-sc-display-coupons.php:2595
+msgid "Generated coupons"
+msgstr "Codes promo générés"
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "arrow"
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Coupons are not generated for this order. You can regenerate it from %1$s. Select an appropriate action from the %2$s dropdown menu and hit the %3$s button next to it."
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Order actions"
+msgstr ""
+
+#. translators: 1. Label for Order action for regenerating coupons
+#: includes/class-wc-sc-display-coupons.php:2120
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Select %s to only regenerate coupons. No email will be sent for this."
+msgstr ""
+
+#. translators: 1. Label for Order action for regenerating & resending coupons
+#: includes/class-wc-sc-display-coupons.php:2130
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Select %s to regenerate as well as resend coupons to the recipients via email."
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:118
+msgid "Get shareable link"
+msgstr "Obtenir un lien partageable"
+
+#: includes/class-wc-sc-admin-welcome.php:389
+msgid "Getting 'Page Not Found Error' when accessing Coupons tab from My Account Page?"
+msgstr "Message « Erreur page non trouvée » lors de l’accès à l’onglet « Codes promo » à partir de la page « Mon compte » ?"
+
+#: includes/class-wc-sc-admin-welcome.php:298
+msgid "Gift a product via coupon"
+msgstr "Offrir un produit via un code promo"
+
+#: includes/emails/class-wc-sc-email-coupon.php:355
+#: includes/emails/class-wc-sc-email-coupon.php:479
+msgid "Gift Card"
+msgstr "Carte cadeau"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:336
+#: templates/acknowledgement-email.php:61
+#: templates/plain/acknowledgement-email.php:51
+msgid "Gift card"
+msgstr "Carte cadeau"
+
+#: includes/class-wc-smart-coupons.php:5852
+msgid "Gift Card discount is inclusive of tax"
+msgstr "Le montant de la carte cadeau inclut les taxes"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:337
+#: templates/acknowledgement-email.php:62
+#: templates/plain/acknowledgement-email.php:52
+msgid "Gift cards"
+msgstr "Cartes cadeau"
+
+#: includes/class-wc-sc-purchase-credit.php:847
+msgid "Gift to someone else"
+msgstr "Les offrir à quelqu’un"
+
+#: includes/class-wc-sc-settings.php:610
+msgid "Give alternate singular name to Store Credit / Gift Certificate. This label will only rename Store Credit / Gift Certificate used in the Smart Coupons plugin."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:432
+msgid "Give away a discount or credit on signing up a subscription, give away recurring discount or credits, apply credit during sign up, automatic payment for renewals from credit (Note: When using PayPal Standard Gateway, store credit can be applied only during sign up. Automatic payment for renewals by credit will not work for PayPal Standard Gateway)."
+msgstr "Offrez un code promo ou un bon d’achat lors de l’inscription à un abonnement; offrez des codes promo ou des bons d’achat récurrents; appliquez un bon d’achat lors de l’inscription; instaurer un paiement automatique pour les renouvellements de bons d’achat. Note : Lorsque vous utilisez PayPal Standard Gateway, le bon d’achat ne peut être appliqué que lors de l’inscription. Le paiement automatique pour les renouvellements par bon d’achat ne fonctionnera pas pour PayPal Standard Gateway."
+
+#: includes/class-wc-sc-admin-welcome.php:314
+msgid "Give bigger discounts without hurting your profits. Offer a percentage off coupon upto a particular value. Example - Flat 50% off upto $100."
+msgstr "Offrez des remises plus importantes sans nuire à vos bénéfices. Offrez un pourcentage de réduction sur un code promo jusqu’à une certaine valeur. Exemple - Moins 50% o jusqu’à 100 €."
+
+#: includes/class-wc-sc-admin-welcome.php:306
+msgid "Give discounts to customers for next purchase"
+msgstr "Offrir des réductions aux clients pour leur prochain achat"
+
+#: includes/class-wc-sc-settings.php:617
+msgid "Give plural name for the above singular name."
+msgstr "Donnez le nom pluriel pour le nom singulier ci-dessus."
+
+#: includes/class-wc-sc-admin-welcome.php:179
+msgid "Glad to have you onboard. We hope WooCommerce Smart Coupons adds to your desired success 🏆"
+msgstr "Heureux de vous avoir à bord. Nous espérons que WooCommerce Smart Coupons participera à votre succès 🏆"
+
+#: includes/class-wc-sc-admin-welcome.php:183
+msgid "Go To Coupons"
+msgstr "Aller aux Codes promo"
+
+#: includes/class-wc-sc-admin-welcome.php:390
+msgid "Go to WordPress -> Settings -> Permalinks and click on Save Settings once."
+msgstr "Aller à WordPress -> Réglages ->Permaliens et cliquez une fois sur enregistrer les paramètres."
+
+#: includes/class-wc-sc-settings.php:363
+msgid "Gold"
+msgstr "Gold"
+
+#: includes/class-wc-smart-coupons.php:1603
+msgid "Great News!"
+msgstr "Bonnes nouvelles !"
+
+#. translators: %s: link to submit idea for Smart Coupons on WooCommerce idea board
+#: includes/class-wc-sc-admin-notifications.php:330
+msgid "Have a feature request? Submit it %s."
+msgstr "Vous avez une demande de fonctionnalité ? Soumettez-la ici %s."
+
+#. translators: %s: link to submit idea for Smart Coupons on WooCommerce idea board
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-notifications.php:330
+#: includes/class-wc-sc-admin-welcome.php:361
+#: includes/class-wc-sc-admin-welcome.php:369
+#: includes/class-wc-sc-admin-welcome.php:395
+#: includes/class-wc-sc-background-coupon-importer.php:627
+#: includes/class-wc-sc-print-coupon.php:278
+msgid "here"
+msgstr "ici"
+
+#: includes/class-wc-sc-coupon-fields.php:392
+msgid "HH:MM"
+msgstr "HH:MM"
+
+#: includes/class-wc-sc-coupon-import.php:1036
+msgid "Hi there! Upload a CSV file with coupons details to import them into your shop."
+msgstr "Bonjour ! Téléchargez un fichier CSV avec les détails des codes promo pour les importer dans votre boutique."
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "Hide this notice"
+msgstr "Cacher cet avertissement"
+
+#: includes/class-wc-sc-admin-welcome.php:402
+msgid "How can I resend gift card coupon bought by customers?"
+msgstr "Comment puis-je renvoyer la carte cadeau achetée par les clients ?"
+
+#: includes/class-wc-sc-admin-welcome.php:435
+msgid "How does automatic payment by store credit work with Subscriptions?"
+msgstr "Comment fonctionne le paiement automatique par bon d’achat avec les abonnements ?"
+
+#: includes/class-wc-sc-settings.php:432
+msgid "How many coupons (at max) should be shown on cart, checkout & my account page? If set to 0 (zero) then coupons will not be displayed at all on the website."
+msgstr "Combien de codes promo (au maximum) doivent être affichés sur la page « Panier », sur la page « Commande » et sur la page « Mon compte » ? S’il est fixé à 0 (zéro), les codes promo ne seront pas du tout affichés."
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "How to Apply Single or Multiple Coupons on Click of a Link"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:372
+msgid "How to change texts of the emails sent from Smart Coupons?"
+msgstr "Comment modifier les textes des e-mails envoyés à partir de Smart Coupons ?"
+
+#: includes/class-wc-sc-admin-welcome.php:373
+msgid "How to override email template"
+msgstr "Comment remplacer le modèle d’e-mail"
+
+#. translators: Documentation link for 'How to Print Coupons'
+#: includes/class-wc-sc-admin-welcome.php:420
+msgid "How to Print Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:368
+msgid "How to translate texts from Smart Coupons?"
+msgstr "Comment faire pour traduire des textes de Smart Coupons ?"
+
+#: includes/class-wc-sc-admin-welcome.php:280
+msgid "How to use Smart Coupons the best way"
+msgstr "Comment utiliser au mieux les codes promo intelligents"
+
+#. Plugin URI of the plugin
+#: woocommerce-smart-coupons.php
+#, fuzzy
+msgid "https://woocommerce.com/products/smart-coupons/"
+msgstr "http://www.woothemes.com/products/smart-coupons/"
+
+#. Author URI of the plugin
+#: woocommerce-smart-coupons.php
+msgid "https://www.storeapps.org/"
+msgstr "https://www.storeapps.org/"
+
+#: includes/class-wc-sc-settings.php:1052
+msgid "Hurry. Going fast! On the entire range of products."
+msgstr "Dépêchez-vous. Profitez de cette remise sur toute la gamme de produits."
+
+#: includes/class-wc-sc-admin-welcome.php:447
+msgid "I'm using WPML & WPML provides support for multi-currency, but Smart Coupons only changes currency symbol & the price value remains same. Can Smart Coupons change the currency symbol and the price value associated with it?"
+msgstr "J’utilise WPML & WPML prend en charge plusieurs devises, mais Smart Coupons modifie uniquement le symbole monétaire & la valeur prix reste la même. Est-ce que Smart Coupons peut modifier le symbole monétaire et la valeur du prix qui lui sont associés ?"
+
+#. translators: 1: ID who refunded
+#: includes/class-wc-sc-coupon-refund-process.php:671
+msgid "ID: %d"
+msgstr "ID : %d"
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "If enabled, existing coupons that match by coupon code will be updated. Coupons that do not exist will be skipped."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:116
+msgid "If you are a visitor: We access your billing email address entered during purchase"
+msgstr "Si vous êtes un visiteur: nous accèderons à votre adresse e-mail de facturation saisie lors de l’achat"
+
+#. translators: WooCommerce My Account support link
+#: includes/class-wc-sc-admin-welcome.php:476
+msgid "If you are facing any issues, please %s from your WooCommerce account."
+msgstr "Si vous êtes confronté à des problèmes, veuillez %s depuis votre compte WooCommerce."
+
+#: includes/class-wc-sc-privacy.php:115
+msgid "If you are logged in: We access your billing email address saved in your account & billing email address entered during purchase"
+msgstr "Si vous êtes connecté(e) : nous accèderons à votre adresse e-mail de facturation enregistrée dans votre compte et votre adresse e-mail de facturation saisie lors de l’achat"
+
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-welcome.php:395
+msgid "If you want to import coupon through file, the file should be like"
+msgstr "Si vous voulez importer des codes promo par le biais d’un fichier, le fichier doit être comme ceci"
+
+#. translators: WooCommerce Subscriptions product link
+#: includes/class-wc-sc-admin-welcome.php:275
+msgid "If your store is using %s and your customer has purchased a subscription using a Store Credit. If that store credit has balance left in it, store will automatically use it for renewing that subscription."
+msgstr "Si votre magasin utilise %s et que votre client a acheté un abonnement en utilisant un bon d’achat. S’il reste un solde dans ce crédit, le magasin l’utilisera automatiquement pour renouveler cet abonnement."
+
+#: includes/class-wc-sc-admin-pages.php:205
+#: includes/class-wc-sc-coupon-import.php:955
+msgid "Import"
+msgstr "Importer"
+
+#: includes/class-wc-sc-admin-pages.php:1184
+#: includes/class-wc-sc-background-coupon-importer.php:360
+msgid "import"
+msgstr "importer"
+
+#: includes/class-wc-sc-admin-pages.php:385
+msgid "Import coupons to your store via a csv file."
+msgstr "Importez des codes promo à votre magasin via un fichier CSV."
+
+#: includes/class-wc-sc-admin-welcome.php:294
+msgid "Import and export unique coupons in bulk via CSV. Share coupon codes to deal sites or email them to your customers."
+msgstr "Importation et exportation de codes promo uniques en masse via CSV. Partagez les codes promo sur des sites de vente ou envoyez-les par e-mail à vos clients."
+
+#: includes/class-wc-sc-admin-pages.php:320
+msgid "Import complete - imported"
+msgstr "Import complet - importé"
+
+#: includes/class-wc-sc-admin-pages.php:133
+#: includes/class-wc-sc-admin-pages.php:566
+#: includes/class-wc-sc-admin-pages.php:1587
+msgid "Import Coupons"
+msgstr "Importer des codes promo"
+
+#. translators: 1. Important 2. Upload path
+#. translators: 1. Coupon type
+#: includes/class-wc-sc-admin-notifications.php:165
+#: includes/class-wc-sc-background-coupon-importer.php:333
+#: includes/class-wc-sc-background-coupon-importer.php:400
+#: includes/class-wc-smart-coupons.php:5409
+msgid "Important"
+msgstr "Important"
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:906
+msgid "Important setting"
+msgstr "Réglage important"
+
+#: includes/class-wc-sc-background-coupon-importer.php:359
+msgid "imported"
+msgstr "importé"
+
+#: includes/class-wc-sc-background-coupon-importer.php:402
+msgid "in the background. You will be notified when it is completed."
+msgstr "en arrière-plan. Vous serez notifié une fois qu’il sera terminé."
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:103
+#: includes/class-wc-sc-coupons-by-taxonomy.php:290
+msgid "Include"
+msgstr "Inclure"
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:501
+msgid "Include coupon details on product's page, for products that issue coupons %s"
+msgstr "Inclure les détails du code promo sur la page « Produit », pour les produits qui émettent des codes promo %s"
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:519
+msgid "Include coupons received from other people on My Account > Coupons page %s"
+msgstr "Inclure les codes promo reçus de la part d’autres personnes sur la page « Mon compte » > onglet « Codes promo » %s"
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:491
+msgid "Include tax in the amount of the generated %s"
+msgstr "Inclure la taxe dans le montant généré du %s"
+
+#: includes/class-wc-smart-coupons.php:5850
+msgid "Include tax in the amount of the generated gift card"
+msgstr "Inclure la taxe dans le montant généré de la carte cadeau"
+
+#. translators: Discount amount applied on tax
+#: includes/class-wc-smart-coupons.php:2780
+msgid "includes -%s on tax"
+msgstr ""
+
+#. translators: 1. Coupon code 2. Expiry date
+#: includes/class-wc-sc-coupon-parser.php:416
+msgid "Incorrect format for expiry date of coupon \"%1$s\". Entered date is %2$s. Expected date format: YYYY-MM-DD"
+msgstr "Format incorrect pour la date d’expiration du code promo « %1$s ». La date entrée est « %2$s ». Format de la date prévue: AAAA-MM-DD"
+
+#: includes/class-wc-smart-coupons.php:5014
+msgid "Individual USe"
+msgstr "Usage individuel"
+
+#: includes/class-wc-sc-shortcode.php:941
+msgid "Insert Shortcode"
+msgstr "Insérer un Shortcode"
+
+#: includes/class-wc-sc-display-coupons.php:1245
+msgid "Invalid / Used Coupons"
+msgstr "Codes promo invalides / déjà utilisés"
+
+#: includes/class-wc-sc-admin-pages.php:790
+#: includes/class-wc-sc-purchase-credit.php:156
+msgid "Invalid amount."
+msgstr "Montant invalide."
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Invalid CSV file. Make sure your CSV file contains all columns, header row, and data in correct format."
+msgstr "Fichier CSV non valide. Assurez-vous que votre fichier CSV contient toutes les colonnes, la ligne d’en-tête et les données au format correct."
+
+#: includes/class-wc-sc-admin-pages.php:770
+msgid "Invalid email address."
+msgstr "Adresse e-mail non valide."
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+msgid "is"
+msgid_plural "are"
+msgstr[0] "est"
+msgstr[1] "sont"
+
+#: includes/class-wc-smart-coupons.php:5409
+msgid "is active but it will only work with WooCommerce 3.0.0+."
+msgstr "est actif mais ne fonctionnera qu’avec WooCommerce 3.0.0+."
+
+#: includes/class-wc-sc-coupon-message.php:436
+msgid "Is Email Coupon Message"
+msgstr "Message du code promo pour l’e-mail"
+
+#: includes/class-wc-sc-admin-welcome.php:423
+msgid "Is it possible to have a coupon for each variation of the variable product?"
+msgstr "Est-il possible d’avoir un code promo pour chaque variation d’un produit variable ?"
+
+#: includes/class-wc-sc-admin-welcome.php:439
+msgid "Is it possible to partially pay for a subscription with store credit and the remainder by another method?"
+msgstr "Est-il possible de payer partiellement un abonnement avec un bon d’achat et le reste avec une autre méthode de paiement ?"
+
+#: includes/class-wc-smart-coupons.php:4653
+msgid "Is Pick Price of Product"
+msgstr "Choix du prix du produit"
+
+#: includes/class-wc-sc-admin-welcome.php:427
+msgid "Is Smart Coupons compatible with WooCommerce Subscriptions?"
+msgstr "Smart Coupons est-il compatible avec WooCommerce Subscriptions ?"
+
+#: includes/class-wc-sc-admin-welcome.php:443
+msgid "Is Smart Coupons WPML compatible?"
+msgstr "Smart Coupon est-il compatible avec WPML ?"
+
+#: includes/class-wc-sc-admin-welcome.php:393
+msgid "Is there any reference file for creating an import file for coupons?"
+msgstr "Y a t-il un fichier de référence pour la création d’un fichier d’importation pour les codes promo ?"
+
+#: includes/class-wc-sc-admin-notifications.php:177
+msgid "it to use"
+msgstr "à utiliser"
+
+#: includes/class-wc-sc-settings.php:361
+msgid "Keppel"
+msgstr "Keppel"
+
+#: includes/class-wc-sc-admin-welcome.php:214
+msgid "Know Smart Coupons"
+msgstr "En savoir plus sur Smart Coupons"
+
+#: includes/class-wc-sc-settings.php:599
+msgid "Labels"
+msgstr "Libellés"
+
+#: includes/class-wc-sc-purchase-credit.php:545
+msgid "Later"
+msgstr "Plus tard"
+
+#: includes/class-wc-sc-admin-pages.php:1184
+msgid "later"
+msgstr "plus tard"
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid "latest version of Smart Coupons"
+msgstr "la dernière version de Smart Coupons"
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "leaving a review"
+msgstr "laisser un commentaire"
+
+#: includes/class-wc-sc-display-coupons.php:2218
+#: includes/class-wc-sc-display-coupons.php:2229
+msgid "Less details"
+msgstr "Moins de détails"
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "Let customers purchase gift cards from you or you issue store credit that your users can redeem on the current or next purchase. See how: %1$s or %2$s"
+msgstr "Permettez aux clients de vous acheter des cartes-cadeaux ou émettez des bons d’achat que vos utilisateurs peuvent utiliser pour l’achat en cours ou le suivant. Voir comment : %1$s ou %2$s"
+
+#. translators: %s: link to review WooCommerce Smart Coupons
+#: includes/class-wc-sc-admin-notifications.php:304
+msgid "Liked WooCommerce Smart Coupons? Leave us a %s. A huge thank you from WooCommerce & StoreApps in advance!"
+msgstr "Aimez-vous WooCommerce Smart Coupons ? Laissez-nous un %s. WooCommerce & StoreApps vous remercient à l’avance !"
+
+#: includes/class-wc-smart-coupons.php:5023
+msgid "Limit Usage to X Items"
+msgstr "Limiter l’utilisation à X articles"
+
+#: includes/class-wc-smart-coupons.php:1606
+msgid "Limited Time Offer!"
+msgstr "Offre à durée limitée !"
+
+#: includes/class-wc-sc-display-coupons.php:2168
+msgid "List of coupons & their details which you have received from the store. Click on the coupon to see the details."
+msgstr "Liste des codes promo que vous avez reçus. Cliquez sur le code promo pour voir les détails."
+
+#: includes/class-wc-sc-display-coupons.php:978
+msgid "List of coupons which are valid & available for use. Click on the coupon to use it. The coupon discount will be visible only when at least one product is present in the cart."
+msgstr "Liste des codes promo valables et disponibles à l’utilisation. Cliquez sur le code promo pour l’utiliser. Le code promo ne sera visible que si au moins un produit est présent dans le panier."
+
+#: includes/class-wc-sc-display-coupons.php:1260
+msgid "List of coupons which can not be used. The reason can be based on its usage restrictions, usage limits, expiry date."
+msgstr "Liste des codes promo qui ne peuvent pas être utilisés. La raison peut être basée sur ses restrictions d’utilisation, ses limites d’utilisation, sa date d’expiration."
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:107
+msgid "List of excluded billing emails to check against when an order is placed. Separate email addresses with commas. You can also use an asterisk (*) to match parts of an email. For example \"*@gmail.com\" would match all gmail addresses."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:233
+msgid "Load the customer's billing information? This will remove any currently entered billing information."
+msgstr "Charger les informations de facturation du client ? Ceci supprimera toutes les informations de facturation actuellement saisies."
+
+#: includes/class-wc-sc-admin-pages.php:234
+msgid "Load the customer's shipping information? This will remove any currently entered shipping information."
+msgstr "Charger les informations de livraison du client ? Ceci supprimera toutes les informations de livraison actuellement saisies."
+
+#: includes/class-wc-sc-coupons-by-location.php:207
+msgid "Locations"
+msgstr "Emplacements"
+
+#: includes/class-wc-sc-coupons-by-location.php:493
+msgid "Locations lookup in"
+msgstr "Recherche de lieux dans"
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "Loco Translate"
+msgstr "Loco Translate"
+
+#: includes/class-wc-sc-settings.php:364
+msgid "Majorelle Blue"
+msgstr "Majorelle Blue"
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:123
+msgid "Make a duplicate from this coupon"
+msgstr "Faire un duplicata de ce code promo"
+
+#: includes/class-wc-sc-admin-welcome.php:318
+msgid "Make customer's coupon usage, easy & simple"
+msgstr "Rendez l’utilisation du code promo par votre client simple et facile"
+
+#: includes/class-wc-sc-admin-welcome.php:355
+msgid "Make sure use of coupon is enabled in your store. You can find this setting"
+msgstr "Assurez-vous que l’utilisation du code promo est activée dans votre magasin. Vous pouvez trouver ce paramètre"
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid "Make sure you are using the "
+msgstr "Assurez-vous d’utiliser la "
+
+#: includes/class-wc-sc-admin-pages.php:1302
+#: includes/class-wc-sc-coupon-categories.php:105
+#: includes/class-wc-sc-coupon-categories.php:165
+#: includes/class-wc-smart-coupons.php:4261
+msgid "Manage coupon categories"
+msgstr "Gérer les catégories de codes promo"
+
+#: includes/class-wc-sc-admin-pages.php:1615
+msgid "Marketing"
+msgstr "Marketing"
+
+#: includes/class-wc-sc-coupon-fields.php:407
+#: includes/class-wc-smart-coupons.php:4657
+msgid "Max discount"
+msgstr "Réduction max"
+
+#: includes/class-wc-sc-coupon-import.php:1075
+msgid "Maximum file size"
+msgstr "Taille maximale du fichier"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:135
+msgid "Maximum quantity"
+msgstr "Quantité maximale"
+
+#: includes/class-wc-smart-coupons.php:5013
+msgid "Maximum Spend"
+msgstr "Dépenses maximum"
+
+#: includes/class-wc-sc-settings.php:362
+msgid "McDonald"
+msgstr "McDonald"
+
+#: includes/class-wc-smart-coupons.php:5001
+msgid "Menu Order"
+msgstr "Ordre du menu"
+
+#: includes/class-wc-sc-admin-pages.php:815
+#: includes/class-wc-sc-admin-pages.php:1229
+#: includes/class-wc-sc-display-coupons.php:2464
+#: includes/class-wc-sc-display-coupons.php:2497
+#: includes/class-wc-sc-privacy.php:608
+msgid "Message"
+msgstr "Message"
+
+#: templates/plain/combined-email.php:75
+#: templates/plain/email.php:26
+msgid "Message:"
+msgstr "Message :"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:131
+msgid "Minimum quantity"
+msgstr "Quantité minimale"
+
+#: includes/class-wc-smart-coupons.php:5012
+msgid "Minimum Spend"
+msgstr "Dépenses minimum"
+
+#: includes/class-wc-sc-coupon-fields.php:442
+msgid "Months"
+msgstr "Mois"
+
+#: includes/class-wc-sc-display-coupons.php:2220
+#: includes/class-wc-sc-display-coupons.php:2232
+#: includes/class-wc-sc-display-coupons.php:2335
+msgid "More details"
+msgstr "Plus de détails"
+
+#: includes/class-wc-sc-settings.php:667
+msgid "My Account page"
+msgstr "Page « Mon compte »"
+
+#: includes/class-wc-sc-privacy.php:820
+msgid "N/A"
+msgstr "N/A"
+
+#: includes/class-wc-sc-admin-pages.php:222
+msgid "Name"
+msgstr "Nom"
+
+#: includes/class-wc-sc-admin-pages.php:1109
+msgid "Need a lot of coupons? You can easily do that with Smart Coupons."
+msgstr "Besoin de beaucoup de codes promo ? Vous pouvez facilement le faire avec des Smart Coupons."
+
+#: includes/class-wc-sc-display-coupons.php:297
+#: includes/class-wc-sc-display-coupons.php:885
+#: includes/class-wc-sc-display-coupons.php:2442
+#: includes/class-wc-sc-shortcode.php:572
+#: includes/class-wc-smart-coupons.php:4922
+#: includes/emails/class-wc-sc-email-coupon.php:173
+#: templates/combined-email.php:158
+#: templates/email.php:156
+#: templates/plain/combined-email.php:125
+#: templates/plain/email.php:120
+#: templates/print-coupons-default.php:176
+msgid "Never expires"
+msgstr "N’expire jamais"
+
+#: includes/class-wc-sc-admin-notifications.php:240
+#: includes/class-wc-sc-print-coupon.php:275
+msgid "Never show again"
+msgstr "Ne plus afficher"
+
+#: includes/class-wc-sc-coupon-categories.php:97
+msgid "New coupon category name"
+msgstr "Nouveau nom de la catégorie de code promo"
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "New feature"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:98
+msgid "No coupon categories found"
+msgstr "Aucune catégorie de code promo trouvée"
+
+#: includes/class-wc-sc-shortcode.php:827
+msgid "No coupon code found."
+msgstr "Aucun code promo trouvé."
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:266
+msgid "No coupon to duplicate has been supplied!"
+msgstr "Aucun code promo à dupliquer n’a été fourni !"
+
+#: includes/class-wc-sc-admin-pages.php:238
+msgid "No customer selected"
+msgstr "Aucun client sélectionné"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:136
+#: includes/class-wc-sc-coupons-by-product-quantity.php:158
+#: includes/class-wc-sc-coupons-by-product-quantity.php:196
+#: includes/class-wc-sc-coupons-by-product-quantity.php:226
+#: includes/class-wc-sc-coupons-by-product-quantity.php:238
+msgid "No maximum"
+msgstr "Pas de maximum"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:132
+#: includes/class-wc-sc-coupons-by-product-quantity.php:157
+#: includes/class-wc-sc-coupons-by-product-quantity.php:195
+#: includes/class-wc-sc-coupons-by-product-quantity.php:225
+#: includes/class-wc-sc-coupons-by-product-quantity.php:237
+msgid "No minimum"
+msgstr "Pas de minimum"
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:105
+msgid "No payment methods"
+msgstr "Pas de mode de paiement"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:182
+#: includes/class-wc-sc-coupons-by-product-attribute.php:201
+msgid "No product attributes"
+msgstr "Aucun attribut produit"
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:106
+msgid "No restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:805
+#: includes/class-wc-sc-shortcode.php:846
+#: includes/class-wc-sc-shortcode.php:883
+msgid "No search term specified."
+msgstr "Aucun terme de recherche spécifié."
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:107
+msgid "No shipping methods"
+msgstr "Pas de mode de livraison"
+
+#: includes/class-wc-sc-coupons-by-user-role.php:117
+#: includes/class-wc-sc-coupons-by-user-role.php:134
+msgid "No user roles"
+msgstr "Aucun rôle utilisateur"
+
+#: includes/class-wc-sc-admin-welcome.php:440
+msgid "No, this is possible only in those cases where subscription amount is more than store credit's balance. If store credit's balance is more than subscription's total then your bank account or credit card will not be charged."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:377
+msgid "No. Coupon code should not have any spaces in the name, Eg, Coupon code should be “gift-certificate” & not “gift certificate”."
+msgstr "Non. Le code promo ne devrait pas avoir d’espace dans le nom, par exemple, le code promo devrait être « carte-cadeau » - pas « certificat de cadeau\"."
+
+#: includes/class-wc-sc-coupon-refund-process.php:513
+msgid "Nonce verification failed for action \"wc_sc_refund_store_credit\"."
+msgstr ""
+
+#. translators: Excluded product names
+#: includes/class-wc-smart-coupons.php:1251
+msgid "Not valid for %s"
+msgstr "Non valable pour %s"
+
+#. translators: 1: The category names excluded
+#: includes/class-wc-smart-coupons.php:1265
+msgid "Not valid for category %s"
+msgid_plural "Not valid for categories %s"
+msgstr[0] "Non valable pour la catégorie %s"
+msgstr[1] "Non valable pour les catégories %s"
+
+#. translators: Formatted maximum amount
+#: includes/class-wc-smart-coupons.php:1239
+msgid "Not valid for sale items"
+msgstr "Non valable pour les articles en vente"
+
+#: includes/class-wc-sc-admin-welcome.php:444
+msgid "Not yet, but this is being worked on. You will find this in later versions."
+msgstr "Pas encore, mais on y travaille. Vous trouverez ceci dans les versions ultérieures."
+
+#: includes/class-wc-sc-coupon-import.php:1038
+msgid "Note: If any coupon from the CSV file already exists in the store, it will not update the existing coupon, instead a new coupon will be imported & the previous coupon with the same code will become inactive."
+msgstr "Note : Si un code promo du fichier CSV existe déjà dans le magasin, il ne mettra pas à jour le code promo existant, mais un nouveau code promo sera importé et le code promo précédent avec le même code deviendra inactif."
+
+#: includes/class-wc-sc-admin-notifications.php:456
+msgid "Note: WP CRON has been disabled on your install which may prevent this update from completing."
+msgstr "Remarque : WP CRON a été désactivé sur votre installation, ce qui peut empêcher cette mise à jour de se terminer."
+
+#: includes/class-wc-sc-purchase-credit.php:535
+msgid "Now"
+msgstr "Maintenant"
+
+#: includes/class-wc-sc-settings.php:440
+#: includes/class-wc-smart-coupons.php:5848
+msgid "Number of characters in auto-generated coupon code"
+msgstr "Nombre de caractères dans le code promo auto-généré"
+
+#: includes/class-wc-sc-settings.php:441
+msgid "Number of characters in auto-generated coupon code will be restricted to this number excluding prefix and/or suffix. The default length will be 13. It is recommended to keep this number between 10 to 15 to avoid coupon code duplication."
+msgstr "Le nombre de caractères dans le code promo auto-généré sera limité à ce numéro excluant le préfixe et/ou le suffixe. La longueur par défaut sera 13. Il est recommandé de garder ce nombre entre 10 et 15 pour éviter la duplication du code promo."
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:1159
+#: includes/class-wc-sc-admin-pages.php:1200
+msgid "Number of coupons to generate"
+msgstr "Nombre de codes promo à générer"
+
+#: includes/class-wc-sc-settings.php:431
+#: includes/class-wc-smart-coupons.php:5847
+msgid "Number of coupons to show"
+msgstr "Nombre de codes promo à afficher"
+
+#: includes/class-wc-sc-settings.php:369
+msgid "Ocean"
+msgstr "Océan"
+
+#. translators: 1. Coupon type 2. Coupon amount
+#: includes/class-wc-sc-purchase-credit.php:997
+msgid "of"
+msgstr "de"
+
+#: templates/acknowledgement-email.php:53
+msgid "on"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:657
+msgid "On Cart/Checkout pages"
+msgstr "Sur les pages Panier/Commande"
+
+#: includes/class-wc-sc-product-columns.php:235
+msgid "Open in a new tab"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1076
+msgid "OR"
+msgstr "OU"
+
+#: includes/class-wc-sc-coupon-process.php:1850
+msgctxt "Order edit admin page"
+msgid "Coupon details manually sent."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1845
+msgctxt "Order edit admin page"
+msgid "Coupons manually regenerated & sent."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1843
+msgctxt "Order edit admin page"
+msgid "Coupons manually regenerated."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1816
+msgctxt "Order edit admin page"
+msgid "Regenerate & resend coupon emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1815
+msgctxt "Order edit admin page"
+msgid "Regenerate coupons"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1813
+msgctxt "Order edit admin page"
+msgid "Resend coupon emails"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:894
+msgid "Order paid by %s"
+msgstr "Commande payée par %s"
+
+#. translators: %s: singular name for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:894
+msgid "Order paid by store credit."
+msgstr "Commande payée avec le code promo."
+
+#: includes/class-wc-sc-admin-pages.php:1633
+msgid "Original amount"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "our support team"
+msgstr "notre équipe de support"
+
+#: includes/class-wc-sc-print-coupon.php:123
+msgctxt "Page slug"
+msgid "wc-sc-coupons-terms"
+msgstr "wc-sc-coupons-terms"
+
+#: includes/class-wc-sc-print-coupon.php:124
+msgctxt "Page title"
+msgid "Smart Coupons Terms"
+msgstr "Termes des Codes promo"
+
+#: includes/class-wc-sc-coupon-categories.php:92
+msgid "Parent coupon category"
+msgstr "Catégorie parente de code promo"
+
+#: includes/class-wc-sc-coupon-categories.php:93
+msgid "Parent coupon category:"
+msgstr "Catégorie de code promo parent :"
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "payment method"
+msgid_plural "payment methods"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:104
+#: includes/class-wc-sc-coupons-by-payment-method.php:233
+msgid "Payment methods"
+msgstr "Moyens de paiement"
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:115
+msgid "Payment methods that must be selected during checkout for this coupon to be valid."
+msgstr "Moyens de paiement qui doivent être sélectionnés lors de la commande pour que ce code promo soit valide."
+
+#: includes/class-wc-sc-purchase-credit.php:890
+#: includes/class-wc-sc-purchase-credit.php:1003
+msgid "Pick a delivery date & time"
+msgstr "Choisissez une date et une heure de remise"
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1621
+msgid "Pick any item today for %s off."
+msgstr "Choisissez n’importe quel élément aujourd’hui pour le %s."
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "Please consider"
+msgstr "Veuillez considérer"
+
+#: includes/class-wc-sc-admin-pages.php:1028
+msgid "Please enter a valid value for Number of Coupons to Generate"
+msgstr "Entrez une valeur valide pour le nombre de codes promo à générer"
+
+#: includes/class-wc-sc-admin-pages.php:201
+msgid "Please enter in a value less than the regular price."
+msgstr "Veuillez saisir une valeur inférieure au tarif normal."
+
+#: includes/class-wc-sc-admin-pages.php:200
+msgid "Please enter in country code with two capital letters."
+msgstr "Veuillez saisir un code pays avec deux lettres majuscules."
+
+#. translators: Decimal point
+#: includes/class-wc-sc-admin-pages.php:197
+msgid "Please enter in decimal (%s) format without thousand separators."
+msgstr "Veuillez saisir en format décimal (%s) sans séparateur de milliers."
+
+#. translators: Decimal point
+#: includes/class-wc-sc-admin-pages.php:199
+msgid "Please enter in monetary decimal (%s) format without thousand separators and currency symbols."
+msgstr "Veuillez saisir en format monétaire, avec décimal, (%s) sans séparateur de milliers et sans symbole monétaire."
+
+#: includes/class-wc-smart-coupons.php:4244
+msgid "Please select at least one coupon to print."
+msgstr "Veuillez sélectionner au moins un code promo à imprimer."
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:210
+#: includes/class-wc-sc-coupons-by-product-quantity.php:255
+msgid "Please select some categories"
+msgstr "Veuillez sélectionner des catégories"
+
+#: includes/class-wc-sc-admin-pages.php:216
+msgid "Please select some items."
+msgstr "Veuillez sélectionner quelques articles."
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:171
+#: includes/class-wc-sc-coupons-by-product-quantity.php:247
+msgid "Please select some products"
+msgstr "Veuillez sélectionner des produits"
+
+#: includes/class-wc-sc-admin-pages.php:677
+msgid "Please try again later."
+msgstr "Veuillez réessayer ultérieurement."
+
+#: includes/class-wc-smart-coupons.php:5409
+msgid "Please update WooCommerce to the latest version"
+msgstr "Veuillez mettre à jour WooCommerce vers la dernière version"
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "plugin and then following steps listed "
+msgstr "plugin, puis des suivre les étapes énumérées "
+
+#: includes/class-wc-sc-settings.php:618
+msgid "Plural name"
+msgstr "Nom pluriel"
+
+#: includes/class-wc-smart-coupons.php:5002
+msgid "Post Date"
+msgstr "Date de l’article"
+
+#: includes/class-wc-smart-coupons.php:4998
+msgid "Post Excerpt"
+msgstr "Extrait d’article"
+
+#: includes/class-wc-smart-coupons.php:5000
+msgid "Post Parent"
+msgstr "Article Parent"
+
+#: includes/class-wc-smart-coupons.php:4999
+msgid "Post Status"
+msgstr "Statut de l’article"
+
+#: includes/class-wc-sc-coupon-fields.php:481
+msgid "Prefix"
+msgstr "Préfixe"
+
+#: includes/class-wc-sc-settings.php:209
+#: includes/class-wc-sc-shortcode.php:892
+msgid "Preview"
+msgstr "Aperçu"
+
+#: includes/class-wc-sc-admin-pages.php:830
+#: includes/class-wc-sc-admin-pages.php:1244
+msgid "Preview Email"
+msgstr "Prévisualiser Email"
+
+#: includes/class-wc-smart-coupons.php:5866
+msgid "Prices entered with tax"
+msgstr "Prix saisis en TTC"
+
+#: includes/class-wc-smart-coupons.php:4259
+msgid "Print"
+msgstr "Imprimer"
+
+#: includes/class-wc-sc-display-coupons.php:1120
+#: templates/combined-email.php:228
+#: templates/email.php:209
+msgid "Print coupon"
+msgid_plural "Print coupons"
+msgstr[0] "Imprimer le code promo"
+msgstr[1] "Imprimer les codes promo"
+
+#: includes/class-wc-smart-coupons.php:4259
+msgid "Print selected coupons"
+msgstr "Imprimer les codes promo sélectionnés"
+
+#: includes/class-wc-sc-settings.php:574
+#: includes/class-wc-smart-coupons.php:5855
+msgid "Printing coupons"
+msgstr "Impression des codes promo"
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+#: includes/class-wc-sc-coupons-by-product-quantity.php:124
+msgid "Product"
+msgid_plural "Products"
+msgstr[0] "Produit"
+msgstr[1] "%s produits"
+
+#. translators: 1. Singular/plural label for product(s) 2. Excluded product names
+#: includes/class-wc-sc-coupons-by-product-attribute.php:525
+#: includes/class-wc-sc-coupons-by-taxonomy.php:729
+msgid "product"
+msgid_plural "products"
+msgstr[0] "produit"
+msgstr[1] "produits"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:545
+msgid "Product Attributes"
+msgstr "Attributs du produit"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:181
+msgid "Product attributes"
+msgstr "Attributs du produit"
+
+#. translators: Non product type coupon labels
+#: includes/class-wc-sc-coupons-by-product-attribute.php:193
+msgid "Product attributes that the coupon will be applied to, or that need to be in the cart in order for the %s to be applied."
+msgstr "Attributs du produit pour que le code promo soit appliqué, ou qui doivent être dans le panier afin que les %s s’appliquent."
+
+#. translators: Non product type coupon labels
+#: includes/class-wc-sc-coupons-by-product-attribute.php:212
+msgid "Product attributes that the coupon will not be applied to, or that cannot be in the cart in order for the %s to be applied."
+msgstr "Attributs de produit auxquels le code promo ne sera pas appliqué, ou qui ne peuvent pas être dans le panier pour que les %s soient appliqués."
+
+#: includes/class-wc-smart-coupons.php:5018
+msgid "Product categories"
+msgstr "Catégories de produits"
+
+#: includes/class-wc-sc-ajax.php:342
+#: includes/class-wc-sc-ajax.php:347
+#: includes/class-wc-smart-coupons.php:1153
+#: includes/class-wc-smart-coupons.php:1158
+msgid "Product Discount"
+msgstr "Remise produit"
+
+#: includes/class-wc-smart-coupons.php:5016
+msgid "Product IDs"
+msgstr "ID Produits"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:115
+#: includes/class-wc-sc-coupons-by-product-quantity.php:663
+msgid "Product quantity based restrictions"
+msgstr "Restrictions basées sur la quantité de produits"
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:183
+msgid "Product taxonomies that the coupon will be applicable for, or its availability in the cart in order for the \"Fixed cart discount\" to be applied, based on whether the taxonomies are included or excluded."
+msgstr "Les taxonomies de produits pour lesquelles le code promo sera applicable, ou sa disponibilité dans le panier pour que la « remise panier fixe » soit appliquée, selon que les taxonomies sont incluses ou exclues."
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:142
+msgid "Product taxonomies that the coupon will be applicable for, or its availability in the cart in order for the \"Fixed cart discount\" to be applied, based on whether the taxonomies are included or excluded. All the taxonomies selected here, should be valid, for this coupon to be valid."
+msgstr "Les taxonomies de produits pour lesquelles le code promo sera applicable, ou sa disponibilité dans le panier afin que la « remise fixe sur le panier » soit appliquée, selon que les taxonomies sont incluses ou exclues. Toutes les taxonomies sélectionnées ici doivent être valides pour que ce code promo soit valable."
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:153
+#: includes/class-wc-sc-coupons-by-product-quantity.php:169
+#: includes/class-wc-sc-coupons-by-product-quantity.php:245
+#: includes/class-wc-sc-coupons-by-product-quantity.php:260
+msgid "Products"
+msgstr "Produits"
+
+#: includes/class-wc-sc-background-coupon-importer.php:405
+msgid "Progress"
+msgstr "Progression"
+
+#: includes/class-wc-sc-settings.php:400
+msgid "Promotion"
+msgstr "Promotion"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-purchase-credit.php:218
+msgid "Purchase %s worth"
+msgstr "Achat %s valeur"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-purchase-credit.php:218
+#: includes/class-wc-sc-settings.php:642
+msgid "Purchase credit worth"
+msgstr "Montant de la carte cadeau"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:727
+msgid "Quickly create and email %s to one or more people."
+msgstr "Créer rapidement et envoyer par e-mail %s à une ou plusieurs personnes."
+
+#: includes/class-wc-sc-admin-pages.php:729
+msgid "Quickly create and email Store Credit or Gift Card to one or more people."
+msgstr "Créez et envoyer rapidement par e-mail un bon d’achat ou une carte-cadeau à une ou plusieurs personnes."
+
+#: includes/class-wc-sc-coupon-import.php:1039
+msgid "Ready to import? Choose a .csv file, then click \"Upload file\"."
+msgstr "Prêt à importer ? Choisissez un fichier. csv, puis cliquez sur « Télécharger le fichier »."
+
+#: includes/class-wc-sc-display-coupons.php:2462
+#: includes/class-wc-sc-display-coupons.php:2496
+msgid "Receiver"
+msgstr "Destinataire"
+
+#: includes/compat/class-wcs-sc-compatibility.php:951
+msgid "Recurring subscriptions"
+msgstr "Abonnements récurrents"
+
+#. translators: 1: refund id 2: refund date
+#: includes/class-wc-sc-coupon-refund-process.php:678
+msgid "Refund %1$s - %2$s"
+msgstr "Remboursement %1$s - %2$s"
+
+#. translators: 1: refund id 2: refund date 3: username
+#: includes/class-wc-sc-coupon-refund-process.php:665
+msgid "Refund %1$s - %2$s by %3$s"
+msgstr "Remboursement %1$s - %2$s par %3$s"
+
+#: includes/class-wc-sc-coupon-refund-process.php:213
+msgid "Refund to Store Credit"
+msgstr "Remboursement au crédit d’achat"
+
+#: includes/class-wc-sc-admin-notifications.php:239
+msgid "Remind me after a month"
+msgstr "Rappelez-moi après un mois"
+
+#: includes/class-wc-sc-admin-pages.php:223
+msgid "Remove"
+msgstr "Supprimer"
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:219
+msgid "Remove taxonomy restriction"
+msgstr "Supprimer la restriction de taxonomie"
+
+#: includes/class-wc-sc-admin-pages.php:221
+msgid "Remove this attribute?"
+msgstr "Supprimer cet attribut ?"
+
+#: includes/class-wc-sc-admin-pages.php:220
+msgid "Remove this item meta?"
+msgstr "Supprimer la méta de cet article ?"
+
+#: includes/class-wc-sc-privacy.php:324
+msgid "Removed Coupon Personal Data"
+msgstr "Données personnelles des codes promo supprimées"
+
+#: includes/class-wc-sc-privacy.php:734
+msgid "Removed Order Personal Data"
+msgstr "Données personnelles des commandes supprimées"
+
+#: includes/class-wc-sc-privacy.php:443
+msgid "Removed User Personal Data"
+msgstr "Données personnelles des utilisateurs supprimés"
+
+#: includes/class-wc-smart-coupons.php:5858
+#: includes/compat/class-wcs-sc-compatibility.php:961
+msgid "Renewal orders should not generate coupons even when they include a product that issues coupons"
+msgstr "Les commandes de renouvellement ne doivent pas générer de code promo même lorsqu’ils comprennent un produit qui émet des codes promo"
+
+#: includes/class-wc-sc-admin-pages.php:1159
+msgid "Required"
+msgstr "Requis"
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:133
+msgctxt "REST API"
+msgid "Coupons scheduled date & time"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:118
+msgctxt "REST API"
+msgid "Email address of recipients"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:148
+msgctxt "REST API"
+msgid "Message for coupon recipient"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:106
+msgctxt "REST API"
+msgid "Whether to send coupons now or schedule for later."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:94
+msgctxt "REST API"
+msgid "Whether to send coupons to only one person or multiple people."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:81
+msgctxt "REST API"
+msgid "Whether to send coupons to someone else."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:816
+msgid "Retain Store Credit/Gift Certificate"
+msgstr "Conserver le bon d’achat/carte cadeau"
+
+#: includes/class-wc-sc-admin-notifications.php:103
+msgid "Review"
+msgstr "Avis"
+
+#: includes/class-wc-sc-coupons-by-user-role.php:145
+msgid "Role of the users for whom this coupon is not valid. Keep empty if you want this coupon to be valid for users with any role."
+msgstr "Rôle des utilisateurs pour lesquels ce code promo n’est pas valable. Laissez vide si vous voulez que ce code promo soit valable pour les utilisateurs ayant un rôle quelconque."
+
+#: includes/class-wc-sc-coupons-by-user-role.php:128
+msgid "Role of the users for whom this coupon is valid. Keep empty if you want this coupon to be valid for users with any role."
+msgstr "Rôle des utilisateurs pour lesquels ce code promo est valable. Laissez vide si vous voulez que ce code promo soit valable pour tous les types de rôles."
+
+#: includes/class-wc-sc-settings.php:365
+msgid "Rose Pink"
+msgstr "Rose"
+
+#: includes/class-wc-smart-coupons.php:5869
+msgid "Rounding"
+msgstr "Arrondir"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:116
+msgid "Scheduled email heading"
+msgstr "Entête de l’e-mail planifié"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:108
+msgid "Scheduled email subject"
+msgstr "Sujet de l’e-mail planifié"
+
+#: includes/class-wc-sc-settings.php:474
+msgid "Search & select a coupon which you want to display as store notice. The selected coupon's description will be displayed along with the coupon code (if it is set) otherwise, a description will be generated automatically. To disable the feature, keep this field empty."
+msgstr "Recherchez et sélectionnez un code promo que vous souhaitez afficher comme avis de magasin. La description du code promo sélectionné sera affichée avec le code du code promo (si celui-ci est défini), sinon une description sera générée automatiquement. Pour désactiver la fonction, laissez ce champ vide."
+
+#: includes/class-wc-sc-coupon-categories.php:90
+msgid "Search coupon categories"
+msgstr "Rechercher des catégories de codes promo"
+
+#: includes/class-wc-sc-shortcode.php:879
+msgid "Search coupon..."
+msgstr "Rechercher un code promo…"
+
+#: includes/class-wc-sc-product-fields.php:100
+#: includes/class-wc-sc-product-fields.php:161
+msgid "Search for a coupon…"
+msgstr "Chercher un code promo…"
+
+#: includes/class-wc-sc-settings.php:480
+msgid "Search for a coupon..."
+msgstr "Recherche un code promo…"
+
+#: includes/class-wc-sc-coupon-fields.php:967
+#: includes/class-wc-sc-coupon-fields.php:994
+msgid "Search for a product…"
+msgstr "Rechercher un produit…"
+
+#: includes/class-wc-sc-settings.php:211
+msgid "See coupon search limitations"
+msgstr "Voir les limitations de la recherche de coupons"
+
+#: includes/class-wc-sc-admin-welcome.php:294
+#: includes/class-wc-sc-admin-welcome.php:300
+#: includes/class-wc-sc-admin-welcome.php:308
+#: includes/class-wc-sc-admin-welcome.php:403
+msgid "See how"
+msgstr "Voyez comment"
+
+#: includes/class-wc-sc-coupons-by-location.php:282
+msgid "Select Additional Locations"
+msgstr "Sélectionnez d’autres emplacements"
+
+#: includes/class-wc-sc-coupons-by-location.php:219
+msgid "Select location"
+msgstr "Sélectionner le lieu"
+
+#: includes/class-wc-sc-display-coupons.php:722
+#: includes/class-wc-sc-settings.php:630
+#: includes/class-wc-smart-coupons.php:296
+msgid "Select options"
+msgstr "Sélectionner les options"
+
+#: includes/class-wc-sc-settings.php:465
+msgid "Select order status…"
+msgstr "Sélectionnez l’état de la commande …"
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:584
+msgid "Sell %s at less price?"
+msgstr "Vendre %s à moindre prix ?"
+
+#: includes/class-wc-smart-coupons.php:5856
+msgid "Sell gift cards at less price?"
+msgstr "Vendre des cartes cadeaux à moindre prix ?"
+
+#: includes/class-wc-sc-admin-welcome.php:283
+msgid "Sell or issue store credit / gift cards"
+msgstr "Vendre ou émettre des bons d’achat/cartes cadeaux"
+
+#. translators: 1. Coupon type 2. Coupon amount
+#: includes/class-wc-sc-admin-pages.php:824
+#: includes/class-wc-sc-purchase-credit.php:997
+msgid "Send"
+msgstr "Envoyer"
+
+#. translators: %s: singular name for store credit
+#. translators: Store Credit label
+#: includes/class-wc-sc-admin-pages.php:143
+#: includes/class-wc-sc-admin-pages.php:579
+#: includes/class-wc-sc-admin-pages.php:1591
+msgid "Send %s"
+msgstr "Envoyer %s"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:42
+msgid "Send an acknowledgement email to the purchaser. One email per customer."
+msgstr "Envoyer un e-mail d’accusé de réception à l’acheter. Un e-mail par client."
+
+#: includes/class-wc-sc-product-fields.php:127
+#: includes/class-wc-sc-product-fields.php:186
+msgid "Send coupons on renewals?"
+msgstr "Envoyer des codes promo sur les renouvellements ?"
+
+#: includes/class-wc-sc-purchase-credit.php:820
+#: includes/class-wc-sc-settings.php:702
+msgid "Send Coupons to..."
+msgstr "Envoyer le(s) codes(s) promo à..."
+
+#: includes/class-wc-sc-settings.php:727
+msgid "Send only one email instead of multiple emails when multiple coupons are generated for same recipient"
+msgstr "Envoyer un seul e-mail au lieu de plusieurs lorsque plusieurs codes promo sont générés pour le même destinataire"
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:35
+msgid "Send only one email instead of multiple emails when multiple coupons are generated per recipient."
+msgstr "Envoyer un seul e-mail au lieu de plusieurs lorsque plusieurs codes promo sont générés pour le même destinataire."
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:143
+#: includes/class-wc-sc-admin-pages.php:579
+msgid "Send Store Credit"
+msgstr "Envoyer le bon d’achat"
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:762
+#: includes/class-wc-sc-admin-pages.php:1200
+#: includes/class-wc-sc-admin-pages.php:1218
+msgid "Send to"
+msgstr "Envoyer à"
+
+#: includes/class-wc-sc-purchase-credit.php:850
+msgid "Send to different people"
+msgstr "L’envoyer à plusieurs personnes"
+
+#: includes/class-wc-sc-purchase-credit.php:845
+msgid "Send to me"
+msgstr "Me les envoyer"
+
+#: includes/class-wc-sc-purchase-credit.php:849
+msgid "Send to one person"
+msgstr "L’envoyer à une personne"
+
+#: includes/class-wc-sc-display-coupons.php:2461
+#: includes/class-wc-sc-display-coupons.php:2498
+msgid "Sender"
+msgstr "Expéditeur"
+
+#: includes/class-wc-sc-background-coupon-importer.php:590
+msgid "sent"
+msgstr "envoyé"
+
+#: includes/class-wc-sc-admin-welcome.php:312
+msgid "Set a maximum discount limit"
+msgstr "Fixer une limite maximale de remise"
+
+#: includes/class-wc-sc-settings.php:347
+msgid "Set up Smart Coupons the way you like. Use these options to configure/change the way Smart Coupons works."
+msgstr "Configurez les codes promo comme vous le souhaitez. Utilisez ces options pour configurer/modifier la façon dont fonctionne l’extension Smart Coupons."
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "Setting"
+msgstr "Paramètre"
+
+#: includes/class-wc-sc-admin-notifications.php:165
+msgid "Setting \"Enable the use of coupon codes\" is disabled."
+msgstr "Le paramètre « activer l’utilisation des codes promo » est désactivé."
+
+#: includes/class-wc-sc-admin-notifications.php:99
+#: includes/class-wc-sc-admin-welcome.php:197
+msgid "Settings"
+msgstr "Paramètres"
+
+#: includes/class-wc-sc-settings.php:404
+msgid "Shipment"
+msgstr "Expédition"
+
+#: includes/class-wc-sc-coupons-by-location.php:203
+msgid "Shipping"
+msgstr "Livraison"
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "shipping address"
+msgstr "adresse de livraison"
+
+#: includes/class-wc-sc-coupons-by-location.php:495
+msgid "Shipping Locations"
+msgstr "Emplacement de livraison"
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:106
+#: includes/class-wc-sc-coupons-by-shipping-method.php:224
+msgid "Shipping methods"
+msgstr "Méthodes d’expédition"
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:117
+msgid "Shipping methods that must be selected during checkout for this coupon to be valid."
+msgstr "Modes de livraison qui doivent être sélectionnées lors du paiement pour que ce code promo soit valide."
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:510
+msgid "Show coupons available to customers on their My Account > Coupons page %s"
+msgstr "Afficher les codes promo disponibles pour les clients sur leur page « Mon compte » > onglet « Codes promo » %s"
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:528
+msgid "Show invalid or used coupons in My Account > Coupons %s"
+msgstr "Afficher les codes promo non valides ou déjà utilisés sur la page « Mon compte » > onglet « Codes promo » %s"
+
+#: includes/class-wc-sc-coupon-fields.php:497
+msgid "Show on cart, checkout"
+msgstr "Afficher sur les pages « Panier », « Commande »"
+
+#: includes/class-wc-sc-admin-welcome.php:320
+msgid "Show only valid coupons to your customer (if logged in) on cart, checkout & My Account page. Coupons can be applied with single click. So, no need to remember the coupon code or copy-pasting."
+msgstr "Ne montrez à votre client (s’il est connecté) que des codes promo valables sur les pages « Panier », « Paiement » et « Mon compte ». Les codes promo peuvent être appliqués en un seul clic. Il n’est donc pas nécessaire de mémoriser le code promo ou de le copier-coller."
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "Simplest method is by installing"
+msgstr "La méthode la plus simple consiste à installer"
+
+#: includes/class-wc-sc-settings.php:609
+msgid "Singular name"
+msgstr "Nom singulier"
+
+#: includes/class-wc-sc-background-coupon-importer.php:617
+msgid "Skipped"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:320
+msgid "skipped"
+msgstr "ignoré"
+
+#: includes/class-wc-sc-admin-pages.php:521
+#: includes/class-wc-sc-admin-pages.php:523
+msgid "Smart Coupon"
+msgstr "Smart Coupon"
+
+#: includes/class-wc-sc-admin-welcome.php:364
+msgid "Smart Coupon's fields are broken?"
+msgstr "Les champs de Smart Coupons sont défectueux ?"
+
+#: includes/class-wc-sc-settings.php:94
+#: includes/blocks/sc-gutenberg-block.js:43
+msgid "Smart Coupons"
+msgstr "Smart Coupons"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:41
+msgid "Smart Coupons - Acknowledgement email"
+msgstr "Smart Coupons - E-mail accusé de réception"
+
+#: includes/emails/class-wc-sc-email-coupon.php:34
+msgid "Smart Coupons - Auto generated coupon email"
+msgstr "Smart Coupons - E-mail de code promo généré automatiquement"
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:34
+msgid "Smart Coupons - Combined auto generated coupons email"
+msgstr "Smart Coupons - E-mail regroupant plusieurs codes promo générés automatiquement"
+
+#: includes/class-wc-sc-admin-welcome.php:255
+msgid "Smart Coupons enable coupons to become an automatic/interactive system."
+msgstr "Les codes promo intelligents permettent aux codes promo de devenir un système automatique/interactif."
+
+#: includes/class-wc-sc-print-coupon.php:278
+msgid "Smart Coupons has created a coupon's terms page (used during coupon printing) for you. Please edit it as required from"
+msgstr "Smart Coupons a créé pour vous une page de termes de code promo (utilisée lors de l’impression de codes promo). Veuillez la modifier au besoin"
+
+#: includes/class-wc-sc-admin-welcome.php:254
+msgid "Smart Coupons is a powerful extension, built on top of WooCommerce coupons. It adds a new discount type - Store Credit - and advanced functionality to the default coupons."
+msgstr "Smart Coupons est une extension puissante, construite sur les codes promo de WooCommerce. Elle ajoute un nouveau type de réduction - le bon d’achat - et des fonctionnalités avancées aux codes promo par défaut."
+
+#: includes/class-wc-sc-admin-welcome.php:410
+msgid "Smart Coupons is not sending emails."
+msgstr "Smart Coupons n’envoie pas d’e-mails."
+
+#: includes/class-wc-smart-coupons.php:5883
+msgid "Smart Coupons related settings"
+msgstr "Réglages Smart Coupons"
+
+#: includes/class-wc-sc-admin-welcome.php:411
+msgid "Smart Coupons sends email only after order completion. So make sure that order complete email is enabled and sending. If enabled, then make sure all settings of coupons, products are in place. Also check by switching your theme."
+msgstr "Smart Coupons envoie des e-mails seulement après une commande terminée. Assurez-vous donc que l’e-mail de commande terminée est activé et fonctionnel. Si c’est le cas, assurez-vous que tous les paramètres de codes promo et de produits sont en place. Vérifiez également le fonctionnement des e-mails en changeant provisoirement de thème."
+
+#: includes/class-wc-sc-admin-pages.php:152
+#: includes/class-wc-sc-admin-pages.php:595
+#: includes/class-wc-sc-settings.php:345
+msgid "Smart Coupons Settings"
+msgstr "Paramètres des codes promos"
+
+#: includes/class-wc-sc-admin-notifications.php:266
+msgid "Smart Coupons settings"
+msgstr "Réglages Smart Coupons"
+
+#: includes/class-wc-sc-admin-welcome.php:399
+msgid "Smart Coupons uses hooks of Cart, Checkout & My Account page to display available coupons. If your theme is not using those hooks in cart, checkout & my-account template, coupons will not be displayed."
+msgstr "Smart Coupons utilise des hooks de la page Cart, de la page Checkout et My Account pour afficher les codes promo disponibles. Si votre thème n’utilise pas ces hooks dans les modèles de Cart, Checkout & My Account, les codes promo ne s’afficheront pas."
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "so far?"
+msgstr "jusqu’à présent ?"
+
+#: includes/class-wc-sc-display-coupons.php:606
+#: includes/class-wc-sc-display-coupons.php:615
+#: includes/class-wc-sc-display-coupons.php:624
+msgid "some products"
+msgstr "certains produits"
+
+#: includes/class-wc-smart-coupons.php:6507
+#: includes/class-wc-smart-coupons.php:6561
+#: includes/class-wc-smart-coupons.php:6590
+#: includes/class-wc-smart-coupons.php:6614
+msgid "Some values required for $item_id & $item_key"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6122
+#: includes/class-wc-smart-coupons.php:6237
+#: includes/class-wc-smart-coupons.php:6351
+msgid "Some values required for $post_id & $meta_key"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:925
+#: includes/class-wc-sc-display-coupons.php:981
+msgid "Sorry, No coupons available for you."
+msgstr "Désolé, aucun code promo actuellement disponible."
+
+#: includes/class-wc-sc-coupon-import.php:702
+#: includes/class-wc-sc-coupon-import.php:758
+#: includes/class-wc-sc-coupon-import.php:770
+msgid "Sorry, there has been an error."
+msgstr "Désolé, il y a eu une erreur."
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:491
+#: includes/class-wc-sc-coupons-by-taxonomy.php:700
+msgid "Sorry, this coupon is not applicable to selected products."
+msgstr "Désolé, ce code promo n’est pas applicable aux produits sélectionnés."
+
+#. translators: 1. Singular/plural label for product(s) 2. Excluded product names
+#: includes/class-wc-sc-coupons-by-product-attribute.php:525
+#: includes/class-wc-sc-coupons-by-taxonomy.php:729
+msgid "Sorry, this coupon is not applicable to the %1$s: %2$s."
+msgstr "Désolé, ce code promo n’est pas applicable aux %1$s : %2$s."
+
+#: includes/class-wc-sc-settings.php:367
+msgid "Spanish Orange"
+msgstr "Orange espagnole"
+
+#: includes/class-wc-sc-settings.php:403
+msgid "Special"
+msgstr "Spécial"
+
+#. translators: Formatted minimum amount
+#: includes/class-wc-smart-coupons.php:1231
+msgid "Spend at least %s"
+msgstr "Dépensez au moins %s"
+
+#. translators: Formatted maximum amount
+#: includes/class-wc-smart-coupons.php:1235
+msgid "Spend up to %s"
+msgstr "Dépensez jusqu’à %s"
+
+#: includes/class-wc-sc-background-coupon-importer.php:407
+msgid "Stop"
+msgstr "Arrêter"
+
+#. translators: Store Credit label
+#: includes/class-wc-sc-admin-pages.php:1426
+#: includes/class-wc-sc-admin-pages.php:1436
+#: includes/class-wc-sc-admin-pages.php:1591
+#: includes/class-wc-sc-ajax.php:332
+#: includes/class-wc-sc-coupon-refund-process.php:666
+#: includes/class-wc-sc-coupon-refund-process.php:679
+#: includes/class-wc-smart-coupons.php:1143
+#: includes/emails/class-wc-sc-email-coupon.php:357
+#: includes/emails/class-wc-sc-email-coupon.php:481
+msgid "Store Credit"
+msgstr "Bon d’achat"
+
+#: includes/class-wc-sc-background-coupon-importer.php:589
+msgid "Store credit"
+msgstr "Bon d’achat"
+
+#: includes/class-wc-sc-settings.php:301
+#: includes/compat/class-wcs-sc-compatibility.php:947
+msgid "store credit"
+msgstr "bon d’achat"
+
+#: includes/class-wc-sc-background-coupon-importer.php:602
+msgid "store credit / gift card"
+msgstr "bon d’achat/carte cadeau"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:501
+msgid "Store Credit / Gift Card Balance"
+msgstr "Solde Bon d’achat / Carte Cadeau"
+
+#: includes/class-wc-sc-coupon-fields.php:1359
+#: includes/class-wc-sc-settings.php:605
+msgid "Store Credit / Gift Certificate"
+msgstr "Bon d’achat / Carte cadeau"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:672
+msgid "Store Credit / Gift Certificate sent successfully."
+msgstr "Bon d’achat/carte cadeau envoyé avec succès."
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-display-coupons.php:591
+msgid "Store Credit of "
+msgstr "Bon d’achat de "
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:197
+msgid "Store Credit Used"
+msgstr "Bon d’achat utilisé"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:254
+msgid "Store Credit Used:"
+msgstr "Crédit bon d’achat utilisé :"
+
+#: includes/class-wc-sc-admin-welcome.php:407
+msgid "Store Credit's default behavior is auto-generate because, when using a store credit, it's balance keeps reducing. Therefore it should be uniquely created for every user automatically."
+msgstr "Le comportement par défaut d’un bon d’achat est d’être auto-généré parce que, lorsque vous utilisez un bon d’achat, le solde conserve les réductions. C’est pourquoi il doit être créé automatiquement et de manière unique pour chaque utilisateur."
+
+#: includes/class-wc-sc-privacy.php:112
+#: includes/class-wc-sc-privacy.php:324
+#: includes/class-wc-sc-privacy.php:443
+#: includes/class-wc-sc-privacy.php:734
+msgid "Store Credit/Gift Certificate"
+msgstr "Bon d’achat / Carte cadeau"
+
+#: includes/class-wc-sc-privacy.php:247
+msgid "Store Credit/Gift Certificate - Coupon Data"
+msgstr "Bon d’achat/carte cadeau - Données du code promo"
+
+#: includes/class-wc-sc-privacy.php:618
+msgid "Store Credit/Gift Certificate - Order Data"
+msgstr "Bon d’achat/Carte cadeau - Données de la commande"
+
+#: includes/class-wc-sc-privacy.php:817
+msgid "Store Credit/Gift Certificate that are stored for customers via coupons. If erased, the customer will not be able to use the coupons."
+msgstr "Bons d’achat/cartes cadeau qui sont stockés pour les clients via les codes promo. S’ils sont effacés, le client ne pourra pas utiliser les codes promo."
+
+#: includes/class-wc-sc-order-fields.php:341
+msgid "Store Credit:"
+msgstr "Bon d’achat :"
+
+#: includes/class-wc-sc-display-coupons.php:1185
+msgid "Store Credits"
+msgstr "Bons d’achat"
+
+#: includes/class-wc-sc-settings.php:302
+#: includes/class-wc-sc-settings.php:896
+msgid "store credits"
+msgstr "bons d’achat"
+
+#: includes/class-wc-sc-background-coupon-importer.php:394
+msgid "Store Credits / Gift Cards"
+msgstr "Bons d’achat/Cartes cadeau"
+
+#: includes/class-wc-sc-background-coupon-importer.php:603
+msgid "store credits / gift cards"
+msgstr "bons d’achat/cartes cadeau"
+
+#. Author of the plugin
+#: woocommerce-smart-coupons.php
+msgid "StoreApps"
+msgstr "StoreApps"
+
+#: includes/class-wc-smart-coupons.php:5280
+msgid "Style 1"
+msgstr "Style 1"
+
+#: includes/class-wc-smart-coupons.php:5281
+msgid "Style 2"
+msgstr "Style 2"
+
+#: includes/class-wc-smart-coupons.php:5282
+msgid "Style 3"
+msgstr "Style 3"
+
+#: includes/class-wc-smart-coupons.php:5283
+msgid "Style 4"
+msgstr "Style 4"
+
+#: includes/class-wc-smart-coupons.php:5284
+msgid "Style 5"
+msgstr "Style 5"
+
+#: includes/class-wc-smart-coupons.php:5285
+msgid "Style 6"
+msgstr "Style 6"
+
+#: includes/class-wc-sc-settings.php:420
+msgid "Style for coupon in email."
+msgstr "Style du code promo dans l’e-mail."
+
+#: includes/class-wc-sc-settings.php:416
+msgid "Style for email"
+msgstr "Style pour l’e-mail"
+
+#: includes/class-wc-sc-settings.php:391
+msgid "Styles"
+msgstr "Styles"
+
+#: includes/emails/class-wc-sc-email.php:116
+msgid "Subject"
+msgstr "Sujet"
+
+#. translators: WooCommerce My Account support link
+#: includes/class-wc-sc-admin-welcome.php:476
+msgid "submit a ticket"
+msgstr "soumettre une demande"
+
+#: includes/class-wc-sc-background-coupon-importer.php:614
+msgid "Successfully"
+msgstr "Avec succès"
+
+#: includes/class-wc-sc-act-deact.php:268
+msgid "Successfully cleared WooCommerce Smart Coupons cache!"
+msgstr "Cache WooCommerce Smart Coupons effacé !"
+
+#: includes/class-wc-sc-coupon-refund-process.php:500
+msgid "Successfully updated store credit refund details."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:483
+msgid "Suffix"
+msgstr "Suffixe"
+
+#: includes/class-wc-smart-coupons.php:1604
+msgid "Super Savings!"
+msgstr "De super économies !"
+
+#: includes/class-wc-sc-admin-notifications.php:102
+msgid "Support"
+msgstr "Support"
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:141
+#: includes/class-wc-sc-coupons-by-taxonomy.php:182
+msgid "Taxonomy"
+msgstr "Taxonomie"
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:871
+msgid "Taxonomy based restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:177
+msgid "Thank you for installing WooCommerce Smart Coupons"
+msgstr "Merci d’avoir installé WooCommerce Smart Coupons"
+
+#: includes/class-wc-sc-rest-coupons-controller.php:147
+msgid "The coupon code already exists"
+msgstr "Ce code promotionnel existe déjà"
+
+#: includes/class-wc-sc-settings.php:717
+msgid "The coupons will be sent to the recipients via email on the selected date & time"
+msgstr "Les codes promo seront envoyés aux destinataires par e-mail à la date et l’heure sélectionnées"
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "The CSV must adhere to a specific format and include a header row."
+msgstr "Le CSV doit respecter un format spécifique et inclure une ligne d’en-tête."
+
+#: includes/class-wc-sc-admin-notifications.php:417
+msgid "The database update process runs in the background and may take a little while, so please be patient."
+msgstr "Le processus de mise à jour de la base de données s’exécute en arrière-plan et peut prendre un peu de temps, alors soyez patient."
+
+#: includes/class-wc-sc-coupon-import.php:703
+msgid "The file does not exist, please try again."
+msgstr "Le fichier n’existe pas, veuillez essayer de nouveau."
+
+#: includes/class-wc-sc-coupon-fields.php:409
+msgid "The maximum discount this coupon can give on a cart."
+msgstr "La réduction maximale que ce code promo peut donner sur un panier."
+
+#: includes/class-wc-sc-admin-pages.php:807
+msgid "The store credit will expire at 00:00:00 of this date."
+msgstr "Ce crédit expirera à 00:00:00 à cette date."
+
+#: includes/class-wc-sc-settings.php:701
+msgid "The title for coupon receiver details block."
+msgstr "Le titre pour le bloc des détails du destinataire du code promo."
+
+#: includes/class-wc-sc-purchase-credit.php:163
+msgid "The value should not be greater than"
+msgstr "La valeur ne doit pas être supérieure à"
+
+#: includes/class-wc-sc-purchase-credit.php:161
+msgid "The value should not be less than"
+msgstr "La valeur ne doit pas être inférieure à"
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:676
+msgid "There has been an error in sending %s."
+msgstr "Il y a eu une erreur lors de l’envoi de %s."
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:676
+msgid "There has been an error in sending Store Credit / Gift Certificate."
+msgstr "Il y a eu une erreur dans l’envoi de bon d’achat/carte cadeau."
+
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-welcome.php:395
+msgid "There is one file which is located inside the plugin. You can download the %1$s file from %2$s."
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:123
+#: includes/class-wc-sc-product-fields.php:160
+msgid "These coupon/s will be given to customers who buy this product. The coupon code will be automatically sent to their email address on purchase."
+msgstr "Ce ou ces codes promo seront accordés aux clients qui achèteront ce produit. Le ou les codes promo seront automatiquement envoyés à leur adresse e-mail après achat."
+
+#: includes/class-wc-smart-coupons.php:977
+msgid "This coupon has pending emails to be sent. Deleting it will delete those emails also. Are you sure to delete this coupon?"
+msgstr "Ce code promo a des e-mails en attente à envoyer. Le supprimer supprimera également ces e-mails. Êtes-vous sûr de vouloir supprimer ce code promo ?"
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:200
+#: includes/class-wc-sc-coupons-by-shipping-method.php:205
+msgid "This coupon is not valid for selected shipping method."
+msgstr "Ce code promo n’est pas valable pour le mode de livraison sélectionné."
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:239
+#: includes/class-wc-sc-coupons-by-excluded-email.php:253
+#: includes/class-wc-sc-coupons-by-user-role.php:220
+#: includes/class-wc-sc-coupons-by-user-role.php:227
+msgid "This coupon is not valid for you."
+msgstr "Ce code promo n’est pas valable pour vous."
+
+#: includes/class-wc-smart-coupons.php:3416
+msgid "This coupon is valid for the first order only."
+msgstr "Ce code promo est valable uniquement pour la première commande."
+
+#: includes/class-wc-sc-admin-welcome.php:415
+msgid "This form is displayed using a hook which is available in My Account template. Make sure your theme's my-account template contains all hooks required for that template. Update your theme if it is not updated."
+msgstr "Ce formulaire s’affiche à l’aide d’un hook disponible dans le modèle my-account Assurez-vous que le modèle my-account de votre thème contient tous les hooks requis pour ce modèle. Mettez à jour votre thème s’il n’est pas à jour."
+
+#: includes/class-wc-sc-settings.php:651
+msgid "This is the heading above coupon details displayed on products that issue coupons."
+msgstr "Il s’agit de l’entête au dessus des détails du code promo qui sont affichés sur les produits qui émettent des codes promo."
+
+#: includes/class-wc-sc-settings.php:661
+msgid "This is the title for the list of available coupons, shown on Cart and Checkout pages."
+msgstr "Titre de la liste des codes promo disponibles figurant sur la page « Panier » et la page « Commande »."
+
+#: includes/class-wc-sc-order-fields.php:199
+msgid "This is the total credit used."
+msgstr "Ceci est le total des bons d’achat utilisé."
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:629
+msgid "This is what will be shown instead of \"Add to Cart\" for products that sell %s."
+msgstr "C’est ce qui sera affiché à la place de \"Ajouter au panier\" pour les produits qui vendent %s."
+
+#: includes/class-wc-sc-coupon-fields.php:1000
+msgid "This much quantity of each product, selected above, will be added to cart."
+msgstr "Cette quantité de chaque produit, sélectionné ci-dessus, sera ajoutée au panier."
+
+#. translators: %s: $coupon_code coupon code
+#: includes/class-wc-sc-url-coupon.php:347
+msgctxt "This notice will be shown on the cart or the checkout page if the coupon is already applied."
+msgid "Coupon code \"%s\" already applied! Please add some products to the cart to see the discount."
+msgstr ""
+
+#. translators: %s: $coupon_code coupon code
+#: includes/class-wc-sc-url-coupon.php:343
+msgctxt "This notice will be shown on the cart or the checkout page if the coupon will be applied successfully."
+msgid "Coupon code \"%s\" applied successfully. Please add some products to the cart to see the discount."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5883
+msgid "This section shows settings that affects Smart Coupons' functionalities."
+msgstr "Cette section présente les paramètres relatifs aux fonctionnalités de Smart Coupons."
+
+#: includes/class-wc-smart-coupons.php:3276
+msgid "This tool will clear the cache created by WooCommerce Smart Coupons."
+msgstr "Cet outil effacera le cache créé par WooCommerce Smart coupons."
+
+#: includes/class-wc-smart-coupons.php:1607
+msgid "This Week Only!"
+msgstr "Cette semaine seulement !"
+
+#: includes/class-wc-smart-coupons.php:1610
+msgid "This will be over soon! Hurry."
+msgstr "Ce sera bientôt terminé ! Dépêchez-vous."
+
+#. translators: %s: list of placeholders
+#: includes/emails/class-wc-sc-acknowledgement-email.php:104
+msgid "This will be used when the setting \"WooCommerce > Settings > Smart Coupons > Allow schedule sending of coupons?\" is enabled. Available placeholders: %s."
+msgstr "Cela sera utilisé lorsque le paramètre « WooCommerce > Paramètres > Smart Coupons > Autoriser l'envoi programmé de codes promo ?\" est coché. Espaces réservés disponibles : %s."
+
+#: includes/class-wc-sc-settings.php:401
+msgid "Ticket"
+msgstr "Ticket"
+
+#: includes/class-wc-sc-coupon-fields.php:393
+msgid "Time after which coupon will be expired. This will work in conjunction with Coupon expiry date."
+msgstr "Heure à laquelle le code promo expirera. Cela fonctionnera en conjonction avec la date d’expiration du code promo."
+
+#: includes/class-wc-sc-coupon-fields.php:352
+msgctxt "Timepicker on the admin side"
+msgid "Choose Time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:286
+msgctxt "Timepicker on the admin side"
+msgid "Done"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:350
+msgctxt "Timepicker on the admin side"
+msgid "HH:mm"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:354
+msgctxt "Timepicker on the admin side"
+msgid "Hour"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:358
+msgctxt "Timepicker on the admin side"
+msgid "Microsecond"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:357
+msgctxt "Timepicker on the admin side"
+msgid "Millisecond"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:355
+msgctxt "Timepicker on the admin side"
+msgid "Minute"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:285
+msgctxt "Timepicker on the admin side"
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:356
+msgctxt "Timepicker on the admin side"
+msgid "Second"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:353
+msgctxt "Timepicker on the admin side"
+msgid "Time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:359
+msgctxt "Timepicker on the admin side"
+msgid "Time Zone"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:682
+msgctxt "Timepicker on the frontend side"
+msgid "Choose Time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:616
+msgctxt "Timepicker on the frontend side"
+msgid "Done"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:680
+msgctxt "Timepicker on the frontend side"
+msgid "HH:mm"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:684
+msgctxt "Timepicker on the frontend side"
+msgid "Hour"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:688
+msgctxt "Timepicker on the frontend side"
+msgid "Microsecond"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:687
+msgctxt "Timepicker on the frontend side"
+msgid "Millisecond"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:685
+msgctxt "Timepicker on the frontend side"
+msgid "Minute"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:615
+msgctxt "Timepicker on the frontend side"
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:686
+msgctxt "Timepicker on the frontend side"
+msgid "Second"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:683
+msgctxt "Timepicker on the frontend side"
+msgid "Time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:689
+msgctxt "Timepicker on the frontend side"
+msgid "Time Zone"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:697
+msgid "Title"
+msgstr "Titre"
+
+#: includes/class-wc-sc-product-columns.php:102
+msgctxt "Title for coupon column on the products page"
+msgid "Linked coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:671
+msgid "Title of available coupons list on My Account page."
+msgstr "Titre de la liste des codes promo disponibles sur la page « Mon compte »."
+
+#: templates/acknowledgement-email.php:71
+msgid "to"
+msgstr ""
+
+#: templates/combined-email.php:82
+msgid "To redeem your discount click on the following coupon(s):"
+msgstr "Pour profiter de votre remise, cliquez sur le(s) code(s) promo suivant(s) :"
+
+#: templates/plain/combined-email.php:22
+msgid "To redeem your discount use below coupon codes during checkout or copy and paste the below URLs and hit enter in your browser"
+msgstr "Pour utiliser votre réduction, utilisez les codes promo ci-dessous lors de votre commande ou copiez-collez les URL ci-dessous et appuyez sur Entrée dans votre navigateur"
+
+#. translators: %s: Coupon code
+#: templates/email.php:85
+msgid "To redeem your discount use coupon code %s during checkout or click on the following coupon:"
+msgstr "Pour bénéficier de votre réduction, utilisez le code promo %s lors du paiement ou cliquez sur le code promo suivant :"
+
+#. translators: %s: Coupon code
+#: templates/plain/email.php:23
+msgid "To redeem your discount use coupon code %s during checkout or copy and paste the below URL and hit enter in your browser:"
+msgstr "Pour bénéficier de votre remise, utilisez le code promo %s lors du paiement, ou copier/coller l’URL ci-dessous et appuyez sur « Entrer » dans votre navigateur :"
+
+#: includes/class-wc-sc-admin-welcome.php:259
+msgid "Top Smart Coupons features"
+msgstr "Caractéristiques de Smart Coupons"
+
+#: includes/class-wc-sc-display-coupons.php:1194
+msgid "Total Credit Amount"
+msgstr "Montant total du bon"
+
+#. translators: 1. Discount type 2. Discount Type Label
+#: includes/class-wc-sc-ajax.php:132
+#: includes/class-wc-sc-product-fields.php:114
+#: includes/class-wc-sc-product-fields.php:175
+msgid "Type"
+msgstr "Type"
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+msgid "Uncheck"
+msgstr "Décochez"
+
+#: includes/class-wc-sc-admin-welcome.php:406
+msgid "Uncheck \"Auto-generate\" option in Store Credit is not saving? Is it always checked?"
+msgstr "Décocher l’option « Générer automatiquement » dans le bon d’achat n’est pas sauvegardée ? Est-elle toujours cochée ?"
+
+#: includes/class-wc-sc-coupon-fields.php:408
+msgid "Unlimited discount"
+msgstr "Rabais illimité"
+
+#: includes/class-wc-sc-coupon-categories.php:95
+msgid "Update coupon category"
+msgstr "Mise à jour de la catégorie de code promo"
+
+#: includes/class-wc-sc-admin-notifications.php:430
+msgid "Update database"
+msgstr "Mettre à jour la base de données"
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "Update existing coupons"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:586
+msgid "updated"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:578
+msgid "updated & emailed"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1079
+msgid "Upload file"
+msgstr "Télécharger le fichier"
+
+#. translators: %s: Maximum coupon discount amount
+#: includes/class-wc-sc-ajax.php:357
+msgid "upto %s"
+msgstr "jusqu’à %s"
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "URL of coupon should be like this:"
+msgstr "L’URL de code promo doit être comme ceci :"
+
+#: includes/class-wc-smart-coupons.php:5024
+msgid "Usage Count"
+msgstr "Nombre d’utillisation"
+
+#: includes/class-wc-smart-coupons.php:5021
+msgid "Usage Limit"
+msgstr "Limite d’utilisation"
+
+#: includes/class-wc-smart-coupons.php:5022
+msgid "Usage Limit Per User"
+msgstr "Limite d’utilisation par utilisateur"
+
+#. translators: %s: Label for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:953
+msgid "Use %s applied in first subscription order for subsequent renewals until credit reaches zero"
+msgstr "Utiliser %s appliqué dans le premier ordre de souscription pour les renouvellements ultérieurs jusqu’à ce que le crédit atteigne zéro"
+
+#: includes/class-wc-smart-coupons.php:1637
+msgid "Use code"
+msgstr "Utiliser un code"
+
+#. translators: 1. The coupon code
+#: includes/class-wc-smart-coupons.php:1654
+msgid "Use code: %s"
+msgstr "Utilisez le code : %s"
+
+#: includes/class-wc-sc-admin-pages.php:773
+#: includes/class-wc-sc-admin-pages.php:1224
+msgid "Use comma \",\" to separate multiple email addresses"
+msgstr "Utilisez la virgule \",\" pour séparer plusieurs adresses e-mail"
+
+#: includes/class-wc-smart-coupons.php:5857
+msgid "Use gift card applied in first subscription order for subsequent renewals until credit reaches zero"
+msgstr "Utilisez la carte-cadeau appliquée lors de la première commande d’abonnement pour les renouvellements ultérieurs jusqu’à ce que le crédit atteigne zéro"
+
+#: includes/class-wc-smart-coupons.php:5025
+msgid "Used By"
+msgstr "Utilisé par"
+
+#: includes/class-wc-sc-print-coupon.php:420
+msgid "Used during coupon printing"
+msgstr "Utilisé lors de l’impression des codes promo"
+
+#: includes/class-wc-sc-admin-pages.php:228
+msgid "Used for variations"
+msgstr "Utilisé pour les variations"
+
+#: includes/class-wc-sc-coupon-columns.php:128
+msgid "Used in orders"
+msgstr "Utilisé dans les commandes"
+
+#: includes/class-wc-sc-coupons-by-user-role.php:243
+msgid "User Role"
+msgstr "Rôle de l’utilisateur"
+
+#: includes/class-wc-sc-coupon-fields.php:437
+msgid "Valid for"
+msgstr "Valide pendant"
+
+#. translators: Product names
+#: includes/class-wc-smart-coupons.php:1245
+msgid "Valid for %s"
+msgstr "Valable pour %s"
+
+#. translators: 1: The category names
+#: includes/class-wc-smart-coupons.php:1258
+msgid "Valid for category %s"
+msgid_plural "Valid for categories %s"
+msgstr[0] "Valide pour la catégorie %s"
+msgstr[1] "Valide pour les catégories %s"
+
+#: includes/class-wc-smart-coupons.php:1287
+msgid "Valid on entire range of products. Buy anything in the store."
+msgstr "Valable sur toute la gamme de produits. Achetez ce que vous voulez."
+
+#: includes/class-wc-sc-settings.php:455
+#: includes/class-wc-smart-coupons.php:5849
+msgid "Valid order status for auto-generating coupon"
+msgstr "État(s) de commande qui déclencheront la génération automatique de codes promo"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:117
+msgid "Validate quantity of"
+msgstr "Valider la quantité de"
+
+#: includes/class-wc-smart-coupons.php:4649
+msgid "Validity Suffix"
+msgstr "Suffixe de validité"
+
+#: includes/class-wc-sc-admin-pages.php:225
+msgid "Value(s)"
+msgstr "Valeur(s)"
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:167
+msgid "Value="
+msgstr "Valeur="
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "variable but fixed amount"
+msgstr "variable, mais montant fixe"
+
+#: includes/class-wc-sc-admin-notifications.php:458
+msgid "View status"
+msgstr "Voir le statut"
+
+#: includes/class-wc-sc-settings.php:366
+msgid "Vintage"
+msgstr "Millésime"
+
+#: includes/class-wc-sc-admin-pages.php:227
+msgid "Visible on the product page"
+msgstr "Visible sur la page « Produit »"
+
+#: templates/combined-email.php:209
+#: templates/email.php:194
+#: templates/plain/combined-email.php:131
+#: templates/plain/email.php:124
+msgid "Visit store"
+msgstr "Visiter la boutique"
+
+#: includes/class-wc-sc-background-coupon-importer.php:487
+msgid "We are processing coupons in background. Please wait before starting new process."
+msgstr "Nous traitons les codes promo en arrière-plan. S’il vous plaît attendez avant de commencer un nouveau processus."
+
+#: includes/class-wc-sc-privacy.php:124
+msgid "We store these data so that we can process it for you whenever required."
+msgstr "Nous stockons ces données afin que nous puissions les traiter pour vous chaque fois que nécessaire."
+
+#: includes/class-wc-sc-coupon-fields.php:441
+msgid "Weeks"
+msgstr "Semaines"
+
+#: includes/class-wc-sc-admin-welcome.php:88
+msgid "Welcome to Smart Coupons"
+msgstr "Bienvenue dans Smart Coupons"
+
+#: includes/class-wc-sc-admin-welcome.php:252
+msgid "What is Smart Coupons?"
+msgstr "Qu’est-ce que Smart Coupons ?"
+
+#: includes/class-wc-sc-privacy.php:113
+msgid "What we access?"
+msgstr "À quelles informations avons-nous accès ?"
+
+#: includes/class-wc-sc-privacy.php:118
+msgid "What we store & why?"
+msgstr "Quelles données enregistrons-nous et pourquoi ?"
+
+#: includes/class-wc-sc-admin-welcome.php:380
+msgid "What's the URL to a coupon, so it's automatically inserted when visiting?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:453
+msgid "When checked, generated coupon's value will be same as product's price"
+msgstr "Une fois cochée, la valeur du code promo généré sera identique au prix du produit"
+
+#: includes/class-wc-sc-auto-apply-coupon.php:121
+msgid "When checked, this coupon will be applied automatically, if it is valid. If enabled in more than 5 coupons, only 5 coupons will be applied automatically, rest will be ignored."
+msgstr "Si coché, ce code promo sera appliqué automatiquement, s’il est valide. Si cette option est activée dans plus de 5 codes promo, seuls 5 codes promo seront appliqués automatiquement, les autres seront ignorés."
+
+#: includes/class-wc-sc-coupon-fields.php:423
+msgid "When checked, this coupon will be valid for the user's first order on the store."
+msgstr "Si coché, ce code promo sera valable uniquement pour la première commande d’un client."
+
+#: includes/class-wc-sc-coupon-fields.php:498
+msgid "When checked, this coupon will be visible on cart/checkout page for everyone"
+msgstr "Si coché, ce code promo sera visible sur les pages « Panier », « Commande » et « Mon Compte » pour tout le monde"
+
+#. translators: %s: Explanation of the setting
+#: includes/class-wc-sc-settings.php:547
+msgid "When enabled, each coupon will have the option to enable auto-apply for that coupon %s"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:586
+msgid "When selling %1$s, if Regular and Sale price is found for the product, then coupon will be created with product's Regular Price but customer will pay product's Sale price. This setting will also make sure if any discount coupon is applied on the %2$s while purchasing, then customer will get %3$s in their picked price"
+msgstr "Lors de la vente %1$s, si le prix normal et le prix de vente sont trouvés pour le produit, le code promo sera créé avec le prix normal du produit mais le client paiera le prix de vente du produit. Ce paramètre permettra également de s’assurer que si un code promo est appliqué sur le %2$s lors de l’achat, le client obtiendra %3$s dans son prix choisi"
+
+#: includes/class-wc-sc-coupon-fields.php:1009
+msgid "When this coupon will be applied, selected products will be added to cart with set discount. If discount is not set, this coupon's discount will be applied to these products."
+msgstr "Lorsque ce code promo sera appliqué, les produits sélectionnés seront ajoutés au panier avec remise définie. Si la remise n’est pas définie, la remise de ce code promo sera appliquée à ces produits."
+
+#: includes/class-wc-sc-admin-welcome.php:354
+msgid "When trying to add coupon/Smart Coupon, I get \"Invalid post type\" message."
+msgstr "Lorsque j’essaie d’ajouter un code promo/code promo intelligent, je reçois le message « invalid post type »."
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:641
+msgid "When you opt to allow people to buy %s of any amount, this label will be used."
+msgstr "Lorsque vous choisissez d’autoriser les gens à acheter des %s de n’importe quel montant, ce libellé sera utilisé."
+
+#: includes/class-wc-sc-admin-welcome.php:431
+msgid "Which features of Smart Coupons work with Subscriptions?"
+msgstr "Quelles fonctionnalités de Smart Coupons fonctionnent avec WooCommerce Subscriptions ?"
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:636
+msgid "While purchasing %s"
+msgstr "Lors de l’achat de %s"
+
+#: includes/class-wc-sc-coupon-fields.php:1003
+msgid "with discount of"
+msgstr "avec remise de"
+
+#: includes/class-wc-sc-admin-pages.php:1610
+msgid "WooCommerce"
+msgstr "WooCommerce"
+
+#: includes/class-wc-smart-coupons.php:5876
+msgid "WooCommerce Account Connected"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:385
+msgid "WooCommerce Coupons (CSV)"
+msgstr "WooCommerce Coupons (CSV)"
+
+#. Plugin Name of the plugin
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: woocommerce-smart-coupons.php
+#: includes/class-wc-sc-admin-notifications.php:177
+#: includes/class-wc-sc-admin-notifications.php:243
+#: includes/class-wc-sc-admin-notifications.php:257
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "WooCommerce Smart Coupons"
+msgstr "WooCommerce Smart Coupons"
+
+#: includes/class-wc-smart-coupons.php:3274
+msgid "WooCommerce Smart Coupons Cache"
+msgstr "WooCommerce Smart Coupons cache"
+
+#. translators: WooCommerce Subscriptions product link
+#: includes/class-wc-sc-admin-welcome.php:275
+msgid "WooCommerce Subscriptions"
+msgstr "WooCommerce Subscriptions"
+
+#: includes/class-wc-sc-admin-pages.php:779
+msgid "Worth"
+msgstr "Valeur"
+
+#. translators: 1: coupon amount 2: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:414
+msgid "worth %1$s (%2$s) "
+msgstr "d’une valeur de %1$s (%2$s) "
+
+#. translators: 1: coupon amount 2: max discount text 3: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:443
+msgid "worth %1$s%% %2$s (%3$s) "
+msgstr "d’une valeur de %1$s%% %2$s (%3$s) "
+
+#. translators: 1: coupon amount 2: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:425
+msgid "worth %1$s%% (%2$s) "
+msgstr "d’une valeur de %1$s%% (%2$s) "
+
+#. translators: %s coupon amount
+#: includes/emails/class-wc-sc-email-coupon.php:398
+msgid "worth %s "
+msgstr "d’une valeur de %s "
+
+#. translators: %s: coupon amount
+#: includes/emails/class-wc-sc-email-coupon.php:403
+msgid "worth %s (for entire purchase) "
+msgstr "d’une valeur de %s (pour l’ensemble des achats) "
+
+#: includes/class-wc-sc-purchase-credit.php:894
+#: includes/class-wc-sc-purchase-credit.php:1009
+msgid "Write a message"
+msgstr "Écrire un message"
+
+#: includes/class-wc-sc-coupon-fields.php:443
+msgid "Years"
+msgstr "Années"
+
+#. translators: Documentation link for 'How to Print Coupons'
+#: includes/class-wc-sc-admin-welcome.php:420
+msgid "Yes, Smart Coupons does provide a feature for printing coupons. For more details, check this article: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:428
+msgid "Yes, Smart Coupons does work with WooCommerce Subscriptions."
+msgstr "Oui, Les coupons intelligents fonctionnent avec les abonnements WooCommerce."
+
+#: includes/class-wc-sc-coupon-fields.php:150
+msgid "You can also apply multiple coupon codes via a single URL. For example:"
+msgstr "Vous pouvez également appliquer plusieurs codes promo via une seule URL. Par exemple :"
+
+#: includes/class-wc-sc-background-coupon-importer.php:411
+msgid "You can continue with other work. But for bulk generating or importing new coupons, wait for the current process to complete."
+msgstr "Vous pouvez poursuivre d’autres travaux. Mais pour générer ou importer en masse de nouveaux codes promo, attendez que le processus en cours soit terminé."
+
+#: includes/class-wc-sc-admin-welcome.php:373
+msgid "You can do this by overriding the email template."
+msgstr "Vous pouvez le faire en supprimant le modèle d’e-mail."
+
+#: includes/class-wc-sc-admin-welcome.php:308
+msgid "You can give a coupon to your customer after every purchase, which can encourage them to purchase again from you."
+msgstr "Vous pouvez donner un code promo à votre client après chaque achat, ce qui peut inciter à acheter à nouveau dans votre boutique."
+
+#: includes/class-wc-sc-admin-welcome.php:403
+msgid "You can resend them from order admin edit page."
+msgstr "Vous pouvez les renvoyer à partir des pages de commandes sous l’administration."
+
+#: includes/class-wc-sc-admin-pages.php:273
+msgid "You cannot add the same tax rate twice!"
+msgstr "Vous ne pouvez pas ajouter deux fois le même taux de TVA !"
+
+#: includes/class-wc-smart-coupons.php:1609
+msgid "You don't want to miss this..."
+msgstr ""
+
+#: templates/combined-email.php:237
+msgid "You got these coupons "
+msgstr "Vous avez reçu ce(s) code(s) promo "
+
+#. translators: %s: singular name for store credit
+#: templates/email.php:219
+#: templates/plain/combined-email.php:137
+#: templates/plain/email.php:130
+msgid "You got this %s"
+msgstr "Vous avez obtenu ce %s"
+
+#. translators: %s: singular name for store credit
+#: templates/email.php:219
+#: templates/plain/combined-email.php:137
+#: templates/plain/email.php:130
+msgid "You got this gift card"
+msgstr "Vous avez reçu cette carte cadeau"
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "You have received a"
+msgstr "Vous avez reçu un"
+
+#: includes/emails/class-wc-sc-email-coupon.php:73
+msgid "You have received a {coupon_type} {coupon_value}"
+msgstr "Vous avez reçu un {coupon_type} de {coupon_value}"
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:70
+msgid "You have received coupons."
+msgstr "Vous avez reçu des codes promo."
+
+#. translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details
+#: templates/acknowledgement-email.php:37
+msgid "You have scheduled to send %1$d %2$s %3$s %4$s"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details
+#: templates/plain/acknowledgement-email.php:27
+msgid "You have scheduled to send %1$d %2$s to %3$s (%4$s)"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details
+#: templates/acknowledgement-email.php:34
+msgid "You have successfully sent %1$d %2$s %3$s %4$s"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details
+#: templates/plain/acknowledgement-email.php:24
+msgid "You have successfully sent %1$d %2$s to %3$s (%4$s)"
+msgstr "Vous avez envoyé avec succès %1$d %2$s à %3$s (%4$s)"
+
+#: includes/class-wc-sc-settings.php:652
+msgid "You will get following coupon(s) when you buy this item"
+msgstr "Vous obtiendrez le(s) code(s) promo suivant(s) si vous achetez cet article"
+
+#: includes/class-wc-sc-display-coupons.php:540
+msgid "You will get following coupon(s) when you buy this item:"
+msgstr "Vous obtiendrez le ou les code(s) promo suivant(s) si vous achetez cet article :"
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:559
+#: includes/class-wc-sc-coupons-by-product-quantity.php:561
+#: includes/class-wc-sc-coupons-by-product-quantity.php:563
+msgid "Your cart does not meet the product quantity requirement."
+msgstr "Votre panier ne respecte pas la quantité requise."
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:523
+msgid "Your cart does not meet the quantity requirement."
+msgstr "Votre panier ne respecte pas la quantité requise."
+
+#. translators: 1. Number of quantity 2. Singular or plural text based on number of quantities
+#: includes/class-wc-sc-coupons-by-product-quantity.php:537
+msgid "Your cart should have a maximum of %1$d %2$s in total."
+msgstr "Votre panier doit contenir un maximum de %1$d %2$s au total."
+
+#. translators: 1. Number of quantity 2. Singular or plural text based on number of quantities
+#: includes/class-wc-sc-coupons-by-product-quantity.php:541
+msgid "Your cart should have a minimum of %1$d %2$s in total."
+msgstr "Votre panier doit contenir au moins %1$d %2$s au total."
+
+#: includes/class-wc-sc-display-coupons.php:626
+msgid "your entire purchase"
+msgstr "la totalité de votre achat"
+
+#: includes/class-wc-sc-purchase-credit.php:843
+msgid "Your order contains coupons. What would you like to do?"
+msgstr "Vous allez offrir des codes promo. Comment voulez vous procéder ?"
+
+#: includes/class-wc-sc-purchase-credit.php:832
+msgid "Your order contains coupons. You will receive them after completion of this order."
+msgstr "Votre commande contient des codes promo. Vous les recevrez une fois la commande finalisée."
+
+#: includes/class-wc-sc-admin-pages.php:274
+msgid "Your product has variations! Before changing the product type, it is a good idea to delete the variations to avoid errors in the stock reports."
+msgstr "Votre produit comporte des variations ! Avant de changer le type de produit, c’est une bonne idée de supprimer les variations pour éviter les erreurs dans les rapports de stock."
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:95
+msgid "{coupon_type} has been successfully scheduled"
+msgstr "{coupon_type} planifié avec succès"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:77
+msgid "{coupon_type} sent successfully"
+msgstr "\"{coupon_type}\" envoyé avec succès"
+
+#: includes/emails/class-wc-sc-email-coupon.php:64
+msgid "{site_title}: Congratulations! You've received a {coupon_type} from {sender_name}"
+msgstr "{site_title} : Félicitations ! Vous avez reçu un(e) {coupon_type} de la part de {sender_name}"
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:61
+msgid "{site_title}: Congratulations! You've received coupons from {sender_name}"
+msgstr "{site_title} : Félicitations ! Vous avez reçu des codes promo de la part de {from_sender_name}"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:86
+msgid "{site_title}: {coupon_type} has been successfully scheduled"
+msgstr "{site_title}: {coupon_type} planifié avec succès"
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:68
+msgid "{site_title}: {coupon_type} sent successfully"
+msgstr "{site_title}: \"{coupon_type}\" envoyé avec succès"
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons.pot b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons.pot
new file mode 100644
index 00000000..9871f39b
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/languages/woocommerce-smart-coupons.pot
@@ -0,0 +1,4548 @@
+# Copyright (C) 2024 StoreApps
+# This file is distributed under the GNU General Public License v3.0.
+msgid ""
+msgstr ""
+"Project-Id-Version: WooCommerce Smart Coupons 9.3.0\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-smart-coupons\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-06-14T12:51:58+00:00\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"X-Generator: WP-CLI 2.10.0\n"
+"X-Domain: woocommerce-smart-coupons\n"
+
+#. Plugin Name of the plugin
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: woocommerce-smart-coupons.php
+#: includes/class-wc-sc-admin-notifications.php:177
+#: includes/class-wc-sc-admin-notifications.php:243
+#: includes/class-wc-sc-admin-notifications.php:257
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "WooCommerce Smart Coupons"
+msgstr ""
+
+#. Plugin URI of the plugin
+#: woocommerce-smart-coupons.php
+msgid "https://woocommerce.com/products/smart-coupons/"
+msgstr ""
+
+#. Description of the plugin
+#: woocommerce-smart-coupons.php
+msgid "WooCommerce Smart Coupons lets customers buy gift certificates, store credits or coupons easily. They can use purchased credits themselves or gift to someone else."
+msgstr ""
+
+#. Author of the plugin
+#: woocommerce-smart-coupons.php
+msgid "StoreApps"
+msgstr ""
+
+#. Author URI of the plugin
+#: woocommerce-smart-coupons.php
+msgid "https://www.storeapps.org/"
+msgstr ""
+
+#: blocks/blocks.php:51
+msgctxt "Block editor"
+msgid "WooCommerce Smart Coupons"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:423
+msgctxt "Block editor & frontend"
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:515
+#: blocks/class-wc-sc-blocks-integration.php:516
+msgctxt "Block editor & frontend"
+msgid "Send Coupons to..."
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:597
+msgctxt "Block editor & frontend"
+msgid "Free Shipping coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:600
+msgctxt "Block editor & frontend"
+msgid "coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:604
+msgctxt "Block editor & frontend"
+msgid "Send"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:604
+msgctxt "Block editor & frontend"
+msgid "of"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:621
+msgctxt "Block editor & frontend"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:625
+msgctxt "Block editor & frontend"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:629
+msgctxt "Block editor & frontend"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:635
+msgctxt "Block editor & frontend"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:639
+msgctxt "Block editor & frontend"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:645
+msgctxt "Block editor & frontend"
+msgid "now"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:649
+msgctxt "Block editor & frontend"
+msgid "later"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:653
+msgctxt "Block editor & frontend"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/class-wc-sc-blocks-integration.php:654
+msgctxt "Block editor & frontend"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:81
+msgctxt "REST API"
+msgid "Whether to send coupons to someone else."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:94
+msgctxt "REST API"
+msgid "Whether to send coupons to only one person or multiple people."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:106
+msgctxt "REST API"
+msgid "Whether to send coupons now or schedule for later."
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:118
+msgctxt "REST API"
+msgid "Email address of recipients"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:133
+msgctxt "REST API"
+msgid "Coupons scheduled date & time"
+msgstr ""
+
+#: blocks/class-wc-sc-extend-store-endpoint.php:148
+msgctxt "REST API"
+msgid "Message for coupon recipient"
+msgstr ""
+
+#: includes/class-wc-sc-act-deact.php:268
+msgid "Successfully cleared WooCommerce Smart Coupons cache!"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:116
+msgid "Copy this coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:116
+msgid "Copy"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:118
+msgid "Copy coupon shareable link and apply via URL"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:118
+msgid "Get shareable link"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:123
+msgid "Make a duplicate from this coupon"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:123
+msgid "Duplicate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:199
+msgid "(Copy)"
+msgstr ""
+
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:266
+msgid "No coupon to duplicate has been supplied!"
+msgstr ""
+
+#. translators: %d: Post ID
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:288
+msgid "Coupon creation failed, could not find original coupon: %d"
+msgstr ""
+
+#. translators: %s: coupon id
+#: includes/class-wc-sc-admin-coupons-dashboard-actions.php:311
+msgid "Coupon creation failed, could not find original coupon: %s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:99
+#: includes/class-wc-sc-admin-welcome.php:197
+msgid "Settings"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:100
+#: includes/class-wc-sc-admin-pages.php:159
+#: includes/class-wc-sc-admin-pages.php:608
+#: includes/class-wc-sc-admin-welcome.php:223
+msgid "FAQ's"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:101
+#: includes/class-wc-sc-admin-welcome.php:198
+msgid "Docs"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:102
+msgid "Support"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:103
+msgid "Review"
+msgstr ""
+
+#. translators: 1. Important 2. Upload path
+#. translators: 1. Coupon type
+#: includes/class-wc-sc-admin-notifications.php:165
+#: includes/class-wc-sc-background-coupon-importer.php:333
+#: includes/class-wc-sc-background-coupon-importer.php:400
+#: includes/class-wc-smart-coupons.php:5409
+msgid "Important"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:165
+msgid "Setting \"Enable the use of coupon codes\" is disabled."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:176
+msgid "Enable"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:177
+msgid "it to use"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:177
+msgid "features."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:239
+msgid "Remind me after a month"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:240
+#: includes/class-wc-sc-print-coupon.php:275
+msgid "Never show again"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "Awesome, you successfully auto-generated a coupon! Are you having a great experience with"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "so far?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "Please consider"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "leaving a review"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "! If things aren't going quite as expected, we're happy to help -- please reach out to"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:243
+msgid "our support team"
+msgstr ""
+
+#. translators: 1: WooCommerce Smart Coupons 2: Link for the Smart Coupons settings
+#: includes/class-wc-sc-admin-notifications.php:256
+msgid "%1$s: You are using a custom coupon style which is planned to be removed from the plugin in upcoming versions. New, improved styles & colors are added in the version 4.9.0. We would request you to choose a color scheme & a style for coupon from the newly added colors & styles. You can do this from %2$s."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:266
+msgid "Smart Coupons settings"
+msgstr ""
+
+#. translators: %s: link to review WooCommerce Smart Coupons
+#: includes/class-wc-sc-admin-notifications.php:304
+msgid "Liked WooCommerce Smart Coupons? Leave us a %s. A huge thank you from WooCommerce & StoreApps in advance!"
+msgstr ""
+
+#. translators: %s: link to submit idea for Smart Coupons on WooCommerce idea board
+#: includes/class-wc-sc-admin-notifications.php:330
+msgid "Have a feature request? Submit it %s."
+msgstr ""
+
+#. translators: %s: link to submit idea for Smart Coupons on WooCommerce idea board
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-notifications.php:330
+#: includes/class-wc-sc-admin-welcome.php:361
+#: includes/class-wc-sc-admin-welcome.php:369
+#: includes/class-wc-sc-admin-welcome.php:395
+#: includes/class-wc-sc-background-coupon-importer.php:627
+#: includes/class-wc-sc-print-coupon.php:278
+msgid "here"
+msgstr ""
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:416
+msgid "%s database update required"
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:417
+msgid "The database update process runs in the background and may take a little while, so please be patient."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:430
+msgid "Update database"
+msgstr ""
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:454
+msgid "%s is updating the database in the background. The database update process may take a little while, so please be patient."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:456
+msgid "Note: WP CRON has been disabled on your install which may prevent this update from completing."
+msgstr ""
+
+#: includes/class-wc-sc-admin-notifications.php:458
+msgid "View status"
+msgstr ""
+
+#. translators: %s: Plugin name
+#: includes/class-wc-sc-admin-notifications.php:467
+msgid "%s database update completed. Thank you for updating to the latest version!"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:123
+#: includes/class-wc-sc-admin-pages.php:550
+#: includes/class-wc-sc-admin-pages.php:555
+#: includes/class-wc-sc-admin-pages.php:1620
+#: includes/class-wc-sc-background-coupon-importer.php:396
+#: includes/class-wc-sc-display-coupons.php:791
+#: includes/class-wc-sc-display-coupons.php:828
+#: includes/class-wc-sc-display-coupons.php:1940
+#: includes/class-wc-sc-product-fields.php:99
+#: includes/class-wc-sc-product-fields.php:159
+msgid "Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:124
+#: includes/class-wc-sc-admin-pages.php:556
+#: includes/class-wc-sc-admin-pages.php:1594
+msgid "Bulk Generate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:133
+#: includes/class-wc-sc-admin-pages.php:566
+#: includes/class-wc-sc-admin-pages.php:1587
+msgid "Import Coupons"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#. translators: Store Credit label
+#: includes/class-wc-sc-admin-pages.php:143
+#: includes/class-wc-sc-admin-pages.php:579
+#: includes/class-wc-sc-admin-pages.php:1591
+msgid "Send %s"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:143
+#: includes/class-wc-sc-admin-pages.php:579
+msgid "Send Store Credit"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:152
+#: includes/class-wc-sc-admin-pages.php:595
+#: includes/class-wc-sc-settings.php:345
+msgid "Smart Coupons Settings"
+msgstr ""
+
+#. translators: Decimal point
+#: includes/class-wc-sc-admin-pages.php:197
+msgid "Please enter in decimal (%s) format without thousand separators."
+msgstr ""
+
+#. translators: Decimal point
+#: includes/class-wc-sc-admin-pages.php:199
+msgid "Please enter in monetary decimal (%s) format without thousand separators and currency symbols."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:200
+msgid "Please enter in country code with two capital letters."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:201
+msgid "Please enter in a value less than the regular price."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:205
+#: includes/class-wc-sc-coupon-import.php:955
+msgid "Import"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:206
+#: includes/class-wc-smart-coupons.php:4257
+msgid "Export"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:215
+msgid "Are you sure you want to remove the selected items? If you have previously reduced this item's stock, or this order was submitted by a customer, you will need to manually restore the item's stock."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:216
+msgid "Please select some items."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:217
+msgid "Are you sure you wish to process this refund? This action cannot be undone."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:218
+#: includes/class-wc-sc-coupon-refund-process.php:566
+msgid "Are you sure you wish to delete this refund? This action cannot be undone."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:219
+msgid "Are you sure you wish to delete this tax column? This action cannot be undone."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:220
+msgid "Remove this item meta?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:221
+msgid "Remove this attribute?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:222
+msgid "Name"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:223
+msgid "Remove"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:224
+msgid "Click to toggle"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:225
+msgid "Value(s)"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:226
+msgid "Enter some text, or some attributes by pipe (|) separating values."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:227
+msgid "Visible on the product page"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:228
+msgid "Used for variations"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:229
+msgid "Enter a name for the new attribute term:"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:230
+msgid "Calculate totals based on order items, discounts, and shipping?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:231
+msgid "Calculate line taxes? This will calculate taxes based on the customers country. If no billing/shipping is set it will use the store base country."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:232
+msgid "Copy billing information to shipping information? This will remove any currently entered shipping information."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:233
+msgid "Load the customer's billing information? This will remove any currently entered billing information."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:234
+msgid "Load the customer's shipping information? This will remove any currently entered shipping information."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:235
+msgid "Featured"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:238
+msgid "No customer selected"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:271
+msgid "Could not grant access - the user may already have permission for this file or billing email is not set. Ensure the billing email is set, and the order has been saved."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:272
+msgid "Are you sure you want to revoke access to this download?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:273
+msgid "You cannot add the same tax rate twice!"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:274
+msgid "Your product has variations! Before changing the product type, it is a good idea to delete the variations to avoid errors in the stock reports."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:284
+msgid "Generate coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:320
+msgid "Import complete - imported"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:320
+msgid "skipped"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:385
+msgid "WooCommerce Coupons (CSV)"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:385
+msgid "Import coupons to your store via a csv file."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:521
+#: includes/class-wc-sc-admin-pages.php:523
+msgid "Smart Coupon"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:551
+msgid "Add Coupon"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:672
+msgid "%s sent successfully."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:672
+msgid "Store Credit / Gift Certificate sent successfully."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:676
+msgid "There has been an error in sending %s."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:676
+msgid "There has been an error in sending Store Credit / Gift Certificate."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:677
+msgid "Please try again later."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-admin-pages.php:727
+msgid "Quickly create and email %s to one or more people."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:729
+msgid "Quickly create and email Store Credit or Gift Card to one or more people."
+msgstr ""
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:762
+#: includes/class-wc-sc-admin-pages.php:1200
+#: includes/class-wc-sc-admin-pages.php:1218
+msgid "Send to"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:770
+msgid "Invalid email address."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:773
+#: includes/class-wc-sc-admin-pages.php:1224
+msgid "Use comma \",\" to separate multiple email addresses"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:779
+msgid "Worth"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:784
+#: includes/class-wc-sc-coupon-fields.php:1004
+msgid "0.00"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:790
+#: includes/class-wc-sc-purchase-credit.php:156
+msgid "Invalid amount."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:800
+msgid "Expiry Date"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:807
+msgid "The store credit will expire at 00:00:00 of this date."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:815
+#: includes/class-wc-sc-admin-pages.php:1229
+#: includes/class-wc-sc-display-coupons.php:2464
+#: includes/class-wc-sc-display-coupons.php:2497
+#: includes/class-wc-sc-privacy.php:608
+msgid "Message"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:815
+#: includes/class-wc-sc-admin-pages.php:1229
+msgid "(optional)"
+msgstr ""
+
+#. translators: 1. Coupon type 2. Coupon amount
+#: includes/class-wc-sc-admin-pages.php:824
+#: includes/class-wc-sc-purchase-credit.php:997
+msgid "Send"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:830
+#: includes/class-wc-sc-admin-pages.php:1244
+msgid "Preview Email"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1028
+msgid "Please enter a valid value for Number of Coupons to Generate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1109
+msgid "Need a lot of coupons? You can easily do that with Smart Coupons."
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1153
+msgid "Action"
+msgstr ""
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:1159
+#: includes/class-wc-sc-admin-pages.php:1200
+msgid "Number of coupons to generate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1159
+msgid "Required"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1160
+msgid "10"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1164
+msgid "Generate coupons and"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1166
+msgid "Add to store"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1172
+msgid "Export to CSV"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1184
+msgid "(Does not add to store, but creates a .csv file, that you can"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1184
+#: includes/class-wc-sc-background-coupon-importer.php:360
+msgid "import"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1184
+msgid "later"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1192
+msgid "Email to recipients"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1194
+msgid "(Add to store and email generated coupons to recipients)"
+msgstr ""
+
+#. translators: 1: Path to setting 2: Setting to set email address 3: Setting for number of coupons to generate
+#: includes/class-wc-sc-admin-pages.php:1200
+msgid "Enter the email addresses of the recipients separated by comma under %1$1s. Make sure to match the count of email addresses in %2$2s to %3$3s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1212
+msgid "Email to "
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1266
+msgid "Coupon Description "
+msgstr ""
+
+#. translators: 1: HTML small tag start 2: HTML small tag end
+#: includes/class-wc-sc-admin-pages.php:1268
+msgid "%1$s(This will add the same coupon description in all the bulk generated coupons)%2$s"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1288
+msgid "Coupon Data"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1298
+#: includes/class-wc-sc-coupon-categories.php:87
+#: includes/class-wc-sc-coupon-categories.php:225
+msgid "Coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1302
+#: includes/class-wc-sc-coupon-categories.php:105
+#: includes/class-wc-sc-coupon-categories.php:165
+#: includes/class-wc-smart-coupons.php:4261
+msgid "Manage coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1344
+msgid "Apply"
+msgstr ""
+
+#. translators: Store Credit label
+#: includes/class-wc-sc-admin-pages.php:1426
+#: includes/class-wc-sc-admin-pages.php:1436
+#: includes/class-wc-sc-admin-pages.php:1591
+#: includes/class-wc-sc-ajax.php:332
+#: includes/class-wc-sc-coupon-refund-process.php:666
+#: includes/class-wc-sc-coupon-refund-process.php:679
+#: includes/class-wc-smart-coupons.php:1143
+#: includes/emails/class-wc-sc-email-coupon.php:357
+#: includes/emails/class-wc-sc-email-coupon.php:481
+msgid "Store Credit"
+msgstr ""
+
+#. translators: 1: Singular name for post type 2: Email
+#: includes/class-wc-sc-admin-pages.php:1551
+msgid "[%1$s restricted with email: %2$s]"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1610
+msgid "WooCommerce"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1615
+msgid "Marketing"
+msgstr ""
+
+#: includes/class-wc-sc-admin-pages.php:1633
+msgid "Original amount"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:87
+msgid "About Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:88
+msgid "Welcome to Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:177
+msgid "Thank you for installing WooCommerce Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:179
+msgid "Glad to have you onboard. We hope WooCommerce Smart Coupons adds to your desired success 🏆"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:183
+msgid "Go To Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:214
+msgid "Know Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:252
+msgid "What is Smart Coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:254
+msgid "Smart Coupons is a powerful extension, built on top of WooCommerce coupons. It adds a new discount type - Store Credit - and advanced functionality to the default coupons."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:255
+msgid "Smart Coupons enable coupons to become an automatic/interactive system."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:259
+msgid "Top Smart Coupons features"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:261
+msgid "Create and gift Store Credit / Gift Cards"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:262
+msgid "Bulk generate coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:263
+msgid "Apply multiple coupons via URL"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:264
+msgid "Advanced restrictions - payment, shipping, location, user roles, product attributes"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:267
+msgid "and a lot more…"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:271
+msgid "Automatic payment for subscription renewals"
+msgstr ""
+
+#. translators: WooCommerce Subscriptions product link
+#: includes/class-wc-sc-admin-welcome.php:275
+msgid "If your store is using %s and your customer has purchased a subscription using a Store Credit. If that store credit has balance left in it, store will automatically use it for renewing that subscription."
+msgstr ""
+
+#. translators: WooCommerce Subscriptions product link
+#: includes/class-wc-sc-admin-welcome.php:275
+msgid "WooCommerce Subscriptions"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:280
+msgid "How to use Smart Coupons the best way"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:283
+msgid "Sell or issue store credit / gift cards"
+msgstr ""
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "Let customers purchase gift cards from you or you issue store credit that your users can redeem on the current or next purchase. See how: %1$s or %2$s"
+msgstr ""
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "any amount"
+msgstr ""
+
+#. translators: 1: Affiliate For WooCommerce 2: Smart Manager 3: Smart Offers
+#: includes/class-wc-sc-admin-welcome.php:287
+msgid "variable but fixed amount"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:292
+msgid "Bulk create unique coupons & email them"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:294
+msgid "Import and export unique coupons in bulk via CSV. Share coupon codes to deal sites or email them to your customers."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:294
+#: includes/class-wc-sc-admin-welcome.php:300
+#: includes/class-wc-sc-admin-welcome.php:308
+#: includes/class-wc-sc-admin-welcome.php:403
+msgid "See how"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:298
+msgid "Gift a product via coupon"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:300
+msgid "Attach a gift of any value (free or paid product) to a particular coupon. Here, instead of a discount, a product is redeemed for the coupon code."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:306
+msgid "Give discounts to customers for next purchase"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:308
+msgid "You can give a coupon to your customer after every purchase, which can encourage them to purchase again from you."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:312
+msgid "Set a maximum discount limit"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:314
+msgid "Give bigger discounts without hurting your profits. Offer a percentage off coupon upto a particular value. Example - Flat 50% off upto $100."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:318
+msgid "Make customer's coupon usage, easy & simple"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:320
+msgid "Show only valid coupons to your customer (if logged in) on cart, checkout & My Account page. Coupons can be applied with single click. So, no need to remember the coupon code or copy-pasting."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:349
+msgid "FAQ / Common Problems"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:354
+msgid "When trying to add coupon/Smart Coupon, I get \"Invalid post type\" message."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:355
+msgid "Make sure use of coupon is enabled in your store. You can find this setting"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:364
+msgid "Smart Coupon's fields are broken?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid "Make sure you are using the "
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid "latest version of Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:365
+msgid ". If still the issue persist, temporarily de-activate all plugins except WooCommerce & Smart Coupons. Re-check the issue, if the issue still persists, contact us (from the link at the end of this page). If the issue goes away, re-activate other plugins one-by-one & re-checking the fields, to find out which plugin is conflicting."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:368
+msgid "How to translate texts from Smart Coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "Simplest method is by installing"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "Loco Translate"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:369
+msgid "plugin and then following steps listed "
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:372
+msgid "How to change texts of the emails sent from Smart Coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:373
+msgid "You can do this by overriding the email template."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:373
+msgid "How to override email template"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:376
+msgid "Can coupon code have any spaces in the name? / My Store Credit/Gift Certificate is not working (not generating new coupon code)."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:377
+msgid "No. Coupon code should not have any spaces in the name, Eg, Coupon code should be “gift-certificate” & not “gift certificate”."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:380
+msgid "What's the URL to a coupon, so it's automatically inserted when visiting?"
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "URL of coupon should be like this:"
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid ". Replace www.mysite.com with your own site URL and replace discount5 with the your coupon code."
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "For more details you can refer to this article: %s"
+msgstr ""
+
+#. translators: Documentation link for 'How to Apply Single or Multiple Coupons on Click of a Link'
+#: includes/class-wc-sc-admin-welcome.php:382
+msgid "How to Apply Single or Multiple Coupons on Click of a Link"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:385
+msgid "Do not want to tie store credit to be used by only one customer? / Can a customer send a gift certificate to themselves to pass on to someone else?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:386
+msgid "Edit the main coupon which is entered in \"Coupons\" field of the product edit page, then go to \"Usage Restrictions\" > \"Disable Email Restriction\" and disable this setting and save the coupon."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:389
+msgid "Getting 'Page Not Found Error' when accessing Coupons tab from My Account Page?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:390
+msgid "Go to WordPress -> Settings -> Permalinks and click on Save Settings once."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:393
+msgid "Is there any reference file for creating an import file for coupons?"
+msgstr ""
+
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-welcome.php:395
+msgid "There is one file which is located inside the plugin. You can download the %1$s file from %2$s."
+msgstr ""
+
+#. translators: 1. File name 2. File download link
+#: includes/class-wc-sc-admin-welcome.php:395
+msgid "If you want to import coupon through file, the file should be like"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:398
+msgid "Available coupons are not visible on Cart, Checkout & My Account page?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:399
+msgid "Smart Coupons uses hooks of Cart, Checkout & My Account page to display available coupons. If your theme is not using those hooks in cart, checkout & my-account template, coupons will not be displayed."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:402
+msgid "How can I resend gift card coupon bought by customers?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:403
+msgid "You can resend them from order admin edit page."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:406
+msgid "Uncheck \"Auto-generate\" option in Store Credit is not saving? Is it always checked?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:407
+msgid "Store Credit's default behavior is auto-generate because, when using a store credit, it's balance keeps reducing. Therefore it should be uniquely created for every user automatically."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:410
+msgid "Smart Coupons is not sending emails."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:411
+msgid "Smart Coupons sends email only after order completion. So make sure that order complete email is enabled and sending. If enabled, then make sure all settings of coupons, products are in place. Also check by switching your theme."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:414
+msgid "\"Store Credit Receiver detail\" form not appearing on checkout page?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:415
+msgid "This form is displayed using a hook which is available in My Account template. Make sure your theme's my-account template contains all hooks required for that template. Update your theme if it is not updated."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:418
+msgid "Does Smart Coupons allow printing of coupon as Gift Card?"
+msgstr ""
+
+#. translators: Documentation link for 'How to Print Coupons'
+#: includes/class-wc-sc-admin-welcome.php:420
+msgid "Yes, Smart Coupons does provide a feature for printing coupons. For more details, check this article: %s"
+msgstr ""
+
+#. translators: Documentation link for 'How to Print Coupons'
+#: includes/class-wc-sc-admin-welcome.php:420
+msgid "How to Print Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:423
+msgid "Is it possible to have a coupon for each variation of the variable product?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:424
+msgid "From version 4.11.0, you can add/link coupons to product variations as well. This feature is not available in a version lower than 4.11.0."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:427
+msgid "Is Smart Coupons compatible with WooCommerce Subscriptions?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:428
+msgid "Yes, Smart Coupons does work with WooCommerce Subscriptions."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:431
+msgid "Which features of Smart Coupons work with Subscriptions?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:432
+msgid "Give away a discount or credit on signing up a subscription, give away recurring discount or credits, apply credit during sign up, automatic payment for renewals from credit (Note: When using PayPal Standard Gateway, store credit can be applied only during sign up. Automatic payment for renewals by credit will not work for PayPal Standard Gateway)."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:435
+msgid "How does automatic payment by store credit work with Subscriptions?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:436
+msgid "Customers can apply store credit on a subscription during purchase of subscription. If the same store credit has sufficient balance, it'll keep applying it to renewals till the remainder in store credit is higher than renewal price. Customers will be able to apply store credit only during signup. They will not get an option to apply store credit in renewals. But if the store credit will not have sufficient balance to pay for the renewals, then the order will go into pending mode. Now when the customer will go to pay for this renewal order, they'll get an option to apply store credit again. To activate the subscription again, the customer will have to pay for the renewals. When the customer is paying for the renewals from their account, then in that process they can use the same store credit which didn't have the sufficient balance, again & pay for the remaining amount."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:439
+msgid "Is it possible to partially pay for a subscription with store credit and the remainder by another method?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:440
+msgid "No, this is possible only in those cases where subscription amount is more than store credit's balance. If store credit's balance is more than subscription's total then your bank account or credit card will not be charged."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:443
+msgid "Is Smart Coupons WPML compatible?"
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:444
+msgid "Not yet, but this is being worked on. You will find this in later versions."
+msgstr ""
+
+#: includes/class-wc-sc-admin-welcome.php:447
+msgid "I'm using WPML & WPML provides support for multi-currency, but Smart Coupons only changes currency symbol & the price value remains same. Can Smart Coupons change the currency symbol and the price value associated with it?"
+msgstr ""
+
+#. translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce'
+#: includes/class-wc-sc-admin-welcome.php:449
+msgid "Currently, Smart Coupons is compatible with %s. But it is not compatible with any other multi-currency plugin or with WPML."
+msgstr ""
+
+#. translators: Link for the plugin 'Aelia Currency Switcher for WooCommerce'
+#: includes/class-wc-sc-admin-welcome.php:449
+msgid "Aelia Currency Switcher for WooCommerce"
+msgstr ""
+
+#. translators: WooCommerce My Account support link
+#: includes/class-wc-sc-admin-welcome.php:476
+msgid "If you are facing any issues, please %s from your WooCommerce account."
+msgstr ""
+
+#. translators: WooCommerce My Account support link
+#: includes/class-wc-sc-admin-welcome.php:476
+msgid "submit a ticket"
+msgstr ""
+
+#. translators: 1. Discount type 2. Discount Type Label
+#: includes/class-wc-sc-ajax.php:132
+#: includes/class-wc-sc-product-fields.php:114
+#: includes/class-wc-sc-product-fields.php:175
+msgid "Type"
+msgstr ""
+
+#. translators: 1. The coupon code, 2. The discount type
+#: includes/class-wc-sc-ajax.php:252
+#: includes/class-wc-sc-settings.php:332
+msgid "%1$s (Type: %2$s)"
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:337
+#: includes/class-wc-sc-ajax.php:352
+#: includes/class-wc-smart-coupons.php:1148
+#: includes/class-wc-smart-coupons.php:1163
+msgid "Cart Discount"
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:342
+#: includes/class-wc-sc-ajax.php:347
+#: includes/class-wc-smart-coupons.php:1153
+#: includes/class-wc-smart-coupons.php:1158
+msgid "Product Discount"
+msgstr ""
+
+#: includes/class-wc-sc-ajax.php:352
+#: includes/class-wc-sc-settings.php:1051
+#: includes/class-wc-smart-coupons.php:1163
+msgid "Discount"
+msgstr ""
+
+#. translators: %s: Maximum coupon discount amount
+#: includes/class-wc-sc-ajax.php:357
+msgid "upto %s"
+msgstr ""
+
+#: includes/class-wc-sc-auto-apply-coupon.php:120
+#: includes/class-wc-sc-auto-apply-coupon.php:186
+msgid "Auto apply?"
+msgstr ""
+
+#: includes/class-wc-sc-auto-apply-coupon.php:121
+msgid "When checked, this coupon will be applied automatically, if it is valid. If enabled in more than 5 coupons, only 5 coupons will be applied automatically, rest will be ignored."
+msgstr ""
+
+#. translators: 1. Important 2. Upload path
+#: includes/class-wc-sc-background-coupon-importer.php:333
+msgid "%1$s: To allow bulk generation of coupons, please make sure %2$s directory is writable."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:338
+msgid "Bulk generation is disabled since uploads directory is not writable. Please ensure uploads directory is writable before starting bulk generate process."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:359
+msgid "imported"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:365
+msgid "generated & sent"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:366
+#: includes/class-wc-sc-background-coupon-importer.php:371
+msgid "generate"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:370
+#: includes/class-wc-sc-background-coupon-importer.php:595
+msgid "generated"
+msgstr ""
+
+#. translators: 1. Error title 2. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:385
+msgid "%1$s: The coupon bulk %2$s process stopped. Please review the coupons list to check the status."
+msgstr ""
+
+#. translators: 1. Error title 2. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:385
+msgid "Error"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:394
+msgid "Store Credits / Gift Cards"
+msgstr ""
+
+#. translators: 1. Coupon type
+#: includes/class-wc-sc-background-coupon-importer.php:400
+msgid "%s are being"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:402
+msgid "in the background. You will be notified when it is completed."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:405
+msgid "Progress"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:406
+msgid "--:--:--"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:407
+msgid "Stop"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:411
+msgid "You can continue with other work. But for bulk generating or importing new coupons, wait for the current process to complete."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:487
+msgid "We are processing coupons in background. Please wait before starting new process."
+msgstr ""
+
+#. translators: 1. The bulk process
+#: includes/class-wc-sc-background-coupon-importer.php:551
+msgid "Are you sure you want to stop the coupon bulk %s process? Click OK to stop."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:577
+#: includes/class-wc-sc-background-coupon-importer.php:585
+msgid "Coupon import"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:578
+msgid "updated & emailed"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:578
+#: includes/class-wc-sc-background-coupon-importer.php:582
+msgid "added & emailed"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:581
+#: includes/class-wc-sc-background-coupon-importer.php:594
+msgid "Coupon bulk generation"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:586
+msgid "updated"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:586
+#: includes/class-wc-sc-background-coupon-importer.php:595
+msgid "added"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:589
+msgid "Store credit"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:590
+msgid "sent"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:602
+msgid "store credit / gift card"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:603
+msgid "store credits / gift cards"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:605
+#: includes/class-wc-sc-purchase-credit.php:991
+#: includes/emails/class-wc-sc-email-coupon.php:488
+msgid "coupon"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:606
+msgid "coupons"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:614
+msgid "Successfully"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:617
+msgid "Skipped"
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:627
+msgid "CSV file has been generated. You can download it from "
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:743
+#: includes/class-wc-sc-background-coupon-importer.php:760
+msgid "Failed to create export file."
+msgstr ""
+
+#: includes/class-wc-sc-background-coupon-importer.php:1257
+msgid "Every 5 Seconds"
+msgstr ""
+
+#. translators: 1. Product title
+#: includes/class-wc-sc-coupon-actions.php:421
+msgid "%s has been added to your cart!"
+msgstr ""
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+msgid "%1$s %2$s %3$s removed because coupon %4$s is removed."
+msgstr ""
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+#: includes/class-wc-sc-coupons-by-product-quantity.php:124
+msgid "Product"
+msgid_plural "Products"
+msgstr[0] ""
+msgstr[1] ""
+
+#. translators: 1. Product/s 2. Product names 3. is/are 4. Coupons code
+#: includes/class-wc-sc-coupon-actions.php:504
+msgid "is"
+msgid_plural "are"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-coupon-actions.php:580
+msgid "Add product details"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:88
+msgid "Category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:89
+msgctxt "Admin menu name"
+msgid "Categories"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:90
+msgid "Search coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:91
+msgid "All coupon categories"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:92
+msgid "Parent coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:93
+msgid "Parent coupon category:"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:94
+msgid "Edit coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:95
+msgid "Update coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:96
+msgid "Add new coupon category"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:97
+msgid "New coupon category name"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-categories.php:98
+msgid "No coupon categories found"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-columns.php:128
+msgid "Used in orders"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:101
+msgid "Coupon shareable link"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:139
+msgid "Copy the following link and share it to apply this coupon via URL."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:146
+#: includes/class-wc-sc-coupon-fields.php:1434
+msgid "Click to copy"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:150
+msgid "You can also apply multiple coupon codes via a single URL. For example:"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:285
+msgctxt "Timepicker on the admin side"
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:286
+msgctxt "Timepicker on the admin side"
+msgid "Done"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:350
+msgctxt "Timepicker on the admin side"
+msgid "HH:mm"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:352
+msgctxt "Timepicker on the admin side"
+msgid "Choose Time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:353
+msgctxt "Timepicker on the admin side"
+msgid "Time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:354
+msgctxt "Timepicker on the admin side"
+msgid "Hour"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:355
+msgctxt "Timepicker on the admin side"
+msgid "Minute"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:356
+msgctxt "Timepicker on the admin side"
+msgid "Second"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:357
+msgctxt "Timepicker on the admin side"
+msgid "Millisecond"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:358
+msgctxt "Timepicker on the admin side"
+msgid "Microsecond"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:359
+msgctxt "Timepicker on the admin side"
+msgid "Time Zone"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:391
+#: includes/class-wc-smart-coupons.php:4661
+msgid "Coupon expiry time"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:392
+msgid "HH:MM"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:393
+msgid "Time after which coupon will be expired. This will work in conjunction with Coupon expiry date."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:407
+#: includes/class-wc-smart-coupons.php:4657
+msgid "Max discount"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:408
+msgid "Unlimited discount"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:409
+msgid "The maximum discount this coupon can give on a cart."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:422
+#: includes/class-wc-smart-coupons.php:4656
+#: includes/class-wc-smart-coupons.php:5026
+msgid "For new user only?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:423
+msgid "When checked, this coupon will be valid for the user's first order on the store."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:437
+msgid "Valid for"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:440
+msgid "Days"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:441
+msgid "Weeks"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:442
+msgid "Months"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:443
+msgid "Years"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:445
+msgid "(Used only for auto-generated coupons)"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:452
+msgid "Coupon value same as product's price?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:453
+msgid "When checked, generated coupon's value will be same as product's price"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:459
+msgid "Auto generate new coupons with each item"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:460
+msgid "Generate exact copy of this coupon with unique coupon code for each purchased product (needs this coupon to be linked with that product)"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:480
+msgid "Coupon code format"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:481
+msgid "Prefix"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:483
+msgid "Suffix"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:484
+msgid "(We recommend up to three letters for prefix/suffix)"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:497
+msgid "Show on cart, checkout"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:497
+msgid "and my account?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:498
+msgid "When checked, this coupon will be visible on cart/checkout page for everyone"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:536
+msgid "Disable email restriction?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:537
+msgid "Do not restrict auto-generated coupons to buyer/receiver email, anyone with coupon code can use it"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:934
+msgid "Actions"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:962
+msgid "After applying the coupon do these also"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:964
+msgid "Add products to cart"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:967
+#: includes/class-wc-sc-coupon-fields.php:994
+msgid "Search for a product…"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:998
+msgid "each with quantity"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:999
+msgid "1"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1000
+msgid "This much quantity of each product, selected above, will be added to cart."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1003
+msgid "with discount of"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1006
+msgid "%"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1009
+msgid "When this coupon will be applied, selected products will be added to cart with set discount. If discount is not set, this coupon's discount will be applied to these products."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1044
+#: includes/class-wc-smart-coupons.php:5139
+msgctxt "enhanced select"
+msgid "One result is available, press enter to select it."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1045
+#: includes/class-wc-smart-coupons.php:5140
+msgctxt "enhanced select"
+msgid "%qty% results are available, use up and down arrow keys to navigate."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1046
+#: includes/class-wc-smart-coupons.php:5141
+msgctxt "enhanced select"
+msgid "No matches found"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1047
+#: includes/class-wc-sc-coupon-fields.php:1055
+#: includes/class-wc-smart-coupons.php:5150
+msgctxt "enhanced select"
+msgid "Searching…"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1048
+#: includes/class-wc-smart-coupons.php:5143
+msgctxt "enhanced select"
+msgid "Please enter 1 or more characters"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1049
+#: includes/class-wc-smart-coupons.php:5144
+msgctxt "enhanced select"
+msgid "Please enter %qty% or more characters"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1050
+#: includes/class-wc-smart-coupons.php:5145
+msgctxt "enhanced select"
+msgid "Please delete 1 character"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1051
+#: includes/class-wc-smart-coupons.php:5146
+msgctxt "enhanced select"
+msgid "Please delete %qty% characters"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1052
+#: includes/class-wc-smart-coupons.php:5147
+msgctxt "enhanced select"
+msgid "You can only select 1 item"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1053
+#: includes/class-wc-smart-coupons.php:5148
+msgctxt "enhanced select"
+msgid "You can only select %qty% items"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1054
+#: includes/class-wc-smart-coupons.php:5149
+msgctxt "enhanced select"
+msgid "Loading more results…"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1312
+msgid "Could not locate WooCommerce"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1359
+#: includes/class-wc-sc-settings.php:605
+msgid "Store Credit / Gift Certificate"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1432
+#: includes/class-wc-sc-coupon-fields.php:1447
+msgid "Copied!"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-fields.php:1439
+#: includes/class-wc-sc-coupon-fields.php:1449
+msgid "Copy coupon code"
+msgstr ""
+
+#. translators: 1. Receiver email 2. Coupon code
+#: includes/class-wc-sc-coupon-import.php:669
+msgid "Failed to schedule email to \"%1$s\" for coupon \"%2$s\"."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:702
+#: includes/class-wc-sc-coupon-import.php:758
+#: includes/class-wc-sc-coupon-import.php:770
+msgid "Sorry, there has been an error."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:703
+msgid "The file does not exist, please try again."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Coupon Import Error"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Invalid CSV file. Make sure your CSV file contains all columns, header row, and data in correct format."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:857
+msgid "Download a sample.csv to confirm"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:936
+msgid "All set, Begin import?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:940
+msgid "File uploaded OK"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:941
+msgid "File format seems OK"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "Update existing coupons"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "New feature"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:945
+msgid "If enabled, existing coupons that match by coupon code will be updated. Coupons that do not exist will be skipped."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:951
+msgid "Email coupon to recipients"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:951
+msgid "Enable this to send coupon to recipient's email addresses, provided in imported file."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1020
+msgid "Chosen"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1036
+msgid "Hi there! Upload a CSV file with coupons details to import them into your shop."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "The CSV must adhere to a specific format and include a header row."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "Click here to download a sample"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1037
+msgid "and create your CSV based on that."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1038
+msgid "Note: If any coupon from the CSV file already exists in the store, it will not update the existing coupon, instead a new coupon will be imported & the previous coupon with the same code will become inactive."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1039
+msgid "Ready to import? Choose a .csv file, then click \"Upload file\"."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1061
+msgid "Before you can upload your import file, you will need to fix the following error:"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1070
+msgid "Choose a CSV file"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1075
+msgid "Maximum file size"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1076
+msgid "OR"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1077
+msgid "Already uploaded CSV to the server?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1077
+msgid "Enter location on the server"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-import.php:1079
+msgid "Upload file"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:125
+msgid "Display message"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:133
+msgid "Email message?"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:134
+msgid "Check this box to include above message in order confirmation email"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:418
+#: includes/class-wc-sc-coupon-message.php:435
+msgid "Coupon Message"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-message.php:436
+msgid "Is Email Coupon Message"
+msgstr ""
+
+#. translators: 1. Coupon code 2. Expiry date
+#: includes/class-wc-sc-coupon-parser.php:416
+msgid "Incorrect format for expiry date of coupon \"%1$s\". Entered date is %2$s. Expected date format: YYYY-MM-DD"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:322
+msgid "Email address"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-coupon-process.php:352
+msgid "Error: %s Receivers E-mail address is invalid."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:354
+msgid "Error: Gift Card Receivers E-mail address is invalid."
+msgstr ""
+
+#. translators: 1. amount of store credit 2. store credit label 3. coupon code
+#: includes/class-wc-sc-coupon-process.php:776
+msgid "%1$s worth of %2$s restored to coupon %3$s."
+msgstr ""
+
+#. translators: 1. amount of store credit 2. coupon code
+#: includes/class-wc-sc-coupon-process.php:779
+msgid "%1$s worth of Store Credit restored to coupon %2$s."
+msgstr ""
+
+#. translators: Order notes
+#: includes/class-wc-sc-coupon-process.php:787
+msgid "%s Because PayPal doesn't accept discount on shipping & tax."
+msgstr ""
+
+#. translators: 1. Receiver email 2. Coupon code 3. Order id
+#: includes/class-wc-sc-coupon-process.php:1081
+#: includes/class-wc-smart-coupons.php:873
+msgid "Failed to schedule email to \"%1$s\" for coupon \"%2$s\" received from order #%3$s."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1813
+msgctxt "Order edit admin page"
+msgid "Resend coupon emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1815
+msgctxt "Order edit admin page"
+msgid "Regenerate coupons"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1816
+msgctxt "Order edit admin page"
+msgid "Regenerate & resend coupon emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1843
+msgctxt "Order edit admin page"
+msgid "Coupons manually regenerated."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1845
+msgctxt "Order edit admin page"
+msgid "Coupons manually regenerated & sent."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-process.php:1850
+msgctxt "Order edit admin page"
+msgid "Coupon details manually sent."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:213
+msgid "Refund to Store Credit"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:225
+msgid "Auto-fill refund amount"
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:500
+msgid "Successfully updated store credit refund details."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:502
+msgid "Failed to update store credit refund details."
+msgstr ""
+
+#: includes/class-wc-sc-coupon-refund-process.php:513
+msgid "Nonce verification failed for action \"wc_sc_refund_store_credit\"."
+msgstr ""
+
+#. translators: 1: refund id 2: refund date 3: username
+#: includes/class-wc-sc-coupon-refund-process.php:665
+msgid "Refund %1$s - %2$s by %3$s"
+msgstr ""
+
+#. translators: 1: ID who refunded
+#: includes/class-wc-sc-coupon-refund-process.php:671
+msgid "ID: %d"
+msgstr ""
+
+#. translators: 1: refund id 2: refund date
+#: includes/class-wc-sc-coupon-refund-process.php:678
+msgid "Refund %1$s - %2$s"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:105
+#: includes/class-wc-sc-coupons-by-excluded-email.php:341
+#: includes/class-wc-sc-coupons-by-excluded-email.php:469
+msgid "Excluded emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:106
+msgid "No restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:107
+msgid "List of excluded billing emails to check against when an order is placed. Separate email addresses with commas. You can also use an asterisk (*) to match parts of an email. For example \"*@gmail.com\" would match all gmail addresses."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:239
+#: includes/class-wc-sc-coupons-by-excluded-email.php:253
+#: includes/class-wc-sc-coupons-by-user-role.php:220
+#: includes/class-wc-sc-coupons-by-user-role.php:227
+msgid "This coupon is not valid for you."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-excluded-email.php:468
+msgid "Allowed emails"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:196
+msgid "Address to look in"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:199
+msgid "Billing"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:203
+msgid "Shipping"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:207
+msgid "Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:219
+msgid "Select location"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:282
+msgid "Select Additional Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:306
+msgid "Entered location not found. On pressing \"Enter\" button, a new custom location will be saved as: "
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "Coupon is not valid for the"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "billing address"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:478
+msgid "shipping address"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:493
+msgid "Locations lookup in"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:494
+msgid "Billing Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-location.php:495
+msgid "Shipping Locations"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:104
+#: includes/class-wc-sc-coupons-by-payment-method.php:233
+msgid "Payment methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:105
+msgid "No payment methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:115
+msgid "Payment methods that must be selected during checkout for this coupon to be valid."
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+msgid "Coupon code %1$s has been removed. It is valid only for %2$s: %3$s. You can change the payment method from the %4$s page."
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "payment method"
+msgid_plural "payment methods"
+msgstr[0] ""
+msgstr[1] ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:210
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "Checkout"
+msgstr ""
+
+#. translators: 1. The coupon code 2. The text 'payment method/s' 3. List of payment method names 4. Link to the checkout page
+#: includes/class-wc-sc-coupons-by-payment-method.php:214
+msgid "Coupon code %1$s is valid only for %2$s: %3$s. You can change payment method from the %4$s page."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-payment-method.php:411
+msgid "An error occurred:"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:167
+msgid "Attribute="
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:167
+msgid "Value="
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:181
+msgid "Product attributes"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:182
+#: includes/class-wc-sc-coupons-by-product-attribute.php:201
+msgid "No product attributes"
+msgstr ""
+
+#. translators: Non product type coupon labels
+#: includes/class-wc-sc-coupons-by-product-attribute.php:193
+msgid "Product attributes that the coupon will be applied to, or that need to be in the cart in order for the %s to be applied."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:200
+msgid "Exclude attributes"
+msgstr ""
+
+#. translators: Non product type coupon labels
+#: includes/class-wc-sc-coupons-by-product-attribute.php:212
+msgid "Product attributes that the coupon will not be applied to, or that cannot be in the cart in order for the %s to be applied."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:491
+#: includes/class-wc-sc-coupons-by-taxonomy.php:700
+msgid "Sorry, this coupon is not applicable to selected products."
+msgstr ""
+
+#. translators: 1. Singular/plural label for product(s) 2. Excluded product names
+#: includes/class-wc-sc-coupons-by-product-attribute.php:525
+#: includes/class-wc-sc-coupons-by-taxonomy.php:729
+msgid "Sorry, this coupon is not applicable to the %1$s: %2$s."
+msgstr ""
+
+#. translators: 1. Singular/plural label for product(s) 2. Excluded product names
+#: includes/class-wc-sc-coupons-by-product-attribute.php:525
+#: includes/class-wc-sc-coupons-by-taxonomy.php:729
+msgid "product"
+msgid_plural "products"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:545
+msgid "Product Attributes"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-attribute.php:546
+msgid "Exclude Attributes"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:115
+#: includes/class-wc-sc-coupons-by-product-quantity.php:663
+msgid "Product quantity based restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:117
+msgid "Validate quantity of"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:120
+msgid "Cart"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:127
+msgid "Choose whether to validate the quantity, cart-wise or product-wise"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:131
+msgid "Minimum quantity"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:132
+#: includes/class-wc-sc-coupons-by-product-quantity.php:157
+#: includes/class-wc-sc-coupons-by-product-quantity.php:195
+#: includes/class-wc-sc-coupons-by-product-quantity.php:225
+#: includes/class-wc-sc-coupons-by-product-quantity.php:237
+msgid "No minimum"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:135
+msgid "Maximum quantity"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:136
+#: includes/class-wc-sc-coupons-by-product-quantity.php:158
+#: includes/class-wc-sc-coupons-by-product-quantity.php:196
+#: includes/class-wc-sc-coupons-by-product-quantity.php:226
+#: includes/class-wc-sc-coupons-by-product-quantity.php:238
+msgid "No maximum"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:153
+#: includes/class-wc-sc-coupons-by-product-quantity.php:169
+#: includes/class-wc-sc-coupons-by-product-quantity.php:245
+#: includes/class-wc-sc-coupons-by-product-quantity.php:260
+msgid "Products"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:171
+#: includes/class-wc-sc-coupons-by-product-quantity.php:247
+msgid "Please select some products"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:191
+#: includes/class-wc-sc-coupons-by-product-quantity.php:208
+#: includes/class-wc-sc-coupons-by-product-quantity.php:253
+#: includes/class-wc-sc-coupons-by-product-quantity.php:263
+msgid "Categories"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:210
+#: includes/class-wc-sc-coupons-by-product-quantity.php:255
+msgid "Please select some categories"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:523
+msgid "Your cart does not meet the quantity requirement."
+msgstr ""
+
+#. translators: 1. Number of quantity 2. Singular or plural text based on number of quantities
+#: includes/class-wc-sc-coupons-by-product-quantity.php:537
+msgid "Your cart should have a maximum of %1$d %2$s in total."
+msgstr ""
+
+#. translators: 1. Number of quantity 2. Singular or plural text based on number of quantities
+#: includes/class-wc-sc-coupons-by-product-quantity.php:541
+msgid "Your cart should have a minimum of %1$d %2$s in total."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-product-quantity.php:559
+#: includes/class-wc-sc-coupons-by-product-quantity.php:561
+#: includes/class-wc-sc-coupons-by-product-quantity.php:563
+msgid "Your cart does not meet the product quantity requirement."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:106
+#: includes/class-wc-sc-coupons-by-shipping-method.php:224
+msgid "Shipping methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:107
+msgid "No shipping methods"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:117
+msgid "Shipping methods that must be selected during checkout for this coupon to be valid."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-shipping-method.php:200
+#: includes/class-wc-sc-coupons-by-shipping-method.php:205
+msgid "This coupon is not valid for selected shipping method."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:103
+#: includes/class-wc-sc-coupons-by-taxonomy.php:290
+msgid "Include"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:104
+#: includes/class-wc-sc-coupons-by-taxonomy.php:291
+msgid "Exclude"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:141
+#: includes/class-wc-sc-coupons-by-taxonomy.php:182
+msgid "Taxonomy"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:142
+msgid "Product taxonomies that the coupon will be applicable for, or its availability in the cart in order for the \"Fixed cart discount\" to be applied, based on whether the taxonomies are included or excluded. All the taxonomies selected here, should be valid, for this coupon to be valid."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:146
+#: includes/class-wc-sc-coupons-by-taxonomy.php:219
+msgid "Add taxonomy restriction"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:183
+msgid "Product taxonomies that the coupon will be applicable for, or its availability in the cart in order for the \"Fixed cart discount\" to be applied, based on whether the taxonomies are included or excluded."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:219
+msgid "Remove taxonomy restriction"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-taxonomy.php:871
+msgid "Taxonomy based restrictions"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:116
+msgid "Allowed user roles"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:117
+#: includes/class-wc-sc-coupons-by-user-role.php:134
+msgid "No user roles"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:128
+msgid "Role of the users for whom this coupon is valid. Keep empty if you want this coupon to be valid for users with any role."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:133
+msgid "Exclude user roles"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:145
+msgid "Role of the users for whom this coupon is not valid. Keep empty if you want this coupon to be valid for users with any role."
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:243
+msgid "User Role"
+msgstr ""
+
+#: includes/class-wc-sc-coupons-by-user-role.php:244
+msgid "Exclude User Role"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:278
+#: includes/class-wc-sc-display-coupons.php:869
+#: includes/class-wc-sc-display-coupons.php:2410
+#: includes/class-wc-sc-shortcode.php:540
+#: includes/class-wc-smart-coupons.php:4893
+#: templates/combined-email.php:125
+#: templates/email.php:123
+#: templates/print-coupons-default.php:142
+msgid " & "
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:280
+#: includes/class-wc-sc-display-coupons.php:871
+#: includes/class-wc-sc-display-coupons.php:2412
+#: includes/class-wc-sc-shortcode.php:542
+#: includes/class-wc-smart-coupons.php:4895
+#: templates/combined-email.php:127
+#: templates/email.php:125
+#: templates/plain/combined-email.php:93
+#: templates/plain/email.php:88
+#: templates/print-coupons-default.php:144
+msgid "Free Shipping"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:297
+#: includes/class-wc-sc-display-coupons.php:885
+#: includes/class-wc-sc-display-coupons.php:2442
+#: includes/class-wc-sc-shortcode.php:572
+#: includes/class-wc-smart-coupons.php:4922
+#: includes/emails/class-wc-sc-email-coupon.php:173
+#: templates/combined-email.php:158
+#: templates/email.php:156
+#: templates/plain/combined-email.php:125
+#: templates/plain/email.php:120
+#: templates/print-coupons-default.php:176
+msgid "Never expires"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:342
+#: includes/class-wc-sc-display-coupons.php:735
+#: includes/class-wc-sc-settings.php:662
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:540
+msgid "You will get following coupon(s) when you buy this item:"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-display-coupons.php:591
+msgid "%s of "
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-display-coupons.php:591
+msgid "Store Credit of "
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:601
+msgid " discount on your entire purchase"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:606
+#: includes/class-wc-sc-display-coupons.php:615
+#: includes/class-wc-sc-display-coupons.php:624
+msgid "some products"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:608
+#: includes/class-wc-sc-display-coupons.php:617
+msgid "all products"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:610
+#: includes/class-wc-sc-display-coupons.php:619
+msgid " discount on "
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:626
+msgid "your entire purchase"
+msgstr ""
+
+#. translators: %s: Maximum coupon discount amount
+#: includes/class-wc-sc-display-coupons.php:632
+#: includes/class-wc-smart-coupons.php:1168
+#: includes/emails/class-wc-sc-email-coupon.php:439
+msgid " upto %s"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:634
+msgid " discount"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:634
+msgid " on "
+msgstr ""
+
+#. translators: 1. Discount type 2. Discount amount
+#. translators: 1: coupon type 2: coupon amount
+#: includes/class-wc-sc-display-coupons.php:641
+#: includes/emails/class-wc-sc-email-coupon.php:452
+msgid "%1$s coupon of %2$s"
+msgstr ""
+
+#. translators: Add more detail to coupon description
+#: includes/class-wc-sc-display-coupons.php:649
+msgid "%s Free Shipping"
+msgstr ""
+
+#. translators: Add more detail to coupon description
+#: includes/class-wc-sc-display-coupons.php:649
+msgid " &"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:722
+#: includes/class-wc-sc-settings.php:630
+#: includes/class-wc-smart-coupons.php:296
+msgid "Select options"
+msgstr ""
+
+#. translators: %s: plural name for store credit
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-display-coupons.php:749
+#: includes/class-wc-sc-display-coupons.php:940
+#: includes/class-wc-sc-settings.php:673
+msgid "Available Coupons & %s"
+msgstr ""
+
+#. translators: %s: plural name for store credit
+#: includes/class-wc-sc-display-coupons.php:749
+#: includes/class-wc-sc-display-coupons.php:940
+msgid "Available Coupons & Store Credits"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:925
+#: includes/class-wc-sc-display-coupons.php:981
+msgid "Sorry, No coupons available for you."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:978
+msgid "List of coupons which are valid & available for use. Click on the coupon to use it. The coupon discount will be visible only when at least one product is present in the cart."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1120
+#: templates/combined-email.php:228
+#: templates/email.php:209
+msgid "Print coupon"
+msgid_plural "Print coupons"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-display-coupons.php:1185
+msgid "Store Credits"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1194
+msgid "Total Credit Amount"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1213
+msgid "Discount Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1245
+msgid "Invalid / Used Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1260
+msgid "List of coupons which can not be used. The reason can be based on its usage restrictions, usage limits, expiry date."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:1941
+msgid "Endpoint for the My Account → Coupons page"
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Coupons are not generated for this order. You can regenerate it from %1$s. Select an appropriate action from the %2$s dropdown menu and hit the %3$s button next to it."
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Order actions"
+msgstr ""
+
+#. translators: 1. Link to jump to 'Order actions' metabox 2. Text 'Order actions' 3. Text 'arrow'
+#: includes/class-wc-sc-display-coupons.php:2107
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "arrow"
+msgstr ""
+
+#. translators: 1. Label for Order action for regenerating coupons
+#: includes/class-wc-sc-display-coupons.php:2120
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Select %s to only regenerate coupons. No email will be sent for this."
+msgstr ""
+
+#. translators: 1. Label for Order action for regenerating & resending coupons
+#: includes/class-wc-sc-display-coupons.php:2130
+msgctxt "Generated coupons metabox - Order edit admin page"
+msgid "Select %s to regenerate as well as resend coupons to the recipients via email."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2167
+msgid "Coupon Received"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2168
+msgid "List of coupons & their details which you have received from the store. Click on the coupon to see the details."
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2218
+#: includes/class-wc-sc-display-coupons.php:2229
+msgid "Less details"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2220
+#: includes/class-wc-sc-display-coupons.php:2232
+#: includes/class-wc-sc-display-coupons.php:2335
+msgid "More details"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2461
+#: includes/class-wc-sc-display-coupons.php:2498
+msgid "Sender"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2462
+#: includes/class-wc-sc-display-coupons.php:2496
+msgid "Receiver"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2494
+msgid "Code"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2495
+msgid "Amount"
+msgstr ""
+
+#: includes/class-wc-sc-display-coupons.php:2595
+msgid "Generated coupons"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:197
+msgid "%s Used"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:197
+msgid "Store Credit Used"
+msgstr ""
+
+#: includes/class-wc-sc-order-fields.php:199
+msgid "This is the total credit used."
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:254
+msgid "%s Used:"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:254
+msgid "Store Credit Used:"
+msgstr ""
+
+#: includes/class-wc-sc-order-fields.php:280
+#: templates/plain/combined-email.php:83
+#: templates/plain/email.php:78
+msgid "Discount:"
+msgstr ""
+
+#: includes/class-wc-sc-order-fields.php:341
+msgid "Store Credit:"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:501
+msgid "%s Balance "
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-order-fields.php:501
+msgid "Store Credit / Gift Card Balance"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:123
+msgctxt "Page slug"
+msgid "wc-sc-coupons-terms"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:124
+msgctxt "Page title"
+msgid "Smart Coupons Terms"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:278
+msgid "Smart Coupons has created a coupon's terms page (used during coupon printing) for you. Please edit it as required from"
+msgstr ""
+
+#: includes/class-wc-sc-print-coupon.php:420
+msgid "Used during coupon printing"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:51
+msgid "%s - Coupon Personal Data Exporter"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:53
+msgid "%s - Coupon Personal Data Eraser"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:56
+msgid "%s - Order Personal Data Exporter"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:58
+msgid "%s - Order Personal Data Eraser"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:61
+msgid "%s - User Personal Data Exporter"
+msgstr ""
+
+#. translators: Plugin's name
+#: includes/class-wc-sc-privacy.php:63
+msgid "%s - User Personal Data Eraser"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:112
+#: includes/class-wc-sc-privacy.php:324
+#: includes/class-wc-sc-privacy.php:443
+#: includes/class-wc-sc-privacy.php:734
+msgid "Store Credit/Gift Certificate"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:113
+msgid "What we access?"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:115
+msgid "If you are logged in: We access your billing email address saved in your account & billing email address entered during purchase"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:116
+msgid "If you are a visitor: We access your billing email address entered during purchase"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:118
+msgid "What we store & why?"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:120
+msgid "Coupon code generated for you"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:121
+msgid "Coupon code passed via URL"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:122
+msgid "Coupon amount, email & message entered for gift card receiver"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:124
+msgid "We store these data so that we can process it for you whenever required."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:247
+msgid "Store Credit/Gift Certificate - Coupon Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:324
+msgid "Removed Coupon Personal Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:384
+#: includes/emails/class-wc-sc-acknowledgement-email.php:342
+#: templates/acknowledgement-email.php:66
+#: templates/coupon-design/basic.php:39
+#: templates/coupon-design/clipper.php:38
+#: templates/coupon-design/cutout.php:55
+#: templates/coupon-design/deal.php:29
+#: templates/coupon-design/deliver.php:34
+#: templates/coupon-design/shipment.php:33
+#: templates/coupon-design/special.php:58
+#: templates/coupon-design/ticket.php:40
+#: templates/plain/acknowledgement-email.php:56
+msgid "Coupon"
+msgid_plural "Coupons"
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/class-wc-sc-privacy.php:390
+msgid "Generated Coupon Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:401
+msgid "Coupon passed in URL"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:443
+msgid "Removed User Personal Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:599
+#: includes/class-wc-smart-coupons.php:4997
+msgid "Coupon Code"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:602
+#: includes/class-wc-smart-coupons.php:5009
+msgid "Coupon Amount"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:605
+msgid "Coupon For"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:618
+msgid "Store Credit/Gift Certificate - Order Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:734
+msgid "Removed Order Personal Data"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:816
+msgid "Retain Store Credit/Gift Certificate"
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:817
+msgid "Store Credit/Gift Certificate that are stored for customers via coupons. If erased, the customer will not be able to use the coupons."
+msgstr ""
+
+#: includes/class-wc-sc-privacy.php:820
+msgid "N/A"
+msgstr ""
+
+#: includes/class-wc-sc-product-columns.php:102
+msgctxt "Title for coupon column on the products page"
+msgid "Linked coupons"
+msgstr ""
+
+#: includes/class-wc-sc-product-columns.php:235
+msgid "Open in a new tab"
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:100
+#: includes/class-wc-sc-product-fields.php:161
+msgid "Search for a coupon…"
+msgstr ""
+
+#. translators: 1. Discount type 2. Discount Type Label
+#: includes/class-wc-sc-product-fields.php:114
+#: includes/class-wc-sc-product-fields.php:175
+msgid " ( %1$s: %2$s )"
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:123
+#: includes/class-wc-sc-product-fields.php:160
+msgid "These coupon/s will be given to customers who buy this product. The coupon code will be automatically sent to their email address on purchase."
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:127
+#: includes/class-wc-sc-product-fields.php:186
+msgid "Send coupons on renewals?"
+msgstr ""
+
+#: includes/class-wc-sc-product-fields.php:129
+#: includes/class-wc-sc-product-fields.php:185
+msgid "Check this box to send above coupons on each renewal order."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:158
+msgid "Enter a numeric value."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:161
+msgid "The value should not be less than"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:163
+msgid "The value should not be greater than"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-purchase-credit.php:218
+msgid "Purchase %s worth"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/class-wc-sc-purchase-credit.php:218
+#: includes/class-wc-sc-settings.php:642
+msgid "Purchase credit worth"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:535
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:545
+msgid "Later"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:615
+msgctxt "Timepicker on the frontend side"
+msgid "Now"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:616
+msgctxt "Timepicker on the frontend side"
+msgid "Done"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:680
+msgctxt "Timepicker on the frontend side"
+msgid "HH:mm"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:682
+msgctxt "Timepicker on the frontend side"
+msgid "Choose Time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:683
+msgctxt "Timepicker on the frontend side"
+msgid "Time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:684
+msgctxt "Timepicker on the frontend side"
+msgid "Hour"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:685
+msgctxt "Timepicker on the frontend side"
+msgid "Minute"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:686
+msgctxt "Timepicker on the frontend side"
+msgid "Second"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:687
+msgctxt "Timepicker on the frontend side"
+msgid "Millisecond"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:688
+msgctxt "Timepicker on the frontend side"
+msgid "Microsecond"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:689
+msgctxt "Timepicker on the frontend side"
+msgid "Time Zone"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:820
+#: includes/class-wc-sc-settings.php:702
+msgid "Send Coupons to..."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:832
+msgid "Your order contains coupons. You will receive them after completion of this order."
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:843
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:845
+msgid "Send to me"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:847
+msgid "Gift to someone else"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:849
+msgid "Send to one person"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:850
+msgid "Send to different people"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:854
+msgid "Deliver coupon"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:887
+#: includes/class-wc-sc-purchase-credit.php:998
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:890
+#: includes/class-wc-sc-purchase-credit.php:1003
+msgid "Pick a delivery date & time"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:894
+#: includes/class-wc-sc-purchase-credit.php:1009
+msgid "Write a message"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:988
+msgid "Free Shipping coupon"
+msgstr ""
+
+#. translators: 1. Coupon type 2. Coupon amount
+#: includes/class-wc-sc-purchase-credit.php:997
+msgid "of"
+msgstr ""
+
+#: includes/class-wc-sc-purchase-credit.php:1324
+#: includes/compat/class-wc-sc-kco-compatibility.php:123
+msgid "Failed to update coupon receiver details in session."
+msgstr ""
+
+#. translators: %s: field name
+#: includes/class-wc-sc-purchase-credit.php:1427
+msgid "Coupon delivery date and time is a required field."
+msgstr ""
+
+#: includes/class-wc-sc-rest-coupons-controller.php:147
+msgid "The coupon code already exists"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:94
+#: includes/blocks/sc-gutenberg-block.js:43
+msgid "Smart Coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:209
+#: includes/class-wc-sc-shortcode.php:892
+msgid "Preview"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:211
+msgid "See coupon search limitations"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:301
+#: includes/compat/class-wcs-sc-compatibility.php:947
+msgid "store credit"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:302
+#: includes/class-wc-sc-settings.php:896
+msgid "store credits"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:347
+msgid "Set up Smart Coupons the way you like. Use these options to configure/change the way Smart Coupons works."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:351
+msgid "Colors"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:355
+msgid "Choose a color scheme for coupons."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:359
+msgid "Amaranth red"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:360
+msgid "Carolina Blue"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:361
+msgid "Keppel"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:362
+msgid "McDonald"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:363
+msgid "Gold"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:364
+msgid "Majorelle Blue"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:365
+msgid "Rose Pink"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:366
+msgid "Vintage"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:367
+msgid "Spanish Orange"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:368
+msgid "Chocolate"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:369
+msgid "Ocean"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:376
+msgid "Customize colors"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:380
+msgid "Customize color scheme for coupons."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:384
+msgid "Custom colors"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:391
+msgid "Styles"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:395
+msgid "Choose a style for coupon on the website."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:399
+msgid "Flat"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:400
+msgid "Promotion"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:401
+msgid "Ticket"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:402
+msgid "Festive"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:403
+msgid "Special"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:404
+msgid "Shipment"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:405
+msgid "Cutout"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:406
+msgid "Deliver"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:407
+msgid "Clipper"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:408
+msgid "Basic"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:409
+msgid "Deal"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:416
+msgid "Style for email"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:420
+msgid "Style for coupon in email."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:424
+msgid "Email coupon"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:431
+#: includes/class-wc-smart-coupons.php:5847
+msgid "Number of coupons to show"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:432
+msgid "How many coupons (at max) should be shown on cart, checkout & my account page? If set to 0 (zero) then coupons will not be displayed at all on the website."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:440
+#: includes/class-wc-smart-coupons.php:5848
+msgid "Number of characters in auto-generated coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:441
+msgid "Number of characters in auto-generated coupon code will be restricted to this number excluding prefix and/or suffix. The default length will be 13. It is recommended to keep this number between 10 to 15 to avoid coupon code duplication."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:455
+#: includes/class-wc-smart-coupons.php:5849
+msgid "Valid order status for auto-generating coupon"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:456
+msgid "Choose order status which will trigger the auto-generation of coupon, if the order contains product which will generate the coupon."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:465
+msgid "Select order status…"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:470
+msgid "Enable store notice for the coupon"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:474
+msgid "Search & select a coupon which you want to display as store notice. The selected coupon's description will be displayed along with the coupon code (if it is set) otherwise, a description will be generated automatically. To disable the feature, keep this field empty."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:480
+msgid "Search for a coupon..."
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:489
+msgid "Generated %s amount"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:491
+msgid "Include tax in the amount of the generated %s"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:499
+msgid "Displaying coupons"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:501
+msgid "Include coupon details on product's page, for products that issue coupons %s"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:501
+#: includes/class-wc-sc-settings.php:510
+#: includes/class-wc-sc-settings.php:519
+#: includes/class-wc-sc-settings.php:528
+#: includes/class-wc-sc-settings.php:537
+#: includes/class-wc-sc-settings.php:625
+#: includes/class-wc-sc-settings.php:637
+#: includes/class-wc-sc-settings.php:648
+#: includes/class-wc-sc-settings.php:658
+#: includes/class-wc-sc-settings.php:668
+#: includes/class-wc-sc-settings.php:689
+#: includes/class-wc-sc-settings.php:698
+#: includes/class-wc-sc-settings.php:708
+#: includes/class-wc-sc-settings.php:717
+msgid "[Preview]"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:510
+msgid "Show coupons available to customers on their My Account > Coupons page %s"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:519
+msgid "Include coupons received from other people on My Account > Coupons page %s"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:528
+msgid "Show invalid or used coupons in My Account > Coupons %s"
+msgstr ""
+
+#. translators: %s: Preview link
+#: includes/class-wc-sc-settings.php:537
+msgid "Display coupon description along with coupon code (on site as well as in emails) %s"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:545
+msgid "Auto apply coupons"
+msgstr ""
+
+#. translators: %s: Explanation of the setting
+#: includes/class-wc-sc-settings.php:547
+msgid "When enabled, each coupon will have the option to enable auto-apply for that coupon %s"
+msgstr ""
+
+#. translators: %s: Explanation of the setting
+#: includes/class-wc-sc-settings.php:547
+msgid "Disabling this, no coupons will be auto-applied - even if any coupon has \"Auto apply?\" enabled."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:555
+#: includes/class-wc-smart-coupons.php:5853
+msgid "Automatic deletion"
+msgstr ""
+
+#. translators: %s: Note for admin
+#: includes/class-wc-sc-settings.php:557
+msgid "Delete the %1$s when entire credit amount is used up %2$s"
+msgstr ""
+
+#. translators: %s: Note for admin
+#: includes/class-wc-sc-settings.php:557
+msgid "(Note: It's recommended to keep it Disabled)"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:565
+#: includes/class-wc-smart-coupons.php:5854
+msgid "Coupon emails"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:566
+msgid "Email auto generated coupons to recipients"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:574
+#: includes/class-wc-smart-coupons.php:5855
+msgid "Printing coupons"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:575
+msgid "Enable feature to allow printing of coupons"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:575
+#: includes/class-wc-sc-settings.php:586
+#: includes/class-wc-sc-settings.php:606
+msgid "[Read More]"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:584
+msgid "Sell %s at less price?"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:586
+msgid "Allow selling %s at discounted price"
+msgstr ""
+
+#. translators: %s: Label for store credit, 1: : Label for store credit, 2: Label for store credit, 3: Label for store credit
+#: includes/class-wc-sc-settings.php:586
+msgid "When selling %1$s, if Regular and Sale price is found for the product, then coupon will be created with product's Regular Price but customer will pay product's Sale price. This setting will also make sure if any discount coupon is applied on the %2$s while purchasing, then customer will get %3$s in their picked price"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:599
+msgid "Labels"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:601
+msgid "Call it something else! Use these to quickly change text labels through your store. Use translations for complete control."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:609
+msgid "Singular name"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:610
+msgid "Give alternate singular name to Store Credit / Gift Certificate. This label will only rename Store Credit / Gift Certificate used in the Smart Coupons plugin."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:617
+msgid "Give plural name for the above singular name."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:618
+msgid "Plural name"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:624
+msgid "%s product CTA"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:629
+msgid "This is what will be shown instead of \"Add to Cart\" for products that sell %s."
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:636
+msgid "While purchasing %s"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:641
+msgid "When you opt to allow people to buy %s of any amount, this label will be used."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:647
+msgid "\"Coupons with Product\" description"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:651
+msgid "This is the heading above coupon details displayed on products that issue coupons."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:652
+msgid "You will get following coupon(s) when you buy this item"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:657
+msgid "On Cart/Checkout pages"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:661
+msgid "This is the title for the list of available coupons, shown on Cart and Checkout pages."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:667
+msgid "My Account page"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:671
+msgid "Title of available coupons list on My Account page."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:682
+msgid "Coupon Receiver Details during Checkout"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:684
+msgid "Buyers can send purchased coupons to anyone – right while they're checking out."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:688
+#: includes/class-wc-smart-coupons.php:5859
+msgid "Allow sending of coupons to others"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:689
+msgid "Allow the buyer to send coupons to someone else."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:697
+msgid "Title"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:701
+msgid "The title for coupon receiver details block."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:707
+msgid "Description"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:711
+msgid "Additional text below the title."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:716
+#: includes/class-wc-smart-coupons.php:5860
+msgid "Allow schedule sending of coupons?"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:717
+msgid "Enable this to allow buyers to select date & time for delivering the coupon."
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:717
+msgid "The coupons will be sent to the recipients via email on the selected date & time"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:726
+#: includes/class-wc-smart-coupons.php:5861
+msgid "Combine emails"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:727
+msgid "Send only one email instead of multiple emails when multiple coupons are generated for same recipient"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:741
+msgid "Apply before tax"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:742
+#: includes/class-wc-smart-coupons.php:5851
+msgid "Deduct credit/gift before doing tax calculations"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:756
+msgid "%s include tax?"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/class-wc-sc-settings.php:758
+msgid "%s discount is inclusive of tax"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "%1$s: %2$s to avoid issues related to missing data for %3$s. %4$s"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+msgid "Uncheck"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+msgid "Delete Gift / Credit, when credit is used up"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "Setting"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:903
+#: includes/class-wc-sc-settings.php:906
+msgid "Hide this notice"
+msgstr ""
+
+#. translators: 1: plugin name 2: page based text 3: Label for store credit 4: Hide notice text
+#: includes/class-wc-sc-settings.php:906
+msgid "Important setting"
+msgstr ""
+
+#: includes/class-wc-sc-settings.php:1052
+msgid "Hurry. Going fast! On the entire range of products."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:607
+#: templates/combined-email.php:195
+#: templates/email.php:182
+msgid "Click to visit store. This coupon will be applied automatically."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:805
+#: includes/class-wc-sc-shortcode.php:846
+#: includes/class-wc-sc-shortcode.php:883
+msgid "No search term specified."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:809
+msgid "Enter more than one character to search."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:825
+msgid "Click to select coupon code."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:827
+msgid "No coupon code found."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:879
+msgid "Coupon code"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:879
+msgid "Search coupon..."
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:941
+msgid "Insert Shortcode"
+msgstr ""
+
+#: includes/class-wc-sc-shortcode.php:944
+msgid "Cancel"
+msgstr ""
+
+#. translators: %s: $coupon_code coupon code
+#: includes/class-wc-sc-url-coupon.php:343
+msgctxt "This notice will be shown on the cart or the checkout page if the coupon will be applied successfully."
+msgid "Coupon code \"%s\" applied successfully. Please add some products to the cart to see the discount."
+msgstr ""
+
+#. translators: %s: $coupon_code coupon code
+#: includes/class-wc-sc-url-coupon.php:347
+msgctxt "This notice will be shown on the cart or the checkout page if the coupon is already applied."
+msgid "Coupon code \"%s\" already applied! Please add some products to the cart to see the discount."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:71
+msgid "Cheatin’ huh?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:977
+msgid "This coupon has pending emails to be sent. Deleting it will delete those emails also. Are you sure to delete this coupon?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:986
+msgid "An error has occurred. Please try again later."
+msgstr ""
+
+#. translators: Formatted minimum amount
+#: includes/class-wc-smart-coupons.php:1231
+msgid "Spend at least %s"
+msgstr ""
+
+#. translators: Formatted maximum amount
+#: includes/class-wc-smart-coupons.php:1235
+msgid "Spend up to %s"
+msgstr ""
+
+#. translators: Formatted maximum amount
+#: includes/class-wc-smart-coupons.php:1239
+msgid "Not valid for sale items"
+msgstr ""
+
+#. translators: Product names
+#: includes/class-wc-smart-coupons.php:1245
+msgid "Valid for %s"
+msgstr ""
+
+#. translators: Excluded product names
+#: includes/class-wc-smart-coupons.php:1251
+msgid "Not valid for %s"
+msgstr ""
+
+#. translators: 1: The category names
+#: includes/class-wc-smart-coupons.php:1258
+msgid "Valid for category %s"
+msgid_plural "Valid for categories %s"
+msgstr[0] ""
+msgstr[1] ""
+
+#. translators: 1: The category names excluded
+#: includes/class-wc-smart-coupons.php:1265
+msgid "Not valid for category %s"
+msgid_plural "Not valid for categories %s"
+msgstr[0] ""
+msgstr[1] ""
+
+#. translators: 1: The expiry date
+#: includes/class-wc-smart-coupons.php:1278
+msgid "Expiry: %s"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1287
+msgid "Valid on entire range of products. Buy anything in the store."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1603
+msgid "Great News!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1604
+msgid "Super Savings!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1605
+msgid "Ending Soon!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1606
+msgid "Limited Time Offer!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1607
+msgid "This Week Only!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1608
+msgid "Attention!"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1609
+msgid "You don't want to miss this..."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1610
+msgid "This will be over soon! Hurry."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1611
+msgid "Act before the offer expires."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1612
+msgid "Don't Miss Out."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1617
+msgid "%s discount on anything you want."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1619
+msgid "%s discount on entire store."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1621
+msgid "Pick any item today for %s off."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1623
+msgid "Buy as much as you want. Flat %s off everything."
+msgstr ""
+
+#. translators: 1. The discount text
+#: includes/class-wc-smart-coupons.php:1625
+msgid "Flat %s discount on everything today."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:1637
+msgid "Use code"
+msgstr ""
+
+#. translators: 1. The coupon code
+#: includes/class-wc-smart-coupons.php:1654
+msgid "Use code: %s"
+msgstr ""
+
+#. translators: Discount amount applied on tax
+#: includes/class-wc-smart-coupons.php:2777
+msgid "excludes -%s on tax"
+msgstr ""
+
+#. translators: Discount amount applied on tax
+#: includes/class-wc-smart-coupons.php:2780
+msgid "includes -%s on tax"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3274
+msgid "WooCommerce Smart Coupons Cache"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3275
+msgid "Clear Smart Coupons Cache"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3276
+msgid "This tool will clear the cache created by WooCommerce Smart Coupons."
+msgstr ""
+
+#. translators: The coupon code
+#: includes/class-wc-smart-coupons.php:3319
+msgid "Coupon %s is valid for a new user only, hence removed."
+msgstr ""
+
+#. translators: The coupon code
+#: includes/class-wc-smart-coupons.php:3378
+msgid "Coupon removed. There is no credit remaining in %s."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:3416
+msgid "This coupon is valid for the first order only."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4224
+msgid "Filter by category"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4244
+msgid "Please select at least one coupon to print."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4259
+msgid "Print selected coupons"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4259
+msgid "Print"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4648
+msgid "Coupon Validity"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4649
+msgid "Validity Suffix"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4650
+msgid "Auto Generate Coupon"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4651
+msgid "Coupon Title Prefix"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4652
+msgid "Coupon Title Suffix"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4653
+msgid "Is Pick Price of Product"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4654
+msgid "Disable Email Restriction"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4655
+msgid "Coupon Is Visible Storewide"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4998
+msgid "Post Excerpt"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:4999
+msgid "Post Status"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5000
+msgid "Post Parent"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5001
+msgid "Menu Order"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5002
+msgid "Post Date"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5008
+msgid "Discount Type"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5010
+msgid "Free shipping"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5011
+msgid "Expiry date"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5012
+msgid "Minimum Spend"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5013
+msgid "Maximum Spend"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5014
+msgid "Individual USe"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5015
+msgid "Exclude Sale Items"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5016
+msgid "Product IDs"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5017
+msgid "Exclude product IDs"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5018
+msgid "Product categories"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5019
+msgid "Exclude Product categories"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5020
+msgid "Customer Email"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5021
+msgid "Usage Limit"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5022
+msgid "Usage Limit Per User"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5023
+msgid "Limit Usage to X Items"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5024
+msgid "Usage Count"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5025
+msgid "Used By"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5031
+msgid "Coupon Category"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5142
+msgctxt "enhanced select"
+msgid "Loading failed"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5280
+msgid "Style 1"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5281
+msgid "Style 2"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5282
+msgid "Style 3"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5283
+msgid "Style 4"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5284
+msgid "Style 5"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5285
+msgid "Style 6"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5286
+msgid "Custom Style"
+msgstr ""
+
+#. translators: File path
+#: includes/class-wc-smart-coupons.php:5317
+#: includes/class-wc-smart-coupons.php:5325
+msgid "File not found %s"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5409
+msgid "is active but it will only work with WooCommerce 3.0.0+."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5409
+msgid "Please update WooCommerce to the latest version"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5850
+msgid "Include tax in the amount of the generated gift card"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5852
+msgid "Gift Card discount is inclusive of tax"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5856
+msgid "Sell gift cards at less price?"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5857
+msgid "Use gift card applied in first subscription order for subsequent renewals until credit reaches zero"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5858
+#: includes/compat/class-wcs-sc-compatibility.php:961
+msgid "Renewal orders should not generate coupons even when they include a product that issues coupons"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5862
+msgid "Auto generated coupon email"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5863
+msgid "Combined auto generated coupons email"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5864
+msgid "Acknowledgement email"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5865
+msgid "Enable taxes"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5866
+msgid "Prices entered with tax"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5867
+msgid "Display prices in the shop"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5868
+msgid "Display prices during cart and checkout"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5869
+msgid "Rounding"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5870
+msgid "Display tax totals"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5871
+msgid "Enable the use of coupon codes"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5872
+msgid "Calculate coupon discounts sequentially"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5873
+msgid "Account endpoints > Coupons"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5874
+msgid "Block-enabled Cart"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5875
+msgid "Block-enabled Checkout"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5876
+msgid "WooCommerce Account Connected"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5883
+msgid "Smart Coupons related settings"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:5883
+msgid "This section shows settings that affects Smart Coupons' functionalities."
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6022
+msgid "$coupon is not an object of WC_Coupon"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6024
+msgid "$coupon is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6122
+#: includes/class-wc-smart-coupons.php:6237
+#: includes/class-wc-smart-coupons.php:6351
+msgid "Some values required for $post_id & $meta_key"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6124
+#: includes/class-wc-smart-coupons.php:6239
+#: includes/class-wc-smart-coupons.php:6353
+msgid "$post_id is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6125
+#: includes/class-wc-smart-coupons.php:6240
+#: includes/class-wc-smart-coupons.php:6354
+msgid "$meta_key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6395
+#: includes/class-wc-smart-coupons.php:6450
+msgid "$key is required"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6397
+#: includes/class-wc-smart-coupons.php:6452
+msgid "$key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6507
+#: includes/class-wc-smart-coupons.php:6561
+#: includes/class-wc-smart-coupons.php:6590
+#: includes/class-wc-smart-coupons.php:6614
+msgid "Some values required for $item_id & $item_key"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6509
+#: includes/class-wc-smart-coupons.php:6563
+#: includes/class-wc-smart-coupons.php:6592
+#: includes/class-wc-smart-coupons.php:6616
+#: includes/class-wc-smart-coupons.php:6770
+msgid "$item_id is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6510
+#: includes/class-wc-smart-coupons.php:6564
+#: includes/class-wc-smart-coupons.php:6593
+#: includes/class-wc-smart-coupons.php:6617
+msgid "$item_key is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6642
+#: includes/class-wc-smart-coupons.php:6690
+msgid "$item is not an object of WC_Order_Item"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6644
+#: includes/class-wc-smart-coupons.php:6692
+msgid "$item is: "
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:6768
+msgid "$item_id is required"
+msgstr ""
+
+#. translators: Email address of users
+#: includes/class-wc-smart-coupons.php:7070
+msgid "Find coupons restricted to %s"
+msgstr ""
+
+#: includes/class-wc-smart-coupons.php:7377
+msgid "Added by coupon"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:894
+msgid "Order paid by %s"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:894
+msgid "Order paid by store credit."
+msgstr ""
+
+#: includes/compat/class-wcs-sc-compatibility.php:951
+msgid "Recurring subscriptions"
+msgstr ""
+
+#. translators: %s: Label for store credit
+#: includes/compat/class-wcs-sc-compatibility.php:953
+msgid "Use %s applied in first subscription order for subsequent renewals until credit reaches zero"
+msgstr ""
+
+#: includes/compat/class-wcs-sc-compatibility.php:1072
+msgid "Active for x payments"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:41
+msgid "Smart Coupons - Acknowledgement email"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:42
+msgid "Send an acknowledgement email to the purchaser. One email per customer."
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:68
+msgid "{site_title}: {coupon_type} sent successfully"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:77
+msgid "{coupon_type} sent successfully"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:86
+msgid "{site_title}: {coupon_type} has been successfully scheduled"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:95
+msgid "{coupon_type} has been successfully scheduled"
+msgstr ""
+
+#. translators: %s: list of placeholders
+#: includes/emails/class-wc-sc-acknowledgement-email.php:104
+msgid "This will be used when the setting \"WooCommerce > Settings > Smart Coupons > Allow schedule sending of coupons?\" is enabled. Available placeholders: %s."
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:108
+msgid "Scheduled email subject"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:116
+msgid "Scheduled email heading"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:336
+#: templates/acknowledgement-email.php:61
+#: templates/plain/acknowledgement-email.php:51
+msgid "Gift card"
+msgstr ""
+
+#: includes/emails/class-wc-sc-acknowledgement-email.php:337
+#: templates/acknowledgement-email.php:62
+#: templates/plain/acknowledgement-email.php:52
+msgid "Gift cards"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:34
+msgid "Smart Coupons - Combined auto generated coupons email"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:35
+msgid "Send only one email instead of multiple emails when multiple coupons are generated per recipient."
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:61
+msgid "{site_title}: Congratulations! You've received coupons from {sender_name}"
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:70
+msgid "You have received coupons."
+msgstr ""
+
+#: includes/emails/class-wc-sc-combined-email-coupon.php:144
+#: includes/emails/class-wc-sc-combined-email-coupon.php:221
+#: includes/emails/class-wc-sc-email-coupon.php:202
+#: includes/emails/class-wc-sc-email-coupon.php:281
+msgid "from"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:34
+msgid "Smart Coupons - Auto generated coupon email"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:35
+msgid "Email auto generated coupon to recipients. One email per coupon."
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:64
+msgid "{site_title}: Congratulations! You've received a {coupon_type} from {sender_name}"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:73
+msgid "You have received a {coupon_type} {coupon_value}"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:355
+#: includes/emails/class-wc-sc-email-coupon.php:479
+msgid "Gift Card"
+msgstr ""
+
+#. translators: %s coupon amount
+#: includes/emails/class-wc-sc-email-coupon.php:398
+msgid "worth %s "
+msgstr ""
+
+#. translators: %s: coupon amount
+#: includes/emails/class-wc-sc-email-coupon.php:403
+msgid "worth %s (for entire purchase) "
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:408
+#: includes/emails/class-wc-sc-email-coupon.php:419
+#: includes/emails/class-wc-sc-email-coupon.php:430
+msgid "for some products"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:410
+#: includes/emails/class-wc-sc-email-coupon.php:421
+msgid "for all products"
+msgstr ""
+
+#. translators: 1: coupon amount 2: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:414
+msgid "worth %1$s (%2$s) "
+msgstr ""
+
+#. translators: 1: coupon amount 2: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:425
+msgid "worth %1$s%% (%2$s) "
+msgstr ""
+
+#: includes/emails/class-wc-sc-email-coupon.php:432
+msgid "for entire purchase"
+msgstr ""
+
+#. translators: 1: coupon amount 2: max discount text 3: discount for text
+#: includes/emails/class-wc-sc-email-coupon.php:443
+msgid "worth %1$s%% %2$s (%3$s) "
+msgstr ""
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "%1$s Free Shipping%2$s"
+msgstr ""
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "&"
+msgstr ""
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid "You have received a"
+msgstr ""
+
+#. translators: 1: email heading 2: suffix
+#: includes/emails/class-wc-sc-email-coupon.php:460
+msgid " coupon"
+msgstr ""
+
+#. translators: %s: list of placeholders
+#: includes/emails/class-wc-sc-email.php:97
+msgid "Available placeholders: %s"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:101
+msgid "Enable/Disable"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:103
+msgid "Enable this email notification"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:107
+msgid "Email type"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:109
+msgid "Choose which format of email to send."
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:116
+msgid "Subject"
+msgstr ""
+
+#: includes/emails/class-wc-sc-email.php:124
+msgid "Email heading"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details
+#: templates/acknowledgement-email.php:34
+msgid "You have successfully sent %1$d %2$s %3$s %4$s"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details
+#: templates/acknowledgement-email.php:37
+msgid "You have scheduled to send %1$d %2$s %3$s %4$s"
+msgstr ""
+
+#: templates/acknowledgement-email.php:53
+msgid "on"
+msgstr ""
+
+#: templates/acknowledgement-email.php:71
+msgid "to"
+msgstr ""
+
+#: templates/combined-email.php:82
+msgid "To redeem your discount click on the following coupon(s):"
+msgstr ""
+
+#: templates/combined-email.php:209
+#: templates/email.php:194
+#: templates/plain/combined-email.php:131
+#: templates/plain/email.php:124
+msgid "Visit store"
+msgstr ""
+
+#: templates/combined-email.php:237
+msgid "You got these coupons "
+msgstr ""
+
+#. translators: %s: Coupon code
+#: templates/email.php:85
+msgid "To redeem your discount use coupon code %s during checkout or click on the following coupon:"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: templates/email.php:219
+#: templates/plain/combined-email.php:137
+#: templates/plain/email.php:130
+msgid "You got this %s"
+msgstr ""
+
+#. translators: %s: singular name for store credit
+#: templates/email.php:219
+#: templates/plain/combined-email.php:137
+#: templates/plain/email.php:130
+msgid "You got this gift card"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details
+#: templates/plain/acknowledgement-email.php:24
+msgid "You have successfully sent %1$d %2$s to %3$s (%4$s)"
+msgstr ""
+
+#. translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details
+#: templates/plain/acknowledgement-email.php:27
+msgid "You have scheduled to send %1$d %2$s to %3$s (%4$s)"
+msgstr ""
+
+#: templates/plain/combined-email.php:22
+msgid "To redeem your discount use below coupon codes during checkout or copy and paste the below URLs and hit enter in your browser"
+msgstr ""
+
+#: templates/plain/combined-email.php:75
+#: templates/plain/email.php:26
+msgid "Message:"
+msgstr ""
+
+#: templates/plain/combined-email.php:88
+#: templates/plain/email.php:83
+msgid " & "
+msgstr ""
+
+#: templates/plain/combined-email.php:97
+#: templates/plain/email.php:92
+msgid "Coupon Code:"
+msgstr ""
+
+#: templates/plain/combined-email.php:103
+#: templates/plain/email.php:98
+msgid "Description:"
+msgstr ""
+
+#: templates/plain/combined-email.php:108
+#: templates/plain/email.php:103
+msgid "Expires on:"
+msgstr ""
+
+#. translators: %s: Coupon code
+#: templates/plain/email.php:23
+msgid "To redeem your discount use coupon code %s during checkout or copy and paste the below URL and hit enter in your browser:"
+msgstr ""
+
+#. translators: 1$-2$: opening and closing tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin.
+#: woocommerce-smart-coupons.php:61
+msgid "%1$sWooCommerce Smart Coupons is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for the Smart Coupons to work. Please %5$sinstall & activate WooCommerce »%6$s"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-available-coupons-block.js:7
+#: blocks/src/js/available-coupons/edit.js:19
+msgctxt "Block editor"
+msgid "Available Coupons (click on a coupon to use it)"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:195
+msgctxt "Frontend"
+msgid "Send coupons to..."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:197
+msgctxt "Frontend"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:202
+msgctxt "Frontend"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:207
+msgctxt "Frontend"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:220
+msgctxt "Frontend"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:225
+msgctxt "Frontend"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:235
+#: blocks/src/js/send-coupon-form/block.js:239
+msgctxt "Frontend"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:259
+#: blocks/src/js/send-coupon-form/block.js:284
+msgctxt "Frontend"
+msgid "Receiver email address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:262
+#: blocks/src/js/send-coupon-form/block.js:287
+msgctxt "Frontend"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:267
+#: blocks/src/js/send-coupon-form/block.js:294
+msgctxt "Frontend"
+msgid "Message for receiver"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block-frontend.js:1
+#: blocks/src/js/send-coupon-form/block.js:271
+#: blocks/src/js/send-coupon-form/block.js:298
+msgctxt "Frontend"
+msgid "Write a message"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:30
+msgctxt "Block editor"
+msgid "Send coupons to..."
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:31
+msgctxt "Block editor"
+msgid "Your order contains coupons. What would you like to do?"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:35
+msgctxt "Block editor"
+msgid "Send to me"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:39
+msgctxt "Block editor"
+msgid "Gift to someone else"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:49
+msgctxt "Block editor"
+msgid "Send to one person"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:53
+msgctxt "Block editor"
+msgid "Send to different people"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:59
+#: blocks/src/js/send-coupon-form/edit.js:63
+msgctxt "Block editor"
+msgid "Deliver coupon"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:67
+msgctxt "Block editor"
+msgid "now"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:71
+msgctxt "Block editor"
+msgid "later"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:80
+msgctxt "Block editor"
+msgid "Receiver email address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:84
+msgctxt "Block editor"
+msgid "Enter recipient e-mail address"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:88
+msgctxt "Block editor"
+msgid "Message for receiver"
+msgstr ""
+
+#: blocks/build/woocommerce-smart-coupons-send-coupon-form-block.js:1
+#: blocks/src/js/send-coupon-form/edit.js:92
+msgctxt "Block editor"
+msgid "Write a message"
+msgstr ""
+
+#: blocks/build/js/available-coupons/block.json
+#: blocks/src/js/available-coupons/block.json
+msgctxt "block title"
+msgid "Available coupons"
+msgstr ""
+
+#: blocks/build/js/available-coupons/block.json
+#: blocks/src/js/available-coupons/block.json
+msgctxt "block description"
+msgid "Displays available coupons."
+msgstr ""
+
+#: blocks/build/js/send-coupon-form/block.json
+#: blocks/src/js/send-coupon-form/block.json
+msgctxt "block title"
+msgid "Send coupon form"
+msgstr ""
+
+#: blocks/build/js/send-coupon-form/block.json
+#: blocks/src/js/send-coupon-form/block.json
+msgctxt "block description"
+msgid "Displays Send coupon form."
+msgstr ""
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/readme.txt b/wp/wp-content/plugins/woocommerce-smart-coupons/readme.txt
new file mode 100644
index 00000000..a8972258
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/readme.txt
@@ -0,0 +1,66 @@
+=== WooCommerce Smart Coupons ===
+Contributors: storeapps, niravmehta, ratnakar.dubey, Tarun.Parswani, Mansi Shah, Chandan Kumar, ramendas, manish.kumar
+Donate link: https://www.storeapps.org/
+Tags: woocommerce, coupon, credit, store credit, gift, certificate, voucher, discount, gift certificate, gift voucher, customer, self service
+Requires at least: 4.4
+Tested up to: 6.5.4
+Stable tag: 9.3.0
+
+Powerful, "all in one" solution for gift certificates, store credits, discount coupons and vouchers. Allows customers to buy credits for themselves or gift them to others. Unique "Apply Coupon with One Click" technology during checkout, tight integration with WooCommerce and automatic maintenance.
+
+== Description ==
+
+WooCommerce Smart Coupons is the most powerful, all in one solution for gift certificates, store credits, discount coupons and vouchers.
+
+Here's what you can do with this plugin:
+
+* Create coupons of a new type - "Store Credit / Gift Certificate". Credit balance will be managed automatically.
+* Link any coupon with a product - new or existing. Customers automatically get that coupon when they purchase the product.
+* Gift Certificates - create a new product, call it a Gift Certificate / Voucher (or anything else that suits your business). Add details and pricing and associate a "Store Credit / Gift Certificate" coupon with it. Customer will get an option to enter email address of the person to send the coupon to during checkout. They can also add a custom message along.
+* Works great with Chained Products plugin - allowing you to create product combos that include other products and gift vouchers for future purchase - increasing the overall value of the offer.
+* Buy Gift Certificate / Store Credit of any denomination
+* Send Gift Certificate / Store Credit to multiple people
+* Automatic coupon generation with prefix / suffix support
+* Import coupons in bulk
+* Admin can send a store credit / gift certificate to anyone
+* Link as many coupons as you want with a product
+* Link coupons with any product type - standard, digital, variable etc.
+* Automatic Balance Maintenance - As a customer keeps using a credit coupon, balance will keep reducing automatically.
+* Automatic Deletion on Zero Balance - When the balance reaches zero, the credit / certificate will be deleted automatically. No need to spend time on this.
+* Unique coupon code generation for all credits / gift certificates.
+* Tight security - coupons can be associated with customers and credits can be used only by their beneficiaries.
+* Unique "Apply Coupon with One Click" technology - logged in customers will see available coupons on the cart / checkout pages and can apply a coupon with single click. No longer digging into mailboxes and time / attention waste during the critical checkout process.
+* Offer Credits at a Discount - Link a coupon with any product and set the product's price lower than coupon's value. Offering a discounted gift certificate. We've seen huge increase in sales this way. You get money in advance, and customer keeps coming back to the store to buy more. **In our tests we actually discovered 84% customers bought more than the gift certificate value itself.**
+* Carries forward benefits of WooCommerce coupon system: limiting coupons to specific products, validity period, usage times, expiry date etc.
+* Can search for coupons issued to a customer by their email address
+* Notifies customers about remaining store credit balance in order email
+* Can even duplicate an existing coupon
+* Same convenient and familiar coupon management interface - no need to learn a new interface to manage Smart Coupons
+
+== Installation ==
+
+1. Ensure you have latest version of [WooCommerce](https://wordpress.org/plugins/woocommerce/) plugin installed
+2. Unzip and upload the folder 'woocommerce-smart-coupons' to your `/wp-content/plugins/` directory
+3. Activate 'WooCommerce Smart Coupons' through the 'Plugins' menu in WordPress
+
+== Usage ==
+
+CREATING A COUPON
+1. Go to Coupons settings in WooCommerce
+2. Add new coupons as usual - if you want to create credit based coupon - Store Credit or Gift Certificate, use "Store Credit / Gift Certificate" in type
+3. Add other coupon details as usual
+4. Save the coupon!
+
+LINKING A COUPON WITH A PRODUCT
+1. Add a new product (or edit an existing one).
+2. Look for "Coupons" under "General" tab
+3. Start typing name of a coupon you want to give to your customer with this product
+4. Select the exact coupon from the suggestions displayed
+5. Add as many coupons as you want like this
+6. Set up price and other details for the main product as you like
+7. Click 'Update' or 'Publish' to save the changes
+
+IMPORTING COUPONS IN BULK
+Refer to the "sample.csv" file in the plugin root directory. Create your import file in the same structure and import it via Coupons administration in WooCommerce.
+
+Go to "WooCommerce -> Settings -> Smart Coupons" from WordPress sidebar menu for additional settings for this plugin.
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/sample.csv b/wp/wp-content/plugins/woocommerce-smart-coupons/sample.csv
new file mode 100644
index 00000000..0542d5c6
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/sample.csv
@@ -0,0 +1,9 @@
+post_title,post_excerpt,post_status,post_parent,menu_order,post_date,discount_type,coupon_amount,free_shipping,expiry_date,minimum_amount,maximum_amount,individual_use,exclude_sale_items,product_ids,exclude_product_ids,product_categories,exclude_product_categories,customer_email,usage_limit,usage_limit_per_user,limit_usage_to_x_items,usage_count,_used_by,sc_restrict_to_new_user,wc_sc_add_product_details,sa_cbl_locations_lookup_in,sa_cbl_billing_locations,sa_cbl_shipping_locations,wc_coupon_message,wc_email_message,sc_coupon_validity,validity_suffix,auto_generate_coupon,coupon_title_prefix,coupon_title_suffix,is_pick_price_of_product,wc_sc_auto_apply_coupon,sc_disable_email_restriction,sc_is_visible_storewide,wc_sc_max_discount,wc_sc_expiry_time,wc_sc_payment_method_ids,wc_sc_shipping_method_ids,wc_sc_user_role_ids,wc_sc_exclude_user_role_ids,wc_sc_product_attribute_ids,wc_sc_exclude_product_attribute_ids,_wcs_number_payments,sc_coupon_category
+sczdmjd,,publish,0,0,2023-02-23 12:34:56,Percentage discount,30,yes,,10,1000,yes,yes,,,,,,2,1,,0,,no,,billing,united states (us),,,no,,days,no,,,no,,no,no,50,,PayPal|Credit Card (Stripe),Flat rate|Local pickup,Administrator|Subscriber,,24|26,28,,
+sc44noo,,publish,0,0,2023-02-24 12:34:56,Fixed cart discount,25,no,,10,,no,yes,,,,,,,1,,0,,no,"115, 1, 100, percent|114, 1, 100, percent",billing,,,Congratulations on getting free products!!!,yes,,days,no,,,no,yes,no,no,,,Direct bank transfer|Check payments,,,Customer,,,,
+scuy08i,,publish,0,0,2023-02-25 12:34:56,Fixed product discount,5,yes,2020/01/20,,100,yes,no,,,,,,2,1,,0,,no,,shipping,,united kingdom (uk),,no,,days,no,,,no,,no,no,,86340,,,Administrator|Editor|Author,,,,,
+scyjrlj,,publish,0,0,2023-02-26 12:34:56,Sign Up Fee Discount,1,no,2019/12/20,1,,no,yes,,,,,,,,,0,,,,,,,,,,,,,,,,,,,,,Flat rate|Free shipping|Local pickup,,,,26,,
+scrzyzh,,publish,0,0,2023-02-27 12:34:56,Sign Up Fee % Discount,10,yes,,,200,yes,no,,,,,,2,1,,0,,,,,,,,,,,,,,,,,,,,,,,Administrator|Editor|Author,26,,,
+schapfo,,publish,0,0,2023-02-28 12:34:56,Recurring Product Discount,0.5,yes,2020/02/20,10,100,yes,yes,,,,,,,,,0,,,,,,,,,,,,,,,,,,,,,,Customer,,,,,
+scl5052,,publish,0,0,2023-03-01 12:34:56,Recurring Product % Discount,5,no,2020/01/01,10,,no,yes,,,,,,,1,,0,,,,,,,,,,,,,,,,,,,,,Flat rate|Local pickup,Author,,,,,
+sce9z9k,,publish,0,0,2023-03-02 12:34:56,Store Credit / Gift Certificate,20,no,,,500,yes,no,,,,,,2,,,0,,,,,,,,,,,,,,,,,,,,Cash on delivery|Credit Card (Stripe),,,,,,,
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/templates/acknowledgement-email.php b/wp/wp-content/plugins/woocommerce-smart-coupons/templates/acknowledgement-email.php
new file mode 100644
index 00000000..9c9d71ea
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/templates/acknowledgement-email.php
@@ -0,0 +1,81 @@
+ $email_heading ) );
+ } else {
+ woocommerce_get_template( 'emails/email-header.php', array( 'email_heading' => $email_heading ) );
+ }
+}
+
+$receivers_email = array_unique( $receivers_detail );
+
+if ( empty( $email_scheduled_details ) ) {
+ /* translators: 1. Receiver's count 2. Singular/Plural label for store credit(s) 3. Receiver name 4. Receiver details */
+ $message = __( 'You have successfully sent %1$d %2$s %3$s %4$s', 'woocommerce-smart-coupons' );
+} else {
+ /* translators: 1. Receiver's count 2. Gift Card/s 3. Receiver name 4. Receiver details */
+ $message = __( 'You have scheduled to send %1$d %2$s %3$s %4$s', 'woocommerce-smart-coupons' );
+ $receivers_email = array_map(
+ function( $email ) use ( $email_scheduled_details ) {
+ // Filter for time format of acknowledgement email.
+ $time_format = apply_filters( 'wc_sc_acknowledgement_email_time_format', get_option( 'date_format', 'Y-m-d' ) . ' ' . get_option( 'time_format', 'H:i' ) );
+ // Check if the scheduled timestamps are available.
+ if ( isset( $email_scheduled_details[ $email ] ) && is_array( $email_scheduled_details[ $email ] ) ) {
+ $scheduled_times = array_map(
+ function( $time ) use ( $time_format ) {
+ // Convert to date format.
+ $time = get_date_from_gmt( gmdate( 'c', $time ), $time_format );
+ return date_i18n( $time_format, strtotime( $time ) );
+ },
+ $email_scheduled_details[ $email ]
+ );
+ // Concat scheduled times to comma separated times.
+ return $email . ' ' . __( 'on', 'woocommerce-smart-coupons' ) . ' ' . implode( ', ', $scheduled_times );
+ }
+ return $email;
+ },
+ $receivers_email
+ );
+}
+
+$singular = ( ! empty( $store_credit_label['singular'] ) ) ? ucwords( $store_credit_label['singular'] ) : __( 'Gift card', 'woocommerce-smart-coupons' );
+$plural = ( ! empty( $store_credit_label['plural'] ) ) ? ucwords( $store_credit_label['plural'] ) : __( 'Gift cards', 'woocommerce-smart-coupons' );
+$coupon_type = ( $receiver_count > 1 ) ? $plural : $singular;
+
+if ( 'yes' === $contains_core_coupons ) {
+ $coupon_type = _n( 'Coupon', 'Coupons', $receiver_count, 'woocommerce-smart-coupons' );
+}
+
+$is_receiver_name = ! empty( $gift_certificate_receiver_name );
+
+echo esc_html( sprintf( $message, $receiver_count, strtolower( $coupon_type ), ( ( ! empty( $gift_certificate_receiver_name ) || ! empty( $receivers_email ) ) ? __( 'to', 'woocommerce-smart-coupons' ) . ' ' . $gift_certificate_receiver_name : '' ), ( true === $is_receiver_name ? '(' : '' ) . implode( ', ', $receivers_email ) . ( true === $is_receiver_name ? ')' : '' ) ) );
+
+if ( has_action( 'woocommerce_email_footer' ) ) {
+ do_action( 'woocommerce_email_footer', $email_obj );
+} else {
+ if ( function_exists( 'wc_get_template' ) ) {
+ wc_get_template( 'emails/email-footer.php' );
+ } else {
+ woocommerce_get_template( 'emails/email-footer.php' );
+ }
+}
diff --git a/wp/wp-content/plugins/woocommerce-smart-coupons/templates/call-for-credit-form.php b/wp/wp-content/plugins/woocommerce-smart-coupons/templates/call-for-credit-form.php
new file mode 100644
index 00000000..ec3a3e07
--- /dev/null
+++ b/wp/wp-content/plugins/woocommerce-smart-coupons/templates/call-for-credit-form.php
@@ -0,0 +1,37 @@
+
+