How can I generate an error in magento to fail checkout? - magento

I'm a magento front-end developer and I need to style the failed checkout page, but I don't know how to get to it, anyone?

After following the quick core code change shown here
Go to Mage_Checkout_OnepageController::successAction()
Comment the line $session->clear();. Now you can make one order and
refresh the page as often as you like.
for styling the success page, simply put through a test order and once you are on the success page just change the url from /checkout/onepage/success/ to /checkout/onepage/failure/
Don't forget to undo your modification to the core code to avoid the death penalty!

Related

How to remove checkout progress bar from one page checkout of magento only at login step

I am working on a project where client wants to remove progress bar only from login or register screen, I mean 'opc-login' step.
If I remove from xml 'checkout_onepage_index', it will remove from whole checkout. I just need for one step.
Tried to do it using css and jquery but its not working.
Below is my code in onepage.phtml
if(checkout.accordion.currentSection=='opc-login'){
alert('at login');
jQuery('#checkout-progress-wrapper').hide();
alert('after hide');
}else{
alert('other than login step');
jQuery('#checkout-progress-wrapper').show();
alert('after show');
}
alerts are working correct but don't know why hide and show are not doing their job.
Is there any other way to achieve this simple task.
Okay I found the issue. onepage.phtl is being called before right panel (progress.phtml).
So I moved code in progress.phtml and it works like charm.
But is there any better way to do this ?

PayPal Website Payments Standard Error

I currently have my online store set up using Magento and i’m adding my products, I’ve tried to implement the PayPal Website Payments Standard but there is an error. When the user has passed through to the checkout section, after entering all their details, they fail to submit the order. The button is pressed to confirm order and redirect to the PayPal payment stage, the button will load saying that it's submitting the information, but nothing happens, it starts processing, then never goes through to the page. I've checked that the extension for Mage_paypal is enabled and it is.
If you would like try purchasing one of the test products on www.scarletkisses.com at the moment, you’ll be able to see what I mean.
Thanks.
2 things ..
Make sure that you have index management and cache management done
Try disabling and then enabling Mage_PayPal Module[Reindex the magento database after that]

Magento checkout cart feature control

I have a site, 1.5 magento, and the cart functionality (and the customer account functionality) seem to be disabled. When i attempt to go to the url 'checkout/cart', just the homepage displays.
Ive checked all the usual suspects..including:
checked the url_rewrites table (there is one entry in their referencing checkout/cart...but goes from checkout/cart to checkout/cart, so dont see this is an issue, but did edit it just to rule it out)
enabling/disabling of the module itself, looking at both the etc/modules files and removing, and checking the module listing in system->config->advanced area.
trying to step through the code..try detect where the change over of pagedata occurs - struggling here.
looking for certain terms in the codebase...and database SQL file.
the htaccess file, looking for a rewrite
local/community modules..and any rewriting of the checkout
Im starting to think a hack is in place here to show the homepage when visiting checkout url. The url : www.mysite.co.uk/checkout/cart remains in the address bar, but i see homepage data.
Anyone know where else i can check...or easily locate the cause of this issue?
Many thanks
S
Did you look in backend under Configuration -> Sales -> Checkout ?
There is a field called "Enable One-Page Checkout" which has to be enabled. If you disable it, your store will just run fine but neither registered customers nor guests can check out anymore.
Turns out this was rewrites added to the rewrite table manually. Didnt find them at first.

Magento 'place order' redirects to shopping cart

Every time I try to place an order rather than an order actually being placed I simply get redirected to the shopping cart.
Paypal express works fine however paypal standard payments gets the problem as above.
Lucas
You have to examine the ajax request. You can use Firefox with the "HTTPfox" extension to track the single requests. Just look for the step, where the redirect is executed - and start the http tracker. Then you see the response.
In the response you can see, what went wrong. I've got this error some weeks ago and it printed a full html page (with the report-number you can look up in the var/log/reports folder) or you can see a php error (maybe syntax error or bad sql query for example). If you get a blank page, you have to set the error_reporting to E_ALL.
I thinkk that step is help.
Log into Magento Admin
Hover over "System" Click "Configuration"
On the next page in the left menu under "Advanced"
Under the check "Mage_Paypal" is Enable or Disable. if is Disable then Enable this options.
Then After the paypal is not redirect to paypal site. then please check your template code.
hope this will sure help you

Magento is redirecting to cart when continuing from Billing info

Whenever I add an item to the cart, then checkout, I choose register or checkout as guest. Then I enter the billing information and click continue. It always redirects back to the cart. I have not been able to figure out why.
Example is here: http://38.98.53.62
Thanks
Thank you for posting the address, it makes it a lot easier to see.
On clicking continue there is an AJAX request which comes back with an error. The checkout javascript jumps back to a predetermined failureUrl on a server error which is what you are seeing. The error message will most likely be stored in var/report so go look at the most recent file there and see what the problem is. Update your question with it if you're still stuck.
P.S.
You have the following in your theme:
$.noConflict();
jQuery.noConflict();
The first of the two lines causes an error and is superfluous anyway, it is not related to the checkout problem but it doesn't do to tempt fate.
Hope this works for you, basically have mcrypt installed. Apparently it’s needed for the password encryption to function. And when it doesn’t, the logic flow gets confused.
Use the Magento check php to see if your server has all the software,

Resources