12 votes
Accepted

Magento 2 How to Call JavaScript Click Function on Checkout?

Use below code <script type="text/javascript"> require([ 'jquery', 'jquery/ui'], function($){ $(document).on("click","#checkoutnext", function() { alert("Test!"); ...
user avatar
9 votes

magento 2 : How to add static block in (.html) file?

To add static block over the Place order button!, you need to declare a PHTML file in checkout index anywhere in theme. STEP 1: Create a new XML file in theme checkout_index_index.xml <page xmlns:...
user avatar
8 votes

Magento 2.3.2 Failed to load the "Magento_Checkout/js/view/billing-address/list" component

Check your modules requirejs-config.js. Probably there is mapping like "Magento_Checkout/js/view/billing-address": "Vendor_ModuleName/js/view/billing-address", Then later Requirejs try to load all ...
user avatar
5 votes
Accepted

Magento 2 : how can i add notice below state/province field in shipping address in checkout page

1.Create a di.xml under 'etc' directory of your any custom module <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
user avatar
  • 1,204
5 votes
Accepted

Magento 2.3.2 Failed to load the "Magento_Checkout/js/view/billing-address/list" component

Magento 2.3.2 has made big changes in the checkout section. below is the link for changes commit in GitHub. https://github.com/magento/magento2/commit/8a9a986f930cb5f8516b3fe5ecb6d1a6d3f9e8af In my ...
user avatar
  • 5,848
4 votes
Accepted

How to do onestep checkout for the checkout page?

The billing and shipping step can be directly included via the layout XML but contents for shipping, payment and review step need to be loaded with javascript. Basically you will need to write a ...
user avatar
  • 37.4k
4 votes

How to get the current checkout step?

Try the below code, it works In checkout/onepage.phtml, To get the current section only when loads console.log(accordion.currentSection); To get the current section when change section in ...
user avatar
  • 3,911
4 votes

Fatal error on OnepageController.php

This will be an issue with the layout.xml and your custom controller action. Magento cannot find the root block for your action and fatals when trying to call toHtml on it. Adding the following to ...
user avatar
  • 4,392
4 votes

Adding products to cart via url

Please try with this. <a href="http://example.com/index.php/checkout/cart/add/product/1/form_key/<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>/">My cart</a>
user avatar
4 votes
Accepted

Customer stuck in an endless loop

looks like there are a lot more call of the particular methods which changes the trigger_recollect flag. The final solution was to pass the Quote through all methods. The Problem was the result of two ...
user avatar
  • 1,096
3 votes

Checkout register if password field got value otherwise guest checkout

Edited First you need to skip checkout method save and need to directly goes to billing steps and there will you save checkout method as guest/register depend on your logic of password. There are ...
user avatar
  • 75.4k
3 votes
Accepted

How to restrict onepage checkout to not load address same as billing when select "Ship to different address" on frontend?

As always, answering my own question : 1)Remove or comment out the function “pushBilingToShipping()” in: skin\frontend\base\default\js\iwd\opc\checkout.js 2)Also comment: “if(!skip_copy) this....
3 votes

Checkout | Products from aborted purchase attempts are not deleted

This is actually a feature. For logged in customers the cart is kept FOREVER. And when the user logs in again his current cart is merged with the previous one. This happens in ...
user avatar
  • 195k
3 votes
Accepted

Allow multiple countries for billing but restrict for shipping

Go to \app\design\frontend\default\Your_Theme\template\checkout\onepage\shipping.phtml. Search for the keyword "country". You will be able to locate the code for country option in shipping address. ...
user avatar
  • 486
3 votes
Accepted

CE 1.9.1 - checkout in lightbox/popup

First step: Change the layout file In your lotusbreath/onestepcheckout.xml files, replace* <lotusbreath_onestepcheckout_index_index> handle to <checkout_cart_index>. So, now the checkout ...
user avatar
3 votes
Accepted

Set Currency Depend on Country IP

Credits : Raphael at Digital Pianism you can use Geo IP MAGENTO STORE SWITCHER BASED ON CUSTOMER LOCATION. Follow this tutorial , you can find complete code here I am posting code, just if link ...
user avatar
3 votes

magento 1.9.3 based ecommerce site product selection to checkout in single page

Yes, it is possible. The Grokking Magento website is an angular frontend running on top of Magento.
user avatar
  • 16.6k
3 votes
Accepted

How can I unchecked default Save in address book checkbox checkout shipping address popup?

I don't know which onestepcheckout you are using. But you can check in core checkout how it works refer below files /vendor/magento/module-checkout/view/frontend/web/template/shipping-address/form....
user avatar
  • 7,322
3 votes
Accepted

How to add checkbox in checkout page above subtotal in magento 2

Change <item name="component" xsi:type="string">Magestore_OneStepCheckout/js/view/customtemplate</item> To <item name="component" xsi:type="string">Magestore_OneStepCheckout/js/...
user avatar
3 votes

Customer logged out after checkout & redirected to empty shopping cart - Magento 1.9

Resolved the issue by upgrading OSC and SagePay and removing all of the crap overrides from previous merges - works now!
user avatar
  • 2,443
3 votes
Accepted

Constr is not a constructor on layout.js line 137 error custom module

You should avoid the copy-paste technique as much as possible. In your requirejs-config.js you are declaring that you would like to apply mixins to Magento_Checkout/js/view/billing-address with ...
user avatar
  • 1,089
2 votes
Accepted

Magento getting warning in log file after removing plugin

Ram Sharma, Step1:clear cache using delete all file from var/cache step2: if you have enable compiler then disable compiler from magento admin and clear cache again enable compiler Step3:if ...
user avatar
  • 75.4k
2 votes
Accepted

Check for customer email address exists in checkout

Looking at Using Javascript to validate response in the text box pointed me in the right direction. I still have to clean up the code and integrate it correctly in firecheckout, but the following ...
user avatar
  • 722
2 votes
Accepted

Italian translation.csv for tax not working

Finally found the issue, the core Mage_Tax module was conflicting my theme's translation.csv, I was able to overcome it by simply adding the below to my theme's locale/it_IT/translate.csv "Tax","IVA" ...
user avatar
  • 4,613
2 votes
Accepted

Redirect to Paypal emptying shopping cart

In the end, this was an issue with a 3rd party payment extension, as @benmarks has just mentioned. After disabling the frontend sections of Ebizmarts SagePay Pro extension (we had to keep the backend ...
user avatar
2 votes
Accepted

Duplicate block on checkout cart page

I'm not sure what you're trying to do, see my comment to your question. Fact is that if your cart is displayed twice you (or some extension) defined the checkout/cart block (and its children) a ...
user avatar
2 votes
Accepted

Payment methods in custom checkout page

Magento 1.X: To display currently active payment methods on custom checkout module is to override block Mage_Checkout_Block_Onepage_Payment_Methods with custom one. In that corresponding phtml file ...
user avatar
2 votes
Accepted

redirect /checkout/cart page

In this case you need 301 redirection from checkout/cart to your checkout page Mage::app()->getResponse() ->setRedirect($someUrl, 301) ->sendResponse(); use event ...
user avatar
  • 75.4k
2 votes
Accepted

Not valid template file error after zero dollar checkout

Main issue has template file does not exits/emulated on your system. According to your Log,a template file has been call from app/code/core/Mage/Page/Block/Html/Topmenu.php of toHtml() function,...
user avatar
  • 75.4k
2 votes
Accepted

Load Checkout comments in sales/order/print - basic module question

There are lot of issue in your code: No function is not exits in Helper class There no function exits in Company_Invoices_Helper_Data which is wrong in oops php.Without function you can get data ...
user avatar
  • 75.4k

Only top scored, non community-wiki answers of a minimum length are eligible