The Stack Overflow podcast is back! Listen to an interview with our new CEO.
6

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


5

When you throw an error right after the code for redirecting the execution will halt on the error thrown and that's it. If you want to show an error to the user please use the session message stack. Mage::getSingleton('checkout/session')->addError("Gift Card is not currently active"); Mage::app()->getFrontController()->getResponse()->...


5

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:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> ...


4

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 javascript function that tries to get the shipment and payment methods whenever the address fields are changed (at least country, region and postcode). Then you ...


4

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 checkout Accordion.prototype.openSection = Accordion.prototype.openSection.wrap( function(parentMethod, section) { // Call parent method ...


4

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 create an empty root block into your checkout.xml layout should allow you to not fatal. <checkout_onepage_orderupdate> <block name="root" type="...


4

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>


4

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:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Checkout\Block\Checkout\LayoutProcessor"> <plugin name="rewrite-checkout-...


3

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 Mage_Checkout_Model_Session::loadCustomerQuote. see if you can remove something from that method. inside this if statement is where the magic happens: if ($customerQuote->getId() &...


3

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. Echo the line <?php echo $this->getCountryHtmlSelect('shipping') ?> Customize the option as follows. Here i'm just trying to give you an example ...


3

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 two way to save the checkout method. Rewrite controller: Using Observer Rewrite Controller: If you are using default magento onepagecontroller for save ...


3

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 block will be render in cart. Change <block type="lotusbreath_onestepcheckout/onepage" name="checkout.onepage" as="checkout.onepage"> to <block type="...


3

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 third party modules.


3

Yes, it is possible. The Grokking Magento website is an angular frontend running on top of Magento.


3

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.html <!-- ko if: (isCustomerLoggedIn) --> <div class="field choice" data-bind="visible: !isFormInline"> <input type="checkbox" ...


3

Change <item name="component" xsi:type="string">Magestore_OneStepCheckout/js/view/customtemplate</item> To <item name="component" xsi:type="string">Magestore_OneStepCheckout/js/customtemplate</item>


3

Resolved the issue by upgrading OSC and SagePay and removing all of the crap overrides from previous merges - works now!


3

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 Rahul_Learning/js/view/billing-address. The original component, i.e. Magento_Checkout/js/view/billing-address when applying mixins, is referred to as the target, ...


2

You can also try this in [MODULE]\Model\Giftcard.php: $redirectUrl= Mage::getUrl('checkout/cart'); Mage::getSingleton('checkout/session')->setRedirectUrl($redirectUrl);


2

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 stuff for historic orders/transactions) the problems stopped. I never 100% tracked the issue down to a specific line of code, but I did get it to a point where ...


2

What I do to find out where the code can be found: If you have access to your server via SSH, you can grep for it: grep -r "getMethodDescription" * 2>/dev/null Result is (file and containing text): app/code/core/Mage/Sales/Model/Quote/Address/Rate.php: * @method string getMethodDescription() app/code/core/Mage/Sales/Model/Quote/Address/Rate.php: ...


2

In every order item has attribute "product_options". You can fetch configurable attributes from this field. <tbody> <?php foreach ($this->getItems() as $_item): ?> <tr> <td class="attributes-col"><?php echo $_item->getName() ?> <?php $o = unserialize($_item->getData('product_options')); ...


2

sales_flat_order is the full name of the table and you should use alias in $installer->getTable() If you take a look in app\code\core\Mage\Sales\etc\config.xml there is table definition <sales_resource> <class>Mage_Sales_Model_Resource</class> <deprecatedNode>sales_mysql4</deprecatedNode> <entities> ...


2

In your config xml is missing resource definition in <global> node <resources> <onestepcheckout_setup> <setup> <module>Easylife_OnestepCheckout</module> </setup> <connection> <use>core_setup</use> </...


2

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 code basically does exactly what I want: /** * Check if customer email address already exists */ public function checkEmailexistsAction() { if ...


2

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 php cache enable then clear php cache step:Idev_OneStepCheckout is not remove properly check it files and folder again


2

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" "Mage_Tax::Tax","IVA"


2

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 second time in the layout files. If the layout XML is duplicated to modify one of the already defined block then reference it in your XML, e.g. <!-- modify the ...


2

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.pushBilingToShipping();” 3)then in: IWD\Opc\controllers\IndexController.php inside: initDefaultAddress() comment or remove: “if (!$this->getOnepage()->...


2

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,which is not exits on system that why error has been thrown. log say that template file does not exits at /myshop.nl/app/design/frontend/base/default/template/...


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