PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
content-egg-templates
<?php /* * Name: Price alert for lowest price product * Modules: * Module Types: PRODUCT * Shortcoded: FALSE * */ ?> <?php use ContentEgg\application\helpers\TemplateHelper; use ContentEgg\application\helpers\CurrencyHelper; // sort items by price ?> <?php $postid = (isset($post_id)) ? $post_id : get_the_ID();?> <?php if (get_post_type($postid) == 'product'):?> <?php $itemsync = \ContentEgg\application\WooIntegrator::getSyncItem($postid); $unique_id = $itemsync['unique_id']; $module_id = $itemsync['module_id'];?> <?php else:?> <?php $unique_id = get_post_meta($postid, '_rehub_product_unique_id', true);?> <?php $module_id = get_post_meta($postid, '_rehub_module_ce_id', true);?> <?php endif;?> <?php if ($unique_id && $module_id) :?> <?php $syncitem = ($unique_id) ? $data[$module_id][$unique_id] : '';?> <?php if (TemplateHelper::isPriceAlertAllowed($unique_id, $module_id) && !empty($syncitem)): ?> <?php $offer_price = (!empty($syncitem['price'])) ? $syncitem['price'] : ''; ?> <?php $currency_code = (!empty($syncitem['currencyCode'])) ? $syncitem['currencyCode'] : ''; ?> <?php if($offer_price && rehub_option('ce_custom_currency')) { $currency_code = rehub_option('ce_custom_currency'); $currency_rate = CurrencyHelper::getCurrencyRate($syncitem['currencyCode'], $currency_code); if (!$currency_rate) $currency_rate = 1; $offer_price = $offer_price * $currency_rate; if($offer_price_old){$offer_price_old = $offer_price_old * $currency_rate;} }?> <div class="price-alert-form-ce"> <div class="alert-form-ce-wrap"> <h4 id="<?php echo esc_attr($unique_id); ?>"><i class="far fa-bell bigbellalert rehub-main-color" aria-hidden="true"></i><?php _e('Didn\'t find the right price? Set price alert below', 'rehub_framework');?></h4> <div class="cegg-price-alert-wrap"> <div class="mb10 font90"> <?php _e('Set Alert for Product', 'rehub_framework'); ?>: <?php echo esc_attr($syncitem['title']);?> - <?php echo TemplateHelper::formatPriceCurrency($offer_price, $currency_code); ?> </div> <form> <input type="hidden" name="module_id" value="<?php echo esc_attr($module_id); ?>"> <input type="hidden" name="unique_id" value="<?php echo esc_attr($unique_id); ?>"> <input type="hidden" name="post_id" value="<?php echo (int)$postid; ?>"> <div class="tabledisplay mobilecenterdisplay mobileblockdisplay flowhidden"> <div class="celldisplay pr15 rtlpl15"> <input type="email" name="email" placeholder="<?php _e('Your Email', 'rehub_framework'); ?>:" class="mb10" value="<?php if(method_exists('ContentEgg\application\helpers\TemplateHelper', 'getCurrentUserEmail')):?><?php echo esc_attr(TemplateHelper::getCurrentUserEmail()); ?><?php endif;?>"> </div> <div class="celldisplay pr15 rtlpl15"> <input type="text" name="price" placeholder="<?php _e('Desired price', 'rehub_framework'); ?>:" class="mb10"> </div> <div class="celldisplay"> <input value="<?php _e('Start tracking', 'rehub_framework'); ?>" type="submit" class="wpsm-button rehub_main_btn small-btn floatright mb10" /> </div> </div> <?php if (method_exists('TemplateHelper', 'getPrivacyUrl')):?> <?php $privacy_url = TemplateHelper::getPrivacyUrl(); ?> <?php if ($privacy_url): ?> <div style="display: none;" class="price-alert-agree-wrap mt10 font80"> <label class="price-alert-agree-label"> <input type="checkbox" name="accepted" value="1" id="cegg_alert_accepted" required /> <?php echo sprintf(__('I agree to the <a target="_blank" href="%s">Privacy Policy</a>.', 'rehub_framework'), esc_attr($privacy_url)); ?> </label> </div> <?php endif; ?> <?php endif; ?> </form> <div class="cegg-price-loading-image" style="display: none;"><img src="<?php echo get_template_directory_uri() . '/images/ajax-loader.gif' ?>" /></div> <div class="cegg-price-alert-result-succcess" style="display: none; color: green;"></div> <div class="cegg-price-alert-result-error" style="display: none; color: red;"></div> </div> </div> </div> <?php endif;?> <?php endif;?>
[+]
..
[+]
AvantlinkProducts
[+]
Flipkart
[+]
Optimisemedia
[+]
Udemy
[+]
QwantImages
[+]
Zanox
[+]
AffilinetProducts
[+]
Walmart
[+]
Youtube
[+]
GoogleImages
[+]
Twitter
[+]
Impactradius
[+]
LomadeeProducts
[-] block_all_logolist_widget.php
[edit]
[+]
PayTM
[+]
Shareasale
[+]
Ebay
[-] block_all_merchant_widget.php
[edit]
[-] .htaccess
[edit]
[+]
Pepperjam
[-] wdgt_price_movers_top_offers.php
[edit]
[-] block_all_offers_logo.php
[edit]
[+]
BingImages
[+]
Flickr
[-] block_all_pricehistory_full.php
[edit]
[+]
AE
[-] wdgt_price_movers_grid.php
[edit]
[+]
TradedoublerProducts
[+]
Offer
[+]
Bolcom
[+]
Linkwise
[+]
Aliexpress
[+]
Envato
[+]
Viglink
[-] block_all_simple_list.php
[edit]
[+]
Kelkoo
[+]
GoogleNews
[+]
GdeSlon
[+]
Amazon
[+]
Affiliatewindow
[+]
Linkshare
[+]
CjProducts
[+]
GoogleBooks
[-] block_all_offers_list.php
[edit]
[+]
TradetrackerProducts
[-] block_all_offers_grid.php
[edit]
[+]
AdmitadProducts
[-] block_all_pricealert_full.php
[edit]