Commit e3471795 by lmf

修复手机版顶部搜索框

恢复代码发货库存为0限制
parent c059aeb2
...@@ -75,9 +75,9 @@ class QuantityValidator implements ValidatorInterface ...@@ -75,9 +75,9 @@ class QuantityValidator implements ValidatorInterface
$totalQuantity += $item->getQty(); $totalQuantity += $item->getQty();
} }
} }
// if ($totalQuantity <= 0) { if ($totalQuantity <= 0) {
// $messages[] = __('You can\'t create a shipment , .'); $messages[] = __('You can\'t create a shipment , .');
// } }
return $messages; return $messages;
} }
......
...@@ -4,7 +4,28 @@ ...@@ -4,7 +4,28 @@
* See COPYING.txt for license details. * See COPYING.txt for license details.
*/ */
?> ?>
<style> <div data-role="content" style="margin-top: 30px;margin-bottom: -23px;display: none;" id="home_search">
<form class="" id="home_search_form" action="/catalogsearch/result/" method="get">
<div class="field search">
<div class="control">
<input id="new-search"
data-mage-init='{"quickSearch":{
"formSelector":"#new_search_form",
"minSearchLength": 1,
"url":"/search/ajax/suggest",
"destinationSelector":"#search_results"}
}'
type="text"
name="q"
placeholder="<?= $block->escapeHtmlAttr(__('Search entire store here...')) ?>"
class="input-text"/>
<div id="search_results" class="search-autocomplete"></div>
</div>
</div>
</form>
</div>
<style>
.banner1,.banner1 >.imgbox, .banner1 >.imgbox > a, .banner1 >.imgbox > a >img{ .banner1,.banner1 >.imgbox, .banner1 >.imgbox > a, .banner1 >.imgbox > a >img{
height: 634px !important; height: 634px !important;
} }
...@@ -28,6 +49,9 @@ ...@@ -28,6 +49,9 @@
require([ require([
'jquery' 'jquery'
], function ($) { ], function ($) {
$(".page-header .actions.search-dropdown").click(function () {
$("#home_search").toggle();
});
$.fn.banner = function(options){ $.fn.banner = function(options){
var that = this; var that = this;
options = options || {}; options = options || {};
......
...@@ -996,10 +996,7 @@ footer{ ...@@ -996,10 +996,7 @@ footer{
.page-header .header-top.header-fixed{ .page-header .header-top.header-fixed{
margin-right: 20px; margin-right: 20px;
} }
.page-header .actions.search-dropdown{
opacity: 0;
z-index: -1;
}
.checkout-container{ .checkout-container{
width: 81%; width: 81%;
} }
...@@ -1017,10 +1014,6 @@ footer{ ...@@ -1017,10 +1014,6 @@ footer{
.page-header .actions.wishlist-dropdown{ .page-header .actions.wishlist-dropdown{
display: none; display: none;
} }
.page-header .actions.search-dropdown{
opacity: 0;
z-index: -1;
}
.navigation .subchildmenu li{ .navigation .subchildmenu li{
line-height: 36px; line-height: 36px;
} }
...@@ -2422,37 +2415,47 @@ span.swatch-attribute-selected-option{ ...@@ -2422,37 +2415,47 @@ span.swatch-attribute-selected-option{
margin-left: 10%; margin-left: 10%;
width: 80%; width: 80%;
} }
.page-header .actions.search-dropdown{
opacity: 0;
z-index: -1;
}
} }
@media (max-width: 1024px){ @media (max-width: 1024px){
.select-element.section-before-footer.clearfix p { .select-element.section-before-footer.clearfix p {
font-weight: 200; font-weight: 200;
font-size: 12px; font-size: 12px;
color: #909090; color: #909090;
text-transform: none; text-transform: none;
} }
} }
@media (max-width: 1024px) and (min-width: 768px){ @media (max-width: 1024px) and (min-width: 768px){
.select-element.section-before-footer.clearfix p { .select-element.section-before-footer.clearfix p {
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
color: #909090; color: #909090;
text-transform: none; text-transform: none;
} }
.flash-sale-item{ .flash-sale-item{
width: 33.33%; width: 33.33%;
} }
.shopcatewpt{ .shopcatewpt{
width: 100%; width: 100%;
} }
.shop-by-cata { .shop-by-cata {
padding: 10px; padding: 10px;
width: 50%; width: 50%;
float: left; float: left;
} }
p.flashsale-title {
font-size: 16px;
font-weight: 400;
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment