Developer forum

Forum » Ecommerce - Standard features » Chargelogic gateway bug change cart to order without finishing

Chargelogic gateway bug change cart to order without finishing

António Ramos
Reply

Hi guys,

We noticed a strange situation when we go to render the gateway template, the gateway change the ecom from cart to order. I setup a local solution with all recent DW Templates and database and i reproduce the issue. Please see the screencast: 

http://screencast.com/t/HYfQC5eU3v0

When the ecom order is changed to "order" we can't continue addin product or do any change in the cart because it's finished.

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply

It is not strange, but exactly as designed.

When we pass the cart to the checkout handler (and hence the payment gateway) we need to pass the ordernumber as well. Most checkout handlers requires that.

That means that just before the checkout step, the cart is converted to an order (changing the ID from cart# to order#, setting the IsCart to false) - but the order still has a property called OrderIsComplete that is false meaning that the checkout has not been finalized.

if a user cancels the payment, the order is converted back to an order, and gets a new order number when checkout is retried.

BR Nicolai

 
António Ramos
Reply

Hi Nicolai,

Thanks for the info. But in this case it seems that the order is not converted back to cart. All the cart info is lost and the client losses data.

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

Have you made changes to the post template? And sure you use the right one?

Updated to the latest changes of chargelogic?

If so, we need a case with URL and steps to reproduce and we will take a look.

BR Nicolai

 
António Ramos
Reply

Hi Nicolai,

As i said in the first comment, I setup a local solution with all the most recent templates from the download section (Application(8.8.1.4).zip and DefaultEmptyData871SQL.zip). 

I didn't do any changes in the post template and the steps to reproduce are in the screencast at the first comment.

BR,

António Ramos

 

 
António Ramos
Reply

Hi Nicolai,

Do you have any change to see this? Or someone in your team.

Thanks,

Best regards,

António ramos

 
António Ramos
Reply

bump

 
Nicolai Høeg Pedersen
Reply

This is how it is designed... In your video you do not click "Cancel" in the payment window, but click back in the browser window - that is why it will delete the cart. You can set the checkbox "Keep cart in context when checking out" in MC to avoid that - but it depends on what you want if that is a good idea.

You cannot run gateway related code with all features on a local machine since the gateway cannot communicate back to your solution, so you have to test on a url that can be reached b y the gateway.

 
António Ramos
Reply

Hi Nicolai,

Thanks for you answer. I double checked the default templates for charge logic and i don't see any cancel button. Do you have ideia of what needs to be done in the template, to trigger the reverse the order to cart (maybe an paremeter action XX)? 

I just setup local only to reproduce this behaviour with the default DW Templates. 

Thanks,

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

I would not know... There is a cancel template on the Chargelogic provider.

I would go read the documentation on their site.

 
António Ramos
Reply

Hi Nicolai,

I don't know if we are with the same picture here but does not seem right to see their documentation for one provider that was built by Dynamicweb and after all needs the DW behavior to reverse from order to cart. 

Additional notes:

  • The cancel template is only for showing the error
  • If you see the Authorize.net payment template you can see that there is one cancel button which change the parameter AuthState, and is a similar behavior I'm asking to make sure the order is reversed to cart correctly.

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

We do not have the same picture.

I will not add Chargelogic documentation to our site - our implementation is documented here: http://manual.dynamicweb-cms.com/Default.aspx?ID=7663 and if it is not in the manual, we do not support it.

Of course you have to look in the ChargeLogic documentation if you need to change behavior. It is the payment gateway that renders the fields and you can change it all you want as long Chargelogic supports it.

 

You must be logged in to post in the forum