vsf-external-checkout icon indicating copy to clipboard operation
vsf-external-checkout copied to clipboard

Not working with Capybara Theme

Open draper87 opened this issue 3 years ago • 1 comments

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

draper87 avatar Aug 18 '21 15:08 draper87

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' } } ]

draper87 avatar Sep 01 '21 13:09 draper87