ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
+33
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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>