dculley Posted May 19, 2020 Share Posted May 19, 2020 Looking around on my test site of Phoenix 1.0.6.0 I saw something that is not right. Tried to figure it out but with no luck. Need some help please. I only waited the code to work on one group (category) of items [14]. In steed it is showing up on every product page. 1st image is my test item, it shouldn't be there. 2nd image is the product I want it to be on. the 3rd image is the category that I want to use. This is the code I changed in the - includes/modules/order_total/ot_quantity_discount.php (based on the one I had under OSC 2.3.4) // Add categories you wish to exclude to this list. // Go to Admin->Catalog->Categories/Products and look // at the left hand side of the list to determine // category id. Note that 99999 and 99998 are just given // as examples. function exclude_category($category) { switch($category) { case 14: // case 99998: return false; } return true; } How to fix and get it show under just under the Wild Berry Incense category? Thanks for the help. I also included the file ot_quantity_discount.php Quote Link to comment Share on other sites More sharing options...
swguy Posted May 19, 2020 Author Share Posted May 19, 2020 Please grab the latest copy of Quantity Discounts here: https://apps.oscommerce.com/Apps&QdusL&quantity-discounts-for-osc-phoenix I tested category exclusions and it worked for me with the latest osC Phoenix from Github. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
dculley Posted May 19, 2020 Share Posted May 19, 2020 I down loaded the file. I uninstalled QD from content and order total. Than I uploaded all files. reinstalled QD in order total and then content. Edited the ot_quantity_discount.php to: // Add categories you wish to exclude to this list. // Go to Admin->Catalog->Categories/Products and look // at the left hand side of the list to determine // category id. Note that 99999 and 99998 are just given // as examples. function exclude_category($category) { switch($category) { case 17: // case 99998: return false; } return true; } Looked at my site and the same thing. It did not fix the issue. Sorry. Here is my site if you want to look. http://www.ladybuggardendecor.com/temp.ladybuggardendecor.com/index.php My test site is under the temp.. The part in the front is the old OSC 2.3.4 where it is still working. I get the listings in all product detail pages weather I edit the above file or not. I can leave the file as is from the new install upload and get the same thing. The modified file has no change on the outcome. Let me know what else you need. I will be happy to help. Thanks for your time and trouble. Quote Link to comment Share on other sites More sharing options...
swguy Posted May 20, 2020 Author Share Posted May 20, 2020 I misunderstood your issue - you're saying that the marketing text isn't excluded (it's not a discounting issue, it's a marketing text issue). The answer is, you have to customize other things if you take advantage of the user exits. There's an example in the help of how to do this. https://www.thatsoftwareguy.com/osc_quantity_discounts.html#marketing Go down to the second note below this link. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
dculley Posted May 20, 2020 Share Posted May 20, 2020 That was it - I love you - I would have never put it to gather. Many many thanks. 😃 Quote Link to comment Share on other sites More sharing options...
dculley Posted May 21, 2020 Share Posted May 21, 2020 @swguy Updated Phoenix today to 1.0.6.1. I get these errors when I go to the product page. Warning: Use of undefined constant MODULE_CONTENT_PI_SWGUY_QD_MARKETING_TEXT_STYLE - assumed 'MODULE_CONTENT_PI_SWGUY_QD_MARKETING_TEXT_STYLE' (this will throw an Error in a future version of PHP) in /includes/modules/content/product_info/templates/tpl_cm_pi_swguy_qd_marketing.php on line 2Warning: Use of undefined constant MODULE_CONTENT_PI_SWGUY_QD_MARKETING_TEXT_STYLE - assumed 'MODULE_CONTENT_PI_SWGUY_QD_MARKETING_TEXT_STYLE' (this will throw an Error in a future version of PHP) in /includes/modules/content/product_info/templates/tpl_cm_pi_swguy_qd_marketing.php on line 2 Quote Link to comment Share on other sites More sharing options...
swguy Posted May 21, 2020 Author Share Posted May 21, 2020 Change MODULE_CONTENT_PI_SWGUY_QD_MARKETING_TEXT_STYLE to MODULE_CONTENT_PI_SWGUY_QD_MARKETING_CONTENT_STYLE in includes/modules/content/product_info/templates/tpl_cm_pi_swguy_qd_marketing.php Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
dculley Posted May 21, 2020 Share Posted May 21, 2020 14 minutes ago, swguy said: Change MODULE_CONTENT_PI_SWGUY_QD_MARKETING_TEXT_STYLE to MODULE_CONTENT_PI_SWGUY_QD_MARKETING_CONTENT_STYLE in includes/modules/content/product_info/templates/tpl_cm_pi_swguy_qd_marketing.php same error Warning: Use of undefined constant MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE - assumed 'MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE' (this will throw an Error in a future version of PHP) in /includes/modules/content/product_info/templates/tpl_cm_pi_swguy_qd_marketing.php on line 2Warning: Use of undefined constant MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE - assumed 'MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE' (this will throw an Error in a future version of PHP) in /includes/modules/content/product_info/templates/tpl_cm_pi_swguy_qd_marketing.php on line 2 Quote Link to comment Share on other sites More sharing options...
swguy Posted May 21, 2020 Author Share Posted May 21, 2020 You have a copy and paste error. Please reread my instructions. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
dculley Posted May 21, 2020 Share Posted May 21, 2020 6 minutes ago, swguy said: You have a copy and paste error. Please reread my instructions. I'm not following. I didn't copy or past. I just took out TEXT. Other than it was a pure file. <?php if ( (MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE == 1) || (MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE == 2)) { ?> Quote Link to comment Share on other sites More sharing options...
Supertex Posted May 21, 2020 Share Posted May 21, 2020 2 hours ago, dculley said: I'm not following. I didn't copy or past. I just took out TEXT. Other than it was a pure file. <?php if ( (MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE == 1) || (MODULE_CONTENT_PI_SWGUY_QD_MARKETING_STYLE == 2)) { ?> TEXT -> CONTENT Quote osC v2.3.1 MySQL v8.0.32 PHP v5.6.40 Installed addons: . Attribute Sets Plus .. Create Account & Manual Order Maker .. Customer Testimonials 2.3.4 .. Customer Blacklist .. Dynamic Info Pages .. FedEx Web Svcs v9 .. Filtered Sales Report .. Generic Box .. Google XML Sitemap SEO .. Maximum Order Value .. Modular Front Page .. Monthly Sales & Tax Report .. Multiple Products Manager .. Must Accept Terms & Conditions .. Order Editior .. PDF Customer Invoice .. Price in Cart Only .. Product Sort/Order .. Product Sort in Cart .. Quantity Discounts .. Restrict Delivery Methods .. SEO Header Tags - Reloaded .. Separate Pricing Per Customer .. Simpler Admin Session Length Control .. Sitemap SEO .. Show Free Ship + Modules .. Specials by Category for SPPC .. Store Mode (open|closed|maintenance) .. Store Pickup Shipping .. Theme Switcher .. Ultimate SEO URLs 5 Pro .. UPS XML Rates & Svcs 1.4 .. USPS methods 7.3.1 .. Who's Online Dashboard . Fixes: Add to cart -> 'product not found' : FIX Login issues with IE 11 : FIX Tools: Incredibly Handy: osC Xref Link to comment Share on other sites More sharing options...
dculley Posted May 21, 2020 Share Posted May 21, 2020 @Supertex TEXT in place I get this. Only thing out of place is the warning. When I replace the TEXT to CONTENT I get this with out warnings. But I loose the lines. I can live with this. Thanks for the help, greatly appreciated. 😊 Quote Link to comment Share on other sites More sharing options...
EGLTD Posted July 13, 2020 Share Posted July 13, 2020 i am getting this (wrong position of discount), but i did not manipulate any depending file (Phoenix 1.0.7.1) Quote Dum spiro spero Link to comment Share on other sites More sharing options...
swguy Posted July 13, 2020 Author Share Posted July 13, 2020 You can adjust the sort order of the discount from admin > modules > order totals. EGLTD 1 Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
EGLTD Posted July 13, 2020 Share Posted July 13, 2020 Thx, that does it (of course) Quote Dum spiro spero Link to comment Share on other sites More sharing options...
swguy Posted July 13, 2020 Author Share Posted July 13, 2020 Glad you're having fun with Phoenix! Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
EGLTD Posted July 13, 2020 Share Posted July 13, 2020 (edited) Great thing, used over 15 years the old one 😉 Is it possible to place the information formatted , more "eye-friendly",may be centered or without/different frames ? Here is what i had so far And the discount may be in RED ? Edited July 13, 2020 by EGLTD Quote Dum spiro spero Link to comment Share on other sites More sharing options...
EGLTD Posted July 13, 2020 Share Posted July 13, 2020 (edited) Edited July 13, 2020 by EGLTD Quote Dum spiro spero Link to comment Share on other sites More sharing options...
Gold1s Posted October 12, 2020 Share Posted October 12, 2020 (edited) Hello @swguy I have a question, I have Purchase without account Phoenix - https://apps.oscommerce.com/gBmPX&purchase-without-account-phoenix module and when I am on guest account - I see quantity discount in checkout process, but I don't want to give discount for guest, just for users, which were bought something earlier. Could you tell me, what is need to edit to get this effect? If I should to set quantity discount only for registered users? Or something else? Newest Phoenix. Thx. Edited October 12, 2020 by Gold1s Quote Link to comment Share on other sites More sharing options...
-RanZ- Posted January 18, 2021 Share Posted January 18, 2021 Good afternoon - I am having some issues with this module. I am using Phoenix 1.0.7.12 If I have "re-calculate tax" enabled I get the following error: "Fatal error: Uncaught Error: Call to undefined function zen_get_tax_rate_from_desc() in /var/www/html/includes/modules/order_total/ot_quantity_discount.php:534 Stack trace: #0 /var/www/html/includes/modules/order_total/ot_quantity_discount.php(399): ot_quantity_discount->gross_up(21) #1 /var/www/html/includes/modules/order_total/ot_quantity_discount.php(265): ot_quantity_discount->calculate_deductions() #2 /var/www/html/includes/system/versioned/1.0.7.3/order_total.php(36): ot_quantity_discount->process() #3 /var/www/html/includes/system/versioned/1.0.7.8/checkout.php(169): order_total->process() #4 /var/www/html/includes/system/versioned/1.0.7.other/1.0.7.12/hooks.php(161): Checkout::set_order_totals(Array) #5 /var/www/html/includes/system/segments/checkout/pipeline.php(14): hooks->generate(NULL, 'startApplicatio...') #6 /var/www/html/checkout_confirmation.php(15): require('/var/www/html/i...') #7 {main} thrown in /var/www/html/includes/modules/order_total/ot_quantity_discount.php on line 534" If I disable "re-calculate tax" I can get to the finalize and pay page but it displays the following error: "Notice: Undefined index: SD TAX 4.5% in /var/www/html/includes/modules/order_total/ot_quantity_discount.php on line 269" Thanks, Dan Quote Link to comment Share on other sites More sharing options...
-RanZ- Posted January 24, 2021 Share Posted January 24, 2021 Any ideas on this? Quote Link to comment Share on other sites More sharing options...
-RanZ- Posted February 8, 2021 Share Posted February 8, 2021 trying again, any ideas? Quote Link to comment Share on other sites More sharing options...
frankl Posted February 9, 2021 Share Posted February 9, 2021 On 2/9/2021 at 6:47 AM, -RanZ- said: trying again, any ideas? Are you trying to use this for zencart? This is the osCommerce forum. Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
willd2568 Posted September 9, 2021 Share Posted September 9, 2021 I'm completely confused. I followed the instructions to the letter, but after copying the contents of the zip file to the server, I don't see any new modules to install. The only thing that happened was the addition of a new folder named osc_qd_1.0.3 with a bunch of folders nested inside of it and a couple of php files at the end of a long chain of otherwise empty folders. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
swguy Posted September 9, 2021 Author Share Posted September 9, 2021 You have to install the files *inside* the osc_qd_1.0.3 folder to your cart, not the folder itself. https://www.thatsoftwareguy.com/osc_install_mod.html Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.