Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Pedalman

[solved] AEUC tax and shipment info in one row product page

Recommended Posts

Hello

I'd like to show tax and shipment info relating to Advanced EU compliance (module) in one row under price.

More or less clean like in the screenshot.

 

The code is hooked into product.tpl and is in

modules/advancedeucompliance/views/templates/hook/hookDisplayProductPriceBlock.tpl

 

I can get the first info (tax info) into a new line under price easily via </br> at the top of code but I fail today to get the infos into one line under Price 🙂

 

{if isset($smartyVars)}
  {* "From" Price Hook templating *}
  {if isset($smartyVars.before_price) && isset($smartyVars.before_price.from_str_i18n)}
    <span class="aeuc_from_label">
          {$smartyVars.before_price.from_str_i18n|escape:'htmlall'}
      </span>
  {/if}

  {* "Before" Price Hook templating *}
  {if isset($smartyVars.old_price) && isset($smartyVars.old_price.before_str_i18n)}
    <span class="aeuc_before_label">
          {$smartyVars.old_price.before_str_i18n|escape:'htmlall'}
      </span>
  {/if}

  {* "Tax Inc/Exc" Price Hook templating *}
  {if isset($smartyVars.price) && isset($smartyVars.price.tax_str_i18n)}
    <span class={if isset($smartyVars.price.css_class)}
    "{$smartyVars.price.css_class|escape:'htmlall'}"
  {else}
    "aeuc_tax_label"
  {/if}>
    {$smartyVars.price.tax_str_i18n|escape:'htmlall'}
    </span>
  {/if}

  {* "Shipping CMS content" Price Hook templating *}
  {if isset($smartyVars.ship) && isset($smartyVars.ship.link_ship_pay) &&
  isset($smartyVars.ship.ship_str_i18n)}
    <div class="aeuc_shipping_label">
    {*es war ITO 23.10.18  <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" } *}
      <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" rel="nofollow">
        {$smartyVars.ship.ship_str_i18n|escape:'htmlall'}
      </a>
    </div>
  {/if}

  {* "Weight" Price Hook templating *}
  {if isset($smartyVars.weight) && isset($smartyVars.weight.rounded_weight_str_i18n)}
    <div class="aeuc_weight_label">
      {$smartyVars.weight.rounded_weight_str_i18n|escape:'htmlall'}
    </div>
  {/if}

  {* "Delivery Estimation" Price Hook templating *}
  {if isset($smartyVars.after_price) && isset($smartyVars.after_price.delivery_str_i18n)}
    <div class="aeuc_delivery_label">
      {$smartyVars.after_price.delivery_str_i18n|escape:'htmlall'}
    </div>
  {/if}
{/if}

 

2019-07-08 13_15_02-Ökonorm Maltropfen, 12 Farben im Kartonetui (70616) _ Echtkind.png

Edited by Pedalman

Share this post


Link to post
Share on other sites

Sorry, I asked too early and could solve it for now. If it is correct so or the best way I do not know but seems to work for now. I switched the two info parts that were embraced into divs to spans and put the whole block into one div. Html learning  course 1st. class 1. hour :classic_rolleyes:

<div class="tax_infos_aeuc">
  {* "Tax Inc/Exc" Price Hook templating *}
  {if isset($smartyVars.price) && isset($smartyVars.price.tax_str_i18n)}
    <span class={if isset($smartyVars.price.css_class)}
    "{$smartyVars.price.css_class|escape:'htmlall'}"
  {else}
    "aeuc_tax_label"
  {/if}>
    {$smartyVars.price.tax_str_i18n|escape:'htmlall'}
    </span>
  {/if}

  {* "Shipping CMS content" Price Hook templating *}
  {if isset($smartyVars.ship) && isset($smartyVars.ship.link_ship_pay) &&
  isset($smartyVars.ship.ship_str_i18n)}
    <span class="aeuc_shipping_label">
    {*es war ITO 23.10.18  <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" } *}
      <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" rel="nofollow">
        {$smartyVars.ship.ship_str_i18n|escape:'htmlall'}
      </a>
    </span>
  {/if}
</div>

 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...