WebSite X5Help Center

 
Peter W.
Peter W.
User

UNDEFINED TOTAL IN CHECKOUT TO PAYPAL  en

Author: Peter W.
Visited 3569, Followers 2, Shared 24  

UNDEFINED TOTAL IN CHECKOUT TO PAYPAL

Dear Incomedia I have the above problem ( you know about it from other posts i'm sure) and it is causing my customers to abort on checkout as the paypal page fails (because of the undefined total). I need this to be fixed permanently, is there a temporary fix (apart from switching to beta) so that i can continue trading? In essence, my e-commerce website is currently useless You have fixed it in the beta so why not release a proper update ? This is poor customer service. This is the second time in 6 months that website x has let me down with silly glitches relating to the checkout total, but this one renders all e-commerce USELESS. I am seriously considering ditching this program and going for something more reliable. Please advise Pete

Posted on the
14 ANSWERS
Peter W.
Peter W.
User
Author

Hi Ricardo

I would prefer not to go to beta as other things may not work

Please explain to me how to fix my problem with the cart, I cannot follow the post above, it makes no sense to me.

How long before a proper update?

thanks

Pete

Read more
Posted on the from Peter W.
Peter W.
Peter W.
User
Author

Hi Ricardo

This hasnt worked for me, the total still shows as undefined unless i (or customer) refreshes the page. I have tried replacing the files in res folder of main website and of project, but it doesnt work

When is the main update going to be available???

Read more
Posted on the from Peter W.
Der Zwoemti
Der Zwoemti
Moderator

Look at the date of the linked post. This is an old fix!

Take the file and change the x5cartengine.js two sections as below:

// Payment html += "<br />" + x5engine.l10n.getLocalization('cart_step2_shiplist') + "<br /><br /><table id=\"imCartPaymentsTable\">"; html += "<tr class=\"imCartHeader\"><td colspan=\"2\">" + x5engine.l10n.getLocalization('cart_payment') + "</td><td>" + x5engine.l10n.getLocalization("cart_price") + "</td></tr>"; var payments = x5engine.imCart.payments; for (var i = 0; i < payments.length; i++) { var price = payments[i].price || 0; if (payments[i].vat != null) price += price * payments[i].vat; html += "<tr><td style=\"width: 5%\"><input type=\"radio\" name=\"imPaymentType\" value=\"" + i + "\" id=\"cart_payment_" + i + "\" " + ((x5engine.imCart._getPayment() == i && x5engine.imCart.email_data.payment != null) ? "checked" : "") + "/></td><td style=\"width: 80%\"><label for=\"cart_payment_" + i + "\"><b>" + payments[i].name + ":</b> " + payments[i].description + "</label></td><td style=\"width: 15%; text-align: right;\">" + ((price > 0) ? x5engine.imCart._setCurrency(price) : "-") + "</td></tr>"; str_eval += "_jq('#cart_payment_" + i + "').unbind('click').click(function () { x5engine.imCart.updatePayment(" + i + ", " + total_quantity + ", " + total_weight + ")});"; if (x5engine.imCart._getPayment() == i) { total_vat += price; x5engine.imCart.updatePayment(i, total_quantity, total_weight); } } html += "</table>"; // Shipping html += "<br /><table id=\"imCartShippingsTable\">"; html += "<tr class=\"imCartHeader\"><td colspan=\"2\">" + x5engine.l10n.getLocalization('cart_shipping') + "</td><td>" + x5engine.l10n.getLocalization("cart_price") + "</td></tr>"; var shippings = x5engine.imCart.shippings; for (var i = 0; i < shippings.length; i++) { var price = x5engine.imCart._getShippingPrice(shippings[i], x5engine.imCart.product_price_plus_vat, total_quantity, total_weight); html += "<tr><td style=\"width: 5%\"><input type=\"radio\" name=\"imShippingType\" value=\"" + i + "\" id=\"cart_shipping_" + i + "\" " + ((x5engine.imCart._getShipping() == i && x5engine.imCart.email_data.shipping != null) ? "checked" : "") + "/></td><td style=\"width: 80%\"><label for=\"cart_shipping_" + i + "\"><b>" + shippings[i].name + ":</b> " + shippings[i].description + "</label></td><td style=\"width: 15%; text-align: right;\">" + ((price > 0) ? x5engine.imCart._setCurrency(price) : "-") + "</td></tr>"; str_eval += "_jq('#cart_shipping_" + i + "').unbind('click').click(function () {x5engine.imCart.updateShipping(" + i + ", " + total_quantity + ", " + total_weight + ");});"; if (x5engine.imCart._getShipping() == i) { total_vat += price; x5engine.imCart.updateShipping(i, total_quantity, total_weight); } } html += "</table><br />";

On completeness of the code I can give no guarantees - it may be that the forum cut something - so save file before the change! 

Read more
Posted on the from Der Zwoemti
Peter W.
Peter W.
User
Author

hi Der Zwoemti

I dont really understand how to change the file to the above code and to be honest it shouldnt be necesarry if incomedia were doing there job properly! this program has given me so much grief! why dont they just acknowledge the problem and give a proper fix. this is supposed to be a simple to use drag and drop website design program and i shouldnt have to be dabbling with the html code (although i always enjoy learning new tricks!).

If you could talk me through which file (the main program fiel or my website file) to change and how to do it, i would be grateful and will give it a go.

INCOMEDIA PEOPLE - WHAT ARE YOU GOING TO DO ABOUT THIS. IT IS DISGRACEFUL AND I WISH I HAD NEVER BOUGHT THIS SOFTWARE!

Read more
Posted on the from Peter W.
Der Zwoemti
Der Zwoemti
Moderator

I understand you very well;-)

It is enough if you replace the file on your webspace / editing.
In the appendix the modified file!

Read more
Posted on the from Der Zwoemti
LogoLogics A.
LogoLogics A.
User

Hello Peter,

I can recommend doing the beta testing/update.

I had a lot of problems with the payments too, ( also undefined total amongst others ) and it seems to be fixed with the Beta version.

JUst make sure you keep a copy of your projects, that will not be opened in the Beta version, and if possible do the installation of Beta only on one computer and keep a stable version on another, just in case.

I did it yesterday and for now all works fine in the Beta and the issue seems to be fixed.

Good luck!

Read more
Posted on the from LogoLogics A.
Der Zwoemti
Der Zwoemti
Moderator

Yesthis maybe anything.Butitcan not be thathere is aBETAtestmust be usedtofixthe problem.ThisMUSTbe rectifiedimmediatelyand not afterweeks ofbetaphase.

Whatbrings you theassuranceprojectifyou arein the betahavebeenmany changesin the project.This mustfirst bere-importedandcomplicatedchanges.

Hereis a simpleFILEFIXbettersuitedfornothing elseis changedinthe betaversion.Therearejust otherfilesusedhave changed.

Further up thetopicwasthisdone that beforebutthereisan oldpostofanythinglinked tothe current betahasto be done.

Read more
Posted on the from Der Zwoemti
Nigel W.
Nigel W.
User

replacing the supplied xcartengine.js file above on my live site solved the UNDEFINED problem for me. 

I think the Checkout process needs an optional additional step between step 4 and step 5 to allow payment to be made BEFORE the confirmation of order is processed. It doesnt make sense to sence order before payment. Will post this as seperate suggestion

Read more
Posted on the from Nigel W.
Peter W.
Peter W.
User
Author

I agre Nigel, the cart is far from ideal. I have gone down the beta route now, against my better judgement.

I just think the support from incomedia is poor....

Read more
Posted on the from Peter W.
LogoLogics A.
LogoLogics A.
User

Hi Nigel,

I agree. I solved this more or less, by inserting the message in the confirmation order to the client, that his order will be annuled if there was no ideal payment.

But it is a compromise, this option should be changed by Incomedia, for it's not logical to confirm the order, BEFORE the payment is done.

Read more
Posted on the from LogoLogics A.
LogoLogics A.
LogoLogics A.
User

This replacing of file ( x5cartengine.js ) needs to be on the domein itself, and if so, is it not overwritten as soon as we publish again?

Read more
Posted on the from LogoLogics A.
Incomedia
Riccardo P.
Incomedia
LogoLogics A.
This replacing of file ( x5cartengine.js ) needs to be on the domein itself, and if so, is it not overwritten as soon as we publish again?

Hi,

yes, you need update your version of 9.0.7.1794 than delete the site online, re export all site in your webspace.

Read more
Posted on the from Riccardo P.