Skip to content

Commit

Permalink
Rapidez v3 support (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Dec 13, 2024
1 parent f2e9254 commit b59dc51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rapidez/boldcommerce-order-comments",
"require": {
"php": "^8.0|^8.1|^8.2",
"rapidez/core": "^2.8"
"rapidez/core": "^3.0"
},
"authors": [
{
Expand Down
4 changes: 2 additions & 2 deletions resources/js/eventlisteners.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'Vendor/rapidez/core/resources/js/app'

document.addEventListener('vue:loaded', () => {
Vue.set(window.app.checkout, 'comment', '')
Vue.set(window.app.custom, 'comment', window.app.custom?.comment ?? '')

window.app.$on('checkout-credentials-saved', (e) => {
window.app.magentoCart('put', 'set-order-comment', {
orderComment: {
comment: window.app.checkout.comment
comment: window.app.custom.comment
}
})
})
Expand Down

0 comments on commit b59dc51

Please sign in to comment.