Questions tagged [deprecated]
The deprecated tag has no usage guidance.
10
questions with no upvoted or accepted answers
3
votes
0answers
34 views
Deprecated Registry alternate using session or any other possibilities for 'Custom module'
In my case, I created Blog Module and in that while getting current_blog_post from URL's id, I register it in coreRegistry and use registry to get the value in various places.
register is used in ...
2
votes
0answers
428 views
How to load facotry model load best practice?
class Product extends \Magento\Framework\View\Element\Template {
protected $_productloader;
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
...
2
votes
1answer
356 views
How to load current product in Magento 2 without using deprecated functionality?
The core uses two deprecated classes to load the current product within the block class on the front end:
\Magento\Catalog\Block\Product\AbstractProduct
\Magento\Framework\Registry
See: \Magento\...
1
vote
1answer
165 views
Replacement for Cart (M2)
what's the best replace for
\Magento\Checkout\Model\Cart $cart
since this class Cart is deprecated ?
1
vote
0answers
7k views
REST API is deprecated for versions v2.1 and higher (12)
In the last days i got this error on my magento.
Problems are on my checkout/onepage that returning to cart instead of success.
I saw that it can be a facebook problem with the upgrade (after 7th aug ...
0
votes
0answers
8 views
Deprecated functions in Magento 2
There are lots of functions in magento 2 which are deprecated like Registry. Can anyone give me list of such functions or classes.
0
votes
1answer
33 views
Method 'delete' is deprecated
phpstorm IDE saing that method 'delete' is deprecated. Is there any alternatives?
public function deleteVoucherStatus($entity_id)
{
$voucherStatus = $this->voucherStatusModelFactory-&...
0
votes
0answers
95 views
Magento 2 Authorize Net Payment Deprecation
From Magento 2.3 release, Authorize Net payment has been stated as Deprecated. Please refer to the below link
https://docs.magento.com/m2/ce/user_guide/payment/authorize-net.html
How can I ...
0
votes
1answer
303 views
Magento 2.3 getResource is deprecated, what is the alternative?
I have a product attribute label get in category page below way.
<?php
$tablecolor = $_product->getResource()->getAttribute('xyz'); // attribute name
$attrTestValue = $tablecolor->...
0
votes
0answers
542 views
Deprecated functionality: preg_replace()
Trying my instance of Magento on PHP 5.6 because my host is upgrading the server and everything seems to work well besides from this error message.
Deprecated functionality: preg_replace(): The /e ...