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 ?
Related
After updating Magento from 1.7 to 1.8.1, I found myself correcting most of the formkey issues on my custom theme. I think everything now works correctly except for one thing: the customer login on the onepage checkout page doesn't seem to do anything. The problem seems really odd to me since the customer login works everywhere else on the site.
I use a module (Crius SkipStep1) to skip the first step and instead show the guest billing & shipping method first (with possibility of switching to the login system if wanted).
Using it or the default login system doesn't seem to do any difference; the problem is there in both cases. After login, the page reloads but doesn't show me anything more than before.
With the module, the checkout/onepage/saveMethod/ function runs after the page reloads. Without the module, nothing happens. In both cases, I can still do the guest checkout method without any issue.
And the odd thing is that if I type the password wrong, the page reloads normally and the error message for incorrect password shows up. I tried testing the default and base themes, and the problem occurs anyway despite the template files being up to date.
I think I tried everything and don't see what to do anymore, so I need help from fresh eyes.
Thanks.
I had a similar problem. You need to add <?php echo $this->getBlockHtml('formkey'); ?> after the <form> tag in the following files:
/app/design/frontend/../template/persistent/checkout/onepage/login.phtml
/app/design/frontend/../template/checkout/onepage/login.phtml
That should fix your login issue.
Added <?php echo $this->getBlockHtml('formkey'); ?> in the login forms of the checkout section and there you go. My issue was fixed.
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!
I am desperate. I have been up all night trying to figure this out! I eliminated all of the no conflict errors but the checkout accordion still does not expand. See here http://test.animalnecessity.com/checkout/onepage/. Add something to cart> checkout> select pet owner and you will see what I'm saying. Desperate please help!
When you click on 'I am a Pet Owner' it show the regular one page checkout but this div is still not visible
<div id="checkout-step-login" class="step a-item" style="display:none;">
Try using this to fix it using JS
jQuery('#iampetowner').click(function() {
jQuery('#checkoutSteps').slideDown();
jQuery('#petdvm').slideUp(); jQuery('#newpass').slideUp();
jQuery('#checkout-step-login').show();
});
The quickest way to solve it (until you have a chance to troubleshoot this properly), is to do the following:
add the following code to your template (it should be placed in a document.ready function)
jQuery('#checkout-step-login').show();
P.S. there are errors on your register page see here
I'm facing a very strange problem.
AS far as I know, Magento changes the URL at the checkout.
From step 1 to Step 5/6 the URL changes when you go forward or backward. Or if you use continue or the back button, but....
at our installation it stays with "checkout/onepage/" the whole time... It doesn't change.
Does someone has the same problem or does someone got maybe a hint how to solve this problem?
Thank you!
Your istallation is OK!
Different steps at Magento checkout don't have different URLs as whole checkout section is loaded at once (when entering the section) and steps are filled with Ajax.
If you still have any doubts please check the Demo Store from Magento
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.