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
1answer
216 views

How to override Email Header and Footer through module in Magento 2

I want to override magento email template file. app/design/frontend/Vendor/themename/Magento_Email/email/header.html app/design/frontend/Vendor/themename/Magento_Email/email/footer.html
0
votes
1answer
3k views

You must have installed GD library with --with-jpeg-dir=DIR option

PHP Settings Check You must have installed GD library with --with-jpeg-dir=DIR option. Getting the issue when I install Magento
4
votes
3answers
3k views

How to add custom block in admin order create form in magento 2.2.5

I need to add custom block after order comment section in admin order create form using version(magento2.2.5)
0
votes
1answer
265 views

Add custom option to configurable product M2

I wrote a plugin to add custom option while adding the product to cart public function beforeAddProduct($subject, $productInfo, $requestInfo = null) { $additionalOptions['...
2
votes
2answers
153 views

Magento Memory issue for installing extensions

I am really stuck at the moment. I keep getting the following error: "Your current PHP memory limit is 512M. Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit ...
0
votes
1answer
684 views

Cart empty issue in magento2

I have get the new quote for every page reload in when the cart is empty. If anyone face this issue....How to solve it.
0
votes
1answer
764 views

Empty Cart in magento2

creating new quote on page reload when empty cart in magento2 I have add a item in cart.....after that remove that item from cart.Now I'm reloading cart page ,it creating a new quote for every page ...
1
vote
2answers
1k views

Override helper in Magento 2?

I'm trying override getBreadcrumbPath() in Magento\Catalog\Helper\Data. In di.xml <type name="Magento\Catalog\Helper\Data"> <plugin name="Helper" type="XXX\YYY\Plugin\Helper\Data" ...
0
votes
1answer
325 views

How to override template in magento 2?

How to remove the line below <span class="discount coupon" data-bind="text: getCouponLabel()"></span> in Magento_SalesRule/cart/totals/discount.html var config = { 'config': { ...
2
votes
2answers
424 views

How to override collect() in magento2?

How to override collect() using after Plugin in magento2. I need to set custom description in totals. Magento\SalesRule\Model\Quote\Discount use Magento\SalesRule\Model\Quote\Discount as Source; ...
0
votes
0answers
84 views

How to override core Interface and Model file in magento2? [duplicate]

How to override core Interface and Model file in magento2... I need to remove current password in change password frontend section.In current password validate in \Magento\Customer\Controller\Account\...
0
votes
1answer
105 views

How to get color family values for product in magento2?

How to get color family values and option Id for product in magento2.
0
votes
1answer
1k views

How to filter product with salable filter in magento2

In magento 1 , $products = Mage::getModel('catalog/product')->getCollection(); $products->addAttributeToFilter('status', 1); // enabled $products->addAttributeToFilter('type_id', 'simple'); ...
0
votes
1answer
445 views

How to use php version according to magento version?

I have php 5.6 & php 7.0.3 on the server. I am upgrading the website magento 1.9.2.4 to magento 1.9.3.9 which is showing me an error of php version. CONNECT ERROR: Package community/...
8
votes
5answers
25k views

The each() function is deprecated. Magento 2 , php 7.2

I have been getting this error since I changed to PHP-7.2 Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/vedic/vendor/...
3
votes
1answer
154 views

How to change the current password optional

How do I change the current optional password in edit account section in Magento 2 as customer is already logged in, hence I don't want customer to put the current password again for the store. How ...
0
votes
2answers
366 views

How to remove confirm password in magento2?

How to remove confirm password field in Change password Section in magento2.2.5 I have remove confirm password field in edit.phtml
0
votes
1answer
58 views

How to get the product image with custom size?

How to get product image with custom size for api in magento2.2.4 use Magento\Catalog\Helper\ImageFactory; $imageCode = 'upsell_products_list'; $imageHelper = $this->_imageFactory->...
0
votes
1answer
352 views

Convert Product Attribute Text to Number

I am trying to do a custom inventory check with some attributes that I populate, my thoughts would be that it could work something like this; <?php $_invwest = $_product->getResource()->...
1
vote
1answer
173 views

Wishlist in magento2?

How to get configurable option value of added product in wishlist in magento2. $collection = $this->_wishlistCollectionFactory->create() ->addCustomerIdFilter($customerId)...
0
votes
1answer
30 views

How to hide offline custom module of magento when total amount is more than 100 $

My module file is <?php namespace Inchoo\Shipping\Model\Carrier; use Magento\Quote\Model\Quote\Address\RateRequest; use Magento\Shipping\Model\Rate\Result; class Example extends \Magento\...
0
votes
0answers
374 views

Add to wishlist for api in magento2 [duplicate]

I have created an api for wishlist. If I add the same product with option to wishlist for second time, then I got the new product with same option for every addtowishlist. I already refer below ...
3
votes
0answers
124 views

My deployment scripts are utilizing all the ram and taking forever

Even if I increase the ram it will end up just using it up and bogging down. I'm not sure if this is riding the gray line of what should be in magento stack exchange vs ask ubuntu. Why are these ...
0
votes
1answer
735 views

How to add configurable product in wishlist in magento2

How to add configurable product option id in magento2 programmatically Thanks
1
vote
1answer
2k views

add static block on top of header

I am trying to customize Magento top header with some custom static block and also want to change and relocate existing link and icon like wish-list. I created static block for top-header social ...
0
votes
0answers
140 views

Can't install Sample Data Magento2 CE on ubuntu 18.04

I Installed Magento 2.0.18, I have PHP 7.0.30 installed on my system. I can't get the sample data installed in my system. All I see is blank Luma theme saying your content goes here. I have run ...
1
vote
1answer
665 views

How to resolve login fail 'Your currnt session has been expired.' into admin pape in Magento 2?

Using Magento CE 2.2.0 with sample data. this error happen when i change time zone in 'bootstrap.php', i try to change it back in it still error.
0
votes
2answers
341 views

Magento 2.2.4 Admin issue on PHP 7.1

magento 2.2.4 was working absolutely fine with PHP 7.0 and when i upgrade PHP to 7.1 than the frontend is working fine but the backend is giving me below error. Can anyone please guide me if PHP 7.1 ...
0
votes
1answer
2k views

Warning: ZipArchive::addFile(): Invalid or uninitialized Zip object

I am trying to zip the files in a folder. Example: In a path localhost/magento/var/log, there are two files system.log, debug.log. Following is the code which I tried to zip the files. Am developing ...
0
votes
1answer
570 views

Serialization of 'Mage_Core_Model_Config_Element' is not allowed in Session.php

Greetings StackOverflow. Recently I have upgraded a Magento solution to PHP 7.0. I have used Inchoo PHP7 Compatibility module for core overrides that should make it "stable". https://github.com/...
0
votes
1answer
22 views

Array values based calculation [closed]

Input: Given the array of dynamic values . For EX: i=array(1,2,3,4,5,6,7,8,9); Expected Output: (array of i)/n For EX:(array of i/3) 1)1,2,3 2)3,4,5 3)6,7,8 How to do this Thanks
0
votes
1answer
631 views

Product Page Error Magento 1.9. and PHP7

I am looking to move a magento site to PHP7, and whilst the site generally seems fine, there is an issue with the product page. It loads half the page and then throws an error: Fatal error: Uncaught ...
0
votes
1answer
100 views

Discount Price in Magento 2

I have created a new rule in cart price rule .So i want to know about $item->getDiscountCalculationPrice() and $item->getCalculationPrice() in magento2?
1
vote
2answers
426 views

Get items in cart (Magento - 2)

What is the difference between? $address->getAllNonNominalItems() And $address->getAllVisibleItems() Please anyone can help me on this?
2
votes
1answer
2k views

Uncaught TypeError: Argument 3 passed to Mage_Catalog_Model_Resource_Abstract::_canUpdateAttribute() must be of the type array, null given

I'm getting the following error: [15-Apr-2018 04:10:22 UTC] PHP Fatal error: Uncaught TypeError: Argument 3 passed to Mage_Catalog_Model_Resource_Abstract::_canUpdateAttribute() must be of the type ...
2
votes
2answers
822 views

How to remove sidebar in Shipping Address step Magento 2

I want to hide the sidebar in this Shipping Address Page on Checkout. Note: I only want to hide the sidebar in Shipping Address step, not in other steps. I did some research on it But found Solution ...
0
votes
1answer
384 views

Check Component Dependency, no obvious error

I am creating a test environment for magento, hoping that I can replicate later for some work on it, and have come up an issue on Check Component Dependency. the base config is as followed: Specs ...
0
votes
0answers
24 views

Cart Price Rule in magento2

How to create a rule Buy X get @888? Please explain me. Thanks.
2
votes
0answers
194 views

Magento 2 - How to add new action type in shopping cart rule

I want to add New action type Name = Buy 1 get 1. If anyone gets 1 product and cart rule condition true then I give one free product to that order. How to add the new action to cart rule. and how to ...
0
votes
1answer
525 views

Cart rule in magento2?

I have created a cart price rule which contains specfic coupon and percentage of product price discount(10%). How to checkflow of Magento apply these rule.
0
votes
1answer
653 views

Trying to setup magento2 , missing Extension intl. -XAMPP

I'm trying to setup magento2 but this error 1 missing PHP Extension intl. already made me crazy... tried so many solution like edit php.ini : From: ;extension=php_intl.dll To extension=php_intl....
0
votes
3answers
2k views

Sorting Grid Column in magento2?

I have created a ui component grid . How to sorting the admin grid <?xml version="1.0"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
0answers
150 views

collection for grid in magento2

I created a custom grid under custom tab in product view page. The grid was showing the total product collection from my table. I want display the grid only current product data. I apply filter ...
0
votes
1answer
144 views

Getting Current_product id in Magento2?

How to get product in product edit page... In model file XXX\Stock\Model\ResourceModel\Edit\Grid\Collection protected function _initSelect() { parent::_initSelect(); $order = $this->...
0
votes
0answers
1k views

Customise grid collection in magento2?

I have created admin grid for product in product view page.It display all product details.But i need to display the current product details in admin grid. How to apply filter collection from table ...
0
votes
1answer
53 views

Add link in sku (Magento2)

I have created column name sku in custom grid. Set href for sku values. If i click the sku link,it does not go to desire page. It go to desire page when i press right click and open the link in new ...
1
vote
1answer
294 views

How to show url in Magento2?

I have created custom admin grid which contains column name sku. How to make this sku field value into url.That url go for product edit page. In layout file <column name="product_sku" class="...
0
votes
2answers
87 views

Product sku in magento2 [closed]

I have created custom grid using ui component. I want to add product sku column in custom grid which contains product skus list from product table. How to do that .... If anyone knows please ...
1
vote
1answer
62 views

Add tab in magento2? [duplicate]

How to add custom tab in product Edit Page in magento2? I'm refer https://webkul.com/blog/add-tab-product-page-magento-admin/ But , i can't see tab in product edit page... If anyone knows please ...
1
vote
1answer
1k views

How to add tab in product Edit Page in Magento2?

How to add tab in product edit page in magento2? I refering some tutorial ...but its not woking for me... https://webkul.com/blog/add-tab-product-page-magento-admin/ If anyone knows ,Explain me...

1
3 4
5
6 7
10