Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $q = "SELECT product_price, price_quantity_start, price_quantity_end, product_currency FROM #__{vm}_product_price
- WHERE product_id='$product_id' AND shopper_group_id='".$default_shopper_group_id."' ORDER BY price_quantity_start";
- $db->query( $q );
- while( $db->next_record() ) {
- $prices_table .= "<tr class=\"sectiontableentry$i\"><td>".$db->f("price_quantity_start")." - ".$db->f("price_quantity_end")."</td>";
- $prices_table .= "<td>";
- if (!empty($my_taxrate))
- $prices_table .= $CURRENCY_DISPLAY->getFullValue( ($my_taxrate+1)*$db->f("product_price")*((100-$shopper_group_discount)/100) );
- else
- $prices_table .= $CURRENCY_DISPLAY->getFullValue( $db->f("product_price")*((100-$shopper_group_discount)/100) );
- $prices_table .= "</td></tr>";
- $i == 1 ? $i++ : $i--;
- ---------------------------------------------------------------------------------------------
- if (!empty($my_taxrate)) ez utáni rész kiír egy bruttó összeget, ha nincs beállítva tax, az else rész pedig ha van tax, akkor a nettó összeget írja ki.
- nekem csak annyi kellene, az else utáni rész is meg kellene jelenítenem az if-es rész után.
- Tehát kiírja a Bruttót és utána a nettót. Nem tudom érthetően vázoltam fel a dolgokat.
Add Comment
Please, Sign In to add comment