All Questions

0
votes
0answers
24 views

SQLSTATE[42000]: Syntax error or access violation: 3057 Incorrect user-level lock name on re indexing

When I run php indexer.php --reindexall command I get following error. PDOException: SQLSTATE[42000]: Syntax error or access violation: 3057 Incorrect user-level lock name 'magento_prod....
1
vote
0answers
18 views

Magento 2 UI component. Disable field based on values of two other fields

I need the product field "disabled" attribute to be dependent from two other checkbox fields. For now I have it dependent from one field like this (DataModfier): protected function customizeFieldSub(...
0
votes
0answers
10 views

How to add extra fields on ccsave payment method?

I need to create two additional fields for the ccsave checkout form. I created in the tables sales_flat_quote_payment and sales_flat_order_payment two fields called cc_parcelas and cc_csc. In html, ...
0
votes
0answers
8 views

How to update the order total when I click to apply button in store credit section

I am trying to update the order total when I click to apply button in store credit section using knockout js.
2
votes
1answer
19 views

New orders are not showing in the orders grid but payement received?

I upgraded from Magento 2.5.0 to 2.3.1 I am using only PayPal as a payement method. new orders are not showing in the orders grid in Admin > Sales > Orders and emails are not sent !! when I check ...
0
votes
0answers
16 views

The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly Error

When I try to complete the checkout by paying with Hosted Payment Form (mastercard module) I get an error 400 Bad request. I was reading the exception.log file and I found an error that says the ...
0
votes
1answer
11 views

Grouped Product getAssociatedProducts() is not working in attributes tab template

In the main view template for my grouped products, grouped.phtml, I have had no problems fetching the associated products and displaying some attributes in a loop. I have done the same thing in a ...
0
votes
2answers
17 views

Magento2 Cron job for sending mail not working

I am trying to send an email to a address via cron job but there is no response I tried it using controller it sends the mail correctly. Vendor\Module\Cron\Mail.php <?php namespace Vendor\...
0
votes
0answers
15 views

Magento 2 : Add Params using add to cart API

I want to add a custom parameter in add to cart product api billing_period & subscription_start_date. I have tried with Magento's /V1/carts/mine/items API with below request data. { "cartItem"...
0
votes
0answers
14 views

How to replace value in checkoutConfig Magento 2

In checkout page, I want to change the value of one parameter in payment method value of window.checkoutConfig(Mostly API Key) after shipping address is selected. How can I make changes in window....
0
votes
1answer
14 views

How to diagnose magento 1.9.2.1 admin login issues?

A customer's 'internet service company blah blah blah' did 'something' we do not know on a previously working 1.9.2.1 installation. Fontend works. But when accessing /admin we got no error but a ...
2
votes
0answers
7 views

Magento 2: How to make bundled product disregard catalog price rule for options

Is there a way to make a bundled product options disregard any catalog price rules that are applied to them? Let's say I have a product like the following: Product: Bundled Product 1 Type: Bundle ...
0
votes
0answers
9 views

Magento 2: Failed to load resource: the server responded with a status of 404 (Not Found)

I am trying to override magento 2 core js ' require-config.js file at path Test/JsOverride/view/frontend/ var config = { "map": { "*": { "menu": "...
0
votes
0answers
7 views

How to bring advanced pricing rules to catalog product view?

How should I approach fetching advanced pricing of the product to view? My desired result would be to show custom text like "Get two items for just $200". Is it described anywhere in documentation ...
0
votes
1answer
19 views

error 304 theme magento 2

I installed a theme on my computer but it does not work properly, Please check with below attachment css return 304.
0
votes
1answer
7 views

SetBillingAdress not working (prog) on quote

I'm creating orders programmaticaly but my billings address are not updating. I can set the shipping address that I want (another from the connected user) but the billing is still the one from the ...
1
vote
0answers
13 views

Add same product to quote as a separate item in Magento 2

I want to add the same product to quote but separately. Here is my code $quote = $this->quote->create(); $quote->setStore($store); $quote->setCurrency(); $skuArray = array('EC1','EC1);...
0
votes
0answers
12 views

Magento2: How can customize search box in product admin grid?

I want to search products by any text if it related to product. please find screenshot: https://prnt.sc/o2w458 When I search by "bolt kit" then it is showing results but when I search by Kit bolt ...
4
votes
0answers
19 views

Show/Hide dependent attribute field on toggle attribute field of product add/edit admin form into Magenot 2

As per the requirement, I have created 2 product attribute into magento 2 admin. First attribute is toggle(Yes/No) attribute and Second is Text attribute which is dependent on First attribute. Now I ...
0
votes
2answers
40 views

How to update product stock using custom script in Magento 2

How to create a script for update product stock. After the product stock update saves the product. Anyone helps me to create this script.
0
votes
1answer
22 views

theme magento 2 not working

I installed magento 2 on my computer and I copied the code of the theme in the app\design and pub\ that works on the server but it does not work properly on my computer. Help
2
votes
0answers
30 views

How can I remove “As low as” in Magento 2.3.1, if all the prices of the variants are the same?

How can I remove "As low as" if all the prices of the variants of the configurable product are the same? It doesn´t make sense to me to show "As low as" when all the colors and sizes are equally ...
6
votes
2answers
54 views
+300

View product count not updating

There are 3 different tables that stores product viewed count report_viewed_product_aggregated_daily report_viewed_product_aggregated_monthly report_viewed_product_aggregated_yearly If I want to get ...
3
votes
2answers
41 views

collection, get product image

Sorry for my English I have this code $productCollection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('short_description') ->...
2
votes
1answer
19 views

Magento2.3.1: How to disable particular Shipping method on specific condition

I have installed Check delivery extension in my website. Here the options are as follows: Delivery available Delivery Not Available. For them, We will add some pin codes for delivery availabilities....
7
votes
1answer
47 views
+300

Magento 2 - Full hierarchy wise product breadcrumb

If I open a product directly from Home or search page then breadcrumb shows like this: Home > MyProduct Whereas if I go to the category, then subcategory and then open the product, it show the ...
2
votes
2answers
43 views

Magento 2: Allow empty query field in search

On the webshop that I'm working on, the user can find products by choosing filters (attributes like color/size/category) and/or entering a search query, the search results are then displayed on the ...
2
votes
1answer
26 views

Difference between $this->getData() or $this->getResource()

In my Collection.php when i get the collection by $this->getData() is give me collection. But it create some other problem for me . Now i use $this->getResource() then problem solved But it ...
2
votes
1answer
18 views

How to Generate Category Specific Site Map in Magento 2?

Can anyone please suggest any extension or custom code that'll help me to generate category specific sitemap? We have around 500K+ products and would like to generate sitemap like www.website.com/...
0
votes
0answers
17 views

Magento 2 add to cart performance issue

In my Magento 2 website adding to cart takes about 10 sec. Caching is OK. Redis is configured. Merging/minimizing for CSS/JS is enabled. I'm noticed that after first adding an item to the cart, adding ...
0
votes
1answer
17 views

How can i add header links next to language switcher or Left side

I need to add some custom links on header just like below screenshot:- But as i trying to add the same on "header.links" it's adding right side(near CONTACT US link). how can i achieve my expected ...
3
votes
3answers
20 views

Magento2: how to delete summary field from review form

I want delete filed Summary from reviews product form. In file vendor/magento/module-review/view/frontend/templates/form.phtml I comment line: <div class="field review-field-summary required">...
0
votes
0answers
12 views

Override category H1 with custom attribute - Magento 2

I would like to create a new field for category pages which I can use to override the default H1 on front-end. Currently if have a category called 'Stuff', my breadcrumb is 'Stuff' and my H1 is '...
0
votes
0answers
14 views

How to get admin base Url or ajax request to any controller in magento2?

I have not any phtml file to set base url. How can i call ajax form admin side in customjs magento2 form.xml <field name="type"> <argument name="data" xsi:type="array"> <...
0
votes
0answers
26 views

Overriding template not working in dev branch

I have overridden a file vendor/magento/module-customer-custom-attributes/view/frontend/templates/customer/address/edit.phtml and placed the replaced file in: app/design/frontend/ParentTheme/...
1
vote
1answer
23 views

Magento 2 module, Model - problem

I am making form in front end and want to save data in database in Magento 2, i have used below code but when i am using link page shows Blank My/Module/Block/contact.php <?php namespace My\...
0
votes
0answers
19 views

How to call Magento2 mview reindexer programmatically

I have line of code which schedule full or partial reindex cron job. using Trigger::REINDEX_SCOPE_PARTIAL and Trigger::REINDEX_SCOPE_FULL parameter. public function restoreIndexers($reindex = false, ...
0
votes
1answer
30 views

Trigger checkout validation only on change event

So I have these code to validate a generated field in the shipping address: VAT number The requireJs: app/code/VendorName/Checkout/view/frontend/requirejs-config.js var config = { config: { ...
-1
votes
1answer
40 views

when user click on placed order, order pdf will generate and attached it to user's order email

I want the following actions. When any user clicks on "Place Order" on the checkout page, A pdf of this order will be automatically generated. And this pdf is automatically attached to email "Your ...
3
votes
0answers
38 views
+50

Add taxes in the price filter - Magento 2.3

The prices of my products are added without taxes. The price filter that appears on my page is without taxes as you can see in the following picture Is it possible to add taxes to this price filter?
0
votes
0answers
21 views

Magento 1.9, 302 redirects

In my Magento 1.9 site, I have made a category page to redirect to the product page. I have category A and it contains a product B. Now when from menu link if one clicks on category A name, it will be ...
0
votes
1answer
19 views

Forbid access to a file by url but allow through browser

how can I prevent the user to access my /v folder in my website where I have some video, but allow them to be display on frontend thanks to the <\video> tag from HTML 5 ? I tried this and other ...
-1
votes
0answers
18 views

How to place order on sipping method only by skipping the payment method in magento 2

How can we skip payment method and place the order on shipping data only in magento 2
2
votes
1answer
42 views

How to show Recently Searched Products without using Widget on HomePage (Luma). Magento2

I want to show recently searched products on homepage without using Recently Viewed Products Widget I want to get this in my custom block and also want to show this in my custom .phtml file how it ...
1
vote
0answers
14 views

Magento 2.3 Admin Panel Edit Role Error

I was trying to edit a user role (System -> Permission -> User Roles) on the magento 2.3.1 admin panel and I started to get this error: [2019-06-17 08:34:01] main.CRITICAL: Item (Magento\User\Model\...
0
votes
0answers
20 views

Magento 2 dependent product attribute field on other product's attribute field in admin product form

I'm trying to create functionality which is one attribute dependent on the other one. It should work like the first attribute is boolean(Yes/No) when I select Yes the second attribute should display ...
1
vote
1answer
38 views

Magento 2 - Customer Attribute not being saved

Below is code for creating customer attribute. namespace Namespace\Modulename\Setup; use Magento\Customer\Model\Customer; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\...
1
vote
0answers
15 views

How to call catalog attributes to extension module's view file phtml

Magento 2.3 The extension sits in app/code/VendorName/ModuleName/ it has etc, view, Block, Controller, Model directories What is the best way to call short_description and selected size ...
0
votes
0answers
23 views

How to get dependent value using UI form in Magento2

I have Created one admin form using UI component. I want to display one dependent filed on another files update. here is my code: <field name="type"> <argument name="...
4
votes
0answers
20 views

POST product with REST API doesn't save manufacturer attribute

I'm able to save a product with a POST request to my REST API endpoint. Now I would like to save manufacture attribute,too. I prepare this json structure { "product": { "sku": "code", ...

15 30 50 per page