Guest checkout on different location, different IP, user data display

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
10 months 3 days ago #358373

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.3
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : no error message

Hi, we had do some tricks on guest checkout to skip the EMAIL filling steps and only fill in name + contact number

we prefill the email using jquery and hide the field during checkout

however, we face a problem randomly user A is seeing user C name and phone while go to checkout

any pieces of code we need to check to optimize this?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 3 days ago #358374

Hi,

It could be a caching issue. Or it could be related to how your code is made.
Its hard to say like that since we don't know what you did to reach this situation.

Please Log in or Create an account to join the conversation.

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
10 months 3 days ago #358385

jQuery(document).ready(function() {
  
  

    jQuery("#register_email").val("xx@xxx.com");
    jQuery(".hkform-group.control-group.hikashop_registration_email_line").hide();

    // Attach a change event handler to the radio buttons
    jQuery("input[name='data[register][registration_method]']").change(function() {
        // Check if the radio button with value 2 is checked
        if (jQuery(this).val() === "2") {
            // If yes, fill in the email
            jQuery("#register_email").val("xx@xxx.com");
            jQuery(".hkform-group.control-group.hikashop_registration_email_line").hide();
        } else {
            // If not, you can optionally clear the email field
            jQuery("#register_email").val("");
			jQuery(".hkform-group.control-group.hikashop_registration_email_line").show();
        }
    });


 

});  

we added these code into checkout / sub_block_login_registration.php

dont think it is related

when every one using guest checkout, they all share the same email, would like to know how the system if it should load the account and address or not

Last edit: 10 months 3 days ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 3 days ago #358386

Hi,

If everyone share the same email address, that's a problem.
I would recommend providing a different email address for each user.
You could for example use Date.now() to get a number unique to each user and use that number when setting the email address.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum