Notice graduated price in product list

15.02.2023 08:46
#1
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Notice graduated price in product list

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) ?
Notice graduated price in product list


Letzte Änderung: 15.02.2023 09:06
 
18.02.2023 12:11
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25964
Quote
Aw: Notice graduated price in product list

https://www.webdesigner-profi.de/joomla-webdesign/shop/plugins/price-per-consignment-in-product-list.html

 
19.02.2023 09:17
#3
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Notice graduated price in product list

Thank you very much!

Works very well!

Would it also be possible for products with attributes (Ajax attributes) to update the graduated prices accordingly (70ml --> from 5 EUR, 250ml --> from 10EUR)?

Thanks in Advance.

 
19.02.2023 10:29
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25964
Quote
Aw: Notice graduated price in product list

You use cart ajax?

after change attribute -> need update full list "Price per consignment" ?

 
19.02.2023 19:36
#5
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Notice graduated price in product list

Yes, we use cart ajax and change attribute with different prices

 
25.02.2023 10:54
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25964
Quote
Aw: Notice graduated price in product list

New version:

Ajax Cart 4.10.0
Price per consignment in product list 2.1.0

 
26.02.2023 09:04
#7
spike77
Joomshopping forum user no avatar
Name: Manfred
30.04.2015
Posts: 706
Quote
Aw: Notice graduated price in product list

Thank you! Workes fine!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.