Gitter got replaced by Slack. Please use following invite link https://slack.shopware.com to rejoin the awesome Shopware community! https://www.shopware.com/en/news/an-introduction-to-the-shopware-community-slack/
(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)
(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
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 %}
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! ..
__construct
with some debugging to it just to see if the constructor is even executed
@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
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 ?
@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
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 :)