While SureCart offers highly customizable WordPress blocks for the customer dashboard, there are users that still prefer to do everything in their page builder of choice.
To make this possible, we have introduced the following shortcodes that you can add to your page builder.
These shortcodes must be added to the WordPress page that SureCart has assigned as your customer dashboard page. They need to exist here because we redirect users here from emails.
If you set up a separate customer dashboard page, emails will still redirect to the one that’s set as the “Customer Dashboard” page.
If you don’t include sc_customer_orders, sc_customer_subscriptions, and sc_customer_downloads on the “Order Confirmation” page, then all email links will only redirect to the main dashboard page.
These must be wrapped inside a sc_customer_dashboard_page shortcode so that a login form will show if the user is not logged in.
[sc_customer_dashboard_page] [sc_customer_orders title="My Orders"] [sc_customer_subscriptions title="My Subscriptions"] [sc_customer_downloads title="My Downloads"] [sc_customer_payment_methods title="My Payment Methods"] [sc_customer_billing_details title="My Billing Details"] [sc_customer_wordpress_account title="My Account Details"] [/sc_customer_dashboard_page]
Order Confirmation Shortcodes
This is for making custom thank you pages and will allow you to display the order data anywhere on the page.
Everything must be wrapped inside a sc_order_confirmation shortcode. This component passes order data into the individual components.
[sc_order_confirmation] Please check your inbox for more instructions. [sc_order_confirmation_line_items] [sc_customer_dashboard_button]Go To Dashboard[/sc_customer_dashboard_button] [/sc_order_confirmation]