All Questions
1,345
questions
0
votes
2
answers
41
views
Magento 2: override .phtml file in a custome module
I am new to Magento 2 and I'm not quite understand its structure yet. I'm using its sample data to investigate code. I want to override a .phtml file by using a custome module. The file I want to ...
0
votes
1
answer
25
views
Setting Different Maximum Quantities for B2B and B2C Customers in Magento2
Is there a way to set different maximum quantity limits for B2B and B2C customers in Magento? For example, can B2C customers have a maximum limit of 20 items, while B2B customers have a limit of 100 ...
-1
votes
0
answers
28
views
Add id href to url to Magento 2 php attribute
in Magento 2 I am getting a product link from an attribute like so
<?= $_product->getData('ecc_related_documents_synced') ? '<a href='.$_product->getData('ecc_related_documents_synced').' &...
3
votes
1
answer
36
views
Magento 2 cloudflare unable to install Matomo
We are using magento 2 with Cloudflare enabled on the website but when we try to install Matomo getting this issue on the browser console -
index.php:1 Refused to load the script 'https://static....
0
votes
0
answers
16
views
Magento2 cusotm module and uiComponent won't load items, infinite spinner and "We couldn't find any records"
I have created a custom module that's purpose is to manage Vendors. I have created a Collection, CollectionFactory, DataProvider, di.xml, vendors_vendor_listing.xml and so on and so forth.
I am able ...
0
votes
0
answers
38
views
Magento 2 API: 401 Unauthorized for Salesrule calls with Admin Bearer Token
I am using the Magento 2 API to convert quotes (from custom made laravel project) to orders. I use an administrator bearer token, which works successfully for other API calls such as:
Create guest ...
0
votes
0
answers
37
views
Why can't I use Xdebug in PhpStorm? I'm using PHP 8.1 and Xdebug 3.3
When I run Xdebug for my index page it gives me an error:
/bin/php -dxdebug.mode=debug -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1 /var/www/html/thang/app/code/Smartosc/Thang/Controller/...
0
votes
1
answer
132
views
Magento 2 get categories path names from product
I am trying to get for each product the category paths with names and exclude the root category(id 1). I separate them with
%%
I use this code:
<?php
$categories = $product->getCategoryIds();
$...
0
votes
0
answers
43
views
Unable to save the product due to mismatched tier price in Magento 2
Initially, we replicated the tier price with a specific store. Later, we changed it to apply to all websites. As a result, all tier pricing information is now mismatched. I can observe that the same ...
1
vote
0
answers
42
views
Sorting the collection of catalog products by attribute and its specific parameter Magento 2.4.6
I have a custom attribute named "Promotion" (ID: 489, code: "special_attributes") which includes four options: Promo, Sale, etc. I need to sort the catalog product collection by ...
0
votes
0
answers
23
views
Remove SSL from virtul host of magento2
I disabled ssl from my ubuntu system and also I Comment SSL related configuration in defult-ssl.config file and my virtulhost file.
But when I hit on this URL http://local.ibc.com/ It's redirect ...
0
votes
1
answer
548
views
after upgrade magnento 2 version 2.4.3 to 2.4.6-p6
recently i was upgrade magento 2.4.3 to 2.4.6-p6 for upgrade i fire below cmd
composer require magento/product-community-edition 2.4.6-p5 --no-update
composer update --ignore-platform-reqs
after ...
0
votes
0
answers
44
views
Multi curl issue for more than 100k records
I have a requirement to set tax rates for all combinations of US-based states, cities, and zip codes in Magento. There are a total of 130,000 records, and this task needs to be done twice a year. To ...
0
votes
0
answers
145
views
cache-control: no-store, no-cache, must-revalidate, max-age=0 response is given
For Magento 2.4 project i runned command Curl -IL Domain in terminal and
cache-control: no-store, no-cache, must-revalidate, max-age = 0 response is given .
I talked to support of cloudways but they ...
0
votes
0
answers
57
views
Don't display swatches on product listing in Magento 2
Product variation are not showing in product in magneto 2
enter image description here
Only products are showing but do not show red, blue, black variations of products and i am not find the working ...