This topic has 3 voices, contains 6 replies, and was last updated by TB Support 117 days ago.
ThemeBurn Support › Forums › OpenCart Themes › Kiddos OpenCart Theme › Free delivery
This topic has been marked as resolved.
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.
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:
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): ?>
And I insert from Page Builder also
I add your giving code.
Ok it is work
I was check wrong product less then 100
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.
Unfortunately this is not possible without heavy modification.
Register | Log in
Support forums are restricted to verified buyers only. To apply for access click the "Register" link above and follow the on screen instructions.
Product support is offered by forum only. Requests made by email or any other way will be redirected to the forum.