ce7 8 Posted October 1, 2018 14 minutes ago, raiwa said: Hello Lyn @ce7, I had a deeper look now and I believe you can do this easier. If your problem is that with the header tag of the add-on you get the tax rate shown twice - once below the prices with tax and again below the prices without tax you should do the following: In the core currency class duplicate and rename the "display_price" and "format" functions to something like "format_no_tax" and "display_price_no_tax". Be aware to change also the function name used in the "display_price_no_tax" function from "format" to "format_no_tax". Then use the function "display_price_no_tax" to show the prices without tax in the product listing modules and elsewhere. hi, @raiwa As usual, very quick respond and thank you so much for the solutions and all the help! One more thing related to the Tax Info is that it will show up for the specials. I dont know if my idea make sense for shopping cart system, but i think it is not necessary to show strikethrough for both incl/excl (maybe instead show x% special off after price and before tax incl.) How can I delete / not showing strikethrough for specials? Which files and what part of codes should I go to try for? Share this post Link to post Share on other sites
♥raiwa 1,472 Posted October 1, 2018 use te duplicated function for the striked through price About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
ce7 8 Posted October 21, 2018 @raiwa Hi, Come back again for help about the tax, this time is about specials. I have 2 tax rate, one is 10% and one is 7%, and just noticed that instead of showing 10% or 7% incl/excl, it is showing up total 17% tax rate for every special product. How can I change the code to make it work with right tax rate for special products? Many thanks! Lyn Share this post Link to post Share on other sites
ce7 8 Posted October 21, 2018 @raiwa hi again, Quick update, after I post here, I quickly installed another specials addon to do the test, and found out that the tax rate did work, but it did have problem to show the right rate at first, so there are few default special products, need to get into categories, and refresh the tax rate, then it will show up the correct one, if no refresh, it will stay as 17% instead of 10% or 7% or tax free... Thanks you! Share this post Link to post Share on other sites
♥raiwa 1,472 Posted October 21, 2018 (edited) Hello Lyn @ce7, Not sure if you have this solved now. I just checked on my test store and all works as it should. I created a second tax rate and tax class with 10% and applied it to one special product. On specials.php I see 7% for the products with 7% tax class applied and 10% on the product I applied the 10% tax class. If you apply 2 tax rates on the same tax class, of course you will get the sum of both showing on a product with this tax class. Edited October 21, 2018 by raiwa 1 ce7 reacted to this About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
ce7 8 Posted October 22, 2018 @raiwahi Rainer, Thank you very much for reply. Yes I have resolve the problem, not sure why, I did not add two tax on same product, but i have seperated tax rate, each product can choose 10% or 7% or no tax, not able to choose 2 tax rate at the same time... The default of my installation seems just add 2 tax rate as 17%, but when I go to renew the 5 default products and change the tax rate, refresh, then it works as it should be 10% or 7% as I set up.... Thanks! Lyn Share this post Link to post Share on other sites
micke salloum 0 Posted November 7, 2018 Hi Thanks for a great contribution. I am facing a problem. In my store there are 2 currencies. When i activate the Show Tax below price, it shows that tax but the product price is wrong. I have SEK as a default currency and when i switch from SEK to EURO the product price value shows the SEK price but just changes the Currency symbol to Euro. Please see the image below. Thanks for help in advance. Share this post Link to post Share on other sites
♥raiwa 1,472 Posted November 8, 2018 Hello @micke salloum, Is it possible that you have a modification/customization applied to the "format" and/or "display_price" function in includes/classes/currencies.php. If yes, then you have to apply /merge these modifications with the class extension in the st_tax_below_price.php module. See there at the end: if (class_exists('currencies')) { class currencies_mod extends currencies { .......... About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
micke salloum 0 Posted November 8, 2018 3 hours ago, raiwa said: Hello @micke salloum, Is it possible that you have a modification/customization applied to the "format" and/or "display_price" function in includes/classes/currencies.php. If yes, then you have to apply /merge these modifications with the class extension in the st_tax_below_price.php module. See there at the end: if (class_exists('currencies')) { class currencies_mod extends currencies { .......... Thanks for the reply. Attached here is the currencies.php file in the includes/classes Can you take a look and suggest the modifications? Thanks in advance currencies.php Share this post Link to post Share on other sites
♥raiwa 1,472 Posted November 9, 2018 Hello Micke @micke salloum, As I suspected your currency class is heavy modified. I'm sorry I can't merge the code without knowing what else is part of these modifications and without access to your whole store. You should ask the developer who applied these changes to do it, if you didn't do it yourself. Best regards Rainer About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
♥raiwa 1,472 Posted September 22, 2019 Uploaded Update for Phoenix: Display Tax Info V3.5 Changelog Version 3.5 - updated instructions for Phoenix - added modified options attributes product info module. (Supplied files are for Phoenix 1.0.2.x) - added support for addons options images and QTPro. 2 valquiria23 and Heatherbell reacted to this About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
♥Heatherbell 335 Posted September 22, 2019 (edited) @raiwa Sorry, don't know what I've done wrong - just installed on Phoenix and get: Warning: Declaration of currencies_mod::display_price($products_price, $products_tax, $quantity = 1, $show_tax_info = true) should be compatible with currencies::display_price($products_price, $products_tax = 0, $quantity = 1) in //htdocs/includes/modules/store/st_tax_below_price.php on line 198 Edited September 22, 2019 by Heatherbell Share this post Link to post Share on other sites
MITCH70 5 Posted September 22, 2019 @raiwa Works perfectly on my Phoenix 1.0.2.5 Maybe possibility for next version to add text also in attributes drop down list. Share this post Link to post Share on other sites
♥Heatherbell 335 Posted September 22, 2019 @raiwa Sorry, no problem with your add-on, problem with my currencies.php Share this post Link to post Share on other sites
♥raiwa 1,472 Posted September 23, 2019 22 hours ago, MITCH70 said: Maybe possibility for next version to add text also in attributes drop down list. In drop downs text formatting (html tags) doesn't work. That's why it is removed there. WIthout formatting it doesn't look nice and I believe that custormers are smart enough to understand that the same tax like shown in all other places will apply also on attributes prices. About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
♥raiwa 1,472 Posted November 20, 2019 Uploaded Update for Phoenix flagged for Phoenix: Display Tax Info Phoenix Changelog Version 4.0 - updated for Phoenix 1.0.3.x - moved currencies_mod class extension into siteWide hook. This allows to use it also for modularized shopping cart and other modularized pages with content module call in data section of the page. 3 valquiria23, ArtcoInc and MITCH70 reacted to this About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
infobroker 0 Posted November 27, 2019 Habe auf dem Webserver und lokal auf xampp OSCOM CE Phoenix v1.0.4.0 installiert PHP-Version bei Beiden: 7.2.9 Habe dann die Contrib: https://apps.oscommerce.com/6ONOh&display-tax-info-phoenix hochgeladen Nachdem ich das Modul aktviert hatte, bekamm ich eine weiße Seite mit der Fehlermeldung “Warning: Use of undefined constant MODULE_STORE_TAX_BELOW_PRICE_PAGES - assumed 'MODULE_STORE_TAX_BELOW_PRICE_PAGES' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\Shop13\includes\hooks\shop\siteWide\priceTax.php on line 31Warning: Use of undefined constant MODULE_STORE_TAX_BELOW_PRICE_PAGES - assumed 'MODULE_STORE_TAX_BELOW_PRICE_PAGES' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\Shop13\includes\hooks\shop\siteWide\priceTax.php on line 34” Nachdem ich das Modul aktviert hatte, bekamm ich eine weiße Seite mit der Fehlermeldung “Fatal error: Uncaught Error: Class 'currencies_mod' not found in C:\xampp\htdocs\Shop13\includes\hooks\shop\siteWide\priceTax.php:45 Stack trace: #0 C:\xampp\htdocs\ Shop13\includes\classes\hooks.php(133): hook_shop_siteWide_priceTax->listen_injectAppTop(Array) #1 C:\xampp\htdocs\ Shop13\includes\application_top.php(413): hooks->call('siteWide', 'injectAppTop') #2 C:\xampp\htdocs\ Shop13\product_info.php(13): require('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\ Shop13\includes\hooks\shop\siteWide\priceTax.php on line 45” Was läuft bei mir falsch? Share this post Link to post Share on other sites
♥raiwa 1,472 Posted November 27, 2019 Hallo Erich @infobroker, Phoenix 1.0.4.0 introduced changes in the hooks registration in application_top.php which break several addons. As far as I know this will be fixed in the next Phoenix update. For now a fast fix is to use the includes/application_top.php from the previous Phoenix 1.0.3.0 version 1 valquiria23 reacted to this About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
ce7 8 Posted January 3, 2020 @raiwa Hi Rainer, Thank you for this addon. The code I modified <p class="text-center text-danger" temprop="offers" itemscope itemtype="http://schema.org/Offer"> <del class="text-muted"> <span itemprop="price" content=""> <?php echo $currencies->display_price($special_products['products_price'], tep_get_tax_rate($special_products['products_tax_class_id'])); ?> </span></del></p> <p class="text-center"> <?php echo $currencies->display_price($special_products['products_special_price'], tep_get_tax_rate($special_products['products_tax_class_id'])); ?></span></p> <meta itemprop="priceCurrency" content="<?php echo tep_output_string($currency); ?>" /></p> will show this result How can I modify the code to show the image as below: Many thanks! Lyn Share this post Link to post Share on other sites
♥raiwa 1,472 Posted January 3, 2020 Hello Lyn @ce7, Which versions (Phoenix/OsC, Tax info) are we talking about. The code you provide dosn't seem to be the complete code. Please post ALL the changes (original AND modified code). Anyway, as far as I can see, this is not related to the Display tax info module. Best regards Rainer About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
gritsop 3 Posted January 14, 2020 On 11/27/2019 at 3:06 PM, raiwa said: Hallo Erich @infobroker, Phoenix 1.0.4.0 introduced changes in the hooks registration in application_top.php which break several addons. As far as I know this will be fixed in the next Phoenix update. For now a fast fix is to use the includes/application_top.php from the previous Phoenix 1.0.3.0 version Hello Rainer. For the contribution to be installed on Phoenix 1.0.4.0. where should we add the "includes/application_top.php" declaration? Thank you in advance. Share this post Link to post Share on other sites
♥raiwa 1,472 Posted January 14, 2020 2 minutes ago, gritsop said: Hello Rainer. For the contribution to be installed on Phoenix 1.0.4.0. where should we add the "includes/application_top.php" declaration? Thank you in advance. There is nothing to add. Just follow the instructions. About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
♥raiwa 1,472 Posted February 25, 2020 Tested and working with Phoenix 1.0.5.1 Display Tax Info Phoenix 1 ecartz reacted to this About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites
ce7 8 Posted February 29, 2020 (edited) On 1/3/2020 at 1:23 PM, ce7 said: @raiwa How can I modify the code to show the image as below: @raiwa hi I am now using CE1.0.5.0 The code I wanna modify is this // product price // define('IS_PRODUCT_SHOW_PRICE_SPECIAL', '<del>%s</del> <span class="text-danger"></br></br>now </br></br>%s</span>'); // define('IS_PRODUCT_SHOW_PRICE', '%s'); if ($random_product['is_special'] == 1) { $box_price = sprintf(IS_PRODUCT_SHOW_PRICE_SPECIAL, $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])), $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id']))); } else { $box_price = sprintf(IS_PRODUCT_SHOW_PRICE, $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id']))); } try few different ways, but all not going well... Many thanks! Lyn Edited February 29, 2020 by ce7 Share this post Link to post Share on other sites
♥raiwa 1,472 Posted February 29, 2020 You can get the price without tax like this: $box_price_net = $currencies->display_price($random_product['products_price'], 0); 1 ce7 reacted to this About Me: http://forums.oscommerce.com/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Share this post Link to post Share on other sites