• Resolved skaught

    (@skaught)


    I just updated my store to WP 4.0. Now when I go to place an order via APG, I get “Error: Unable to create order. Please try again.” When I choose the “pick up” option, it moves on to Paypal as it should. Before upgrading to WP 4.0 APG was working fine.

    Is there something I should try to get this working? I’m in the process of setting up a new WP site (on the same server) and right off the bat it’s failing with APG and WP 4.0. I test free shipping and it works.

    Any suggestions would be welcome. Thanks!

    https://www.ads-software.com/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Art Project Group

    (@artprojectgroup)

    Please, send to us an admin user access to info [at] artprojectgroup [dot] es.

    Kind regards,

    Hi I am having the same error after updating to the latest version of Woocommerce.

    How do i resolve this?

    Thanks

    Plugin Author Art Project Group

    (@artprojectgroup)

    Please, send to us an admin user access to info [at] artprojectgroup [dot] es.

    We need to check what happens in a website with this kind of problem.

    Kind regards.

    Plugin Author Art Project Group

    (@artprojectgroup)

    Please, can you try this?

    Change from line 480:

    $impuestos_totales[1] = 0;
    			foreach ($impuestos_parciales as $impuesto_parcial)
    			{
    				foreach ($impuesto_parcial as $impuesto) $impuestos_totales[1] += $impuesto;
    			}

    With:

    $impuestos = 0;
    			foreach ($impuestos_parciales as $impuesto_parcial)
    			{
    				foreach ($impuesto_parcial as $clave => $impuesto)
    				{
    					$impuestos += $impuesto;
    					$impuestos_totales[$clave] = $impuestos;
    				}
    			}

    Try it please.

    On line 480 replace:

    $impuestos_totales[1] = 0;

    with this:

    $impuestos_totales = array();

    Chris ??

    Plugin Author Art Project Group

    (@artprojectgroup)

    Good, but $impuestos_totales was declared as array before.

    So you can remove line 480 then. The problem is that if there are no taxes then the taxes array still gets set on line 480 with a tax rate id of 1 and a value of zero, but there may not be a tax rate id of 1 set up. If there are no shipping taxes then you need an empty array to be returned.

    Thread Starter skaught

    (@skaught)

    Sorry for my delay. I had a large t-shirt shipment to mail out. I have emailed admin access as requested. Thank you!

    Scott

    Thread Starter skaught

    (@skaught)

    FYI – I have the APG plug in running alongside another weight based plug in, but the other one doesn’t have state based shipping so I much prefer yours. However, you can see how the other one is working while APG isn’t, so the rest of the site is set up properly. I’ve processed a Paypal payment with the other plug in.

    Scott

    Plugin Author Art Project Group

    (@artprojectgroup)

    Thank you Scott and Chris.

    In a few minutes you can download the fix update.

    The problem was generated, like Chris said, with no taxes configurations.

    Thanks a lot for your help.

    Plugin Author Art Project Group

    (@artprojectgroup)

    Fixed on version 1.7.4.1.

    Kind regards.

    Thread Starter skaught

    (@skaught)

    I’ve installed the new version, but it’s not showing up as an option on checkout. Other options are showing up. I’ve uninstalled it and deleted it and reinstalled it again, but it still does not show up.

    Thank you!

    Scott

    Plugin Author Art Project Group

    (@artprojectgroup)

    Check your plugin and WooCommerce configuration.

    Kind regards.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Not Working with Latest WP?’ is closed to new replies.