Skip to content

Tag: shopware

How to overwrite a html-element but keep the rest of a block?

I am extending a twig-template where i want to replace the line with Twig-template I tried to overwrite the layout_main_navigation by copying everything and changing the class of the div. But i am not happy with that solution as i have to copy and overwrite a lot blocks. How can i achieve replacing the class …

Guzzle fails to authenticate with shopware5

I am trying to port the following working HTTP_Request2 code which query shopware5 API to Guzzle 7 I have tried the following, but it fails with the message “Invalid or missing auth” Answer You need to change your code As Digest has md5, so verify as false does not make it insecure, but I have not…

Shopware : get the document number by its ID

I need to get the documentNumber in the documentRepository by its ID. I am doing a “simple” DAL request to do this but for some reason dumping the output gives empty fields. Here is my subscriber containing the DAL request : Here is my services.xml : I also tried to directly dump the result of the…

Shopware 5.6 override class method

I want to override method ajaxAddArticleCartAction in engine/Shopware/Controllers/Frontend/Checkout.php, cuz i want a bit complicated logic on accessories quantity calculation. My question is: Is it possible to override this method in my custom plugin. With other words, if i add product in cart, i want to use…