Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Not working with Capybara Theme #29

Open
draper87 opened this issue Aug 18, 2021 · 1 comment
Open

Not working with Capybara Theme #29

draper87 opened this issue Aug 18, 2021 · 1 comment

Comments

@draper87
Copy link

draper87 commented Aug 18, 2021

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
Copy link
Author

draper87 commented Sep 1, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant