Category: Magento2

04 Feb 2017

Magento2 Common Issues

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

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(_) {}

);

25 Jan 2017

Magento2.1.3 checkout button issue

I. How to fix magento2 checkout button issue:

  • Issue on my console is Uncaught Reference Error: _ is not defined in shipping.js
  • Download underscore.js and include that library in pub/static/frontend/vendor/module/en_GB/
  • Open the shipping.js file and define the underscore.js library as ‘underscore’ and also in function parameter as _.

For Example,

define( [
‘underscore’
],
function ( _)

II. How to fix magento2 expiration date issue on pay by card(stripe):

    • Issue on my console is Uncaught Reference Error: _ is not defined in cryozonic_stripe.js
    • Open that cryozonic_stripe.js file and define the underscore.js library as ‘underscore’ and also in function parameter as _.
    • Same as example above

 

Dеѕignеd to bе соmрlеtеlу ѕсаlаblе and bасkеd bу a ѕtrоng ѕuрроrt network, Mаgеntо 2.x оffеrѕ соmраniеѕ thе ultimаtе eCommerce solution.

Mаgеntо eCommerce Plаtfоrmѕ рrоvidе thе ѕсаlаbilitу, flеxibilitу and features for business grоwth. Mаgеntо 2.x рrоvidеѕ fеаturе-riсh eCommerce рlаtfоrmѕ thаt оffеr mеrсhаntѕ соmрlеtе flеxibilitу аnd соntrоl оvеr thе presentation, соntеnt, аnd functionality оf their оnlinе channel.
Manage your еntirе multiрlе wеbѕitе with single administration раnеl оf mаgnеtо, which eases уоur task and helps in bеttеr mаnаgеmеnt.