Commit 5a11b6bb by lmf

增加心愿单模块模板

parent d05cd95a
...@@ -6,9 +6,4 @@ ...@@ -6,9 +6,4 @@
/** @var $block \Magento\Catalog\Block\Product\View\Addto\Compare */ /** @var $block \Magento\Catalog\Block\Product\View\Addto\Compare */
?> ?>
<?php $viewModel = $block->getData('addToCompareViewModel'); ?> <?php $viewModel = $block->getData('addToCompareViewModel'); ?>
<?php if ($viewModel->isAvailableForCompare($block->getProduct())) :?> \ No newline at end of file
<a href="#" data-post='<?= /* @noEscape */ $block->getPostDataParams() ?>'
data-role="add-to-links"
class="action tocompare"><span><?= $block->escapeHtml(__('Add to Compare')) ?></span></a>
<?php endif; ?>
\ No newline at end of file
...@@ -6,8 +6,33 @@ ...@@ -6,8 +6,33 @@
/** @var $block \Magento\Catalog\Block\Product\View */ /** @var $block \Magento\Catalog\Block\Product\View */
?> ?>
<div id="product-intro__freeshipping-more-3" >
<a href="javascript:void(0);">Size Guide</a></span></div>
<style>
#product-intro__freeshipping-more-3{
display: inline-block;
color: #2d68a8;
font-size: 12px;
line-height: 1;
margin-top: -10px;
}
.action.primary.tocart{
font-size: 18px;
background-color: #000;
max-width: 100%;
font-weight: 600;
height: 55px;
width: 300px;
}
@media (max-width: 780px){
#product-intro__freeshipping-more-3{
margin-top: -20px;
margin-bottom: 10px;
}
}
</style>
<?php $_product = $block->getProduct(); ?> <?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('+ ADD TO CART'); ?> <?php $buttonTitle = __('ADD TO CART'); ?>
<?php if ($_product->isSaleable()) :?> <?php if ($_product->isSaleable()) :?>
<div class="box-tocart"> <div class="box-tocart">
<div class="fieldset"> <div class="fieldset">
......
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var Magento\Wishlist\Block\Catalog\Product\ProductList\Item\AddTo\Wishlist $block */
?>
<?php if ($block->getWishlistHelper()->isAllow()) : ?>
<a href="#"
class="action towishlist"
title="<?= $block->escapeHtmlAttr(__('Add to Wish List')) ?>"
aria-label="<?= $block->escapeHtmlAttr(__('Add to Wish List')) ?>"
data-post='<?= /* @noEscape */ $block->getAddToWishlistParams($block->getProduct()) ?>'
data-action="add-to-wishlist"
role="button">
<span><?= $block->escapeHtml(__('Add to Wish List')) ?></span>
</a>
<?php endif; ?>
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist $block */
?>
<div>
<?php if ($block->isWishListAllowed()) : ?>
<a href="#"
class="action towishlist"
data-post='<?= /* @noEscape */ $block->getWishlistParams() ?>'
data-action="add-to-wishlist"></span></a>
<?php endif; ?>
</div>
<script type="text/x-magento-init">
{
"body": {
"addToWishlist": <?= /* @noEscape */ $block->getWishlistOptionsJson() ?>
}
}
</script>
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