New Version of Classic Commerce

This is not the same version as the one in the directory. This one has a lot of updates and doesn’t require the cc-compat-with-woocommerce plugin.

2 Likes

Those depreciation notices will have to be addressed before ClassicPress 3.0 is released.

1 Like

Okay thanks for the replies. When the warnings are addressed I’ll update the plugin but for now I added these lines to the top of my wp-config file so I could continue to test without the annoyance of the warnings in my dashboard.

// Disable all debugging during testing
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', false);
@ini_set('display_errors', 0);
1 Like

You only need the first two lines.

2 Likes

May I ask how will you know which approach the newer version will take to make your changes before hand?

1 Like

I think it’s actually more likely that the official plugin will copy what Sean has done unless we find significant issues (which I very much doubt). It’s just a question of finding time to go through everything.

2 Likes

Not sure if anyone else has this installed and working on ClassicPress 2.2.0 with the Classic Press Theme 1.0.0 but when I installed the plugin from the link in the first post of this thread it never created any pages like cart, checkout shop etc.

I created the following pages myself: cart, checkout, myaccount and shop. Also added the appropriate shortcodes ([[woocommerce_cart]] etc) and created a test product. I also noticed that after viewing the actual pages the shortcode seems to be truncated to [woocommerce_cart] etc. Also, that is all that shows when I add the product to my cart and view my cart.

I decided to check the database and the following tables are missing: cp_wc_cart, cp_wc_checkout, cp_wc_myaccount and cp_wc_shop. Am I missing something or has anyone else experienced this.

I have since deactivated/deleted the plugin and removed all cp_wc tables from the database. Unless this is something that has happened to someone else I will attempt to re-install the plugin to see if it installs correctly this time.

1 Like

There was an issue with the setup wizard that’s fixed now. If you run through the wizard the pages are created. If you skip it, you can go to status → tools and run the create pages tool.

The database tables you mention don’t exist.

BTW… I just updated Query Monitor to the latest version and it throws…

PHP Fatal error: Uncaught Error: Call to undefined function get_block_theme_folders() in /public_html/wp-content/plugins/query-monitor/collectors/theme.php:521

3 Likes

We have added a polyfill for that issue with Query Monitor in the latest nightly. It will be included when version 2.3.0 is released, currently scheduled for Thursday.

2 Likes

I never seen the wizard when activating the plugin is it supposed to be there automatically or is it something you have to do manually? I will wait until the new version comes out before I try to test again.

1 Like

The set up wizard appears if it’s a new install. I confirmed it was working yesterday.

2 Likes

Amazing, thanks for putting so much time into getting this up to date

2 Likes

@seanthompson I am very appreciative of the work you are doing here.

Will this version of Classic Commerce eventually be available for people in the Plugins directory, or is that already in process?

1 Like

@Web242 If you can test it and confirm it works, that will help speed things up. I’d like to update the plugin in the Directory, but I want to be sure it doesn’t cause problems for anyone first.

1 Like

@timkaye Sure, I’d love too. Was planning on a new portal for Web242 or other live site to migrate over to CC and CP. Only issue of course is time… so I wouldn’t be able to do anything in the short term. But I will queue it in.

Where do I get the most recent copy?

1 Like

From Sean. See New Version of Classic Commerce

1 Like

The link to the download page at the start of this thread will always have the most recent copy.

I’ve had this running on two live sites for a while now. One is using Woocommerce UPS Shipping Method (blocks code removed), Advanced Free Shipping and PW Woocommerce Gift Cards. The other is using USPS Shipping. Orders have been coming in without any issues.

2 Likes

Hi,

It would be great to run a shop with CP.

Have just downloaded the zip from the initial post, unzipped it, and added it to my wp-content > plugins folder (because of limited max upload size of my local install). After activation I must run the DB update and then I’m redirected to page Commerce > Settings. No new pages are created, so had to do this via Status > Tools. @nootkan pointed this out as well.
I did have CC v1 installed before (but removed it before installing v2, including all pages, also from bin).

Besides this there’s a warning in the frontend:

Warning: Undefined variable $cc_version in my-domain\wp-content\plugins\classic-commerce\includes\wc-template-functions.php on line 284

It seems that changing $cc_version into $version fixes this.

Guido

1 Like

It probably didn’t create the pages because you still had the data from the previous version, so it was an update rather than a new install.

I haven’t seen that warning. I’ll look into it.

1 Like

Yes you’re right, after cleaning DB the install tool runs upon activating CC.

2 Likes