|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| isThresholdMessageDisplayed () | |
| getThresholdMessage () | |
| getPriceBlock (FixtureInterface $product=null) | |
| addToCart (FixtureInterface $product) | |
| clickAddToCart () | |
| setQtyAndClickAddToCart ($qty) | |
| setQty ($qty) | |
| isVisibleAddToCart () | |
| paypalCheckout () | |
| inContextPaypalCheckout () | |
| braintreePaypalCheckout () | |
| getProductName () | |
| getProductSku () | |
| getProductShortDescription () | |
| getProductDescription () | |
| getTierPrices ($lineNumber=1) | |
| clickAddToCartButton () | |
| isVisibleAddToCardButton () | |
| stockAvailability () | |
| clickAddToWishlist () | |
| selectTab ($name) | |
| waitLoader () | |
| isGalleryVisible () | |
| isFullImageVisible () | |
| getFullImageSource () | |
| isBaseImageVisible () | |
| getBaseImageSource () | |
| clickBaseImage () | |
| closeFullImage () | |
| isVideoVisible () | |
| checkVideoDataPresence ($videoData) | |
Public Member Functions inherited from AbstractConfigureBlock | |
| getCustomOptionsBlock () | |
| setQty ($qty) | |
Protected Attributes | |
| $tabSelector = './/div[@data-role="collapsible" and a[contains(text(),"%s")]]' | |
| $customOptionsSelector = '.product-options-wrapper' | |
| $addToCart = '.tocart' | |
| $qty = '#qty' | |
| $addToCartForm = '#product_addtocart_form' | |
| $paypalCheckout = '[data-action=checkout-form-submit]' | |
| $inContextPaypalCheckout = 'ul.checkout-methods-items a[data-action="paypal-in-context-checkout"]' | |
| $productName = '.page-title-wrapper.product h1.page-title .base' | |
| $productSku = '[itemprop="sku"]' | |
| $productDescription = '.product.attribute.description .value' | |
| $productShortDescription = '.product.attribute.overview' | |
| $stockAvailability = '.stock span' | |
| $tierPricesSelector = "//ul[contains(@class,'tier')]//*[@class='item'][%line-number%]" | |
| $priceBlock = '//*[@class="product-info-main"]//*[contains(@class,"price-box")]' | |
| $clickAddToCompare = '.action.tocompare' | |
| $addToWishlist = '[data-action="add-to-wishlist"]' | |
| $messageBlock = '.page.messages' | |
| $miniCartBlockSelector = '[data-block="minicart"]' | |
| $successMessage = '[data-ui-id$=message-success]' | |
| $mediaGallery = '[data-gallery-role="gallery"] img' | |
| $ajaxLoading = 'body.ajax-loading' | |
| $fullImage = '[data-gallery-role="gallery"] img.fotorama__img--full' | |
| $fullImageClose = '[data-gallery-role="fotorama__fullscreen-icon"]' | |
| $baseImage = '[data-gallery-role="gallery"] img.fotorama__img.fotorama__img' | |
| $galleryLoader = '.fotorama__spinner--show' | |
Protected Attributes inherited from AbstractConfigureBlock | |
| $customOptionsSelector | |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractConfigureBlock | |
| prepareCheckoutData (array $options, array $checkoutData) | |
Product view block on the product page.
@SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.ExcessivePublicCount) @SuppressWarnings(PHPMD.NPathComplexity)
| addToCart | ( | FixtureInterface | $product | ) |
| braintreePaypalCheckout | ( | ) |
Press 'Check out with Braintree PayPal' button.
| checkVideoDataPresence | ( | $videoData | ) |
Check definite video data is presented on product page
| string | $videoData |
| clickAddToCart | ( | ) |
Click link.
Definition at line 322 of file View.php.
| clickAddToCartButton | ( | ) |
Click "ADD TO CART" button.
Definition at line 480 of file View.php.
| clickAddToWishlist | ( | ) |
| clickBaseImage | ( | ) |
| getBaseImageSource | ( | ) |
| getFullImageSource | ( | ) |
| getPriceBlock | ( | FixtureInterface | $product = null | ) |
| getProductDescription | ( | ) |
Return product description on page.
| getProductName | ( | ) |
| getProductShortDescription | ( | ) |
Return product short description on page.
| getProductSku | ( | ) |
| getThresholdMessage | ( | ) |
| getTierPrices | ( | $lineNumber = 1 | ) |
| inContextPaypalCheckout | ( | ) |
Press 'Check out with PayPal' button.
Definition at line 377 of file View.php.
| isBaseImageVisible | ( | ) |
| isFullImageVisible | ( | ) |
| isGalleryVisible | ( | ) |
| isThresholdMessageDisplayed | ( | ) |
| isVideoVisible | ( | ) |
| isVisibleAddToCardButton | ( | ) |
Check 'Add to card' button visible.
Definition at line 490 of file View.php.
| isVisibleAddToCart | ( | ) |
Find Add To Cart button.
Definition at line 356 of file View.php.
| paypalCheckout | ( | ) |
| selectTab | ( | $name | ) |
| setQty | ( | $qty | ) |
| setQtyAndClickAddToCart | ( | $qty | ) |
| stockAvailability | ( | ) |
| waitLoader | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |