For more details see how the Quick View extension works.
Let customers preview product information and add necessary items to cart right from the quick view window on a category page.
Enable Quick View - Switch to Yes to activate the extension.
Quick View Button Text - Specify any text for a quick view button.
Custom CSS Styles for Hover Block - This feature enables you to customize the Quick View button. You can specify button color, size and other parameters with a standard CSS formatting.
Close Popup after Add to Cart - Specify whether close or not the quick view pop-up after adding a product to cart. This option is available only for Magento 2.2 and higher.
Use Fancybox Library - Set to 'Yes' to use Fancybox Library. Choose 'No' if Fancybox is already used on your site.
In this tab, you can specify the DOM-selectors for Product Item, Product Container, Product Image, Product Image Container and Product Add To Cart Form.
Save Config - Click here save configuration settings.
A sample of a hover block with the Quick View button on a category page.
A sample of a customized Quick View button with specified background-color: orange.
Here is a pop-up preview window sample. On the popup, you can perform any regular actions like on a product page.
1. Open a file, which is responsible for the hints' display.
vendor/magento/module-developer/Model/TemplateEngine/Decorator/DebugHints.php
2. Find a function:
_renderBlockHints
3. Replace a line -
$blockClass = get_class($block);
with the following one:
$blockClass = $block->getNameInLayout();
4. Next, go to Admin Panel > Stores > Configuration > Advanced > Developer > Developer Client Restrictions
5. Go to the front-end, open a catalog page with the quick views:
6. Open a file, which is responsible for a quick-view's display:
app/code/Amasty/Quickview/view/frontemd/layout/amasty_quickview_ajax_view.xml
Before a line:
</body>
Add one more line:
<referenceBlock name="{{block}}" remove="true">
Save changes.
7.Go to Admin Panel > Stores > Configuration > Advanced > Developer to disable hints:
8. Go to the front-end to see the results.