Pro X Theme + Woocommerce / Checkout Shortcode 500 server error

Beyond a doubt there is an issue with X Pro theme and using the Woocommerce Shortcode for Checkout. I went through all posts on this issue on this forum and like most I had to find a work around since the shortcode and pro theme seem to be incompatible. The best course of action I could devise was to:

1: save out any customizations you made into a template file then delete the cornerstone page you’ve edited with pro entirely.
2. Go to Woocommerce Status / Tool and reinstall the needed pages (will only install missing pages, i.e. the one you just deleted)
3. Open Pro’s Global Blocks and pull in your customizations from your template file.
4. Edit your checkout page in the default wordpress editor, DO NOT HIT EDIT WITH PRO - you can safely use a X theme default template, I picked No Container - header and footer. Insert x theme shortcode [Container] and then split that container into two columns (which here you can also use X theme shortcodes for columns), then inserted my global block shortcodes into those separate columns .
5. Checkout your custom WORKING non-error throwing Checkout page

Example code for the page:

    [container]
    

Checkout

[column type="2/3" style="padding-bottom: 20px;"] [woocommerce_checkout][/column] [column type="1/3" last="true"][cs_gb id=399][/column][/container] [cs_gb id=135]

Also note, I am using the following versions when I experience the error:
Wordpress 5.1.1
Pro 2.5.5
Woocommerce 3.5.7

Hi @ feriamsidera,

The issue is you’ve used Cornerstone in the Checkout page and the checkout shortcode should not be wrapped or placed inside another shortcode which is the case if you add it in Cornerstone because it’s made of shortcodes.

You also shouldn’t edit the pages assigned for Woocommerce using the builder. The shortcode was added by WooCommerce itself, and even if you delete it and assign it again as your Woocommerce checkout page then it’s still the same. The recommended way of editing Woocommerce layout and content is through Woocommerce templates and hooks.

Hope it helps :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.