<span class="required">*</span></label> <input type="text" class="form-control" name="store_contact_email" id="store_contact_email"> <p class="field-description"><?php _e('Input your mail for contact', 'compare'); ?> </p> </div> </div> <div class="col-md-6"> <div class="input-group"> <label for="store_package"><?php esc_attr_e('Chose your package', 'compare'); ?> <span class="required">*</span> <?php $all_packages_link = compare_get_permalink_by_tpl('page-tpl_packages'); if ($all_packages_link !== 'javascript:;') { ?> <a href="<?php echo esc_url($all_packages_link); ?> " class="pull-right"> <?php _e('Check list of available packages', 'compare'); ?> </a></label> <?php } ?> <select name="store_package" id="store_package" class="form-control"> <option value=""><?php _e('Select Package', 'compare');
} add_filter('posts_fields', 'compare_filter_posts_fields', 10, 1); add_filter('posts_orderby', 'compare_orderby_price'); } } $products = new WP_Query($args); $product_ids = wp_list_pluck($products->posts, 'ID'); $product_metas = compare_product_item_meta($product_ids); $page_links_total = $products->max_num_pages; $pagination_args = array('prev_next' => true, 'end_size' => 2, 'mid_size' => 2, 'total' => $page_links_total, 'current' => $cur_page, 'prev_next' => true, 'prev_text' => __('Prev', 'compare'), 'next_text' => __('Next', 'compare'), 'type' => 'array'); $page_links = paginate_links($pagination_args); $pagination = compare_format_pagination($page_links); $counter = 0; ?> <form action="<?php echo esc_url(compare_get_permalink_by_tpl('page-tpl_search')); ?> " class="search-filter"> <section> <div class="container"> <div class="row"> <div class="col-md-3"> <div class="search-overlay sidebar"> <i class="fa fa-spin fa-spinner"></i> <p><?php _e('Loading results...', 'compare'); ?> </p> </div> <div class="white-block"> <div class="white-title clearfix clearfix">
?> </div> </div> <?php } ?> </div> <div class="row"> <?php $packages = trim(compare_get_option('packages')); $counter = 0; if (!empty($packages)) { $packages = explode("\n", $packages); foreach ($packages as $package) { $temp = explode("|", $package); $link = add_query_arg(array('package' => $temp[1] . '-' . $temp[2]), compare_get_permalink_by_tpl('page-tpl_register_store')); if ($counter == 2) { echo '</div><div class="row">'; $counter = 0; } $counter++; ?> <div class="col-md-6"> <div class="white-block <?php echo !empty($temp[3]) == 'A' ? esc_attr('active') : ''; ?> "> <div class="white-block-content"> <a href="<?php echo esc_url($link); ?>
compare_display_import_info(__('Store is about to expire, owner has been informed.', 'compare')); } if (!empty($store->store_xml_feed) && stristr($store->store_xml_feed, 'http') !== false) { $import_data = compare_store_parse_and_import($store->store_xml_feed, $store_id, $store->store_parser); if (is_wp_error($import_data)) { echo '<p><strong>' . __('Sorry, there has been an error.', 'compare') . '</strong><br/>'; echo esc_html($import_data->get_error_message()) . '</p>'; return false; } } else { $message = __('Store ', 'compare') . '<strong>' . $store->store_name . '</strong>' . __(' has no feed associated with it.', 'compare'); compare_display_import_info($message); } } else { /*store has expired delete its feeds*/ $wpdb->query($wpdb->prepare("DELETE FROM {$wpdb->prefix}feed_list WHERE store_id = %d", $store_id)); /* mark store as not paid and set available for update */ $wpdb->query($wpdb->prepare("UPDATE {$wpdb->prefix}stores SET store_status = '0', store_update = %s WHERE store_id = %d", $hash, $store_id)); /* inform user that store has expired, feeds deleted and add some links where he can prolongate this */ $link = add_query_arg(array('hash' => $hash), compare_get_permalink_by_tpl('page-tpl_register_store')); $message = __('Your store has been expired and feed associated with your store have been deleted.', 'compare') . "<br/><br/>"; $message .= __('In order to activate your store again visit link bellow and select your new package.', 'compare') . "<br/><br/>"; $message .= '<a href="' . esc_attr($link) . '" target="_blank">' . $link . '</a>'; compare_inform_store($message, $store->store_contact_email, __('Store Has Expired - Feeds Removed', 'compare')); compare_display_import_info(__('Store has expired, owner has been informed.', 'compare')); } } else { $message = __('Store ', 'compare') . '<strong>' . $store->store_name . '</strong>' . __(' is disabled since it is not paid for.', 'compare'); compare_display_import_info($message); } compare_display_import_info('<br/>***** ' . __('STORE FEED IMPORT PROCESS COMPLETED', 'compare') . ' *****<br/>');
function compare_pay_with_ideal_link() { $bank_id = $_POST['bank_id']; $store_id = $_POST['store_id']; $amount = compare_check_if_store_exists($store_id); $permalink = compare_get_permalink_by_tpl('page-tpl_register_store'); if ($amount) { $mollie_id = compare_get_option('mollie_id'); $return_url = add_query_arg(array('payment' => 'ideal', 'store_id' => $store_id), $permalink); $report_url = add_query_arg(array('payment' => 'ideal-verify', 'store_id' => $store_id), $permalink); $iDEAL = new Compare_Mollie_iDEAL_Payment($mollie_id); $payment = $iDEAL->createPayment($bank_id, $amount * 100, __('Payment for displaying products via feed.', 'compare'), $return_url, $report_url); if ($payment) { echo esc_url($iDEAL->getBankURL()); } else { echo '<div class="alert alert-danger no-margin">' . __('Could not retrive bank URL', 'compare') . ' ' . $iDEAL->getErrorMessage() . '</div>'; } } else { echo '<div class="alert alert-danger no-margin">' . __('Wrong store', 'compare') . '</div>'; } die; }
?> "> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <i class="fa fa-bars"></i> <?php _e('Categories', 'compare'); ?> </button> <ul class="dropdown-menu category_mega_menu" aria-labelledby="dropdownMenu1"> <?php compare_main_categories_list(); ?> </ul> </div> <form method="get" action=<?php echo compare_get_permalink_by_tpl('page-tpl_search'); ?> > <input type="text" name="keyword" placeholder="<?php _e('What are you shopping for?', 'compare'); ?> "> <a href="javascript:;" class="submit-form"><i class="fa fa-search"></i></a> </form> </div> </header> <?php } ?>