[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"$f24r8d0pwirnw2":3,"$fgph23vl6tmr9":23},{"content":4,"package":5,"version":22},"# Customize the Output\n\nUsing both Symfony's template overrides and the `SyliusThemeBundle` theme overrides, the plugin layouts can be customized to suit your website.\n\n## Frontend Layout\n\nThe frontend layout is generated by the `@BabDevSyliusShippingEstimatePlugin\u002FCart\u002FEstimator\u002F_widget.html.twig` template. You can customize this by copying the `src\u002FResources\u002Fviews\u002FCart\u002FEstimator\u002F_widget.html.twig` file to one of the following locations, depending on your site's configuration:\n\n- `themes\u002F\u003Cmy-theme>\u002Ftemplates\u002Fbundles\u002FBabDevSyliusShippingEstimatePlugin\u002FCart\u002FEstimator\u002F_widget.html.twig` if using the `SyliusThemeBundle`\n- `templates\u002Fbundles\u002FBabDevSyliusShippingEstimatePlugin\u002FCart\u002FEstimator\u002F_widget.html.twig` if **NOT** using the `SyliusThemeBundle`\n\n### Messages Used By The JavaScript\n\nThe messages the JavaScript shows are read from `data-message-*` attributes on the estimator form, allowing them to be fully translated:\n\n| Attribute                         | Translation key                                                                             |\n|-----------------------------------|---------------------------------------------------------------------------------------------|\n| `data-message-incomplete-form`    | `babdev_sylius_shipping_estimate.ui.please_fill_in_all_fields_to_estimate_your_shipping`    |\n| `data-message-calculator-error`   | `babdev_sylius_shipping_estimate.ui.sorry_there_was_a_temporary_error_calculating_shipping` |\n| `data-message-estimate-cancelled` | `babdev_sylius_shipping_estimate.ui.the_shipping_estimate_was_cancelled`                    |\n| `data-message-generic-error`      | `babdev_sylius_shipping_estimate.ui.error_getting_shipping_estimates_please_try_again`      |\n\nTo change the wording, override those translation keys in your application's translation files. If you override the widget template, keep these attributes; the script falls back to its own English strings when one is missing.\n\nNote the cancellation message is only a fallback. When an event listener passes a reason to `cancelEstimate()`, that reason is displayed instead.\n\n## JavaScript\n\nThe JavaScript file at `src\u002FResources\u002Fpublic\u002Fjs\u002Fbabdev-sylius-shipping-estimator.js` is designed to be able to be loaded standalone after the core Sylius UI assets (a requirement because of the use of jQuery) and by design is only loaded on the cart summary page when there is an active cart. If you would like to customize the JavaScript, you should copy the JavaScript file from this plugin into your application's assets directory, include it within your own build process, and disable the block listener for the Sylius template event that loads the JavaScript file by adding the below snippet to your `config\u002Fpackages\u002F_sylius.yaml` file:\n\n```yaml\nsylius_ui:\n    events:\n        sylius.shop.layout.javascripts:\n            blocks:\n                shipping_estimator_javascript:\n                    enabled: false\n```\n",{"name":6,"slug":7,"previousSlugs":8,"description":10,"github":11,"packagistName":14,"packageType":15,"hasDocumentation":16,"supported":16,"visible":16,"versions":17},"Sylius Shipping Estimate Plugin","shipping-estimate-plugin",[9],"syliusshippingestimateplugin","Adds a shipping estimator widget to a Sylius website's cart",{"owner":12,"repo":13},"BabDev","SyliusShippingEstimatePlugin","babdev\u002Fsylius-shipping-estimate-plugin","sylius-plugin",true,[18],{"version":19,"gitBranch":20,"released":21},"1.x","0.3",false,{"version":19,"gitBranch":20,"released":21},{"content":24,"package":25,"version":30},"- [Introduction](\u002Fopen-source\u002Fpackages\u002Fshipping-estimate-plugin\u002Fdocs\u002F1.x\u002Fintro)\n- [Installation & Setup](\u002Fopen-source\u002Fpackages\u002Fshipping-estimate-plugin\u002Fdocs\u002F1.x\u002Finstallation)\n- [Customize the Output](\u002Fopen-source\u002Fpackages\u002Fshipping-estimate-plugin\u002Fdocs\u002F1.x\u002Fcustomize-the-output)\n- [Hooking The Estimator](\u002Fopen-source\u002Fpackages\u002Fshipping-estimate-plugin\u002Fdocs\u002F1.x\u002Fhooking-the-estimator)\n- [Rate Limiting](\u002Fopen-source\u002Fpackages\u002Fshipping-estimate-plugin\u002Fdocs\u002F1.x\u002Frate-limiting)\n",{"name":6,"slug":7,"previousSlugs":26,"description":10,"github":27,"packagistName":14,"packageType":15,"hasDocumentation":16,"supported":16,"visible":16,"versions":28},[9],{"owner":12,"repo":13},[29],{"version":19,"gitBranch":20,"released":21},{"version":19,"gitBranch":20,"released":21},1790007747513]