edit the product.tpl file

ThemeBurn SupportForumsOpenCart ThemesKiddos OpenCart Themeedit the product.tpl file

This topic has been marked as not resolved.

Dear Colleagues, good day

Tell us how you can edit the product.tpl file located in /catalog/view/theme/BurnEngine/template/product
It does not respond to the changes, we need to put the following code in the description:

We need that the product description be generated based on our text, price and product name. Help with this problem.

April 13, 2018 at 11:58 am #63948

Hi,

Why edit the template file? You can use Page Builder and add this text from the theme admin panel:

https://i.imgur.com/vLW8UQa.png
https://i.imgur.com/dccUT8G.png

BR,
ThemeBurn team

April 17, 2018 at 5:44 pm #63983

Sorry, some information from my previous message was missed. We need some automatically generated text for description in all products:
“Вы собираетесь купить в Киеве, в нашем интернет магазине ТМ Татошка.
Здесь на сайте, можно купить по низкой цене, причем есть возможность купить в Киеве
с доставкой по Украине или же прямо здесь купить в Киеве. В розницу купить
можно прямо сейчас. Наша цена за в Киеве

уже всего .


We need that the product description be generated based on our text, price and product name. Help with this problem.

I have added picture with code, as when I submit post it replace code ))

 
Вы собираетесь <strong>купить <?php echo $heading_title; ?> в Киеве</strong>, в нашем <a href="/">интернет магазине ТМ Татошка</a>. 
Здесь на сайте, можно купить <?php echo $heading_title; ?> по низкой цене, причем есть возможность купить <?php echo $heading_title; ?> в Киеве 
с доставкой по Украине или же прямо здесь купить <?php echo $heading_title; ?> в Киеве. В розницу <strong>купить <?php echo $heading_title; ?></strong> 
можно прямо сейчас. Наша цена за <b><?php echo $heading_title; ?> в Киеве</b> - 
        <?php if (!$special) { ?>
        <?php echo $price; ?>
        <?php } else { ?>
        уже всего <span class="price-new"><?php echo $special; ?></span>.
        <?php } ?>

  • This reply was modified 8 days ago by  Slivkiss.
  • This reply was modified 8 days ago by  Slivkiss.
April 17, 2018 at 5:55 pm #63984

Hi,

You need to make sure when you edit the description that all the new code will be between these two lines:

<?php $tbData->slotStart('product/product.product_description', array('data' => $data)); ?>

<?php $tbData->slotStop(); ?>

The easiest way is to replace

<?php echo $description; ?>

without touching anything else.

P.S. Do not forget to clear theme cache after the modification.

BR,
ThemeBurn team

April 24, 2018 at 10:23 pm #64071
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.