Welcome to Arkana Home Care Store!

 Free shipping on orders over £50!

Continue to Checkout

[insert_php]

global $wpdb;

global $current_user;

$my_id_user = $current_user->ID;

global $wp;
$my_home_url = home_url( $wp->request );
$my_home_url = str_replace(‘/continue-to-checkout’, ”, $my_home_url);
$my_home_urlo = $my_home_url;
$my_home_url = $my_home_url . “/basket/”;
$my_home_urlo = $my_home_urlo . “/survey/”;

$action = empty( $_REQUEST[‘wp_poll_an’] ) ? ” : $_REQUEST[‘wp_poll_an’];

$my_Query_y = “SELECT * FROM wp_poll_ex WHERE user_id = ” . $my_id_user;

$my_id_check = $wpdb->get_row( $my_Query_y );
$my_id_to_check = $my_id_check->id;

if(isset($my_id_to_check)) {

echo(“Please select answer, before continuing“);

}else{

if ($action === “Internet / Social platforms” || $action === “Natalia Szyszka” || $action === “Oasis Beauty / Agata Sawczuk” || $action === “Beauty Secret SPA”){
$wpdb->insert(
‘wp_poll_ex’,
array(
‘user_id’ => $my_id_user,
‘poll_answer’ => $action
),
array(
‘%s’,
‘%s’
)
);

echo(“Continue to Checkout“);

}else{

echo(“Please select answer, before continuing“);
}
};

[/insert_php]

Find us on Instagram