Skip to content

Instantly share code, notes, and snippets.

@wesleyalmd
Created December 22, 2020 16:32
Show Gist options
  • Save wesleyalmd/f4e607f4d6d95d9f623ba92f207aa8e9 to your computer and use it in GitHub Desktop.
Save wesleyalmd/f4e607f4d6d95d9f623ba92f207aa8e9 to your computer and use it in GitHub Desktop.
hiraoka-info-shipping.phtml
<?php
$_product = $block->getProduct();
$_home_delivery = $_product->getData('home_delivery');
$_store_pickup = $_product->getData('store_pickup');
// $_xpress = ($_product->getAttributeText('size') == "XS") ? true : false;
?>
<?php if( $_home_delivery || $_store_pickup): ?>
<div class="hiraoka-info-shipping">
<h5>Disponibilidad y tiempos de entrega</h5>
<?php if($_home_delivery): ?>
<p>Disponible para despacho a domicilio</p>
<?php endif; ?>
<?php if($_store_pickup): ?>
<p class="store_pickup">Disponible para retiro en tu tienda seleccionada</p>
<?php endif; ?>
<?php //if($_xpress): ?>
<!-- <p class="hiraoka-info-shipping ctm_ctl">Disponible para despacho express</p> -->
<?php // endif; ?>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment