Schrank, German
@Schrank@phpc.social avatar

TL;DR Writing shopware code and using the configuration? Make sure to always pass a salesChannelId to get the correct value.

A little background about this fact-

https://winkelwagen.de/2024/04/11/shopware-configuration-does-not-default-to-current-sales-channel/

mitelg,
@mitelg@phpc.social avatar

@Schrank nice 👍
one thing, which might be misleading:

Order by <int> ASC makes NULL first

one could assume by this snippet, that the salesChannelId is an integer, but as all IDs in Shopware, it is a string/binary

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • InstantRegret
  • ngwrru68w68
  • everett
  • mdbf
  • modclub
  • rosin
  • osvaldo12
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • slotface
  • kavyap
  • JUstTest
  • ethstaker
  • tacticalgear
  • tester
  • cubers
  • Durango
  • normalnudes
  • khanakhh
  • Leos
  • anitta
  • cisconetworking
  • provamag3
  • megavids
  • lostlight
  • All magazines