NO BUG: Bricks / Woo Compatibility for Virtual / Downloadable Product

Hi,
I’m trying to determine where the following bug is. Prior to switching to bricks, I had no issues with the WooCommerce order system. I am using WooCommerce 7.8.1.

Issue: When I perform a purchase of a virtual + downloadable product, the order transitions to “processing” state but does not go to the order “completed” state. I see the new entry in the woo orders table, but the downloadable_product_permissions table doesn’t get updated.

If I manually complete the order within WooCommerce, the auto-email is sent but the permissions table is not updated, so the customer still doesn’t get a link to download the file

I talked to my hosting site (rocket.net) and they see no issues on the server side. I uninstalled woocommerce and reinstalled to no effect. I even installed a a helper plugin Autocomplete WooCommerce Orders – WordPress plugin | WordPress.org and that didn’t force it to transition to completed either. Something is obviously blocking the transition and the table write.

I have no idea what is blocking this in woocommerce. I am hoping this is a bricks issue.

Hi @lynxm ,

May I know how you set the Downloadable Products?

Did you read through this article?

This might help as well

Hi @itchycode -
Yep, I read all of those articles yesterday and they don’t get at the problem I’m facing unfortunately

My woo settings seem fine. Haven’t changed them for a couple years…definitely not impacted by the port to Bricks

The 2nd article talks about a missing database table, but mine is there. It’s just not being written to:

if you look at their documentation Database Description · woocommerce/woocommerce Wiki · GitHub

it appears that only “wp_” has been prepended to the nominal table string

which comes to 47 characters, under their 64 char limit.

I did put in a ticket with woocommerce, but given their support team’s history, I expect them to be near zero help :frowning:

Hi @lynxm ,

If in this case, please send a temp admin access to us (help@bricksbuilder.io) and kindly include this forum thread URL as a reference in your email.

Regards,
Jenn

Thanks Jenn - Just sent!

Hi @lynxm ,

As per my email reply, it seems like the issue coming from the Perfmatters plugin.
Hence, I will mark this thread as “NO BUG” now :slight_smile:

Regards,
Jenn

Thanks for all of your help @itchycode! Your detective work was great in figuring out that it was a perfmatters issue. Really appreciate it.

Speaking of perfmatters, their team is great as well. Not sure how they figured it out, but to get the variable virtual + downloadable product to automatically register as purchased in the database and allow the user to download the purchased files, they excluded defer on the following scripts:

wc-add-to-cart-variation-js-extra
/wp-includes/js/wp-util.min.js
/wp-includes/js/underscore.min.js

Apparently, they are a chain that woo requires to execute the automation.

1 Like