Magento2 Common Issues

Magento install extensions

I. Ves theme mega menu issue on product page:

I am using the Ves mega menu , one or two menus are not working. But there is no issue on my console.

So, I am unable to find the solution. After analyzing some time I got the solution for that issue.

ISSUE:

The Menus are mixed with heading tag. So when I am hover the menu it was not work.

FIX:

Just simple you can move down the mixed heading tag <h1> it will working fine

Magento2 bug fixing

II. Litres choose option not workingon product pages:

I am using priceBox.js , When I am change the litres option of my product it will trigger the price calculation and product image for corresponding option your selected in the litres dropdown option. As you can see it doesn’t show any options. But when you do a quick view on the product it works. I have created three menu option for the products it will show the three types of product image based on litres But, I am unable to choose the litres option in my product page. Because there is an issue like below

ERROR:

Cannot call methods on price Box prior to initialization; attempted to call method ‘option’ in my configurable.js

Then, I am researching about the issue why it was happened, but nobody could not give the solution. After the lot of struggle, I find out solution for that issue (i.e) given below

ISSUE:

>ERROR: cannot call methods on price Box prior to initialization; attempted to call method ‘option’

FIX:

>Firstly, you can initialize the function named as (price Box) and then call the function (price Box).

CODE:

>Navigate pub/static/frontend/Venustheme/cropshop/en_GB/Magento_Configurable

Product/js/configurable.js

>In configurable.js, Replace the below code under the _initializeOptions: function () {

priceBoxOptions = $(this.options.priceHolderSelector).priceBox().priceBox(‘option’, ‘openOnFocus’, true).priceConfig || null;

III. Paynow button not working:

Using stripe payment option, the paynow button was not work. But I am using PayPal it was working fine. In my console there is an issue like give below

ERROR:

Uncaught Reference error : unable to process binding “options:

function () {

return getCcMonthValues()

}”

Message: _is not defined in shipping.js

FIX:

Navigate app/code/Cryozonic/StripePayments/view/frontend/web/js/view/payment/method-renderer/ cryozonic_stripe.js

Open the shipping.js file and define the underscore.js in your shipping.js file like below

CODE:

define ([

‘underscore’

].

function(_) {}

);

IV. Click pay by card(stripe) – expire date not loaded:

I am clicking pay by card(stripe). The expire date/month/year field was loaded the dropdown.

ERROR:

Uncaught Reference error : unable to process binding “options:

function () {

return getCcMonthValues()

}”

Message: _is not defined in cryozonic_stripe.js

FIX:

Navigate app/code/Cryozonic/StripePayments/view/frontend/web/js/view/payment/method-renderer/ cryozonic_stripe.js

Open the cryozonic_stripe.js file and define the underscore.js in your cryozonic_stripe.js file like below

CODE:

define ([

‘underscore’

],

function(_) {}

);

V. Quantity not updated in checkout page:

When I am Adding or removing the product quantity and also Adding/updating Address in my checkout page it will arise on issue like

ERROR:

Uncaught Reference error : unable to process binding “options:

function () {

return getCcMonthValues()

}”

Message: _is not defined in quote.js

FIX:

Open the quote.js file and define the underscore.js in your quote.js file like below

CODE:

define ([

‘underscore’

],

function(_) {}

);

To know more or  any queries, visit us.

bootsgrid technologies

2 Comments

  1. parkavi
    February 16, 2017

    Some issues fixed from this magento2 tutorial , so it is very useful for us…above tags are give the very clear idea about problems.

  2. KARTHIKADEVI
    February 16, 2017

    This site Very useful for me….

Leave a Reply