Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
138
rated 0 times [  143] [ 5]  / answers: 1 / hits: 16210  / 13 Years ago, thu, september 22, 2011, 12:00:00

Currently trying to get onepage checkout working properly on an installation of Magento 1.6.0.0.



Each step works fine until the final review order box, the Place Order button gives the error review not defined, when trying to fire the review.save() OnClick event.



The following script should create this review object. It's in the same file as the button, and is called via AJAX when the user reaches the final step of the order process. If I access the file directly, this code is executed and the object created, it's only when it's pulled in by the checkout page that it doesn't run.



<script type=text/javascript>
//<![CDATA[
review = new Review('http://example.org/checkout/onepage/saveOrder/', 'http://example.org/checkout/onepage/success/', $('checkout-agreements'));
SageServer = new EbizmartsSagePaySuite.Checkout
({
'checkout': checkout,
'review': review,
'payment': payment,
'billing': billing,
'accordion': accordion
});
//]]>
</script>


I can't seem to find anyone else who's encountered this problem, every version of this code (from various different modules) does it in this manner, so I'm not sure why this JS isn't being executed.



Does anyone have any ideas?


More From » magento

 Answers
24

Is this an upgrade? If so, try this: http://sree.cc/magento_ecommerce_tips/checkout-not-working-on-magento-version-1-4-x
Try even if it's not an upgrade. I fixed that exact same issue several times with this solution.



I would do a diff. with a software like WinMerge. Check the differences on your checkout design folders, and the base Magento one.



app/design/frontend/base/default/template/checkout
vs.
app/design/frontend/default/YOUR_THEME/template/checkout



also check the XML file:
app/design/frontend/base/default/layout/checkout.xml
vs.
app/design/frontend/default/YOUR_THEME/layout/checkout.xml



Hope this helps.



Francois


[#89972] Wednesday, September 21, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kristopher

Total Points: 58
Total Questions: 103
Total Answers: 102

Location: Netherlands
Member since Thu, Jul 1, 2021
3 Years ago
;