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

#   Edit Cart Username

##

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#234709](#234709) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234709 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")* was created by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

Hi
When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.

I have checked the database and cleared all cache but the problem remains.

It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.

Help would be much appreciated.
Kind regards, Bob

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#234727](#234727) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234727 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Update: Updated to latest version 2.6.1 but still have this problem.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#234747](#234747) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234747 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

I just tried on my local and I don't have this issue. Do you have overrides for the backend cart views ?
Are the customers existing and with the correct ID in database ?

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#234804](#234804) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234804 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

No backend overrides Xavier. Not sure how to tell if the correct ID is set. I simply choose the user from the list presented, but a different user populates the form instead.
Would you be willing to register at the site for me to set you admin rights?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#234820](#234820) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234820 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

You can directly create an account for us and send us the informations via our contact form with a link to this topic in your message.
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#234887](#234887) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234887 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Thanks Xavier - contact form sent with login details.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#234895](#234895) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234895 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

The given account does not allow me to reach the backend and so see the issue.
Could you grant the access for this account ?

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago -  10 years 7 months ago [\#234970](#234970) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234970 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Sorry - now sorted the back end access for the user on the contact form - thanks for your patience.

Last edit: 10 years 7 months ago by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#234982](#234982) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#234982 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

I am not able to reproduce the issue. When I add a customer to the cart, the correct customer is added.
Even when I add a customer form the third page of the list, no problems.

ps: after a second attempt it seems that if you select a customer, then another one it is not working as expected. So in this case you have to close the cart edition page (go back on the listing) and open again the cart page and set the customer.

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago -  10 years 7 months ago [\#235084](#235084) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235084 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Yes - that's exactly what we experience too.

What we want to do is create a cart using one of our own staff accounts, with the same ACL (determined by User Group) as the customer, from the front end. Then assign that cart to the customer, ready for when they login.

But when we switch from one of our Staff Accounts (often we use Testdealer for our wholesale customers) and try to select one customer, another is chosen instead. It seems like the relationship between User Group and Customer isn't working correctly.

A good example is Testdealer (ID80, used to create the cart) then assign it to one wholesale customer, Nickb (ID632). When we select Nickb, who is also a member of the ACL Group Dealers (ID10) a seemingly random user is selected instead.

Last edit: 10 years 7 months ago by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile"). Reason: Further explanation

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 7 months ago [\#235121](#235121) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235121 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

> Xavier wrote: Hi,
> ps: after a second attempt it seems that if you select a customer, then another one it is not working as expected. So in this case you have to close the cart edition page (go back on the listing) and open again the cart page and set the customer.

if I understand this issue correctly, it is the same issue I had in the past.
When you select customer for the cart, there is a race condition.
Click on the button fire 2 requests: submit form and parent window reload Code:

&lt;button onclick="hikashop.submitform('customer_save', 'hikashop_form'); window.parent.location.reload();" &gt;..&lt;/button&gt;

if form submit is faster, everything is ok. Otherwise you have to reopen the cart.
In case you saved cart before, parent reload will replay post request and if form submit is faster, then previous customer is saved again.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#235197](#235197) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235197 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

So please try to replace the code: Code:

window.parent.location.reload(); [code] By: [code] setTimeout(function(){ window.parent.location.reload(); },1500);

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#235210](#235210) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235210 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Thanks Xavier. But I'm not sure if this code is for me or Korso, and where it needs to go...

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 7 months ago -  10 years 7 months ago [\#235217](#235217) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235217 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

> Xavier wrote: Hi,
>
> So please try to replace the code:
>
> Code:
>
> window.parent.location.reload(); [code] By: [code] setTimeout(function(){ window.parent.location.reload(); },1500);

This will not work as form submission will cancel setTimeout before it could execute. It should work with value 200-500, but again, if you saved cart before, it will reload last post request and save again old value.
I spent a lot of time with this and ended up with solution:
1. Hide customer part if $this-&gt;cart-&gt;cart_id is not set
2. In parent window add js function to redirect to cart form and call it from iframe

Last edit: 10 years 7 months ago by [korzo](/forum/user/34428-korzo "View korzo's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#235224](#235224) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235224 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

You're right, my code could not be working fine.
Please edit the file "administrator/components/com_hikashop/controllers/cart.php" and replace the function "customer_save()" by: Code:

public function customer_save() { $class = hikashop_get('class.cart'); if( $class === null ) return false; $cart = new stdClass(); $cart-&gt;cart_id = JRequest::getVar('cart_id','0'); $cart-&gt;user_id = JRequest::getVar('user_id','0'); $cart-&gt;session_id = JRequest::getVar('session_id','0'); $cart-&gt;cart_type = JRequest::getVar('cart_type','cart'); $status = $class-&gt;save($cart); if($status){ JRequest::setVar('cid',$status); $js = 'parent.window.location.href=\''.hikashop_completeLink('cart&amp;task=edit&amp;cart_type='.$cart-&gt;cart_type.'&amp;cid[]='.@$status,false,true).'\';'; }else{ $js = 'parent.window.location.reload();'; } if(!headers_sent()){ header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); } echo '&lt;html&gt;&lt;head&gt;&lt;script type="text/javascript"&gt;'.$js.'&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;'; exit; }

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago -  10 years 7 months ago [\#235258](#235258) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235258 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Sorry Xavier - that doesn't seem to have effected any change with my original issue. The same strange behaviour remains - spurious customer saved instead of the one I chose from the list.

Last edit: 10 years 7 months ago by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#235266](#235266) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235266 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

Please provide a ftp access via our contact form. (with url to this topic in the message)
I will debug this on your end directly.

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#235374](#235374) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235374 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Thanks Xavier. FTP Access details via form sent to you.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#235436](#235436) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235436 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Hi,

I am not able to connect to your FTP. Could you check this ?

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

10 years 7 months ago [\#235463](#235463) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[Edit Cart Username](/forum/33-customers/883453-edit-cart-username#235463 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi When I try to change the user name for a cart (at the back end) the user I select is replaced with a random user.  I have checked the database and cleared all cache but the problem remains.  It is a useful method for us when we want to create an order for a customer. We load a cart logged in as a Test-User and then, when we are happy, go to the back-end and change the user for that cart. But at the moment we cannot select the user we want. We can see the user we want, but on confirm a different user is selected.  Help would be much appreciated. Kind regards, Bob")*

Just checked and sent corrected details via form - sorry Xavier, all thumbs today!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84ODM0NTMtZWRpdC1jYXJ0LXVzZXJuYW1lP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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.134 seconds

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