Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Weee
Test
Block
Cart
Totals
Fpt.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Weee\Test\Block\Cart\Totals
;
8
9
use Magento\Mtf\Block\Block;
10
use Magento\Mtf\Client\Locator;
11
15
class
Fpt
extends
Block
16
{
22
protected
$totalFpt
=
'.price'
;
23
29
public
function
getTotalFpt
()
30
{
31
$grandTotal
= $this->_rootElement->find($this->totalFpt, Locator::SELECTOR_CSS)->getText();
32
return
$this->
escapeCurrency
(
$grandTotal
);
33
}
34
41
protected
function
escapeCurrency
(
$price
)
42
{
43
preg_match(
"/^\\D*\\s*([\\d,\\.]+)\\s*\\D*$/"
,
$price
, $matches);
44
return
(isset($matches[1])) ? $matches[1] :
null
;
45
}
46
}
Magento\Weee\Test\Block\Cart\Totals
Definition:
Fpt.php:7
$price
$price
Definition:
product_alert.php:10
Magento\Weee\Test\Block\Cart\Totals\Fpt\escapeCurrency
escapeCurrency($price)
Definition:
Fpt.php:41
Magento\Weee\Test\Block\Cart\Totals\Fpt
Definition:
Fpt.php:15
Magento\Weee\Test\Block\Cart\Totals\Fpt\getTotalFpt
getTotalFpt()
Definition:
Fpt.php:29
Magento\Weee\Test\Block\Cart\Totals\Fpt\$totalFpt
$totalFpt
Definition:
Fpt.php:22
Magento\Checkout\Test\Block\Cart\Totals\$grandTotal
$grandTotal
Definition:
Totals.php:22