Skip to content

Conversation

@revoltek-daniel
Copy link

Hello,

i've tried to fix some issues which prevent the plugin to work in my sylius 1.12 environment.

I've removed the jquery dependency in amazonPayStart.html.twig to avoid loading of full Javascript Entrypoint.

@@ -1,5 +1,3 @@
{% include '@SyliusUi/_javascripts.html.twig' with {'path': 'assets/shop/js/app.js'} %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines should not be removed, but replaced with:

{{ encore_entry_script_tags('shop-entry', null, 'shop') }}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we didn't need the shop javascript here. all the code is plain javascript here without dependencies.
But i can readd it if we need it.

```yaml
sylius_shop_checkout_start:
path: /{_locale}/checkout-start
path: /

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't needed for me

{
return new Response(
$this->templating->render('BitBagSyliusAmazonPayPlugin:AmazonPay:amazonPayStart.html.twig')
$this->templating->render('@BitBagSyliusAmazonPayPlugin/AmazonPay/amazonPayStart.html.twig')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@migo315
Copy link

migo315 commented Jul 15, 2024

Why not merged? Still something to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants