ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="Magento_Backend::stores">
|
||||
<resource id="Magento_Backend::stores_settings">
|
||||
<resource id="Magento_Config::config">
|
||||
<resource id="Amasty_HidePrice::config"
|
||||
title="Amasty Hide Price Settings"
|
||||
sortOrder="100115" />
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
<resource id="Magento_Backend::marketing">
|
||||
<resource id="Amasty_HidePrice::request" title="Amasty Hide Price" sortOrder="100116" />
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool">
|
||||
<arguments>
|
||||
<argument name="modifiers" xsi:type="array">
|
||||
<item name="amasty-hide-price" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Amasty\HidePrice\Ui\DataProvider\Product\Form\Modifier\HidePrice</item>
|
||||
<item name="sortOrder" xsi:type="number">30</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<type name="Magento\Backend\Model\Menu\Item">
|
||||
<plugin name="Amasty_HidePrice:correct-configuration-url"
|
||||
type="Amasty\HidePrice\Plugin\Backend\Model\Menu\Item" />
|
||||
</type>
|
||||
|
||||
<type name="Amasty\HidePrice\Model\Config\Backend\Popup\Customform">
|
||||
<arguments>
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="module_manager" xsi:type="object">Magento\Framework\Module\Manager</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
</config>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Amasty_HidePrice::request" title="Hide Price" module="Amasty_HidePrice" sortOrder="80"
|
||||
parent="Magento_Backend::marketing"
|
||||
resource="Amasty_HidePrice::request"/>
|
||||
<add id="Amasty_HidePrice::request_manage" title="Get a Quote Requests" module="Amasty_HidePrice" sortOrder="10"
|
||||
parent="Amasty_HidePrice::request"
|
||||
action="amasty_hideprice/request/"
|
||||
resource="Amasty_HidePrice::request"/>
|
||||
<add id="Amasty_HidePrice::settings" title="Configuration" module="Amasty_HidePrice" sortOrder="20"
|
||||
parent="Amasty_HidePrice::request"
|
||||
action="adminhtml/system_config/edit/"
|
||||
resource="Amasty_HidePrice::config"/>
|
||||
</menu>
|
||||
</config>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="amasty_hideprice" frontName="amasty_hideprice">
|
||||
<module name="Amasty_HidePrice" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
+252
@@ -0,0 +1,252 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
|
||||
<system>
|
||||
<section id="amasty_hide_price" translate="label" type="text" sortOrder="130115" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Hide Price</label>
|
||||
<tab>amasty</tab>
|
||||
<resource>Amasty_HidePrice::config</resource>
|
||||
<group id="amasty_information" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Information</label>
|
||||
<frontend_model>Amasty\HidePrice\Block\Adminhtml\System\Config\Information</frontend_model>
|
||||
</group>
|
||||
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>General Settings</label>
|
||||
<field id="enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Enable Extension</label>
|
||||
<comment>Choose ‘Yes’ to hide the price for the selected product categories and customer groups</comment>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="customer_group" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide Price for Selected Group(s)</label>
|
||||
<comment>Product price will be hidden for the selected customer groups only</comment>
|
||||
<source_model>Amasty\HidePrice\Model\Source\Group</source_model>
|
||||
</field>
|
||||
<field id="category" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide Price for Selected Category(s)</label>
|
||||
<comment>Product price will be hidden for the selected product categories only</comment>
|
||||
<source_model>Amasty\HidePrice\Model\Source\Category</source_model>
|
||||
</field>
|
||||
<field id="ignore_products" translate="label comment" type="text" sortOrder="30" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Do not Apply to Product ID’s</label>
|
||||
<comment>Specify comma separated product id’s to show the price for. This setting has the maximum priority</comment>
|
||||
</field>
|
||||
|
||||
<field id="ignore_customer" translate="label comment" type="text" sortOrder="40" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Do not Apply to Customer ID’s</label>
|
||||
<comment>Specify comma separated customer id’s to show price for. This setting has the maximum priority</comment>
|
||||
</field>
|
||||
|
||||
<field id="sender" translate="label" type="select" sortOrder="50" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Email Sender for Admin Reply Email</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Email\Identity</source_model>
|
||||
</field>
|
||||
|
||||
<field id="template" translate="label comment" type="select" sortOrder="60" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Email Template for Admin Reply Email</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
|
||||
<comment>Email template chosen based on theme fallback when "Default" option is selected</comment>
|
||||
</field>
|
||||
</group>
|
||||
<group id="information" translate="label" type="text" sortOrder="15" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Hide Price Options</label>
|
||||
<field id="hide_price" translate="label" type="select" sortOrder="40" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide Price</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
|
||||
<field id="hide_button" translate="label comment" type="select" sortOrder="50" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide "Add to Cart"</label>
|
||||
<comment>Hide ‘Add to Cart’ or replace it with the custom button, e.g. ‘Sign up’ or ‘Get a Quote’</comment>
|
||||
<source_model>Amasty\HidePrice\Model\Source\HideButton</source_model>
|
||||
</field>
|
||||
|
||||
<field id="replace_text" translate="label" type="text" sortOrder="60" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Replace "Add to Cart" Title with</label>
|
||||
<depends>
|
||||
<field id="hide_button">2</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="replace_with" translate="label" type="select" sortOrder="65" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Replace "Add to Cart" Link with</label>
|
||||
<source_model>Amasty\HidePrice\Model\Source\ReplaceButton</source_model>
|
||||
<backend_model>Amasty\HidePrice\Model\Config\Backend\Popup\Customform</backend_model>
|
||||
<depends>
|
||||
<field id="hide_button">2</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="redirect_link" translate="label" type="text" sortOrder="67" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Custom URL</label>
|
||||
<depends>
|
||||
<field id="hide_button">2</field>
|
||||
<field id="replace_with">0</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="custom_form" translate="label" type="select" sortOrder="67" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Custom Form</label>
|
||||
<source_model>Amasty\HidePrice\Model\Source\CustomForm</source_model>
|
||||
<depends>
|
||||
<field id="hide_button">2</field>
|
||||
<field id="replace_with">2</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="replace_css" translate="label" type="textarea" sortOrder="65" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Css Styles for Replaced Link</label>
|
||||
<comment>Customize the CSS Styles for the replaced Link</comment>
|
||||
<depends>
|
||||
<field id="hide_button">2</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="hide_wishlist" translate="label comment" type="select" sortOrder="80" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide "Add to Wishlist"</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Hide wishlist link when price is hidden</comment>
|
||||
</field>
|
||||
|
||||
<field id="hide_compare" translate="label" type="select" sortOrder="90" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide "Add to Compare"</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Hide compare link when price is hidden</comment>
|
||||
</field>
|
||||
</group>
|
||||
<group id="frontend" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Frontend Options</label>
|
||||
<field id="text" translate="label comment" type="textarea" sortOrder="10" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Hide Price Text</label>
|
||||
<comment>Display the above text when price is hidden, e.g. ‘Call for Price’</comment>
|
||||
</field>
|
||||
<field id="custom_css" translate="label comment" type="textarea" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Custom CSS Styles for Hide Price Link</label>
|
||||
<comment>Customize the CSS Styles for the Hide Price Link</comment>
|
||||
</field>
|
||||
<field id="image" translate="label comment" type="image" sortOrder="30" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Upload Image</label>
|
||||
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
|
||||
<upload_dir config="system/filesystem/media" scope_info="1">amasty/hide_price</upload_dir>
|
||||
<base_url type="media" scope_info="1">amasty/hide_price</base_url>
|
||||
<comment>Show the uploaded image instead of price</comment>
|
||||
</field>
|
||||
<field id="link" translate="label comment" type="text" sortOrder="40" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Link Url</label>
|
||||
<comment>Use text ‘AmastyHidePricePopup’ for opening Ajax Popup with a ‘Get a Quote’ form. Insert the page URL to redirect customers to any page you need</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="admin_email" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Admin Email Notifications</label>
|
||||
<field id="to" translate="label comment" type="text" sortOrder="10" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Send Email to</label>
|
||||
<comment>Leave Empty to Disable Notifications</comment>
|
||||
</field>
|
||||
<field id="sender" translate="label" type="select" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Email Sender</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Email\Identity</source_model>
|
||||
</field>
|
||||
<field id="template" translate="label comment" type="select" sortOrder="30" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Email Template</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
|
||||
<comment>Email template chosen based on theme fallback when "Default" option is selected</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="reply_email" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Auto Reply Email Options</label>
|
||||
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Enable</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="sender" translate="label" type="select" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Email Sender</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Email\Identity</source_model>
|
||||
</field>
|
||||
<field id="template" translate="label comment" type="select" sortOrder="30" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Email Template</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
|
||||
<comment>Email template chosen based on theme fallback when "Default" option is selected</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="gdpr" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>GDPR Consent</label>
|
||||
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Enabled</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="text" translate="label" type="textarea" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
|
||||
<label>Сonsent Text</label>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="stock_status" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Custom Stock Status</label>
|
||||
<field id="stock_status" translate="label comment" type="multiselect" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Hide Price for Custom Stock Status</label>
|
||||
<comment>Installation of Amasty Custom Stock Status module is required</comment>
|
||||
<source_model>Amasty\HidePrice\Model\Source\StockStatus</source_model>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="developer" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1"
|
||||
showInStore="0">
|
||||
<label>Developer Options</label>
|
||||
<comment>These options need to be changed if you are using a custom Magento theme</comment>
|
||||
<field id="addtocart" translate="label comment" type="text" sortOrder="10" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>"Add to Cart" Selector</label>
|
||||
<comment>Default value: form[data-role="tocart-form"], button.tocart</comment>
|
||||
</field>
|
||||
<field id="parent" translate="label" type="text" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Category Item Selector</label>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
Executable
+63
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
|
||||
<default>
|
||||
<amasty_hide_price>
|
||||
<general>
|
||||
<enabled>0</enabled>
|
||||
<customer_group>0</customer_group>
|
||||
<category>1</category>
|
||||
</general>
|
||||
<information>
|
||||
<hide_price>1</hide_price>
|
||||
<hide_button>1</hide_button>
|
||||
<replace_text>Sign up</replace_text>
|
||||
<replace_link>/customer/account</replace_link>
|
||||
<replace_css>background: #eeeeee;
|
||||
border: 1px solid #cccccc;
|
||||
color: #333333;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
padding: 7px 15px;
|
||||
margin-right: 15px;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.6rem;
|
||||
</replace_css>
|
||||
<hide_wishlist>1</hide_wishlist>
|
||||
<hide_compare>1</hide_compare>
|
||||
</information>
|
||||
<frontend>
|
||||
<text>Call for Price</text>
|
||||
<custom_css>background: #eeeeee;
|
||||
border: 1px solid #cccccc;
|
||||
color: #333333;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
padding: 7px 15px;
|
||||
margin-right: 15px;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.6rem;
|
||||
margin-bottom: 10px;
|
||||
</custom_css>
|
||||
<link>AmastyHidePricePopup</link>
|
||||
</frontend>
|
||||
<reply_email>
|
||||
<enabled>1</enabled>
|
||||
</reply_email>
|
||||
<gdpr>
|
||||
<enabled>0</enabled>
|
||||
<text><![CDATA[I have read & accept the <a target="_blank" href="/privacy-policy">Privacy Policy</a>]]></text>
|
||||
</gdpr>
|
||||
<developer>
|
||||
<addtocart>form[data-role="tocart-form"] button, button.tocart</addtocart>
|
||||
<parent>.product-item, .item, td</parent>
|
||||
</developer>
|
||||
</amasty_hide_price>
|
||||
</default>
|
||||
</config>
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="amasty_hideprice_request" resource="default" engine="innodb" comment="Amasty Hide price Requests">
|
||||
<column xsi:type="int" name="request_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Request Id"/>
|
||||
<column xsi:type="varchar" name="name" nullable="false" length="255" comment="Name"/>
|
||||
<column xsi:type="varchar" name="email" nullable="false" length="255" comment="Email"/>
|
||||
<column xsi:type="varchar" name="phone" nullable="false" length="255" comment="Phone"/>
|
||||
<column xsi:type="int" name="product_id" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="Product id"/>
|
||||
<column xsi:type="smallint" name="store_id" padding="6" unsigned="false" nullable="false" identity="false" default="0" comment="Store id"/>
|
||||
<column xsi:type="text" name="comment" nullable="false" comment="Comment"/>
|
||||
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Creation Time"/>
|
||||
<column xsi:type="smallint" name="status" padding="6" unsigned="false" nullable="false" identity="false" default="0" comment="Status"/>
|
||||
<column xsi:type="text" name="message_text" nullable="false" comment="Message Text"/>
|
||||
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="request_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"amasty_hideprice_request": {
|
||||
"column": {
|
||||
"request_id": true,
|
||||
"name": true,
|
||||
"email": true,
|
||||
"phone": true,
|
||||
"product_id": true,
|
||||
"store_id": true,
|
||||
"comment": true,
|
||||
"created_at": true,
|
||||
"status": true,
|
||||
"message_text": true
|
||||
},
|
||||
"constraint": {
|
||||
"PRIMARY": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
</config>
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
|
||||
<template id="amasty_hide_price_admin_email_template"
|
||||
label="Amasty Hide Price Admin Notification"
|
||||
file="amasty_hideprice_admin_notification.html"
|
||||
type="html"
|
||||
module="Amasty_HidePrice"
|
||||
area="frontend"
|
||||
/>
|
||||
<template id="amasty_hide_price_reply_email_template"
|
||||
label="Amasty Hide Price Auto Reply"
|
||||
file="amasty_hideprice_auto_reply.html"
|
||||
type="html"
|
||||
module="Amasty_HidePrice"
|
||||
area="frontend"
|
||||
/>
|
||||
<template id="amasty_hide_price_general_template"
|
||||
label="Amasty Hide Price Admin Answer"
|
||||
file="amasty_hideprice_admin_answer.html"
|
||||
type="html"
|
||||
module="Amasty_HidePrice"
|
||||
area="frontend"
|
||||
/>
|
||||
</config>
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="amasty_quickorder_collection_load_before">
|
||||
<observer name="amasty_quickorder_collection_load_before" instance="Amasty\HidePrice\Observer\QuickOrder\AddHidePriceAttributesToCollection" />
|
||||
</event>
|
||||
</config>
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Catalog\Block\Product\View">
|
||||
<plugin name="Amasty_HidePrice:hide_button" type="Amasty\HidePrice\Plugin\Catalog\Block\Product\View" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Block\Product\ProductList\Item\AddTo\Compare">
|
||||
<plugin name="Amasty_HidePrice:hide_compare_list" type="Amasty\HidePrice\Plugin\Catalog\Block\Product\Compare" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Block\Product\View\AddTo\Compare">
|
||||
<plugin name="Amasty_HidePrice:hide_compare_view" type="Amasty\HidePrice\Plugin\Catalog\Block\Product\Compare" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Wishlist\Block\Catalog\Product\ProductList\Item\AddTo\Wishlist">
|
||||
<plugin name="Amasty_HidePrice:hide_wishlist_list" type="Amasty\HidePrice\Plugin\Catalog\Block\Product\Wishlist" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist">
|
||||
<plugin name="Amasty_HidePrice:hide_wishlist_view" type="Amasty\HidePrice\Plugin\Catalog\Block\Product\Wishlist" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Block\Product\View\Options\AbstractOptions">
|
||||
<plugin name="Amasty_HidePrice:hide_custom_option_price"
|
||||
type="Amasty\HidePrice\Plugin\Catalog\Block\Product\View\Options\AbstractOptions" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Model\Product\Option\Value">
|
||||
<plugin name="Amasty_HidePrice:hide_custom_option_price_select"
|
||||
type="Amasty\HidePrice\Plugin\Catalog\Model\Option\Value" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option">
|
||||
<plugin name="Amasty_HidePrice:hide_custom_option_bundle"
|
||||
type="Amasty\HidePrice\Plugin\Bundle\Block\Option" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Block\Product\ListProduct">
|
||||
<plugin name="Amasty_HidePrice:hide_button_backend_category"
|
||||
type="Amasty\HidePrice\Plugin\Catalog\Block\Product\ProductList\Category" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\CatalogWidget\Block\Product\ProductsList">
|
||||
<plugin name="Amasty_HidePrice:hide_button_backend_widget"
|
||||
type="Amasty\HidePrice\Plugin\Catalog\Block\Product\ProductList\Widget" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Framework\Pricing\Price\AbstractPrice">
|
||||
<plugin name="Amasty_HidePrice::price_hide" type="Amasty\HidePrice\Plugin\Framework\Pricing\Price\AbstractPrice" />
|
||||
</type>
|
||||
|
||||
<type name="Amasty\Conf\Plugin\Product\View\Type\Configurable">
|
||||
<plugin name="Amasty_HidePrice::remove_price_column" type="Amasty\HidePrice\Plugin\Conf\Configurable" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Pricing\Price\TierPrice">
|
||||
<plugin name="Amasty_HidePrice::disable-tier" type="Amasty\HidePrice\Plugin\Catalog\Pricing\Tier\TierPrice" />
|
||||
</type>
|
||||
|
||||
<type name="Amasty\RequestQuote\Model\HidePrice\Provider">
|
||||
<plugin name="Amasty_HidePrice::resolve-hide-info" type="Amasty\HidePrice\Plugin\RequestQuote\Model\HidePrice\ProviderPlugin" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Bundle\Helper\Catalog\Product\Configuration">
|
||||
<plugin name="Amasty_HidePrice::hide-bundle-options" type="Amasty\HidePrice\Plugin\Bundle\Helper\Catalog\Product\ConfigurationPlugin" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Quote\Model\Quote">
|
||||
<plugin name="Amasty_HidePrice::disable_add_to_cart" type="Amasty\HidePrice\Plugin\Quote\Model\QuotePlugin" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Wishlist\Model\Wishlist">
|
||||
<plugin name="Amasty_HidePrice::disable_add_to_wishlist" type="Amasty\HidePrice\Plugin\Wishlist\Model\WishlistPlugin" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Model\Product\Option\Type\Select">
|
||||
<plugin name="Amasty_HidePrice::disable_hideprice_for_options_in_quote"
|
||||
type="Amasty\HidePrice\Plugin\Catalog\Model\Product\Option\Type\DisableOptionsHidePriceInQuote"/>
|
||||
</type>
|
||||
<type name="Magento\GroupedProduct\Model\Product\Type\Grouped">
|
||||
<plugin name="Amasty_HidePrice::add-hideprice-attributes-to-grouped-collection"
|
||||
type="Amasty\HidePrice\Plugin\GroupedProduct\Model\Product\Type\Grouped\AddHidepriceAttributesToGroupedCollection"/>
|
||||
</type>
|
||||
|
||||
<type name="\Amasty\Xsearch\Block\Search\Product">
|
||||
<plugin name="Amasty_HidePrice:hide_price_xsearch_popup"
|
||||
type="Amasty\HidePrice\Plugin\Xsearch\Block\Search\Product\HidePrice" />
|
||||
</type>
|
||||
|
||||
<type name="Amasty\HidePrice\Plugin\Xsearch\Block\Search\Product\HidePrice">
|
||||
<arguments>
|
||||
<argument name="hide_popup_data" xsi:type="object">Amasty\HidePrice\Model\Xsearch\HidePopupData\Proxy</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<type name="\Amasty\Xsearch\Block\Search\Product">
|
||||
<plugin name="Amasty_HidePrice:hide_wishlist_xsearch_popup"
|
||||
type="Amasty\HidePrice\Plugin\Xsearch\Block\Search\Product\HideWishlist" />
|
||||
</type>
|
||||
|
||||
<type name="\Amasty\Xsearch\Block\Search\Product">
|
||||
<plugin name="Amasty_HidePrice:hide_compare_xsearch_popup"
|
||||
type="Amasty\HidePrice\Plugin\Xsearch\Block\Search\Product\HideCompare" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Framework\Pricing\Render">
|
||||
<plugin name="Amasty_HidePrice:product_price_hide" type="Amasty\HidePrice\Plugin\Framework\Pricing\Render" />
|
||||
</type>
|
||||
|
||||
<type name="\Amasty\Xsearch\Block\Search\Product">
|
||||
<plugin name="Amasty_HidePrice:hide_add_to_cart_xsearch_popup"
|
||||
type="Amasty\HidePrice\Plugin\Xsearch\Block\Search\Product\HideAddToCart" />
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Pricing\Price\FinalPrice">
|
||||
<plugin name="Amasty_HidePrice::hide_min_and_max_price"
|
||||
type="Amasty\HidePrice\Plugin\Catalog\Pricing\Price\FinalPrice\HideMinAndMaxPrice"/>
|
||||
</type>
|
||||
</config>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="amasty_hide_price" frontName="amasty_hide_price">
|
||||
<module name="Amasty_HidePrice" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Hide Price (Call for Price) for Magento 2
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Amasty_HidePrice">
|
||||
<sequence>
|
||||
<module name="Magento_Catalog" />
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user