< class="main-section-title margin-bottom-sm title-header editable-block" style="font-size:;line-height:;color:;;outline:none;cursor:text;" contenteditable="true" data-sec-id="" data-field="title" data-raw="">
CLICK '!' FOR EXTRA OFF! > < class="main-section-title margin-bottom-sm title-header" style="font-size:;line-height:;color:;">
CLICK '!' FOR EXTRA OFF! > ;color:;padding:10px;'>00:00
get_review_stars($prod['rating'], true, $obj['icon']); //make a subtitle $gotsubs = false; if(strstr($pname, " - ")){ $pn = explode(" - ", $pname); $pname = $pn[0]."
".$pn[1].""; $gotsubs = true; } //make a subtitle if(strstr($pname, "|") && $gotsubs === false){ $pn = explode("|", $pname); $pname = $pn[0]."
".$pn[1].""; } //show discounted price if there is a flash sale if($obj['prod_deci'] == 1){$showdec = 2;}else{$showdec = 0;} if($fstart && !empty($obj['disc_name'])){ $dname = str_replace("%", "", $obj['disc_name']); $dname = intval($dname); $price_in = $prod['price'] / 100; $discount = $price_in * ($dname / 100); $price_in = number_format($price_in - $discount, $showdec); if($prod['price'] < $prod['comp_price']){ $price = " ".$obj['curr'].number_format($prod['comp_price'] / 100, $showdec)." ".$obj['curr'].($price_in); }else{ $price = $obj['curr'].$price_in; } }else{ //no flash sale, so show the price if($prod['price'] < $prod['comp_price']){ $price = " ".$obj['curr'].number_format($prod['comp_price'] / 100, $showdec)." ".$obj['curr'].number_format($prod['price'] / 100, $showdec); }else{ $price = $obj['curr'].number_format($prod['price'] / 100, $showdec); } } //get all of the variants $vars = $prod['variants']; $var_html = ""; if (!empty($vars) && count($vars) > 1) { $var_html .= ""; $hasvars = true; } //direct PDP link if(!empty($obj['disc_code'])){ $s_url = $funnel['web_url']."/discount/".$obj['disc_code']."/?redirect=".urlencode($prod['shop_url'].$track_link); }else{ $s_url = $prod['shop_url'].$track_link; } if(!empty($obj['buynow_two_text'])){ $buy2 = $funnel['web_url']."/cart/".$prod['shopify_id'].":2"; } if(!empty($obj['buynow_three_text'])){ $buy3 = $funnel['web_url']."/cart/".$prod['shopify_id'].":3"; } if(!empty($prod['id']) && !empty($obj['id'])){ $buytxt = $obj['buynow_text']; $buylink = "href='#' onclick='external_cart_link({$prod['id']}, {$obj['id']}, {$fstartid}); return false;'"; } if($obj['buynow'] == 3 || $obj['buynow'] == 5 || $obj['buynow'] == 7){ if(!empty($cart)){ $cprod = $_cart->get_cart_product($cart['cart_id'], $prod['id']); }else{ $cprod = []; } if(empty($cprod)){ $buytxt = "Add To Cart"; $buylink = "href='#' onclick='jfunnel_cart("add_to_cart", "".$prod['id']."", "".$obj['id'].""); return false;'"; }else{ $buytxt = "In Cart"; $buylink = "href='#' onclick='$("#cart").show(); return false;'"; } } if($obj['buynow'] == 6){ $buytxt = "Add To Cart"; $buylink = "data-variant-sku='0' data-sku='".$prod['id']."' data-is-subscription-eligible=".$prod['is_subscription_eligible'].""; } // NEW: Amazon Buy Prime button integration (buy_now option value 8) if ($obj['buynow'] == 8 && !empty($prod['sku']) && !empty($funnel['amazon_store_id'])) { // Set the button text (customize as needed) $buytxt = "Buy with Prime"; // Use the stored Amazon SKU from your product data (ensure it exists in your database, e.g. $prod['amazon_sku']) $buylink = "href='#' onclick='amazon_buyprime_add(\"".$prod['sku']."\", \"".$funnel['amazon_store_id']."\"); return false;'"; } // NEW: WooCommerce Checkout if ($obj['buynow'] == 9 && !empty($prod['id']) && !empty($obj['id']) && $prod['source'] == "woocommerce") { $buytxt = $obj['buynow_text']; $buylink = "href='#' onclick='external_woo_cart_link({$prod['id']}, {$obj['id']}, {$fstartid}); return false;'"; } $prodcss = ""; if($prod['sold_out'] == 1){ $buytxt = "Sold Out"; $buylink = "data-sold-out=1"; $prodcss = "opacity:0.5;pointer-events:none;"; } ?>
;">
' data-prod-id='' data-action-id='shop'> '>border-radius: 20px;' />

;font-weight: bold;' id='price-container-'>

;line-height:;min-height:65px;margin-bottom: 5px;'>

;line-height:;min-height:65px;margin-bottom: 5px;'>

;font-weight: bold;' id='price-container-'>

>