Questions tagged [php]

This tag is used for questions which involve PHP code in any way. So as soon there is a PHP Exception returned or error report generated, this question qualifies to be tagged with PHP.

Filter by
Sorted by
Tagged with
0
votes
1answer
38 views

Magento 2.3 extreamly slow with over 100 cart lines

I am working in a Magento 2.3 installation with avarage cart size of 100-150 lines. Getting the visible cart items from Quote is slower over time ( as products count rises ) I've search thought ...
0
votes
0answers
12 views

php code or mysql query to 'bundle' 2 attributes into 1

I would like to know if it's possible to update a text attribute by appending the content of another text attribute. i.e. For all my products, I would like that the new content of attribute1 becomes ...
0
votes
1answer
13 views

Magento 1 creating a variable fixed-amount coupon code in PHP

I'm trying to create a coupon code for a customer that gets a fixed value from PHP (essentially it can be a different amount for each customer/instance of generation). For the coupon code generation, ...
0
votes
1answer
25 views

System Log Error Message

I have this error in my exception log main.WARNING: Subscription for MBI service has been failed. An error occurred during token exchange: {"message":"Handshake request failed."}. What is causing ...
0
votes
0answers
7 views

Magento 2 Custom Product Price Calculation and Overriding Cart Totals

Background: I am working on a project with very custom price calculations for specific transfer products. These transfer products have tiered pricing applied to them, however, the first product ...
0
votes
2answers
11 views

Magento 2: Getting Error When Adding Customer Address Attribute

I'm using Magento 2.2.3, i need to add Customer Address Attribute, but when i run setup:upgrade I'm getting error of Wrong Entity ID. Here is My code: CustomerAddress\Attribute\Setup\InstallData.php ...
0
votes
1answer
71 views

Magento 2.2.2 Products Not Showing Category and List Page

I have a real hard time solving this issue. The issue is products Not showing on front end Category Pages and Product Listing Pages after import via CSV - Just shows We can't find products ...
0
votes
1answer
25 views

Magento 2: How to filter orders by order items

In magento 1, I was able to filter orders by the following: $orderitem = Mage::getModel('sales/order_item')->getCollection(); $orderitem->addFieldToFilter('name',array('like'=>'%'.$value.'%')...
-2
votes
1answer
52 views

Cannot able to create invoice in magento 2.2.7?

After installation of Magento 2 GST extenstion, I try to create an invoice from the admin. But it showing error as cannot create an invoice. This issue reported in github
0
votes
0answers
20 views

lazy load After the scroll is stop original image is not display

My site is very slow. So I have to decide to apply lazy load. I am using jail lazy load. After the scroll is stop original image is not display. Just placeholder image display.
0
votes
0answers
25 views

Magento2 Invalid Form Key. Please refresh the page while creating configurable product

While creating the configuration products in Magento2.2.2 I am facing the Invalid Form Key. Please refresh the page error. I have google regarding this error and I have found the solution to ...
0
votes
1answer
32 views

Magento 2.2.9 Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) magento setup:upgade command

I received the error when I try to run on the live site. ( I was able to upgrade to 2.2.9 for the test site, which was cloned from the live site). after i did composer require magento/product-...
0
votes
0answers
15 views

Error on Category Page

I am getting error on Category Page Magento 2.2.6 ( Element 'block', attribute 'remove': The attribute 'remove' is not allowed) 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\...
0
votes
1answer
17 views

Magento 2 - Full width for a section in product view page

I add a new block in Product View page: <referenceContainer name="content"> <container name="containertwo" as="containertwo" label="ontainer" htmlTag="container" htmlClass="my-...
0
votes
2answers
30 views

Magento2 Sharing product link for WhatsApp Web with bitly link

Magento2 Share product link for WhatsApp Web with bitly link how to currentUrl share with bitly link? $objectManagerInstance=\Magento\Framework\App\ObjectManager::getInstance(); $url = $...
0
votes
0answers
15 views

Magmi With S3 Bucket

I'm uploading product images to s3 bucket and import products from csv using Magmi. We access the image in CSV via remote link but i cannot upload it to s3. How i can using Magmi with S3 Bucket to ...
0
votes
0answers
12 views

Magento 2.3.1 connection closed on export

Had a long-running on Magento 2.3.1 with receiving the below error message when trying to export subscribers from our store. We can export an amount of 200 without issue but when I try to export all (...
1
vote
0answers
15 views

Selected payment method in quote not get changed to default when reload the onepagecheckout in magento 2

I am having two payment methods Online payment and COD in Magento 2. But the default one is an online payment. When I reload the page, the online payment option gets selected by default(even if I ...
0
votes
0answers
14 views

Magento 2 - Shipping comments in the order are not displayed

In the Admin Orders grid of Magento, when I receive an order and mark as shipped and complete, the comments regarding the shipment are not displayed. On this image you can see how Shipment comments ...
1
vote
0answers
23 views

How to get product's attributes and their value from product id in Magento 1.9 Soap Api v1

All i need is product total no of attributes and their value ...via passing product id(code is given below). <?php require_once('../app/Mage.php'); Mage::app(); $client = new SoapClient('...
0
votes
1answer
23 views

How to apply shipping charge for guest user in magento 2?

In Magento 2 I have configured shipping charge of 50 INR for below 500 INR purchase and for above 500 INR purchase shipping is free. But I need to customize there is no free shipping for guest user. ...
1
vote
1answer
24 views

How to save custom value in sales_flat_order_grid on order placement?

I have to save the stock of each product when an order is placed. The custom module is Tbb_StockRegistrar. It creates a column called order_stock_message in sales_flat_order and ...
0
votes
0answers
23 views

Magento 1.9.4 customer attribute on frontend

I have created a custom customer attribute ean_no for Magento 1.9.4 CE. I need this to be displayed on the 1. customer forms on frontend: register, edit, and checkout 2. In admin: admin edit ...
2
votes
1answer
28 views

Magento add to cart not working after cache

flurys.digifrizz.com is the site. In home page magento add to cart not working after cached. here is the custom_home.xml <?xml version="1.0" encoding="UTF-8"?> <page xmlns:xsi="http://www....
2
votes
1answer
40 views

When trying to upgrade to 2.3.2 getting a php version error

When I access the website, I get: Magento supports PHP 7.1.3 or later. Please read Magento System Requirements. I have PHP 7.2.19 on my stack Where do I look for the problem? https://siccaro....
1
vote
0answers
23 views

product.info.details already has a child with alias 'additional'

[2019-07-04 07:03:12] main.CRITICAL: Magento\Framework\Exception\LocalizedException: The element 'product.info.details' already has a child with alias 'additional' in /var/www/html/elec/vendor/...
0
votes
1answer
23 views

How to get cms content via magento1.9 soap api v1

I need cms page content which has a short code in it, so it returns shortcode. It should return HTML instead of that. I need to solve this via soap API v1.Below is the output I got. ...
1
vote
1answer
42 views

Migrate M2E PRO from Magento 1.9.3.10 to Magento 2.3.2

I want to migrate M2E PRO data and settings from Magento 1.9.3.10 to Magento 2.3.2. In Magento 1.9.x I have M2E Pro ver. 6.5.4 (include Walmart) and in Magento 2.3.x I use M2E Pro ver. 1.2.1, is ...
0
votes
1answer
27 views

how to send variable from js to phtml magento 2

i want to pass the value of qty from js to my phtml file so how to proceed here is my code: $("#qty").change(function () { var value = Number($("#qty").val()); ...
2
votes
1answer
29 views

Magento 2 Migration Settings error

I migrate settings from Magento 1.9.3.10 to Magento 2.3, after the migration was successful when I try to reindex or flush de cache from command line I have this error: The website with id 0 that ...
1
vote
0answers
21 views

How to get validator error or cannot add product to cart [closed]

I'm using Magento 1.9 (CE) and I cant add the product to cart due to validator error. There's no message, it just returns false. If I'll try to submit the form with product manually it'll add to cart. ...
0
votes
1answer
25 views

Layout XML Error - Magento 2

I change the deploy mode to developer on Magento 2 and now I see the following error: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is ...
2
votes
2answers
85 views

Migration from 1.9.x to Magento 2.3.x issue

I try to migrate data from my old Magento store 1.9.3.10 to the new Magento 2.3.2 but when I run: php bin/magento migrate:data --auto -r vendor/magento/data-migration-tool/etc/opensource-to-...
0
votes
0answers
26 views

Magento 1.9 Configurable Products Options and cart issue

I'm working on a magento 1.9 site, it have strange issue, we we go to a configurable product page it don't show the product options and ad to cart button. -The list pages show the other two option ...
1
vote
1answer
23 views

Magento 2 error report add prefix in file name

How i can add prefix for error report file name located in /var/report/? Like : prefix_979188230854 Any suggestions please?
3
votes
0answers
20 views

Redirect old page to new html page using .htaccess

We have a static HTML website having MicrosoftDynamics.html page recently we changed to MicrosoftDynamicsNav.html. But when we searched in google the page URL is showing old one, If we clicked the ...
0
votes
0answers
19 views

Shipping fees not get updated when quantity get increased in magento 2

In the admin configuration, I set a minimum order amount of free shipping is 1000 INR and flat rate shipping as 50 INR per order. In my cart page when I order a product below 1000 INR, the shipping ...
1
vote
1answer
33 views

Getting Null on Quote Collection by Reserved Order Id

I am trying to get quote data By reserved_order_id I tried this code protected $_quoteFactory; public function __construct( \Magento\Quote\Model\ResourceModel\Quote\CollectionFactory $...
0
votes
0answers
12 views

Magento 2: Add to cart button in category page with pre-selected attributes of configurable child

I want to create an add to cart button for a child of a configurable product in the category page. I'm trying with this code where I add the super_attribute hidden fields with the values of the ...
3
votes
0answers
25 views

Magento 2 admin in invoice total section grand total not get reduced

When creating an invoice for the order from Magento 2 admin panel, the grand total not get reduced with my store credit value.
2
votes
2answers
147 views

Magento2 - New order e-mail for us

we have an extension that sends out a new order e-mail to our own private mailbox. Which is different from the ones that customers get. We print these mails automatically on a receipt printer. We use ...
1
vote
1answer
54 views

Magento 2 Override ListProduct.php Block File

I am trying to override ListProduct.php file in my custom module, Steps: File: etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
22 views

Magento 1.x Get customer billing address

Magento 1.x How to get a customer billing address in my custom module controller file?
3
votes
1answer
41 views

Magento 2 Updating Other Products in catalog_product_save_after event Observer

I had created a Observer of this event:catalog_product_save_after I am trying to update other products and loading them on the basis of their id, but it is giving me error. I am Sharing my code here.. ...
0
votes
1answer
15 views

magento 1.x When a full refund complete of the order need to generate custom mail

Please any one help me on this point ,i want to generate a custom mail when get full refund of the order.Any idea on this please help me.i m new in this field..
2
votes
0answers
42 views

How to Remove a Block From layout Programatically in magento 2

i am trying to remove a Crossell from cart page in my phtml file how i can do this when i researched i found crosssell products are viewed in checkout_cart_index.xml file as <...
0
votes
1answer
16 views

Magento 1.x How to get customer paid amount in my custom module file?

How to get customer paid amount for the order? i want to validate the Order total amount and customer paid amount. can anyone please help me to solve this. Thanks in advance
2
votes
2answers
18 views

Magento 1.x How to get order Total amount in my custom module page?

How to get order total amount in my custom file ?
2
votes
0answers
23 views

How to get the applied custom discount amount in observer?

I followed the steps in the below link to apply custom discount [https://magento.stackexchange.com/a/93349/21007][1]. But I need to get the applied custom discount amount in the observer event of ...
0
votes
0answers
8 views

Not getting any value while searching the products using REST API

I am searching product as per product sku and name using the end point API of magento2 but for some search text no value is coming. I am explaining my code below. There is one product present which ...