Skip to content

Commit ba18393

Browse files
Merge pull request #267 from hyva-themes/fix/checkout-config-not-passing
checkout config is not passing from react-container.phtml
2 parents 92cfb4e + 3617cd5 commit ba18393

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/reactapp/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ build
88
public/tailwind.output.css
99
public/styles.css
1010
src/paymentMethods/*
11-
!src/paymentMethods/paymentConfig.json
1211
!src/paymentMethods/customRenderers.js
13-
!src/paymentMethods/i18nProvider.js
14-
!src/paymentMethods/utility

src/view/frontend/templates/react-container.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $configProvider = $block->getData('checkout_config_provider');
1414
<div
1515
id="react-checkout"
1616
data-base_url="<?= $block->getBaseUrl() ?>"
17-
data-base_url="<?= $escaper->escapeUrl($block->getBaseUrl()) ?>"
17+
data-checkout_config="<?= $escaper->escapeHtmlAttr($configProvider->getConfig()) ?>"
1818
data-static_file_path="<?= $escaper->escapeUrl($block->getViewFileUrl('Hyva_ReactCheckout')) ?>"
1919
>
2020
<div class="container">

0 commit comments

Comments
 (0)