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
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="general">
<field name="netsuite_id" formElement="input" sortOrder="50">
<settings>
<dataScope>extension_attributes.netsuite_id</dataScope>
<dataType>text</dataType>
<label translate="true">Netsuite Location Id</label>
<validation>
<rule name="no-whitespace" xsi:type="boolean">true</rule>
<rule name="required-entry" xsi:type="boolean">true</rule>
</validation>
<notice translate="true">
This data will sync to Netsuite in order
</notice>
</settings>
</field>
</fieldset>
</form>
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page layout="2column-left" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_account_navigation">
<block class="Magento\Customer\Block\Account\SortLinkInterface" name="lts_inventory_index_index">
<arguments>
<argument name="path" xsi:type="string">lts_inventory/index/index</argument>
<argument name="label" xsi:type="string" translate="true">My Warehouse</argument>
<argument name="sortOrder" xsi:type="number">400</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="customer_account"/>
<body>
<referenceBlock name="head.components">
<block class="Magento\Framework\View\Element\Js\Components" name="lts_inventory_head_components" template="Magento_Wishlist::js/components.phtml"/>
</referenceBlock>
<referenceBlock name="page.main.title">
<action method="setPageTitle">
<argument translate="true" name="title" xsi:type="string">My Warehouse</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<block class="Magento\Framework\View\Element\Messages" name="lts_inventory.messages" as="messages" template="Magento_Theme::html/messages.phtml"/>
<block name="index.index" class="Lts\Inventory\Block\Index\Index" template="Lts_Inventory::index/index.phtml" cacheable="false" />
</referenceContainer>
</body>
</page>
@@ -0,0 +1,44 @@
<?php
/* @var $block Lts\Inventory\Block\Index\Index */
?>
<?php echo $block->getMessagesHtml(); ?>
<div class="block">
<div class="block-content">
<?php
foreach ($block->getInventorySources() as $item):
$source = $item->getSource();
$border = 'border-bottom: 1px solid #ded6d6;';
if ($item->getEntityId()) {
$border = 'border-bottom: 2px solid;';
}
?>
<div class="box" style="<?= $border ?> padding-bottom: 15px;">
<div class="box-content">
<b><?= $source->getName() ?></b>
<p><b>Tel:</b> <?= $source->getPhone() ?></p>
<address>
<?= $source->getStreet() ?>, <?= $source->getCity() ?>, <?= $source->getRegion() ?>, <?= $source->getCountryId() ?> <?= $source->getPostcode() ?>
</address>
</div>
<div class="box-actions" style="text-align: end;">
<?php
if ($item->getEntityId()):
?>
<a class="action" style="background-color: rgb(206, 33, 39);">
<span>My Preferred</span>
</a>
<?php
else:
?>
<a class="action edit" href="<?php echo $block->getUrl('lts_inventory/index/index/', ['code' => $source->getSourceCode()]); ?>">
<span>Prefer</span>
</a>
<?php
endif;
?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>