Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chrisofthecoffee

    (@chrisofthecoffee)

    Thanks for that, it doesn’t seem to make much sense as-is.

    The chap whose site it is has gone quiet about me helping him sort it out so I’ll wait on him before putting any more time into it.

    I appreciate the help, ta.

    Thread Starter chrisofthecoffee

    (@chrisofthecoffee)

    Ah, so do themes involve code too ? – a replacement skin but with sinister tendrils hooking into the flesh of the thing, if so then yep, got you, that could well break the multiple-item-allowing-thing I guess.

    Still seems odd that the default is to only allow single instances of a product per order, like WooCommerce is designed primarily to sell unique works of art or something.

    Cheers for your help, I’ll no doubt come back with some thrilling news and delicious technical conundrums for public delectation when I get my hands on the thing.

    …or, the series of upgrades from PHP 5.2 and the slew of consequential upgrades after it will fix the problem !

    Thread Starter chrisofthecoffee

    (@chrisofthecoffee)

    Hey, thanks a lot for that, I just read the article you linked.

    What a great idea, write a plugin that systematically provokes whatever known unpleasantnesses that a PHP upgrade might bring out and make it report on the results, nice concept !

    I’ll use that for sure, I should get a login for the host in the next day or two, then will build a test site from the live backups and can tinker with it.

    Thread Starter chrisofthecoffee

    (@chrisofthecoffee)

    Thanks, I don’t imagine it’s down to a theme as it seems super code-ish – clearly the single-item-only concept is built into WC as there’s the checkbox in the inventory options to control it (although it doesn’t seem to in practice) and there’s a specific error message when you try to do it, but worth a try; WP/WC themes might be way more far-reaching than I appreciate.

    I’ll do that and the plugin disabling and status report when I get my hands on a login and build a mirror site to play on.

    I’m not a PHP/WP/WC guy (I mainly code C# and SQL) and only had an hour sitting at somebody else’s desk to look at this along with some of other issues so looking forward to getting my hands on a copy I can experiment on without risk.

    Thread Starter chrisofthecoffee

    (@chrisofthecoffee)

    Thanks, I’m thinking the simplest way forward for me is to just find the code that stops the second item being added by searching for the error message and just commenting it out.

    With there being the checkbox option to allow it, presumably WooCommerce can handle multiples of the same product in a cart, so can’t see why that might not work fine.

    I’ve seen a couple of workarounds, chunks of code to add, but seems simpler to just remove the code that prevents the second item being added since we don’t need that functionality at all.

    It’s odd there’s no ‘edit quantity’ in the cart display too, but again, a shortcoming, not a bug as such.

    Thread Starter chrisofthecoffee

    (@chrisofthecoffee)

    Thanks, that’s the plan, PHP first then WP, WooCommerce and plugins.

    The upgrade is by a simple ‘Click hre to upgrade’ link but presumably once that’s clicked, there isn’t a simple ‘revert to PHP 5.2’ link – I’m wondering what that process would look like.

    Of course, 99% chance it’ll all go fine but I want to at least know how one might go about reverting if everything went awry.

Viewing 6 replies - 1 through 6 (of 6 total)