How can I add on product page automaticly free delivery icon by product price? Example if product price is less than 100 it will not show if above than 100 it will show free delivery icon on product page.
|
|
Hi,
Unfortunately such kind of check is not possible only from Page Builder. You will need some custom code on the product page template.
1) Open catalog/view/theme/BurnEngine/template/product/product.tpl
2) Find this code line:
<?php echo $footer; ?>
3) Insert this piece of code right before the footer line:
<?php $tbData->slotStart('product/product.product_delivery', array('data' => $data)); ?>
<?php if ($product_info['price_num'] >= 100): ?>
PUT DELIVER TEXT / ICON HERE
<?php endif; ?>
<?php $tbData->slotStop(); ?>
4) You can now insert the custom block from Page Builder:
https://i.imgur.com/dvbqC8d.png
BR,
ThemeBurn team
|
|
Am I doing somthings wrong?
I add on catalog/view/theme/BurnEngine/template/product/product.tpl
slotStart(‘product/product.product_delivery’, array(‘data’ => $data)); ?>
= 130): ?>
slotStop(); ?>
And I insert from Page Builder also
http://prntscr.com/k3bkm6
|
|
I add your giving code.
-
This reply was modified 2122 days ago by Celsin.
-
This reply was modified 2122 days ago by Celsin.
|
|
Ok it is work
I was check wrong product less then 100
|
|
Hi,
Good functionality! Thanks for #Celsin and #TB Support
Question for TB Support. Is it possible (text or icon – “Free shiping”) use like in example – see in image below.
BR
|
|
@JAZZLT
Unfortunately this is not possible without heavy modification.
BR,
ThemeBurn team
|
|