ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<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="Olegnax_Core::Olegnax_Core">
|
||||
<resource id="Olegnax_Quickview::quickview" sortOrder="10" title="QuickView"/>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Olegnax_Quickview::quickview" title="Quickview" translate="title" module="Olegnax_Quickview" sortOrder="999" parent="Olegnax_Core::Olegnax_Core" resource="Olegnax_Quickview::quickview"/>
|
||||
<add id="Olegnax_Quickview::config" title="Configuration" translate="title" module="Olegnax_Quickview" sortOrder="20" action="adminhtml/system_config/edit/section/olegnax_quickview" parent="Olegnax_Quickview::quickview" resource="Olegnax_Quickview::quickview"/>
|
||||
</menu>
|
||||
</config>
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
|
||||
<system>
|
||||
<tab id="olegnax" translate="label" sortOrder="15">
|
||||
<label>Olegnax</label>
|
||||
</tab>
|
||||
<section id="olegnax_quickview" translate="label" type="text" sortOrder="170" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Quick View</label>
|
||||
<tab>olegnax</tab>
|
||||
<resource>Olegnax_Quickview::quickview</resource>
|
||||
<group id="info" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="0" translate="label">
|
||||
<frontend_model>Olegnax\Quickview\Block\Adminhtml\System\Config\Form\Info</frontend_model>
|
||||
</group>
|
||||
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Quick View General Settings</label>
|
||||
<field id="enable_product_listing" translate="label" type="select" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Enable on product listing</label>
|
||||
<comment>Enable/Disable Quick View on Category pages.</comment>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<frontend_class>on-off-trigger</frontend_class>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
|
||||
<default>
|
||||
<olegnax_quickview>
|
||||
<general>
|
||||
<enable>1</enable>
|
||||
</general>
|
||||
</olegnax_quickview>
|
||||
</default>
|
||||
</config>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" ?>
|
||||
<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\ListProduct">
|
||||
<plugin disabled="false" name="Olegnax_Quickview_Plugin_ListProduct" sortOrder="10" type="Olegnax\Quickview\Plugin\ListProduct"/>
|
||||
</type>-->
|
||||
|
||||
<type name="Magento\Catalog\Block\Product\AbstractProduct">
|
||||
<plugin name="Olegnax_Quickview_Plugin_AbstractProduct"
|
||||
type="Olegnax\Quickview\Plugin\AbstractProduct" sortOrder="5"/>
|
||||
</type>
|
||||
<type name="Magento\Checkout\Controller\Cart\Add">
|
||||
<plugin name="Olegnax_Quickview_Plugin_CartAdd"
|
||||
type="Olegnax\Quickview\Plugin\CartAdd" sortOrder="5"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\View\Result\Page">
|
||||
<plugin name="Olegnax_Quickview_Plugin_ResultPage"
|
||||
type="Olegnax\Quickview\Plugin\ResultPage" sortOrder="1"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\App\Config\ScopeConfigInterface">
|
||||
<plugin name="Olegnax_Quickview_Plugin_ScopeConfig"
|
||||
type="Olegnax\Quickview\Plugin\ScopeConfig" sortOrder="5"/>
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Block\Product\View\Gallery">
|
||||
<plugin name="Olegnax_Quickview_Plugin_BlockProductViewGalleryMagnifier"
|
||||
type="Olegnax\Quickview\Plugin\BlockProductViewGalleryMagnifier" sortOrder="15"/>
|
||||
</type>
|
||||
</config>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="layout_load_before">
|
||||
<observer name="ox_quickview" instance="Olegnax\Quickview\Observer\addHandle" />
|
||||
</event>
|
||||
</config>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="ox_quickview" frontName="ox_quickview">
|
||||
<module name="Olegnax_Quickview" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Olegnax_Quickview" setup_version="0.0.11" >
|
||||
<sequence>
|
||||
<module name="Olegnax_Core"/>
|
||||
<module name="Magento_Catalog"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user