All Questions

0
votes
0answers
23 views

Magento2: Undefined JS error

define([ 'jquery', 'domReady!' ], function ($) { 'use strict'; /* Form with auto submit feature */ $('form[data-auto-submit="true"]').submit(); }); I am getting undefined error
0
votes
0answers
23 views

How can i add a subscription plan to my module?

I am going to launch module in Magento marketplace. I need to know, is there a way to add the subscriptions plans?. I only found fixed price plan. Is there any API available to call, When our module ...
1
vote
2answers
60 views

Magento 2 How to bind knockout event on ajax html response

I have created custom functionality on item form on cart page like increment/decrement qty, remove product with a custom popup, custom move to wishlist by knockout js. For knockout events, I created ...
0
votes
1answer
23 views

How to remove decimal points from price in Magento 2? [duplicate]

In app/design/frontend/Vendor/Theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml of listing page price is appearing like ₹50.00 . I want to show it as ₹50. I tried using ...
0
votes
0answers
13 views

Wishlist button color on Magento2.1 list page

How to set an active class to magento2.1 wish-list button on list page? I mean that, when i go to product page, if marked that product to my wish-list before, just shows already added to wish-list or ...
0
votes
1answer
14 views

Can't read from file “http://<SITE_URL>/rest/default/schema?services=all” in Magento 2.2.6

And Error response is {"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://<SITE_URL>/rest/default/schema?services=all"}]}
0
votes
0answers
31 views

Magento 2 how to Create custom shipping method

This shipping method should be visible only at Magento backend. When selecting the shipping method there should be a text box asking to enter the shipping amount. Once added the shipping amount ...
0
votes
3answers
20 views

Product rating table form rewrite

I want to write a function in module file in app/code/[module_name]/[module_name]/... This function will use object manager only and is to show current product rating table to let customers rating ...
0
votes
0answers
17 views

Remove Duplicate admin URL in Magento 2

Hi I have stuck using magento 2 where I want remove duplicate admin in the URL,this my url : https://example.com/admin/admin/system_config/edit/section/web/key/a986525f4db93c0abcda3b1d1cbb3/ and I ...
0
votes
1answer
13 views

add script right after opening body tag in magento 1.9

how can i add a script right after opening body tag in magento 1.9 ? i aready tried this How to add code after opening <body> tag in Magento?
0
votes
1answer
49 views

Update Customer data with REST API

SO I am not sure if this is a bug or not, when using the API to update a product in magento 2.3.0 a PUT request like such: curl -X PUT "https://example.com/index.php/rest/all/V1/products/24-MB01" -H ...
0
votes
1answer
19 views

Catalog sales rule Magento 2

I have create a custom module that is overriding catalog sales rule module. I have add some banner and text on those products which are in the sale. Now I am confused that what happens when sales ...
0
votes
0answers
7 views

Grouped Product as a Featured Item

Am I able to show a Grouped Product as a featured product? But I can't find the featured option on the product edit page. All of the products included in the grouped product are not visible.
0
votes
1answer
26 views

Magento2 pub/static permissions

I'm getting 403 errors in my console for calendar.css, mixins.js, require.js. Is it permission or ownership issue?
0
votes
1answer
10 views

Product Listing Images Are Not Displaying/Loading Correctly

Website is on Magento 2.2.6. As far as I remember, this issue was not present when we were on previous versions of Magento. Description of the issue: When clicking on a product listing, the ...
0
votes
0answers
9 views

How to add shipping price while creating coupon in magento2

Is it possible to create a coupon with shipping price so that we apply discount on shipping price. I know this is not default magento functionality. We can only generate coupons with free shipping. ...
0
votes
0answers
11 views

how to hide storage root while uploading image using wysiwyg

im totaly noob and new to magento 2 and im wondering if you can help me , while im trying to upload an image from html editor tinymice i dont want the other admin to see the root storge and all the ...
0
votes
0answers
24 views

How can I make widgets show properly in tinymce in magento 2.3?

I'm trying to add the tinymce wysiwyg editor in a custom field and make it look like in CMS pages however the widgets that I insert appear with an error image X Any idea how to fix this issue? I ...
0
votes
1answer
15 views

Not enough data in Product\CollectionFactory, how can I get the rest?

I need to get several info from each single product in the catalog, so I used the Magento\Catalog\Model\ResourceModel\Product\CollectionFactory to get a collection of products. Iterating through them ...
0
votes
3answers
31 views

Magento2: How to center box with price, product name etc

I try to center box with product details: So, in list.phtml I found code responsible for this box. <div class="product details product-item-details"> <hr /> ...
0
votes
0answers
8 views

Magento 2.2.5 Class 'IntlDateFormatter' not found

I'm running ubuntu 18.04, using php7.0 and i get this error even though i installed all the extensions while installing magento, is there anyway to fix this, php -i | grip intl shows /etc/php/7.0/...
0
votes
2answers
16 views

admin panel doesn't work properly

I've added a module to my website and ran those commands php bin\magento setup:upgrade php bin\magento setup:di:compile php bin\magento setup:static-cotent:deploy php bin\magento cache:flush since ...
0
votes
0answers
12 views

Additional Add to Cart Button

I am trying to create a secondary "Add to Cart" button which will add a product to cart, like "normal", but will add an additional Get/Post Parameter. By "normal", I mean, it sends all form data; ...
0
votes
1answer
14 views

Magento 1.9 overwrite core

Is it possible to overwrite Magento core functionality in this way? - Mage_Sales_Block_Order_Total { protected function _initTotals(){ //this is core } } and overwrite it with this - ...
0
votes
0answers
6 views

What creates references? I've been unable to find the source of a broken reference

What creates references? I've been unable to find the source of a broken reference. I've been trying to locate the source of some broken references, but I cannot find anything in the code that has it. ...
0
votes
1answer
32 views

Magento 2 conditionally hide quantity box

I would like to hide the built in quantity box based on whether i have set a custom attribute for quantity. Some products that dont have a custom attribute for quantity will need to still display the ...
0
votes
1answer
20 views

Magento 2 customer CAPTCHA Login Not Showing Up

I have added all possible captcha forms in Stores->Configuration->Customers->Customer Configuration->CAPTCHA see screen shoot bellow: Clear cache,flush yet the login page doesn't show it. ...
0
votes
1answer
17 views

Magento 2 Duplicate Product URLs Problem

When creating products in Magento 1 the url was created from the product name, and if there were duplicate product names M1 would add a numerical suffix to the end of the URL. Since it seems this is ...
0
votes
0answers
8 views

Magento 2.3 installation error

Permission denied in vendor/monolog/monolog/src/Monolog/Handler/StreamHandler However i have given Vendor folder permission to 777 , but still getting the permission error. I am using ubuntu 16.04. ...
0
votes
1answer
21 views

Controller redirect on jquery post request from phtml template

I want to redirect user on button click from .phtml template file, however, really struggle to find a working solution. Here is my controller with path of /batchorder/index/addtocart: public ...
0
votes
0answers
11 views

Magento 2: What is the best practice of storing and retrieving custom data

Looking for some input on what the best practice would be to store and retrieve custom data. As an example, I need to store, retrieve and update a couple of custom variables: access_token and ...
0
votes
0answers
12 views

Programmatically creating an order: How to add custom options to products in quote?

I'm trying to create an order programmatically. With simple products without custom options it already works like a charm. But when I try to add custom options I get the very specific error: We ...
1
vote
0answers
8 views

Magento 2.2 any issue will arise if we truncate import export history?

If I truncate import_history table from database in Magento 2.2 version. But thing is that some of the values in execution_time column it's showing as In Progress which seems to that product import ...
1
vote
0answers
9 views

Replacement for Cart (M2)

what's the best replace for \Magento\Checkout\Model\Cart $cart since this class Cart is deprecated ?
0
votes
0answers
7 views

Magento 2 Override Unit.phtml and Row.phtml in Magento_Checkout

I am trying to override both unit.phtml and row.phtml within my Magento_Checkout module. I am doing everything that I would normally do but it doesn't seem to be overriding like the other phtml files. ...
0
votes
1answer
16 views

Magento 2.2.x: Persistent Checkout can't be disabled

The problem is even when i disable the "persistent checkout", it still work as normal. Its a magento default module, so i think this is a magento 2 bug. After a day working on this, i still don't ...
0
votes
0answers
5 views

Magento 2 ui multi-select preselected values

I am new at Magento 2, UI multi-select component render store views group by websites and stores, but when I am editing I need saved values of store views of certain record to be preselected in that ...
-1
votes
0answers
9 views

Can i create a custom view that has its own theme? [on hold]

I am very new to developing for magento and wanted to create my own view that does not use the default Magento Theme. Is this possible and if so how can i go about it??
-1
votes
1answer
14 views

Trigger alert after adding new product by admin in Magento 2 [on hold]

How to show notification to users when admin adds a new product in magento 2?
1
vote
1answer
36 views

Magento 2 Override Gallery.php file

I would like to override /vendor/magento/module-catalog/Block/Product/View/Gallery.php file getGalleryImagesJson function In result I would like to get - public function getGalleryImagesJson() { ...
0
votes
1answer
28 views

How to call helper function observer in magento2

I am trying to call helper function on observer custom module in Magento2 but Unable to call helper in observer. Please help me if anybody have this solution. I am waiting for all your positive ...
0
votes
1answer
19 views

Magento1.9.2 - Create product attribute for Time

Any possibility for creating product attribute for only Time
0
votes
1answer
22 views

Adding custom layout handle for layouts (1 column, 2column etc) set via product admin page

I want separate layout handles defined for products dependent on their layout set via the layout options for product within admin (1 column, 2 column left, 2 column right). I need to set additional ...
2
votes
0answers
16 views

Composer update dependencies Magento 2.3

Is it okay to update the dependencies of a magento store using command composer update? The store is functional and running on magento 2.3 at the moment.
0
votes
1answer
21 views

Magento 2.2.7: how to run composer update command under Ampps/Xampp php version instead to base php

I am using LAMP on which I have PHP 7.2 I install Ampps on which I have PHP 7.1 How I have to run composer update command? If I run it gave me PHP version error (definitely it will give 2.2.7 don't ...
-1
votes
0answers
15 views

How to pass the shipping and order data to another url after payment [on hold]

We are using Magento 1.9.2 in our website. How to pass the order data to another url after placing the order?
0
votes
0answers
16 views

How to update product quantity in cart by custom field

I added some custom field(receipent_email) in quote_item table. When user adding item in cart, I m sending custom data to cart item. Data is saving in quote_item table perfectly. Also i split item ...
0
votes
0answers
5 views

Class not defined in validation.js after upgrade to 1.9.4.0?

I updated from 1.9.3.7 to 1.9.4.0 using the .mage command line tool. Everything works fine in the admin, the frontend however always shows me Class is not defined. The code where this happens is in ...
2
votes
2answers
28 views

Get product, with 0 quantity, by attribute (sku)

I'm importing products and I want to get product by its sku. This is the code: $product = $this->productFactory->create(); $record = $product->loadByAttribute('sku', '1234'); It works but ...
0
votes
1answer
18 views

How to Login as Customer from Admin Dashboard without Customer Password?

I am a newbie at Magento 2 and I would like to ask how to log in as the customer on admin side.?

15 30 50 per page