by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ajimenez
    @poncho-jim
    yup
    I just used this: https://github.com/shopware/development/releases latest release 6.1.5
    ran the cmd's and ran into this
    I am running this in an Ubuntu 18 env. got docker-compose, docker, bash, php 7.2
    ajimenez
    @poncho-jim
    ./psh.phar docker:start
    ./psh.phar docker:ssh
    ./psh.phar install
    I know
    BUT, the third command won't run because of this error
    (4/40) Starting
    > mysql -u 'app' -p'app' -h 'mysql' --port='3306' -e "DROP DATABASE IF EXISTS \`shopware\`"
        ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-2)
    Kobus Post
    @KobusPost
    running the command in the docker container?
    Thomas
    @alpham8
    @shyim and @KobusPost Thank you very much for that nginx-prox hint. Do you have a working example for me? Otherwise I'd guess there's too much magic going on here
    ajimenez
    @poncho-jim
    yes
    right here
    (1/1) Starting
    > docker exec -i --env COLUMNS=`tput cols` --env LINES=`tput lines` -u 1000:1000 -t beedeb7b9a6380be8abef3e070c6c3709f6f1a4e547f9e9f51b8151c5fe3488b bash
        application@beedeb7b9a63:/app$ ./psh.phar install
    and then the same
    jordan3949
    @jordan3949

    Also having some issues with theme inheritance and wondering if anyone can see any obvious issues? Shopwares example also seems to reference vendor/Storefront and I have vendor/platform/src/Storefront for some reason? Thanks.

    /vendor/shopware/platform/src/Storefront/Resources/views/storefront/layout/header/logo.html.twig

    my theme -
    /custom/plugins/MyTheme/src/Resources/views/storefront/layout/header/logo.html.twig

    and inside my theme file:

    {% sw_extends '@Storefront/storefront/layout/header/logo.html.twig' %}
    {% block layout_header_logo_link %}
    <h2>Hello world!</h2>
    {% endblock %}

    Kobus Post
    @KobusPost
    @poncho-jim docker-compose file:
    services:
    app_server:
    links:
      - app_mysql:mysql <- is this listed? 
    when you run "dig mysql" in the container do you get a response?
    Joshua Behrens
    @JoshuaBehrens
    damn dal:create:entities and dal:create:schema are insane
    kevmz
    @kevmz
    @JoshuaBehrens what does it do? there is no description on bin/console
    Joshua Behrens
    @JoshuaBehrens
    you do a entity definition, run dal:create:schema and get your sql for the migration and dal:create:entities generates the entity and entity collection for your definitions.
    still some flaws in there but damn this is a good start
    it really kick starts dal development
    kevmz
    @kevmz
    nice to know, will try next time
    Joshua Behrens
    @JoshuaBehrens
    we just stumbled upon them as well right now
    we need more documentation :D
    Niklas Teich
    @NiklasTeich

    Hello folks. I'm trying to subscriber to his event (https://github.com/shopware/platform/blob/master/src/Core/System/StateMachine/StateMachineRegistry.php#L237)
    My event subscriber looks like this

    public static function getSubscribedEvents(): array
        {
            return [
                StateMachineStateChangeEvent::STATE_MACHINE_TRANSITION_SIDE_ENTER => 'onStateMachineStateChange'
            ];
        }

    But my subscriber is not triggered. I don't get it why ... other subscriber across multiple plugins are working! ..

    I want to listen on the pay trigger of PayPal at https://github.com/shopware/platform/blob/master/src/Core/Checkout/Order/Aggregate/OrderTransaction/OrderTransactionStateHandler.php#L116 ... that's the reason why i listen to the state machine transition
    Patrick Stahl
    @PaddyS
    Check if your subscriber is correctly executed
    Add a __construct with some debugging to it just to see if the constructor is even executed
    Niklas Teich
    @NiklasTeich
    When is the constructor going to be executed? ...
    Because it looks like its not executed at all :( All other subscribers are working ..
    Raphael Emmerich
    @emmer91
    @NiklasTeich is the subscriber registered in any services.xml with the right tag?
    Niklas Teich
    @NiklasTeich
    @emmer91 Yeah, it looks identically compared to my other plugins and plugin subscribers ... i also tried StateMachineStateChangeEvent::class as a subscribed event but it also does not work :/
    If i relocate the StateMachineStateChangeEvent in another working subscriber, it also does not get triggered. So, something does not work with the StateMachineStateChangeEvent (class, STATE_MACHINE_TRANSITION_SIDE_ENTER) triggered by the PayPal plugin
    bojandavkov
    @bojandavkov
    I have migrated products from Magento, but on the category listing instead of the main product it is displayed its variant. Anyone aware of this case? Or where i cant find the collection which is filtering the proucts?
    Screenshot from 2020-04-09 15-21-01.png
    Raphael Emmerich
    @emmer91
    @NiklasTeich stupid question, the plugin is installed and active?
    Thomas
    @alpham8
    @poncho-jim It should be only one shopware shop, the other are just php sites
    Raphael Emmerich
    @emmer91
    @NiklasTeich versuch dich mal auf das Shopware\Core\System\StateMachine\Event\StateMachineTransitionEvent zu registrieren. (StateMachineTransitionEvent::class) zu subriben und dann über getTransitionSide auf das Event überprüfen, im welchen Status du bist
    Niklas Teich
    @NiklasTeich

    @emmer91 All subscribers to the StateMachineTransitionEvent are not triggered. My first working example only works because i use

    <tag name="kernel.event_listener" event="state_machine.order_transaction.state_changed" method="onOrderTransactionStateChange"/>

    I found it at https://github.com/shopware/platform/blob/2b599a79d9a41d1f9dddcc34a232225594eff5e1/src/Core/Checkout/DependencyInjection/order.xml#L106
    But - i don't get it why this event is triggered and the StateMachineTransitionEvent::class, STATE_MACHINE_TRANSITION_SIDE_ENTER ... not

    Christopher Dosin
    @ChristopherDosin

    Does anybody has already created a plugin that uses a pagination?
    I am still trying to figure out how to create a pagination from an entity and also with filters - So kinda like the product listing view - Only for your own entity 😇

    Is the whole pagination for example for the product listing done within the the ProductListingFeaturesSubscriber ?

    Raphael Emmerich
    @emmer91

    @NiklasTeich the problem is this Method i think: \Shopware\Core\System\StateMachine\Event\StateMachineStateChangeEvent::getName

    it will be used in \Shopware\Core\System\StateMachine\StateMachineRegistry::transition. Your event name should be the same as in the Element you posted: state_machine.order_transaction.state_changed

    Niklas Teich
    @NiklasTeich
    @emmer91 I tried to subscribe StateMachineStateChangeEvent::STATE_MACHINE_TRANSITION_SIDE_ENTER but it didn't work ..
    @emmer91 Or, you mean really 'state_machine.order_transaction.state_changed'? This is nowhere defined, only used in this 'extra' kernel.event_listener ...
    Raphael Emmerich
    @emmer91
    @NiklasTeich with the given Event you can check the $event->getTransitionSide() to check if you are in the Event: StateMachineStateChangeEvent::STATE_MACHINE_TRANSITION_SIDE_ENTER
    Niklas Teich
    @NiklasTeich
    @emmer91 I'm already doing this right now :) Yes, this works. Everything works now but like i said: Not as a standard event subscriber, but only as as this weird looking kernel.event_listener service tagged class.
    Carolin Reiser
    @caro4p_gitlab
    so, i created my own document type (1:1 copy from invoice currently) and an own number range for it (also copied from invoice). sadly the number doesnt count up tho uppon creating a new document (its all individual, data is correct etc) and my number field is not editable. i also realized i have no entry in the table number_range_state - guess thats my issue. how can i get my number range to have an entry there and get it updated? i guess i forgot a part somewhere, but cant figure out what. all tips are greatly appreciated :)
    ct-anaalbic
    @ct-anaalbic
    Hi to all.
    I am trying to install Shopware 6 with docker in Ubuntu, and every image is run, but when I tried to go on localhost:8000, I got 503 error like on the screenshot bellow