Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by KirkM

  1. I upgraded my server to Alma Linux quite awhile ago and had absolutely no issue with CubeCart or anything else on any of my client's sites.  I doubt you will notice any change at all.  It is basically the same as CentOS, except it is being maintained.  😁

    It reminds me of the switch from mysql to Mariadb back when Oracle took over and decided to be dicks about licensing mysql.  No issues at all with Mariadb either.

  2. Thanks Brian.  I would guess you already found this issue that was present in CC6.4.7 on PHP 8.2: Customer login technically works but just sits on the login page after submit so the user doesn't think they are logged in.  Probably old news to you.

    So many little things that have been made much more strict on PHP 8.2 it is making me crazy doing testing / rewriting on my own systems.  No more loosey-goosey coding and running functions like trim (and others) on foreach loops where there may not be data in some iterations.  Lots of other things too. 

    I tell you the #[\AllowDynamicProperties] trick is saving me right now because I can run 8.2 while I rewrite hundreds of class scripts to conform.  I realize how lazy my OO coding has been over the years and am paying for it now.

    Tighter requirements make us tighter coders, I guess...

  3. 3 hours ago, Janet Parker said:

    It's best to consult the official documentation or contact the support team of the eCommerce platform you are using, as they would be able to provide specific information about compatibility with PHP 8.2.

    I guess I wasn't too clear.  I develop and host data management systems primarily but also have a few clients who are doing eCommerce using CubeCart on my server.  I am finishing up re-coding and testing my systems with php 8.2 and will be switching the last data systems domains to 8.2 shortly.  All of my other clients are moved to php 8.2 already.  My CubeCart sites will be the only 8.1 users on my server.  I would like to move them to 8.2 so I can remove all other php versions.

    3 hours ago, Janet Parker said:

    However, according to the official release notes of CubeCart 6.4.10, there is no mention of compatibility with PHP 8.2. Therefore, it's possible that CubeCart 6.4.10 may not be fully compatible with PHP 8.2, and some issues may still occur.

    Yes, that is why I posted in the CubeCart forum to see if someone like Brian had any additional info.  It would be nice if php version compatibility was part of the documentation of each CC version update.

    3 hours ago, Janet Parker said:

    It's recommended to test the upgrade on a staging or development environment before performing the upgrade on a production site. Additionally, it's always best to ensure that your site and its components are fully compatible before making any upgrades to avoid any issues or downtime. 

    I tested 6.4.7 and know that doesn't work so before I go to the trouble of doing a bunch of testing on 6.4.10, I wanted to post here to see if anyone like Brian knew if it would work or not.  Mostly if they already knew it wouldn't work so I wouldn't waste a bunch of time testing something that was already known to not work.

  4. I have been updating my own data systems to be compatible with php 8.2 and also moving my clients sites that aren't using CC (non-eCommerce clients) to 8.2.

    I have my CC stores at 6.4.7 and tested one with php 8.2 and it had some significant issues that made it a no-go.  I will be updating stores to 6.4.10 shortly and wanted to know if this latest version is php 8.2 compatible.

  5. 1 hour ago, bsmither said:

    I would NOT apply the diff file to the filediff program. Guaranteed to result in a hot mess.



    No no.  I have notes of what files have been changed in the skin.  I will run DiffMerge on each of them and carefully update the code on the new CC version skin.  I have very clear remarks on every change.  I just need to carefully examine the code between the old and new to make sure I understand any changes in the new that may affect my modifications.  It is slow and tedious.  And, as I said, I have to think.  Hate that.

  6. Thanks Brian.  I have a filediff program.  I was just wondering if I needed to go through it file by file.  Just lazy but since things are pretty significantly re-arranged on my Foundation skin variant, I have to sit and transpose the differences instead of viewing the difference pages and approving the automatic code block updates left to right in the file diff edit window.

    I hate it when I have to actually do some work.  Even worse when that work requires me to think.  Thinking is hard.

  7. Just wanted to pop back in and thank Brian and Al (and whomever else worked on the update) for the php 8.1 compatibility.  Finally got a rare minute to jump over and do some store upgrades and then switch them to php 8.1.

    As always, your work is very much appreciated.

    One question - Do you know if anything changed in the Foundation skin between 6.4.4 and 6.4.7?  I have a skin that is based on Foundation but is significantly altered in its element arrangement so I would like to not rebuild it if there is no reason to.



  8. Quote

    The problem here is that the query does not specify which coupon is being searched for. Thus, if the customer has used any coupon previously, there will be a record of it - a false positive of testing for this specific coupon used by this specific customer.

    Thanks so much for finding that Brian.  Definitely a silly oversight in the code.  Your fix seems to have solved the issue.  This is certainly a bug that needs to be fixed.  Will you be reporting it or would you prefer I do it?

    As always, your thorough work and prompt solutions are greatly appreciated. 

  9. Yes.  The owner and I both have accounts on his store so we can simulate purchase and checkout.  It did the same thing for both of us when we were logged in.  Out of curiosity, would that make a difference?  I thought that CC tracked customers by email address, whether they have an account and are signed in or not.  I assume that would be relational to the coupon uses counting.

  10. Quote

    In the table CubeCart_customer_coupon, are there any rows where the value in the 'customer_id' column is zero?

    No.  In phpMyAdmin sorting by customer_id shows the lowest number to be 130.  No zero values in that column.


    Are there any other rows that have the same 'coupon' value? 

    Not sure I understand this one.  There are hundreds of rows with the same coupon code as he has had hundreds of customers use coupons over the years.  Do you mean if the first test found a zero?  If so, this test is moot, I suppose.

  11. A customer put in a coupon code with global unlimited uses and one use per customer.  When used the first time, it displays an error message that the limit has been reached even though this is the first use.  If you set it to 2 uses per customer, it works on the first use and not the second.  Leave it blank for unlimited per customer and it works fine too.  This would make it appear that the code logic is counting the use BEFORE checking if the limit has been reached.  It sounds kind of silly for a mistake like that to be in the code flow, but testing sure makes it seem that way.

    Anyone else see this?

  12. Thanks Brian for confirming my suspicion that there was individual item cascade rounding going on instead of sum subtotal rounding.  I am pretty sure in the U.S. that the tax is always applied to a taxable subtotal.  Even if there are exempt items in a purchase, they are just supposed to be excluded from the subtotal taxability (sort of a ghost subtotal for tax calculation).  A penny isn't a huge deal, but his problem is it doesn't square up with his accounting books and for his state tax reporting.  Technically, he is illegally charging too much tax when this anomaly occurs.  While no one thinks he is looking at jail time for a few cents here and there, it is wrong, at least in this country and / or state.  

    It would be interesting to know if this is a response to UK or EU tax codes.  If not, then it is a flawed process that has yielded this issue.  Alas, it appears I will have to go back to him, shrug my shoulders and tell him not much I can do at this point.

    Appreciate your help sir, as always.

  13. A client in California has noticed that occasionally the tax is rounded to the wrong penny.  As illustrated below, his tax rate is a flat 9% and the total of $140.04 at 9% would be .09 x 140.04 = 12.6036.  This should round DOWN to $12.60.  However, CC 6.4.4 is rounding it UP to $12.61.  My wild guess is that there is other rounding taking place upstream that is delivering something above 12.605 to the final tax rounding or something like that but I really have no idea.

    Has this been seen before?

    Screen Shot 2022-07-01 at 9.02.43 PM.png

  14. My guess: Boooooom!  😄

    Really, you don't have to go through all that.  I don't want to hack CC just because I am a type A PITA.  I can wait for everything to catch up in a future release... I swear I can...  Really... ahhhhhhhhhhhh!

  15. That would be very generous of you to do.  PHP 8 has only been out since the very end of November 2020, so that's just under 18 months.  Lots of changes and depreciated / removed functions and conventions so it will understandably take a while for everyone to clean their code.   

    All my stuff works fine on 7.4 too, I just am a bit impatient to work with some of the 8.1 improvements.  I have it installed in my MAMP Pro testing server and develop only with that to future-proof as far out as possible so it is important that I have it on my production server, which I do for the domains I use.

    For CC, I can just leave it on 7.4 until all is ready and then I will clean 7.4 off the server.

    As always, thanks for your help and response Brian.  It is greatly appreciated.

  16. Thanks Brian. 

    Do you know if Smarty 4 in CC645?  Obviously, if a single third-party component isn't compatible, then the whole thing isn't.

    I run PHP as a PFM Application per domain so I will keep 7.4 for the CC clients and wait for the plugins to catch up if they haven't yet.

    It would be great if Al specifically announces when the CC version is released that is tested compatible with PHP 8.1.  (wink, wink, nudge, nudge)..

  17. Searched around and didn't see much about CC compatibility with the latest php version 8.1.  Just a single post back in 2021 or so about problems with php 8.0 breaking CC.  What's happening with CC and php 8.1?  I am using CC 6.4.4 with php 7.4 right now (CC still recommends using php 7.3, which is now outdated), but all my data systems and some client wordpress sites are moved to php 8.1.  CC is the only thing hanging me up from having 8.1 as the only php version on my server.

    Any info on a timeline for this would be greatly appreciated.

  18. Well, I feel like an idiot (not the first time).  I was totally focused on where the coupon was applied and not on the shipping module.  Uncommenting that line of code did the trick and makes perfect sense.  It was right there in the shipping.class.php file, with a big flag of a comment to tell dummies like me "HEY! right here!".  Sheesh.

    Thanks Brian for always jumping in to help.  Your remark made me take a look over at the AIOS class after being so focused on the coupon class code.

  19. Sorry, I realize this is not really clear.  The example of what he needs is over-simplified with just the one product.  There could be multiple products.  The coupon in this case is for $15 off the whole order.  Plus, his promotion also has free shipping for all orders $49 or more.  He needs the shipping to be considered AFTER all coupons and any other discounts are deducted.

    The way the store works now, the coupon looks at the subtotal and the shipping looks at the subtotal ignoring the subtraction for the coupon, because the coupon also happens AFTER the subtotal.  There is no consideration by the shipping for a modified subtotal because of the coupon.

    He will always need the shipping promotion to be on the final amount AFTER any discounts.  To me, he is right, that is the way this should work or at least have the option for it to work that way.

    I hope that is a bit clearer on what the issue is with the current way CC handles the checkout flow.

  20. Been trying to figure out a way to get the coupon to be part of the calculation of subtotal.  The more I examine the function of the cart / checkout process from the store owner's point of view and possible marketing approaches, the more I see that the coupon logic is deficient in it's ability to be used in conjunction with other marketing tools.  I realize my point of view is rather simplistic since I am not intimately familiar with the code, but I have been reading through the relevant scripts and it seems that even with the complication of coupons for particular products or other variables, those discounts should be taken BEFORE the subtotal that all other things act upon, like shipping.

    Do you have any suggestions or ideas of how to hack this?  Combining coupons with variable shipping zones / rates is pretty common for my client and seems to me to be a pretty basic marketing approach.


  • Create New...