- Posts: 575
- Thank you received: 11
Guest checkout on different location, different IP, user data display
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
2 years 10 months ago #358373
by ler@singmuiheng.com
Guest checkout on different location, different IP, user data display was created by ler@singmuiheng.com
-- 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?
-- 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.
2 years 10 months ago #358374
by nicolas
Replied by nicolas on topic Guest checkout on different location, different IP, user data display
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.
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.
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
- Posts: 575
- Thank you received: 11
2 years 10 months ago - 2 years 10 months ago #358385
by ler@singmuiheng.com
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
Replied by ler@singmuiheng.com on topic Guest checkout on different location, different IP, user data display
Code:
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: 2 years 10 months ago by nicolas.
Please Log in or Create an account to join the conversation.
2 years 10 months ago #358386
by nicolas
Replied by nicolas on topic Guest checkout on different location, different IP, user data display
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.
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.062 seconds