Is there exist module which can add to product which i want before price from.
Price from 10€ for example.
im using opencart 2.0.1.1
thanks
You can edit the template files if you want to try a solution yourself. For example, edit category.tpl and change code like:
to
I also have a mod called Display Low Price which does this. It's only for 1.5.x right now but I'll be porting it over to 2.x in the next week or two.
Code: Select all
<?php echo $product['price']; ?>
Code: Select all
FROM <?php echo $product['price']; ?>
-Ryan
This may be a job best suited for a developer. A very quick and dirty method would be:
where you replace the numbers (15, 25, 35) with the appropriate product_ids.
Code: Select all
<?php if (in_array($product['product_id'], ['15', '25', '35'])) { ?>FROM<?php } ?> <?php echo $product['price']; ?>
-Ryan
i change code to:
and insert category id but it dont work
Code: Select all
<?php if (in_array($product['category_id'], ['15', '25', '35'])) { ?>FROM<?php } ?> <?php echo $product['price']; ?>
i get the error:
Notice: Undefined index: category_id in /home/majicena/public_html/trgovina/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_category.tpl on line 141
that line is:
Notice: Undefined index: category_id in /home/majicena/public_html/trgovina/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_category.tpl on line 141
that line is:
Code: Select all
<?php } ?>
<?php if (!$categories && !$products) { ?>
<p><?php echo $text_empty; ?></p>
Who is online
Users browsing this forum: No registered users and 48 guests