Jump to content

Edit History

ideaindividual

ideaindividual

LO HE RESUELTO! gracias a que nadie respondió, me he esforzado y superado y encontré la solución:

 

{if $product.has_discount}
			<div class="laberDiscount">
			    
			    {if $product.customer_group_discount == 4}
			    <span class="discount descuento-franquicia">
			        <div class="animacionflare">
			            <i class="fa fa-users"></i>
			 {l s=' Descuento Cliente Franquicia %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>{/if}
			    
			 {if $product.customer_group_discount == 8}
			 <span class="discount descuento-silver">
			     <div class="animacionflare">
			     <i class="fa fa-star"></i>
			 {l s=' Descuento Cliente Silver %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>{/if}
			    
			 {if $product.customer_group_discount == 9}
			 <span class="discount discount-percentage descuento-gold"><div class="animacionflare"><i class="fa fa-trophy"></i>{l s=' Descuento Cliente Gold %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>{/if}
			    
			 {if $product.customer_group_discount == 11}<span class="discount descuento-platinium"><div class="animacionflare"><i class="fa fa-diamond"></i>{l s=' Descuento Cliente Platinium %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>{/if}
			    
			 {if $product.customer_group_discount == 10}<span class="discount descuento-black"><div class="animacionflare"><i class="fa fa-handshake-o"></i>{l s=' Descuento Cliente Black %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>{/if}
			    
			    
            {if $product.discount_type === 'percentage'}
              <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
            {else}
              <span class="discount discount-amount">
                  {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
              </span>
            {/if}
			</div>
          {/if}

 

SOLUCionado.jpg

ideaindividual

ideaindividual

LO HE RESUELTO! gracias a que nadie respondió, me he esforzado y superado y encontré la solución:

 

<div class="laberDiscount">
			    {if $product.customer_group_discount > 0 }
			    {else if $product.has_discount && Group::getCurrent()->id == 5}
			    <span class="discount descuento-franquicia">
			        <div class="animacionflare">
			            <i class="fa fa-users"></i>
			 {l s=' Descuento Cliente Franquicia %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 8}<span class="discount descuento-silver">
			     <div class="animacionflare">
			     <i class="fa fa-star"></i>
			 {l s=' Descuento Cliente Silver %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 9}<span class="discount discount-percentage descuento-gold"><div class="animacionflare"><i class="fa fa-trophy"></i>{l s=' Descuento Cliente Gold %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 11}<span class="discount descuento-platinium"><div class="animacionflare"><i class="fa fa-diamond"></i>{l s=' Descuento Cliente Platinium %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 10}<span class="discount descuento-black"><div class="animacionflare"><i class="fa fa-handshake-o"></i>{l s=' Descuento Cliente Black %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			    
            {else if $product.discount_type === 'percentage'}
              <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
            {else}
              <span class="discount discount-amount">
                  {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
              </span>
            {/if}
			</div>
          {/if}
          <span itemprop="price" content="{$product.price_amount}">{$product.price}</span>

 

SOLUCionado.jpg

ideaindividual

ideaindividual

LO HE RESUELTO! gracias a que nadie respondió, me he esforzado y superado y encontré la solución:

 

<div class="laberDiscount">
			    {if $product.customer_group_discount > 0 }
			    {else if $product.has_discount && Group::getCurrent()->id == 5}
			    <span class="discount descuento-franquicia">
			        <div class="animacionflare">
			            <i class="fa fa-users"></i>
			 {l s=' Descuento Cliente Franquicia %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 8}<span class="discount descuento-silver">
			     <div class="animacionflare">
			     <i class="fa fa-star"></i>
			 {l s=' Descuento Cliente Silver %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 9}<span class="discount discount-percentage descuento-gold"><div class="animacionflare"><i class="fa fa-trophy"></i>{l s=' Descuento Cliente Gold %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 11}<span class="discount descuento-platinium"><div class="animacionflare"><i class="fa fa-diamond"></i>{l s=' Descuento Cliente Platinium %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			 {else if $product.has_discount && Group::getCurrent()->id == 10}<span class="discount descuento-black"><div class="animacionflare"><i class="fa fa-handshake-o"></i>{l s=' Descuento Cliente Black %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</div></span>
			    
			    
            {else if $product.discount_type === 'percentage'}
              <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
            {else}
              <span class="discount discount-amount">
                  {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
              </span>
            {/if}
			</div>
          {/if}
          <span itemprop="price" content="{$product.price_amount}">{$product.price}</span>

 

×
×
  • Create New...