sylius

Sylius Product Bundle configuration

橙三吉。 提交于 2020-01-13 18:16:44
问题 I'm trying to integrate Sylius Product Bundle into my existing Symfony project. It already has doctrine configured. This is the error I am getting: [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] The child node "driver" at path "sylius_attribute" must be configured. Any idea what's causing this? I followed the instruction right off the bat without doing any other installations of sylius. http://docs.sylius.org/en/latest/bundles/SyliusProductBundle/installation

sylius: site not deploying correctly in production

試著忘記壹切 提交于 2020-01-05 04:59:06
问题 I've developed a sylius based site and all is working fine in development environment, but some problems have arisen when deploying it on the production environment: In Frontend: compiled frontend.js return an error: (function ($) { Uncaught TypeError: undefined is not a function frontend.js:27 (anonymous function) jquery 1.8.0 is included before the line that produces the error. In Backend: no errors seems to arise but select widgets doesn't render (none of them). The steps done to deploy

How do I install Sylius on Bluehost or any other server that has an old version of ICU installed?

只愿长相守 提交于 2019-12-24 16:14:06
问题 I have been trying to get Sylius installed on my Bluehost server which is running on shared hosting and while I do have SSH access, it is somewhat limited. It did not come with the php intl extension and the version of ICU on it is 4.2 which produces errors when installing Sylius because it wants a newer version. 回答1: I tried this on a clean install of Sylius on my Bluehost server and got it to work. I had previously installed the intl extension on my BlueHost server following https://my

Class does not implement “Symfony\Component\Form\FormTypeInterface” in Sylius

纵然是瞬间 提交于 2019-12-24 00:33:29
问题 We are trying to extend from CustomerProfileType and we are getting error like: { "code": 500, "message": "Could not load type "abc\Form\Extension\AdminApi\CustomerProfileTypeExtension": class does not implement "Symfony\Component\Form\FormTypeInterface"." } Customer.yml: sylius_admin_api_customer_create: path: / methods: [POST] defaults: _controller: sylius.controller.customer:createAction _sylius: serialization_version: $version serialization_groups: [Detailed] form: type: abc\Form

Why my file-update Listener don't work like variant_image on sylius project?

♀尐吖头ヾ 提交于 2019-12-23 06:05:44
问题 I use a standalone version of SyliusResourceBundle (0.9) in my project. I can manage without any problem my entities: User, Group, Role and Company. I tried using Gaufrette\Filesystem to add a logo to a company (like variant_image in sylius). And it seems that my service is not running. He tries to persist the image without it have been uploaded and I have no error message from my listener ! KNP Gaufrette Configuration in config.yml : knp_gaufrette: adapters: project_file: local: directory:

Sylius customer and products relations

北慕城南 提交于 2019-12-23 04:26:18
问题 I need to know if sylius have support for that an customer can create your own products. The model of my project is: a customer can create and sale your own products, and can to consump products that was created by other customers. I see that i can create a rol and to add the permissions to an customer to make manage a product, but this solution show me all products that other customers can to create, that is, I not have a filter by customer. I need to know if that is possible to make that

How to override SyliusCoreBundle Model User

半城伤御伤魂 提交于 2019-12-22 10:52:55
问题 I try to add a new field "phone" in model User (SyliusCoreBundle/Model/User). Avoiding to touch SyliusCoreBundle, I create a new bundle 'ShopBundle' which is beside of the others sylius bundles to override base user class : src/Sylius/Bundle/ShopBundle in the folder ShopBundle : > /Controller(empty) > /DependencyInjection(empty) > /Model > /User.php > /Resources > /config/doctrine/model/user.orm.xml > /config/service.xml (empty) > SyliusShopBundle.php In file src/Sylius/Bundle/ShopBundle

Sylius: How to inject (request) arguments in custom ProductRepository?

旧巷老猫 提交于 2019-12-14 02:08:58
问题 I want to override the method createByTaxonPaginator() so that the indexByTaxon() method gives back sorted results. That new method should use Request to get the sort Get-Parameter. For ordering the searchresults i found the service and overrode that as following: sylius_search.repository: class: ShopBundle\Entity\SearchIndexRepository arguments: ['@doctrine.orm.entity_manager', '@sylius.repository.product', '@request_stack'] maybe that is not a good practice, i dont know. But it works...

How to override Sylius email system

随声附和 提交于 2019-12-13 19:12:46
问题 I need to attach a PDF file to the order confirmation email in Sylius. So far I did it hacking the Sylius Core Bundle : in /Sylius/Bundle/CoreBundle/Mailer/TwigSwiftMailer.php I generate a PDF from a Twig template and my order informations (using Knp Snappy) and attach it to the email. It works fine, and I'd like to remove this from the Core Bundle and put it in my own bundles (so the Core Bundle could remain untouched). But this process involves several services/event listeners, and I'm

Customize SyliusFlowBundle render

人盡茶涼 提交于 2019-12-13 18:41:16
问题 I'm using Fuelux Wizard component for set up a wizard on my application. This is the HTML markup on my template: <div class="wizard" data-initialize="wizard" id="myWizard"> <ul class="steps"> <li data-step="1" class="active"><span class="badge">1</span>Step 1<span class="chevron"></span></li> <li data-step="2"><span class="badge">2</span>Step 2<span class="chevron"></span></li> <li data-step="3"><span class="badge">3</span>Step 3<span class="chevron"></span></li> </ul> <div class="actions">