Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Don Bosco van Hoi
    @azngeek
    @pawonpawon i guess this is the "best practice" :)
    Mike Wink
    @mikewink
    @henrikvolmer do you import your products (variants)?
    @azngeek You would see the payload format when you do check the network request in your browser or check the Swagger UI (if that still works in 6.2).
    henrikvolmer
    @henrikvolmer
    Yes, they will imported by an erp system, but the system can't do it "on the fly"
    Mike Wink
    @mikewink
    it = Shopware showing the cheapest of them all? Are there rules that alter prices after import?
    Don Bosco van Hoi
    @azngeek
    @mikewink So you mean. If i create the products in the admin-menu manually i need to log all the requests from the network tab and just replay it in postman etc.
    pawonpawon
    @pawonpawon
    @azngeek yes
    Mike Wink
    @mikewink
    @azngeek yes you can just see what Shopware does (eat your own dog food). It has to use the same API like you so why not see what SW does. Start simple. Add a product with the minimum values and go from there.
    50 replies
    Don Bosco van Hoi
    @azngeek
    @mikewink @pawonpawon Yeah. That is useful information. I will do it that way. For any reason i thought i could do it the easy way :)
    henrikvolmer
    @henrikvolmer
    There are no custom rules that adjust the prices afterwards. But because shopware displays a random variant of a master on product lists, this is not always the cheapest
    pawonpawon
    @pawonpawon
    @azngeek I have started a thread under @mikewink post
    Mike Wink
    @mikewink
    No it does not in 6.2 anymore. You can set the default variant now!
    @henrikvolmer so we set the default variant during import
    henrikvolmer
    @henrikvolmer
    Ah okay... I didn't know that feature. I'll try that. Thanks for the help
    Mike Wink
    @mikewink
    @henrikvolmer you're welcome.
    aleckscastro
    @aleckscastro
    @pawonpawon @mikewink You guys should definitely work on WMS / ERP solutions for Shopware 6!
    Mike Wink
    @mikewink
    I do, poormens version called Airtable. 😅
    pawonpawon
    @pawonpawon
    image.png
    I went a bit overboard .. this is my sync app now
    Mike Wink
    @mikewink
    @pawonpawon Niiiice! 🏆
    pawonpawon
    @pawonpawon
    @mikewink thnx :)
    Mike Wink
    @mikewink
    See, with Airtable I get the UI for free and my Excel loving customers can work in their well known and understood data table mindset.
    Don Bosco van Hoi
    @azngeek
    I do not trust anything without schema validation :)
    Mike Wink
    @mikewink
    But I plan to bring them over to a EasyAdmin 3 backend once it's is released. I was thinking Laravel Nova first, but why switch "system" when EA can do the things I need as well.
    pawonpawon
    @pawonpawon
    Nice. I never used Airtable. Can you post requests, etc ?
    Mike Wink
    @mikewink
    @azngeek what's a validation schema ? 😅
    Don Bosco van Hoi
    @azngeek
    @mikewink Somethink like XSD for XML, JSON-Schema for JSON, etc. :)
    Mike Wink
    @mikewink
    Airtable comes with a REST API per "database". So you can do whatever the API offers.
    @azngeek I know what you mean, but that is Shopware 6. We like it KISS! ;)
    Don Bosco van Hoi
    @azngeek
    If you have a ton of product updates a day you want to ensure that the database will never be in an inconsistent state
    lol
    @mikewink how is your general developer experience? Sounds like it is a huge sandbox :)
    Mike Wink
    @mikewink
    @azngeek that's something that the "engine" of SW takes care of to a certain degree. But yes, you could layer validation on top or maybe extend core where needed.
    PhenomEY
    @PhenomEY
    How to override the allowed_extensions: in the shopware.yaml?
    Friedemann Stoffregen
    @Donderda

    Another question: How can I access a variant's parent customField? page => product => parent is null :/

    Has anyone a hint how I can access these fields?

    Mike Wink
    @mikewink
    Sorry, I have not looked into that so far.
    kekster
    @kekster
    within computed() in admin:
    ...mapState('swProductDetail', [
            'product',
            'parentProduct',
            'customFieldSets',
            'loading'
        ]),
    what does this do exactly?!
    Shyim
    @shyim
    ccccccldkjutnbdrcglfdclrkdkjvjrgvdldeucvbiit
    ups
    Youmar0504
    @Youmar0504
    Hey guys, I am trying to create a test product using repositories but receiving error "404 Bad request".
    Here is the code :
    /* @var EntityRepositoryInterface $productRepository /
    $productRepository = $this->container->get('product.repository');
    $productRepository->create(
    [
    [
    'id' => '6dc5ca792e524cd2a4a719e9b804b410',
    'name' => 'Lorem ipsum',
    'taxId' => '7ba4c94818e4414faca445f039288521',
    'stock' => 213,
    'productNumber' => 'swag-5642-0001',
    'price' => [
    "currencyId" => "b7d2554b0ce847cd82f3ac9bd1c0dfca",
    "gross"=>317.0,
    "linked"=>true,
    "listPrice"=>null,
    "extensions"=>[]
    ]
    ]
    ],
    \Shopware\Core\Framework\Context::createDefaultContext()
    );
    Note : I am able to create aa tax entry with the same syntax
    Maybe the repository name "product" does not exists?
    Jan-Erik Spreng
    @sobyte
    Aren't you getting any more information or context for the error?
    Youmar0504
    @Youmar0504
    Unfortunately not.. This is the only error I got, I have changed all the configurations in php.ini file but nothing appears in the error.log
    12 replies
    Andreas Winter
    @wolv-dev
    Hi