The note "Staffelpreis ab XX € " should be displayed in the product list for graduated prices. In Database found row "product_is_add_price" = 1 if it´s a graduated price "(product_is_add_price" = 0 if it´s no graduated price)
Then I add following code in product.php (/templates/default/list_products) - but without success:
<?php if ($product->product_is_add_price = 1){?>
<?php print JText::_('JSHOP_PRICE_FOR_QTY');?> <?php print JText::_('JSHOP_FROM');?> <span><?php print \JSHelper::formatprice($product->min_price);?><?php print $product->_tmp_var_price_ext;?></span>
<?php }?>
The notice is displayed for each product with this code.
How can I change the code to display the notice only for products with an activated bulk price (add_price = 1) ?
Letzte Änderung: 15.02.2023 09:06