Questions tagged [php-7]

Use this tag when you have problems very specific to PHP7 because of for example BC breaks

Filter by
Sorted by
Tagged with
1
vote
0answers
68 views

Update Store Summary By Checkout Address Country Change

So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
2
votes
2answers
1k views

Save Button Redirecting to Same Admin Form in Magento 2

I am working on a custom module in magneto 2. i am creating an admin form using UI Component, when i click on save button Page redirects to its self Vendor\Module\Block\Adminhtml\ProductSliders\...
3
votes
1answer
88 views

Magento Shipping Estimation Script Not Working

PHP Shipping Estimation script (From StackExchange ) <?php //require_once("Mage.php"); ob_start(); require_once(__DIR__ . '/app/Mage.php'); umask(0); ini_set('display_errors',true); ini_set('...
2
votes
1answer
30 views

Magento 2: How to set from admin to see all the routes of my web content?

I have seen people setting something in the Admin, to see all the files routes of all the content in the store, I just want to know how to do that set. If someone can help, I would appreciate it.
0
votes
1answer
717 views

How to Fetch results from server using JQuery AJAX? on the basis of Drop-down Condition

I have two conditions, if two conditions are matching the given value should display. I am using input value as Drop down. If the value of two drop-downs matched i need to display my value on same ...
3
votes
2answers
129 views

Magento 2.3: How Magento knows that a certain patch is already executed while it didn't use any versioning?

As Magento introduces patches instead of upgrade data and upgrade schema. In earlier version of Magento upgrade data and upgrade schema works by versioning but in Magento 2.3 it only executed the one ...
0
votes
1answer
303 views

Magento 2.2.8 Redirects to Blank Pages from Contact Form and Backend Help

Yesterday I updated to Magento 2.2.8. Now, I'm having serious issues that I'm not even sure what triggers them. Firstly, yesterday, I was having issues with the SMTP (Mageplaza SMTP module) - when I ...
1
vote
1answer
684 views

Magento 2 : How to get selected record from ui form fieldset listing grid in controller?

I have created one UI form with UI grid. When I get params in controller I can not get selected row of UI grid. How to do that? Here is my UI Component layout file. <fieldset name="other_field"&...
4
votes
3answers
8k views

How to update magento 2.3.0 to 2.3.1?

Magento just released new versions of Magento Commerce and Open Source to increase product security, performance, and functionality. One of it is the Magento Commerce and Open Source 2.3.1. My ...
1
vote
1answer
45 views

Magneto2 : What are the Tables effected when an order created

I am creating custom attributes and magento 2.2.6 and I just want the list of the tables effected after an order creates successfully.
1
vote
0answers
28 views

Show Product Out of Stock if Related Item Out of Stock

Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?
3
votes
1answer
644 views

Magento 1 : each() function is deprecated

In Magento 1, I have been getting this error: Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/test/app/code/core/Mage/Eav/Model/...
3
votes
1answer
103 views

Magento 2.3.0 Shared Server Are Different PHP Version(s) An Issue

I’m trying to install Magento 2.3 with Composer, with php 72. I am hosted on a shared cloud server that has php 70 as the server version (what php -v returns). I can set the local version of php to ...
1
vote
1answer
24 views

Are Magento Object propertyNames that are prefixed by “_” different from ones that aren't?

what does this tell me ? Is there a place in the devdoc's I wasn't able to find or is this a convention I don't know about? thanx for your help...
1
vote
2answers
105 views

Magento Api request foreach error

I am trying to get attribute option Ids for a sku using this below api call. http://localhost/rest/V1/configurable-products/sh8/options/all I used this curl request: $curl = curl_init(); ...
0
votes
1answer
35 views

Multi store URL's of wrong store with GEOIP extension

I am using Magent0 2.0.6 PHP 7.0.32 I have multiple store views: - Dutch - English - French And have GeoIP extension installed that check user's IP and redirect to matching store. But on the ...
1
vote
0answers
53 views

Upgrade 2.2 to 2.3 - unique situation, PHP Stuck at 7.2

So, I'm on shared hosting, which works great for me, until now. My host updated PHP CLI to 7.2.15 My magento is on 2.2.6(doesn't support 7.2.15) so I need to upgrade to Magento 2.3. My issue is I ...
0
votes
1answer
93 views

Magento does not create cache, reports and logs

I noticed that my magento onlineshop does not create any files in var/cache, var/report and it does not report anything to the logfiles in var/log. The var directory has the permissions drwxrwxr-x ...
6
votes
2answers
1k views

Which php.ini is used on my system?

I'm using Magento 2.3.0 with PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ), and I'm not sure which is the php.ini file that I should modify. I am currently modifying these ...
0
votes
2answers
1k views

how to create a attribute programmatically in magento2

I need to delete the existing attribute called Manufacturer if this attribute exists. And then Create a new attribute called Manufacturer with the same properties as that of the existing one.its ...
2
votes
1answer
358 views

setup:upgrade error when updating magento 2.2.7 to magento 2.3

I hope somebody has een idea to solve this, I tried removing all my cache, generated folder, composer install, compile etc but no luck PHP Fatal error: Uncaught Error: Call to undefined method ...
0
votes
1answer
38 views

How to add footer template in Magento 2?

How to add footer template only for product view page in Magento 2? Thanks.
2
votes
1answer
320 views

How to add loader untill the image not ready on page load

I want to show the image in particular div. I want to show the empty div . if the img src is ready , then it display the img tag in particular div How to do that? Thanks.
2
votes
5answers
4k views

Notice: Undefined offset: 0 in /vendor/magento/module-customer/Ui/Component/DataProvider/Document.php

I am having this error when trying to export csv file with customer fields from Magento 2.2.5 admin: 1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 0 in /var/www/html/vendor/...
1
vote
2answers
67 views

Getting Error while calling a block `$_product->$_call()`

Fatal error: Uncaught Error: Method name must be a string in D:\xampp-7.1.23\htdocs\indiahicks\app\design\frontend\Mgs\ethan\Magento_Catalog\templates\product\view\form.phtml:19 <?php $...
1
vote
1answer
20 views

Grid (Serializer Grid) skip one record while loading

I am loading a serializer grid with record but it skips the very first record it is returning array correct Code for my grid is working like this ->it loads the answer related to a question. ->the ...
2
votes
3answers
520 views

How to get recently viewed product collection in magento2?

I want to get the recently viewed product collection directly from model without using block function. Thanks.
5
votes
1answer
2k views

Magento 2 : How to get the best seller product collection?

I'm trying to get Best Seller Product collection using below code, but it will not display any data $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productCollection = $...
-1
votes
2answers
857 views

how to set order increment Id while creating order dynamically in magento 2

I am creating orders in magento 2 programatically but i cannot know how to set increment Id for orders , client's want to migrate old order into magento 2 , so we already have order increment id but ...
0
votes
0answers
55 views

Product is not updating in Magento 2

I am getting an error while updating a product Warning: trim() expects parameter 1 to be string, array given in D:\xampp-7.1.23\htdocs\indiahicks\vendor\magento\module-eav\Model\Entity\...
0
votes
1answer
451 views

Magento 2 : How to get Custom Field Image Icon url from admin catalog category page?

Below is my code to display custom field in catalog category form. category_form.xml file <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
0
votes
1answer
89 views

Unable to load the collection in DataProvider by matching values in array

I am trying to fetch Collection of specific ids by using filters in my custom DataProvider public function getData() { $id =$this->request->getParam('id');//returns 5 $answerids=$...
1
vote
5answers
240 views

What are the best way to customize Magento 2 core

How I can customize Magento 2 core module? Can I create new module or override core modules?
0
votes
0answers
188 views

cannot update php on ubuntu 16.04 from php7.1.2 to php 7.1.3

I have a magento 2.2.2 and want to update to magento 2.3. The problem is my version of php. Currently I have php7.1.26 while magento 2.3 is compatible only with php 7.1.3+. The solution seems easy: ...
1
vote
1answer
1k views

Magento 2.3 Upgrade : Undefined class constant 'WYSIWYG_EDITOR_CONFIG_PATH' in vendor/magento/module-ui/Block/Wysiwyg/ActiveEditor.php:56

After Upgrading from Magento 2.2.7 to Magento 2.3, I am getting this error Undefined class constant 'WYSIWYG_EDITOR_CONFIG_PATH' in admin and frontend. Received this issue right after upgrading. The ...
0
votes
1answer
45 views

Fetch all the students on the basis of ascending marks

This query fetches all the student name and there ids on basis of topics but i want to get these result on basis of ascending marks ... i.e select student_name and ids where student_topic = topic but ...
0
votes
0answers
35 views

How to add radio button in ui modifier

I want to add radio button using ui modifier return [ 'arguments' => [ 'data' => [ 'config' => [ 'label' => __('...
0
votes
0answers
332 views

How to add radio button in custom option in magento2

I want to add radio button in custom option . I refer this link Magento2 adding radio buttons in customoptions. But not working. If anything i want to chage it. Thanks.
1
vote
2answers
435 views

Upload image in custom option

I want to add the file uploaded in custom option (adminend). In CustomOption modifier: return [ 'arguments' => [ 'data' => [ 'config' => [ ...
0
votes
3answers
43 views

How to add css in header in magento2

I want to include the css for product view page In catalog_product_view layout: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
0
votes
1answer
75 views

upgrade from Magento 2.2.6 to 2.3 Invalid or uninitialized Zip object

I am trying to upgrade from Magento 2.2.6 to 2.3 php bin/magento deploy:mode:set developer php bin/magento cache:disable php bin/magento maintenance:enable composer require magento/...
1
vote
2answers
155 views

Override block in magento2

I want to override getCustomizedOptionValue function in Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn In etc\adminhtml\di.xml: <preference for="Magento\Sales\Block\Adminhtml\Items\...
1
vote
1answer
950 views

Checkout page validation not working in magento2

I have added custom text field for bank transfer method. In template file: <div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}"> <div class="payment-...
1
vote
0answers
41 views

Add custom text in magento2 [duplicate]

I want to display the custom text under payment method(admin order). How to display the custom text under payment method in below layouts sales_order_view.xml sales_order_invoice.xml ...
0
votes
2answers
3k views

Magento2 : How to add Custom Block?

How to add custom block under payment method(admin order invoice)
1
vote
1answer
252 views

Free Shipping Problem with Magento 1.9.3.10 and PHP 7

I am in the process of upgrading a Magento 1.8.1 installation to ver 1.9.3.10 on a development server with PHP 7.0 using the blank template. Everything seems to work fine except during checkout, if I ...
1
vote
1answer
60 views

How to get the custom option in magento2

I have created custom field in custom option by using custom option, custom fields I want to get my custom option from $block->getOption(); But my custom field not added in the list .. Thanks.
1
vote
0answers
30 views

Multiple file uploader in magento2

By default , magento have the file upload option under customise option->option type in product form. How to add multiple file uploader under customise option . Thanks.
0
votes
1answer
30 views

How to remove block in view page in magento2

I need to remove social shares from product view page in magento2
0
votes
2answers
455 views

How to remove the stock status in magento2

I need to remove the stock status for particular product type in admin product form. Thanks.

1 2
3
4 5
10