Open draper87 opened 3 years ago
I did find a solution: register the module inside theme/capybara/config/modules.ts (not in client.ts like you would have done with default theme), delete the file ExternalSuccess.vue (it's based on the default theme, it wouldn't work with Capybara) and inside the file routes.ts of the module delete any reference to the file ExternalSuccess.vue.
// const ExternalSuccessPage = () => import(/* webpackChunkName: "vsf-ExternalSuccessPage" */ '../pages/ExternalSuccess.vue'); export const routes = [ // { name: 'external-thank-you', path: '/order-success', component: ExternalSuccessPage, meta: { layout: 'default' } } ]
I've tested the module with the default theme and I didn't encounter any issue, but using VSF 1.12.2 with Capybara theme 1.0.5 when I click on the checkout button, VSF redirect to his checkout page, not Magento2 checkout page. Have you tested on this particular theme? Does beforeEach.ts affect in any way Capybara theme?
Thanks