Jump to content

Edit History

ps8modules

ps8modules

How to add dynamic text?
Create a module and a custom hook that will be inserted into the TPL of the product.tpl template.

Or add text to ./themes/classic/templates/catalog/product.tpl.

Find:

{block name='product_description'}
    <div class="product-description">{$product.description nofilter}</div>
{/block}

change to:

{block name='product_description'}
    <div class="product-description">{$product.description nofilter}</div>
    <div class="product-description">
      <h3>{l s='What is the price of' d='Shop.Theme.Catalog'} {$product.name} {l s='in Singapore?' d='Shop.Theme.Catalog'}</h3>
      <p>
        {l s='The latest price of' d='Shop.Theme.Catalog'} {$product.price} {l s='You can buy the' d='Shop.Theme.Catalog'}  {$product.name} {l s='at best price from our' d='Shop.Theme.Catalog'} {$shop.name} {l s='or visit' d='Shop.Theme.Catalog'} <a href="{$urls.base_url} ">{$shop.name}</a>.
      </p>
    </div>
{/block}

 

result:

obrazek.png.24fd2c54818e22a3366aa1daede06706.png

ps8modules

ps8modules

How to add dynamic text?
Create a module and a custom hook that will be inserted into the TPL of the product.tpl template.

Or add text to ./themes/classic/templates/catalog/product.tpl.

Find:

{block name='product_description'}
    <div class="product-description">{$product.description nofilter}</div>
{/block}

change to:

{block name='product_description'}
    <div class="product-description">{$product.description nofilter}</div>
    <div class="product-description">
      <h3>{l s='What is the price of' d='Shop.Theme.Catalog'} {$product.name} {l s='in Singapore?' d='Shop.Theme.Catalog'}</h3>
      <p>
        {l s='The latest price of' d='Shop.Theme.Catalog'} {$product.price} {l s='You can buy the' d='Shop.Theme.Catalog'}  {$product.name} {l s='at best price from our' d='Shop.Theme.Catalog'} {$shop.name} {l s='or visit' d='Shop.Theme.Catalog'} <a href="{$urls.base_url} ">{$shop.name}</a>.
      </p>
    </div>
{/block}

 

ps8modules

ps8modules

How to add dynamic text?
Create a module and a custom hook that will be inserted into the TPL of the product.tpl template.

Or add text to ./themes/classic/templates/catalog/product.tpl.

Find:

{block name='product_description'}
    <div class="product-description">{$product.description nofilter}</div>
{/block}

change to:

{block name='product_description'}
    <div class="product-description">{$product.description nofilter}</div>
    <div class="product-description">
      <h3>{l s='What is the price of' d='Shop.Theme.Catalog'} {$product.name} {l s='in Singapore?' d='Shop.Theme.Catalog'}</h3>
      <p>
        {l s='The latest price of' d='Shop.Theme.Catalog'} {$product.price_tax_exc} {l s='You can buy the' d='Shop.Theme.Catalog'}  {$product.name} {l s='at best price from our' d='Shop.Theme.Catalog'} {$shop.name} {l s='or visit' d='Shop.Theme.Catalog'} <a href="{$urls.base_url} ">{$shop.name}</a>.
      </p>
    </div>
{/block}

 

×
×
  • Create New...