Questions tagged [sylius]

For questions about programming with Sylius, an eCommerce framework on top of Symfony.

Sylius is an Open Source E-Commerce framework for PHP, based on the Symfony framework.

702 questions
4
votes
1 answer

How to change order status to paid after the offline payment was selected?

Using stable Sylius 1.2.0, how one can mark the order as paid after the offline payment method was selected? Tried using an after-callback of the sylius_order_payment state-machine`, but it doesn't seem to fire on any…
Mike Doe
  • 16,349
  • 11
  • 65
  • 88
4
votes
2 answers

How to Implement Klarna payment gateway with Sylius?

I have been trying to add klarna checkout gateway without any luck... I don't see Klarna Checkout in the Admin UI! No idea what I'm missing here but the way I understood it that all I have to do is install the gateway payment through composer then…
user3808955
  • 337
  • 1
  • 2
  • 10
4
votes
2 answers

How to add CSS files on a Sylius theme?

I've a custom theme under app/theme/AcmeTheme. I have the theme working and I can define my own templates under views or override template for other Bundles. The problem is that I can not figure out how to add a custom CSS file inside my theme. So…
Pablo
  • 133
  • 1
  • 10
4
votes
1 answer

Sylius: error after composer update on sylius 0.17

i have installed Sylius as following: $ composer create-project sylius/sylius $ cd sylius $ php app/console sylius:install Installed versions: Symfony 2.7.7 and Sylius 0.17 All things were working fine until i did composer update. Here was…
ulzii
  • 53
  • 4
4
votes
2 answers

Sylius Resource 403 access denied

I've created a new bundle for adding some delivery periods for certain zones. sylius_resource: resources: shop.deliveryperiods: classes: model: Shop\Bundle\DeliveryBundle\Entity\DeliveryPeriod form: default:…
pottink
  • 93
  • 4
4
votes
1 answer

How do I use the Sylius currency importer for my configured currencies?

I have a number of currencies setup with my Sylius install (v0.14), and I have added an api key within my parameters.yml for open exchange rates. When running the console command: ./app/console sylius:currency:import openexchangerates I see that…
Carl Owens
  • 1,292
  • 8
  • 14
4
votes
2 answers

symfony 2 sylius bundle lost (TranslationBundle )

I try to install Sylius ResourceBundle on my project but when i run my symfony project, i get this error : Class 'Sylius\Bundle\TranslationBundle\DependencyInjection\AbstractTranslationExtension' not found I can't find Sylius TranslationBundle…
Amir
  • 43
  • 5
4
votes
1 answer

Proper dev. approach for overriding Twig templates

I recently decided to take a look at Sylius, since I love the idea of a developer-friendly Symfony2 project. I tried to look through the various documentation articles, but I didn't seem to be able to find the answer for a very fundamental question…
Redoubt
  • 41
  • 1
4
votes
3 answers

symfony2 factory-service in yaml

Looking at the code of the Sylius Bundle for Symfony I noticed the Resource Bundle has an interesting way of defining resource controllers as services. Here is the cart item controller service configuration in XML
smarques
  • 708
  • 7
  • 22
4
votes
1 answer

How to create a new model with Sylius via SyliusResourceBundle

I found and successfully used documentation on how to override an existing model in Sylius, but I haven't been able to create a completely new one making use of the SyliusResourceBundle. Im guessing it's easy if you already know Symfony2? Im still…
markjwill
  • 206
  • 5
  • 15
4
votes
2 answers

How to update sylius/standard

I have installed sylius with composer create-project -s dev sylius/sylius cd sylius app/console sylius:install I have added my own Bundle which extends SyliusWebBundle and some other things. Of course I have change parameters.yml etc. How can I…
Tom
  • 1,203
  • 3
  • 15
  • 35
4
votes
1 answer

"Submitted form is invalid" when adding a product to cart : Sylius Cart Bundle

I apologize if this seems to be a very naive question..but i've just learnt Symfony2 and trying to learn the workings of Sylius. When I add a product to the cart it seems to always return the error : Submitted form is invalid I have searched the…
J.Cage
  • 369
  • 2
  • 18
4
votes
1 answer

Install Fixtures in Sylius - Symfony2

After having successfully installed and updated all vendors in my project folder for Sylius i tried running this code : app/console sylius:install --fixtures I get this error : PHP Fatal error: Class 'ResourceBundle' not found in…
J.Cage
  • 369
  • 2
  • 18
3
votes
1 answer

Sylius: "cache:clear" timeout

I've developed a sylius based site on a local server. I want to deploy it in production on my OVH server. In the Sylius Sylius Cookbook, I did not find any particular procedure. So I followed the normal procedure. Upload my code to the production…
lcgd
  • 45
  • 6
3
votes
1 answer

how fix argon2i error in Sylius installation?

At the end of the installation with composer this error appears: Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !! !! In SecurityExtension.php line 561: !! …
Jairo Erazo
  • 174
  • 1
  • 10
1
2
3
46 47