MAW-873 Prevent Periodic 404 Errors

This commit is contained in:
Roger McCoy
2024-03-01 15:39:06 +00:00
committed by Andrew Bastin
parent ed1533dc69
commit 9bc76e289d
8 changed files with 8 additions and 1788 deletions

View File

@@ -658,42 +658,18 @@ function theme_scripts() {
return $columns;
}
add_action('manage_posts_custom_column', 'manage_posts_custom_column_callback', 10, 2);
function manage_posts_custom_column_callback( $column_name, $post_id ) {
global $post;
add_action( 'manage_posts_custom_column', 'rachel_carden_populating_my_posts_columns', 10, 2 );
function rachel_carden_populating_my_posts_columns( $column_name, $post_id ) {
global $wpdb, $post;
if(get_post_meta($post->ID, 'order_priority', true)=='' || get_post_meta($post->ID, 'order_priority', true)==' '){
add_post_meta($post->ID, 'order_priority', '-');
update_post_meta($post->ID, 'order_priority', '-');}
$a = $wpdb->prepare("call IPER_MA_PRODUCT_BY_WP_RATEPLAN_ID(%d)", $post_id);
$b = callDBStored($a);
$product_wp_id = $b[0]->idPRODUCT_WP;
$product_wp_id_title = get_post($product_wp_id)->post_title;
$c = $wpdb->prepare("call IPER_MA_PRODUCT_BY_WP_UPSELL_ID(%d)", $post_id);
$d = callDBStored($c);
$rateplan_wp_id = $d[0]->idRATEPLAN_WP;
$rateplan_wp_id_title = get_post($rateplan_wp_id)->post_title;
$product_wp_id_upsell = $d[0]->idPRODUCT_WP;
$product_wp_id_title_upsell = get_post($product_wp_id_upsell)->post_title;
if (get_post_meta($post->ID, 'order_priority', true) == '' || get_post_meta($post->ID, 'order_priority', true) == ' ') {
add_post_meta($post->ID, 'order_priority', '-');
update_post_meta($post->ID, 'order_priority', '-');
}
$post_id = sanitize_text_field($post_id);
add_post_meta($post_id, 'product_rateplan', $product_wp_id_title);
update_post_meta($post_id, 'product_rateplan', $product_wp_id_title);
add_post_meta($post_id, 'rateplan_upsell', $rateplan_wp_id_title);
update_post_meta($post_id, 'rateplan_upsell', $rateplan_wp_id_title);
add_post_meta($post_id, 'product_upsell', $product_wp_id_title_upsell);
update_post_meta($post_id, 'product_upsell', $product_wp_id_title_upsell);
switch( $column_name ) {
switch ($column_name) {
case 'product_rateplan':
echo '<div id="' . $post_id . '">' . get_post_meta($post_id, 'product_rateplan', true) . '</div>';
break;
@@ -709,8 +685,6 @@ function theme_scripts() {
}
}
add_filter('manage_edit-rateplan_sortable_columns', 'tcb_register_rateplan_sortable_columns');
add_filter('manage_edit-upsell_sortable_columns', 'tcb_register_upsell_sortable_columns');
add_filter('manage_edit-product_sortable_columns', 'tcb_register_product_sortable_columns');

File diff suppressed because it is too large Load Diff

View File

@@ -1,34 +0,0 @@
<?php
/**
* Created by PhpStorm.
* User: Fabrizio Pera
* Company: Iperdesign SNC
* URL: http://www.iperdesign.com/it/
* Date: 12/02/16
* Time: 09:48
*/
global $_iper_product_meta_plan, $post, $wpdb;
$product_db_id_call = $wpdb->prepare("CALL IPER_MA_PRODUCT_GET_ID_BY_WPID(%d)", $post->ID);
$product_db_id = callDBStored($product_db_id_call);
if($product_db_id[0]->idPRODUCT){
$id= $product_db_id[0]->idPRODUCT;
$product_rateplans_call = $wpdb->prepare("CALL IPER_MA_RATEPLAN_LIST(%d)", $id);
$product_rateplans = callDBStored($product_rateplans_call);}
foreach($_iper_product_meta_plan as $meta):
$value=get_post_meta($post->ID, $meta['name'], true);
if($meta['type']==='input-text'):
include(sprintf("%s/res/input-textarea.php", dirname(__FILE__)));
endif;
?>
<br>
<br>
<?php endforeach; ?>

View File

@@ -1,33 +0,0 @@
<?php
/**
* Created by PhpStorm.
* User: Fabrizio Pera
* Company: Iperdesign SNC
* URL: http://www.iperdesign.com/it/
* Date: 12/02/16
* Time: 09:48
*/
global $_iper_product_meta_plan, $post, $wpdb;
$product_db_id_call = $wpdb->prepare("CALL IPER_MA_PRODUCT_GET_ID_BY_WPID(%d)", $post->ID);
$product_db_id = callDBStored($product_db_id_call);
$id= $product_db_id[0]->idPRODUCT;
$product_rateplans_call = $wpdb->prepare("CALL IPER_MA_RATEPLAN_LIST(%d)", $id);
$product_rateplans = callDBStored($product_rateplans_call);
foreach($_iper_product_meta_plan as $meta):
$value=get_post_meta($post->ID, $meta['name'], true);
if($meta['type']=='input-text'):
include(sprintf("%s/res/input-textarea.php", dirname(__FILE__)));
endif;
?>
<br>
<br>
<?php endforeach; ?>

View File

@@ -1,227 +0,0 @@
<?php
global $post, $config, $index_medical;
$index_medical=1;
?>
<nav class="navbar breadcrumb-navbar">
<div class="container_">
<ul class="list-inline">
<?php
$product_wp_id=$post->ID;
$product_db_id=callDBStored($wpdb->prepare("call IPER_MA_PRODUCT_GET_ID_BY_WPID(%d)",$product_wp_id),true);
$product_db_id=$product_db_id->idPRODUCT;
$rateplan_call = $wpdb->prepare("CALL IPER_MA_RATEPLAN_LIST(%d)", $product_db_id);
$rate_plans = callDBStored($rateplan_call);
$they_exist = 0;
foreach ($rate_plans as $rate_plan) {
$rateplanID = $rate_plan->idRATEPLAN;
$accessory_group_list_call = $wpdb->prepare("CALL IPER_MA_ACCESSORY_GROUP_LIST(%d)", $rateplanID);
$groups_accessories = callDBStored($accessory_group_list_call);
if($groups_accessories) {
$counter = 0;
$they_exist++;
foreach ($groups_accessories as $group) {
$is_free = $group->IncludedWithOrder;
$accessory_single_selection = $group->LimitRestriction;
if($is_free=='1' && $accessory_single_selection=='0'){
$counter++; }
if($counter != count($groups_accessories)){
$they_exist='1';
}else { $they_exist='0';}
}
} else { $they_exist='0';}
}
$they_exist='0';
if($post->ID==$config['id_medical_home']){
echo get_nav_bredcrumb(1, $they_exist);
}
if($post->post_type=='product'){
echo get_nav_bredcrumb(2, $they_exist);
}
if($post->ID==$config['id_medical_accessories']){
echo get_nav_bredcrumb(3, $they_exist);
}
if($post->ID==$config['id_medical_shipping']){
echo get_nav_bredcrumb(4, $they_exist);
}
if($post->ID==$config['id_medical_order']){
echo get_nav_bredcrumb(5, $they_exist);
}
if($post->ID==$config['id_medical_profile']){
echo get_nav_bredcrumb(6, $they_exist);
}
if($post->ID==$config['id_medical_thank']){
echo get_nav_bredcrumb(7, $they_exist);
}
function get_nav_bredcrumb($ord, $acc){
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
function link_active($link){
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if($actual_link == $link){
return 'active';}
}
$aProduct=false;
foreach($_SESSION['iper_cart']['products'] as $single){
$aProduct=$single;
}
global $indice;
if($acc>0){
$accessory_exist='1';
$link_previous_shipping = get_permalink(get_option('id_medical_accessories'));
$link_after_plan=array( get_permalink(get_option('id_medical_accessories')), 'Medical Accessories');
} else{
$accessory_exist='0';
$link_previous_shipping = get_permalink($aProduct["wp_id"]);
$link_after_plan=array(get_permalink(get_option('id_medical_shipping')), 'Shipping & Billing');
}
$html = '<li class="'.link_active(get_the_permalink(get_option("id_medical_home"))).'">
<span class="item"><a href="'.get_the_permalink(get_option("id_medical_home")).'" title="Select Product"><span>1</span> Products</a></span>
</li>';
if($ord==1){ }elseif($ord>=2) {
if ($ord>=2) {
if($ord==2){
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
} else {$actual_link = get_permalink($aProduct["wp_id"]);}
$back = '<li class="go-back">
<span class="item"><a href="'.get_the_permalink(get_option("id_medical_home")).'" title="go back"> Go Back</a></span>
</li>';
$html .= '<li class="nav_ '.link_active($actual_link).'">
<a href="'.$actual_link.'" title="Payment Plan"><span>2</span> Payment Plan</a>
</li>';
$next_link = '<li class="next_nav_">
<span class="item"><span>3</span> '.$link_after_plan[1].'</span>
</li>';
}
if ($ord>=3 && $accessory_exist=='1') {
$back = '<li class="go-back">
<a href="'.get_permalink($aProduct["wp_id"]).'" title="go back">Go Back</a>
</li>';
$html .= '
<li class="next_nav_ '.link_active(get_permalink(get_option('id_medical_accessories'))).'">
<a href="'.get_permalink(get_option('id_medical_accessories')).'" title="Select Medical Accessories"><span>3</span> Medical Accessories</a>
</li>';
$next_link = '<li >
<span class="item"><span>4</span> Shipping & Billing</span>
</li>';
}
if ($ord>=4) {
$indice=3+$accessory_exist;
$back = '<li class="go-back">
<a href="'.$link_previous_shipping.'" title="go back">Go Back</a>
</li>';
$html .= '
<li class="'.link_active(get_permalink(get_option('id_medical_shipping'))).'">
<a href="'.get_permalink(get_option('id_medical_shipping')).'" title="Select Products"><span>'.$indice.'</span> Shipping & Billing</a>
</li>';
$next_link = '<li class="next_nav_">
<span class="item"><span>'.($indice+1).'</span> Your Order</span>
</li>';
}
if ($ord>=5) {
$indice=4+$accessory_exist;
$back = '<li class="go-back">
<a href="'.get_permalink(get_option('id_medical_shipping')).'" title="go back">Go Back</a>
</li>';
$html .= '
<li class="'.link_active(get_permalink(get_option('id_medical_order'))).'">
<a href="'.get_permalink(get_option('id_medical_order')).'" title="Select Products"><span>'.$indice.'</span> Your Order</a>
</li>';
$next_link = '<li class="next_nav_">
<span class="item"><span>'.($indice+1).'</span> Profile Set Up</span>
</li>';
}
if ($ord>=6) {
$indice=5+$accessory_exist;
$back = '<li class="go-back">
<a href="'.get_permalink(get_option('id_medical_order')).'" title="go back">Go Back</a>
</li>';
$html .= '
<li class="'.link_active(get_permalink(get_option('id_medical_profile'))).'">
<span class="item"><a href="'.get_permalink(get_option('id_medical_profile')).'" title="Select Products"><span>'.$indice.'</span> Profile Set Up</a></span>
</li>';
/* $next_link = '<li>
<span class="item"><span>7</span> Thank You</span>
</li>';*/
$next_link = '<li class="next_nav_">
<span class="item"><span>'.($indice+1).'</span> Profile Completed</span>
</li>';
}
if ($ord==7) {
$back = '<li class="go-back">
<a href="'.get_permalink(get_option('id_medical_profile')).'" title="go back">Go Back</a>
</li>';
/* $html .= '
<li>
<a href="'.get_permalink($config['id_medical_thank']).'" title="Select Products"><span>7</span> Thank You</a>
</li>';*/
$html .= ' <li class="'.link_active(get_permalink(get_option('id_medical_thank'))).'">
<span class="item"><a href="'.get_permalink(get_option('id_medical_thank')).'" title="Profile Complete"><span>'.$indice.'</span> Profile Completed</a></span>
</li>';
$next_link = '';
}
}
$html .= $next_link;
$final_res = $back.$html;
return $final_res;
}
?>
</li>
</ul>
</div>
</nav>

View File

@@ -1,202 +0,0 @@
<?php
session_start();
//Check required session data
global $wpdb;
$shipping_option = get_option('id_medical_shipping');
$medical_home_option = get_option('id_medical_home');
if(
!$_SESSION
|| empty($_SESSION['iper_cart'])
|| empty($_SESSION['iper_cart']['products'])
){
header("location: ".get_permalink( $medical_home_option )) ;
}
$aProduct=false;
foreach($_SESSION['iper_cart']['products'] as $single){
$aProduct=$single;
}
global $shipping_page;
$shipping_page = '0';
/**
$rateplanID = $_COOKIE['sel_plan_id'];
$sel_product = $_COOKIE['sel_product'];
$sel_plan_and_price = $_COOKIE['sel_plan'];
$sel_plan_and_price=rtrim($sel_plan_and_price,',');
$sel_plan_and_price=explode(',',$sel_plan_and_price);
$sel_plan= $sel_plan_and_price[0];
$plan_price= $sel_plan_and_price[1];
$plan_price = str_replace('$', '', $plan_price);
*/
$rateplanID = intval($aProduct['plan']['plan_id']);
$sel_plan= $aProduct['plan']['plan_wp_id'];
$plan_price= $aProduct['plan']['plan_price'];
$aPlan=$aProduct['plan'];
/*$sel_upsell = $_COOKIE['sel_upsell'];
$sel_upsell=rtrim($sel_upsell,',');
$sel_upsell=explode(',',$sel_upsell);*/
$idsSelected=array();
$permanentAcc=array();
if(!empty($aPlan['accessories'])){
foreach($aPlan['accessories'] as $key => $value ){
foreach($value as $single){
$idsSelected[]=$single["META_WP_ID"];
if($single["permanent"]){
$permanentAcc[]=$single["META_WP_ID"];
}
}
}
}
/*
$accessories_cookier=$_COOKIE['iper_accessories_cart'];
if($accessories_cookier) {
$accessories_cookier = json_decode(stripslashes($accessories_cookier));
if(!empty($accessories_cookier)) {
$idsSelected = array_map(function ($a) {
return $a->ID;
}, $accessories_cookier);
}
}
*/
/* setCookie('iper_accessories_cart', '', time() + (3600), "/");*/
iper_hook_css();
get_header();
/*for($i=0; $i<count($sel_upsell)/2; $i++){
$upsell_id[$i]= $sel_upsell[2*$i];
$upsell_price[$i] = $sel_upsell[2*$i+1];
}*/
/*$args = array(
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'ASC',
'post_type' => 'accessory'
);
$posts_array = get_posts( $args );*/
include_once('nav_bar.php');
/*$wp_sel_plan = get_post($sel_plan);
$wp_sel_plan_title = get_the_title($wp_sel_plan);*/
//chiamata database
$accessory_group_list_call = $wpdb->prepare("CALL IPER_MA_ACCESSORY_GROUP_LIST(%d)", $rateplanID);
$groups_accessories = callDBStored($accessory_group_list_call);
/*if($wp_sel_plan_title == 'Annually'){
$time = '<strong>/yr</strong>';
$total_annual = $plan_price;
}
if($wp_sel_plan_title == 'Monthly'){
$total_annual = $plan_price*12;
$time = '<strong>/mo</strong>';
}
if($wp_sel_plan_title == 'Quarterly'){
$total_annual = $plan_price*4;
$time = '<strong>/4 mo</strong>';
}
if($wp_sel_plan_title == 'Semi-Annually'){
$total_annual = ($plan_price)*2;
$time = '<strong>/6 mo</strong>';
}*/
?>
<div class="select-container">
<div class="container">
<div class="row">
<!--<pre><?php
/*
foreach($_SESSION['iper_cart']['products'] as $product){
foreach($product['plan']['accessories'] as $accessory){
var_dump($accessory);
}
}
*/?></pre>-->
<div class="col-sm-8">
<div class="title-page"><span>3 </span>Select Accessories</div>
<?php
foreach($groups_accessories as $group_accessories){
$group_ID = $group_accessories->idACCESSORY_GROUP;
$is_free = $group_accessories->IncludedWithOrder;
$accessory_single_selection = $group_accessories->LimitRestriction;
/*echo $is_free.$accessory_single_selection;*/
$permanent_='0';
if($is_free=='1' && $accessory_single_selection=='0'){
$permanent_='1';
}
?>
<div class="select-subtitle"><h3><label><?php if($is_free != '0'){ echo 'INCLUDED'; }?><?php if(!$permanent_=='1'){ ?> Select <?php if($accessory_single_selection == '1'){ echo 'One'; }else{echo 'More';} ?> From The Following<?php }?></label></h3></div>
<div class="list-select" data-permanent="<?php echo $permanent_; ?>">
<div data-accGroupID="<?php echo $group_ID ;?>" class="row" data-singleSelection="<?php echo $accessory_single_selection;?>">
<?php
$accessory_list_call = $wpdb->prepare("CALL IPER_MA_ACCESSORY_LIST(%d, %d)", $rateplanID, $group_ID);
$accessories = callDBStored($accessory_list_call);
?>
<?php foreach($accessories as $accessory){
$accessory_wp_id = $accessory->META_WP_ID;
$accessory_wp_post = get_post($accessory_wp_id);
if($is_free=='0' && $accessory->Price){$accessory_price = $accessory->Price;}else{$accessory_price = '';}//verifico se l'accessorio è incluso nel rateplan o no
$feat_image = wp_get_attachment_url(get_post_thumbnail_id($accessory_wp_post->ID));
$accessory_wp_post->price = $accessory_price;
?>
<div data-accID="<?php echo $accessory->idACCESSORY ;?>" class="card-select col-xs-6 col-sm-6 col-md-4 <?php echo (in_array($accessory_wp_id,$idsSelected)) ? ' active' : '' ;?>" data-accGroup="<?php echo $group_ID;?>" data-product="<?php echo $aProduct['db_id'] ;?>" data-json='<?php echo json_encode($accessory);?>' data-accPrice="<?php echo $accessory_price; ?>">
<!--<div class="accessory_price"><?php echo '$'.$accessory_price; ?></div><div class="card_title"><?php
echo get_the_title($accessory_wp_post); ?></div>-->
<div class="card1" style="<?php if(isset($feat_image)&&(!empty($feat_image))){
echo 'background: url('.$feat_image.'); background-size:cover;';}?>">
<div class="checkbox"></div>
</div>
<a class="btn btn-grey1 btn-block">Select<?php echo (in_array($accessory_wp_id,$idsSelected)) ? "ed" : "";?></a>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
<div class="col-sm-4">
<?php include_once('cart.php'); ?>
</div>
</div>
</div>
</div>
<?php
include($ABS_path . "/footer.php");
get_footer();
?>

View File

@@ -1,146 +0,0 @@
<?php
//call_the_style();
//TEST
session_start();
session_destroy();
//[FP]
iper_hook_css();
get_header('product');
/* foreach($id_setting as $id_single) {
print_r($id_single);
}*///richiama la funzione per settare gli stili. vedi functions.php
/* $idPRODUCT=1;
$chiamta1=$wpdb->prepare("CALL IPER_MA_RATEPLAN_LIST(%d)",
$idPRODUCT
);
$rateplans=callDBStored($chiamta1);
if(!empty($rateplans)){
foreach($rateplans as $single){
$single->META_WP_ID;
get_post($single->META_WP_ID);
}
}*/
?>
<div class="container_">
<!-- <div id="slider-home" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="item active">
<a href="#" title="Slide name"><img src="<?php echo $theme_url; ?>/images/slider1.png" alt="slide"></a>
<a class="disclaimer" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<span>"Lorem ipsum dolor sit amet, consectetur adipiscing elit.”</span>
</a>
<a class="call-out" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<small><?php echo get_option(cta_title); ?></small>
<span class="number"><?php echo get_option(cta_tel); ?></span>
<span class="action"><?php echo get_option(cta_descr); ?></span>
</a>
</div>
<div class="item">
<a href="#" title="Slide name"><img src="<?php echo $theme_url; ?>/images/slider1.png" alt="slide"></a>
<a class="disclaimer" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<span>"2Lorem ipsum dolor sit amet, consectetur adipiscing elit.”</span>
</a>
<a class="call-out" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<small>Operators Are Standing By</small>
<span class="number">1.800.800.2537</span>
<span class="action">CALL NOW TO ORDER!</span>
</a>
</div>
</div>
</div>
<div class="title-list med-home">Select Your Product</div>
<hr>
</div>-->
<?php include_once('nav_bar.php'); ?>
<div class="row">
<div id="home-content" class="col-xs-12">
<?php echo $post->post_content;?>
</div>
</div>
<!-- Scripts -->
<!-- <script type="text/javascript" src="/wp-content/plugins/iper-medical/templates/script/select-product.js"></script> -->
<script type="text/javascript">
(function(window, $, _, undefined) {
$(document).ready(function() {
var cards = '';
woo.getCoreProducts(function(products) {
for(var key in products) {
//if(products[key].sku !== 'shipping'){
if(products[key].sku != 'shipping' && products[key].sku != '01t1I000000kskAQAQ' ) {
//if(products[key].sku != 'shipping' && products[key].sku != '01t1I0000045X6C' && products[key.sku != '01t1I000000kskA']) {
cards += woo.createProductCard(products[key]);
}
}
$('#core-products').html(cards);
}, $);
});
})(window, jQuery, undefined);
</script>
<!-- End Scripts -->
<!--<?php echo do_shortcode('[product_medical_list]'); ?>-->
<!-- Generate Product List -->
<div class="list-product">
<div id="core-products" class="row"></div>
</div>
<!-- End Generate Product List -->
</div>
<!-- Begin Gift card -->
<div class="container" style=" background-color:rgba(197, 208, 222, 0.2); padding-bottom: 40px;">
<h2 style="text-align: center; color: rgb(156, 48, 57); text-transform: uppercase; font-size: 36px; letter-spacing: 2px; display: block; margin-bottom: 12px;">Online Special!</h2>
<h3 style="text-align: center; color: rgb(0, 47, 94); margin-top: 0px;">Order a Medical Alert System today and receive a $10 gift card of your choice!*</h3>
<div class="row">
<div class="mobile-gcard"><center style="">
<img src="/wp-content/uploads/2017/06/gift-cards-amazon.png" alt="Amazon" style="" width="157">
<img src="/wp-content/uploads/2017/06/gift-cards-target.png" alt="Target" style="" width="157">
<img src="/wp-content/uploads/2017/06/gift-cards-dunkin-donuts.png" alt="Dunkin Donuts" width="157" style="">
<img src="/wp-content/uploads/2017/06/gift-cards-walmart.png" alt="Walmart" width="157" style="">
<img src="/wp-content/uploads/2017/06/gift-cards-olive-garden.png" alt="Olive Garden" width="157">
<img src="/wp-content/uploads/2017/06/gift-cards-kohls.png" alt="Kohls" width="157">
</center></div>
</div>
<input id="gCard" value="Gift Card" name="gCard" type="hidden">
<h4 style="text-align: center; color: rgb(0, 47, 94);">Choose from these gift cards and many more after you order!</h4>
<p style="text-align: center; color: rgb(153, 153, 153); font-size: 10px; width: 75%; margin: auto;">
**Gift card offer with annual rate plan only. Customer must activate and return signed monitoring agreement within 30 days of purchase in order to qualify. Offer only valid if order is placed online.<br>
The listed merchants are in no way affiliated with sponsor company nor are the listed merchants considered sponsors or co-sponsors of this program. Uses of merchant names and/or logos are by permission of each respective merchant and all trademarks are the property of their respective owners. Terms and conditions are applied to gift cards/certificates. Please see the merchant gift card/certificate for additional terms and conditions, which are subject to change at merchant's sole discretion. Merchants are not liable for any actual or alleged claims related to this offer. All logos are registered trademarks. All rights reserved. Must be 18 years or older to participate. A U.S. address is required for delivery. Other restrictions may apply.
</p>
</div>
<!-- End Gift card-->
<?php include($ABS_path . "/footer.php");
get_footer(); ?>

View File

@@ -57,8 +57,6 @@ global $wpdb,$post;
$product_wp_id=$post->ID;
$product_db_id=callDBStored($wpdb->prepare("call IPER_MA_PRODUCT_GET_ID_BY_WPID(%d)",$product_wp_id),true);
$product_db_id=$product_db_id->idPRODUCT;
/*$cookie_name = "sel_product";
$cookie_value = get_the_title($post->ID);