Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have to write my own plugin to stop that annoying bot from submitting their orders to my store.

    I do not understand why they have to submit orders. I also sent abuse email to google for the ip address. it is 100% abuse for them to be submitting orders. it is okay for them to add the items and leave it in their shopping carts, but auto clicking on submit button is big NO!!!!

            //split up email  
    $split = explode('@', $data['billing_email']);
    $euser = $split[0];
    $edomain = $split[1];



    if ($edomain == "storebotmail.joonix.net") {
    $errors->add( 'validation', "STOP ORDERING FROM MY STORE!!! I KNOW YOU ARE SPAMMING BOT FROM GOOGLE OR SOMETHING");
    $failed = true;
    $first_name = sanitize_text_field($data['billing_first_name'] ?? '');
    $last_name = sanitize_text_field($data['billing_last_name'] ?? '');
    $phone = sanitize_text_field($data['billing_phone'] ?? '');
    $email = sanitize_email($data['billing_email'] ?? '');
    $user_ip = $_SERVER['REMOTE_ADDR']; ///sanitize_text_field($data['customer_ip_address'] ?? ''); //$_SERVER['REMOTE_ADDR']
    ///$order_edit_url = admin_url('post.php?post=' . absint($order_id) . '&action=edit');
    $address_1 = sanitize_text_field($data['billing_address_1'] ?? '');
    $address_2 = sanitize_text_field($data['billing_address_2'] ?? '');
    $city = sanitize_text_field($data['billing_city'] ?? '');
    $state = sanitize_text_field($data['billing_state'] ?? '');
    $postcode = sanitize_text_field($data['billing_postcode'] ?? '');
    $country = sanitize_text_field($data['billing_country'] ?? '');
    $payment = sanitize_text_field($data['payment_method'] ?? '');
    $paymenttitle = sanitize_text_field($data['payment_method_title'] ?? '');
    $address_parts = array_filter([$address_1, $address_2, $city, $state, $postcode, $country]);
    $customer_address = implode(', ', $address_parts);

    $date = date("m-d-y h:m:s A");
    $agent = $_SERVER['HTTP_USER_AGENT'];
    $ipreal = $_SERVER['HTTP_X_REAL_IP'];
    $ipfwd = $_SERVER['HTTP_X_FORWARDED_FOR'];
    $iprem = $_SERVER['REMOTE_ADDR'];
    $referer = $_SERVER['HTTP_REFERER'];

    $subject = "[elys.store] Someone tried to order with bad email - failed email verification!";

    $message = "email test result: \n";
    $message .= "result: ".$result."\n";
    $message .= "reason: ".$reason."\n";
    $message .= "email: ".$emailtested."\n";
    $message .= "emaildomain: ".$emaildomain."\n";
    $message .= "disposable: ".$disposable."\n";
    $message .= "accept_all: ".$accept_all."\n";
    $message .= "role: ".$role."\n";
    $message .= "free: ".$free."\n";
    $message .= "mx_record: ".$mx_record."\n";
    $message .= "mx_domain: ".$mx_domain."\n";
    $message .= "safe_to_send: ".$safe_to_send."\n";
    $message .= "\n";
    $message .= "name: ".$first_name." ".$last_name."\n";
    $message .= "phone: ".$phone."\n";
    $message .= "email: ".$email."\n";
    $message .= "ip address: ".$user_ip."\n";
    $message .= "address1: ".$address_1."\n";
    $message .= "address2: ".$address_2."\n";
    $message .= "city: ".$city."\n";
    $message .= "state: ".$state."\n";
    $message .= "postcode: ".$postcode."\n";
    $message .= "country: ".$country."\n";
    $message .= "payment method: ".$payment."\n";
    $message .= "\n";
    $message .= "Items:\n";
    //get cart items//
    foreach ( WC()->cart->get_cart() as $cart_item ) {
    $item_name = $cart_item['data']->get_title();
    $quantity = $cart_item['quantity'];
    $price = $cart_item['data']->get_price();
    $message .= "item: ".$item_name." quantity: ".$quantity." price: ".$price."\n";
    }
    $message .= "\n";
    $message .= "Total Price: ".WC()->cart->total."\n";
    $message .= "\n";
    $message .= "DATE & TIME: ".$date."\n";
    $message .= "HTTP_X_REAL_IP: ".$ipreal."\n";
    $message .= "HTTP_X_FORWARDED_FOR: ".$ipfwd."\n";
    $message .= "REMOTE_ADDR: ".$iprem."\n";
    $message .= "AGENT: ".$agent."\n";
    $message .= "HTTP_REFERER: ".$referer."\n";

    wp_mail("replace with your email here", $subject, $message);

    }
    Thread Starter elymbmx

    (@elymbmx)

    How do I increase the limit on your website? I register an account?

    Thread Starter elymbmx

    (@elymbmx)

    The issue is in style.css in the css folder.

    I fixed this issue by commenting out and put padding.

    
    /* elys mod - made images not be cropped! */
    .woocommerce div.product div.images .flex-control-thumbs li, .woocommerce div.product div.images .flex-control-thumbs li {
    	padding: 3px;
    }	
    
    /*
    .woocommerce div.product .flex-viewport {
        width: 100%; ///was 83% is what cropping the images!!! 
        float: right;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs, .woocommerce div.product div.images .flex-control-thumbs {
        width: calc(17% - 1em);
    }
    
    .woocommerce div.product div.images .flex-control-thumbs, .woocommerce div.product div.images .flex-control-thumbs {
        width: 17%;
        width: -webkit-calc(17% - 1em);
        width: calc(17% - 1em);
    }
    
    .woocommerce div.product div.images .flex-control-thumbs li, .woocommerce div.product div.images .flex-control-thumbs li {
        width: 100%;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs li, .woocommerce div.product div.images .flex-control-thumbs li {
        margin-right: 1em;
        margin-bottom: 1em;
    }
    */
    
Viewing 3 replies - 1 through 3 (of 3 total)