File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
app/code/Magento/ProductAlert
view/frontend/templates/product Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \ProductAlert \Controller \Add ;
8
8
9
- use Magento \Framework \App \Action \HttpPostActionInterface ;
9
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
10
10
use Magento \ProductAlert \Controller \Add as AddController ;
11
11
use Magento \Framework \App \Action \Context ;
12
12
use Magento \Customer \Model \Session as CustomerSession ;
20
20
/**
21
21
* Controller for notifying about price.
22
22
*/
23
- class Price extends AddController implements HttpPostActionInterface
23
+ class Price extends AddController implements HttpGetActionInterface
24
24
{
25
25
/**
26
26
* @var \Magento\Store\Model\StoreManagerInterface
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \ProductAlert \Controller \Add ;
8
8
9
- use Magento \Framework \App \Action \HttpPostActionInterface ;
9
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
10
10
use Magento \ProductAlert \Controller \Add as AddController ;
11
11
use Magento \Framework \App \Action \Context ;
12
12
use Magento \Customer \Model \Session as CustomerSession ;
19
19
/**
20
20
* Controller for notifying about stock.
21
21
*/
22
- class Stock extends AddController implements HttpPostActionInterface
22
+ class Stock extends AddController implements HttpGetActionInterface
23
23
{
24
24
/**
25
25
* @var \Magento\Catalog\Api\ProductRepositoryInterface
Original file line number Diff line number Diff line change 6
6
?>
7
7
<?php /* @var $block \Magento\ProductAlert\Block\Product\View */ ?>
8
8
<div class="product alert <?= $ block ->getHtmlClass () ?> ">
9
- <a href="#" data-post=' <?= /* @noEscape */ $ block ->getPostAction () ?> '
9
+ <a href="<?= $ block ->escapeUrl ( $ block -> getSignupUrl ()) ?> "
10
10
title="<?= $ block ->escapeHtml (__ ($ block ->getSignupLabel ())) ?> " class="action alert">
11
11
<?= $ block ->escapeHtml (__ ($ block ->getSignupLabel ())) ?>
12
12
</a>
You can’t perform that action at this time.
0 commit comments