[Skip to main content](#vessel-content)

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

##

- **[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")**
- [![ler@singmuiheng.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile") Topic Author
- [ Offline](/forum/user/3330-ler-singmuiheng-com)

Less More

- Posts: 575
- Thank you received: 11
-
-

2 years 10 months ago [\#358373](#358373) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  *[Guest checkout on different location, different IP, user data display](/forum/27-checkout/907613-guest-checkout-on-different-location-different-ip-user-data-display#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?")* was created by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzYxMy1ndWVzdC1jaGVja291dC1vbi1kaWZmZXJlbnQtbG9jYXRpb24tZGlmZmVyZW50LWlwLXVzZXItZGF0YS1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86582
- Thank you received: 14322
-
-

2 years 10 months ago [\#358374](#358374) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Guest checkout on different location, different IP, user data display](/forum/27-checkout/907613-guest-checkout-on-different-location-different-ip-user-data-display#358374 "-- 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?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzYxMy1ndWVzdC1jaGVja291dC1vbi1kaWZmZXJlbnQtbG9jYXRpb24tZGlmZmVyZW50LWlwLXVzZXItZGF0YS1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")**
- [![ler@singmuiheng.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile") Topic Author
- [ Offline](/forum/user/3330-ler-singmuiheng-com)

Less More

- Posts: 575
- Thank you received: 11
-
-

2 years 10 months ago -  2 years 10 months ago [\#358385](#358385) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Guest checkout on different location, different IP, user data display](/forum/27-checkout/907613-guest-checkout-on-different-location-different-ip-user-data-display#358385 "-- 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?")*

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](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzYxMy1ndWVzdC1jaGVja291dC1vbi1kaWZmZXJlbnQtbG9jYXRpb24tZGlmZmVyZW50LWlwLXVzZXItZGF0YS1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86582
- Thank you received: 14322
-
-

2 years 10 months ago [\#358386](#358386) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Guest checkout on different location, different IP, user data display](/forum/27-checkout/907613-guest-checkout-on-different-location-different-ip-user-data-display#358386 "-- 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?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzYxMy1ndWVzdC1jaGVja291dC1vbi1kaWZmZXJlbnQtbG9jYXRpb24tZGlmZmVyZW50LWlwLXVzZXItZGF0YS1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
