Jump to content

BackOffice new command issue doubles product quantity


missill

Recommended Posts

Hi everybody,

 

I don't know if i'm in the good section but here is my problem.

 

In the back office of presta (v 1.6.1.4) with my admin access, i want to create a new order for a customer and when i want to add some products, the quantity of the product in the cart is multiplied by 2 !

 

And if i fill a custom field, the product quantity is always multiplied by 2 but its quantity is not displayed with the good value ! (CF attachment)

 

I'd like to know what files i have to see or edit to resolve this issue.

 

Thanks for any helping.

 

Cheers,

 

Alexis.

 

----------------------------------------- DEBUGGING ------------------------------------------

 

1 - I found this file from adminxxxx/themes/default/template/controllers/orders/form.tpl

and i put console.log on submit adding product button. (CF attachment 2)

I chose several attributes for my product and when i clicked on submit, an ajax request was build but after the first ajax request ending, a second ajax request was launched with this time the first attributes of the list....In fact, the quantity isn't multiplied by 2 but two ajax are submitted but why ???

 

2 - I found this function 

	//Called from form_customization_feedback.tpl
	function customizationProductListener()
	{
		//refresh form customization
		searchProducts();

		addProductProcess();
	}

I don't how it works but if i comment addProductProcess function, i have no more issues ! great but how it's possible ?? I'm the only one to have this strange error ?

post-1226366-0-54835900-1486652848_thumb.png

post-1226366-0-81686900-1486657563_thumb.png

Edited by missill (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...