Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    brainium
    @brainium
    too bad. even the stable versions have lots of bugs.
    can we take part in develo
    argh… can we take part in development or simply create tickets?
    Timo Helmke
    @t2oh4e
    You can always create pull requests on github. Or create tickets on issues.shopware.com and hope shopware will fix it.
    Sabrina Sauter
    @samsauter
    hey again chat, i need to access product variants in the cart for some custom operations based on the selected variant. if i debug one already added lineItem I can see the payload and options (variants) within in.
    but if i add a subscriber to listen to the event "LineItemAddedEvent" the payload is empty.
    How would i get the product's variant at this point? Should I get / load the whole product via the productId? And then, should I use the API Endpoint "GET /sales-channel-api/v1/product/{productId}" to get a specific product or is there another way to do this? Thanks for your help!
    kevmz
    @kevmz
    Is there a way in vue.js for bulk queries to create entities in DAL? In PHP there is the option to use an array
    Joshua Behrens
    @JoshuaBehrens
    @kevmz have a look at the voucher generator. That is creating lots of data
    kevmz
    @kevmz
    @JoshuaBehrens do you have a link?
    Christian Schwerdt
    @cschwerdt

    Hi, the individual items in a bundle are not counted individually for the shipping costs. Only the quantity of bundles are taken over.

    The only place I found where I could start
    would

    vendor/shopware/core/Checkout/Cart/Delivery/DeliveryBuilder.php:75

    I have built a differentiation by TYPE test to see if it works.

    ...
    $deliveryQuantity = $item->getQuantity();
    if ($item->getType() === 'swagbundle') {
        $deliveryQuantity = $item->getQuantity() * $itemCount;
    }
    
    // if the item is completely instock, use the delivery date
    if ($item->getDeliveryInformation()->getStock() >= $item->getQuantity()) {
        $position = new DeliveryPosition($item->getId(), clone $item, $deliveryQuantity, $item->getPrice(), $deliveryDate);
    } else {
        // otherwise use the restock date as delivery date
        $position = new DeliveryPosition($item->getId(), clone $item, $deliveryQuantity, $item->getPrice(), $restockDate);
    }
    ...

    Any advice on this?

    Stan van Sluisveld
    @StanSluisveld
    Hi guys, im trying to extend the off canvas filtering. My main.js looks like this:
    import FilterOverride from './script/filter-override';
    window.PluginManager.override('OffCanvasFilter', FilterOverride, '.filter-panel-wrapper-toggle')
    this is the filter-override file:
    import OffCanvasFilter from 'src/plugin/offcanvas-filter/offcanvas-filter.plugin';
    
    export default class FilterOverride extends OffCanvasFilter{
        init() {
            super.init();
        }
    }
    But i keep getting the console error: Uncaught Error: The plugin "OffCanvasFilter" is not registered.
    does somebody knows whats up?
    benedikt-g
    @benedikt-g
    @brainium header and footer should work as long as they have the correct saleschannel
    brainium
    @brainium
    @benedikt-g saleschannels are configured/selected. do i need to refresh any cache?
    benedikt-g
    @benedikt-g
    @brainium Don't know. You can check here Content/MailTemplate/Service/MailService.php::buildContents() if the necessary data is there.
    brainium
    @brainium
    @benedikt-g Thanks
    brainium
    @brainium
    After updating to 6.1.1. it throwing "Unknown "navigationUrl" function.“ Any hints?
    Heiner Lohaus
    @hlohaus
    use seoUrl
    b3acon
    @b3acon
    reset Saleschannel in this cat
    brainium
    @brainium
    I switched to the parent block. thanks
    what is the beste way to use assets of a theme-bundle from outside shopware in case of the url/paths?
    aoezoguz
    @aoezoguz
    Hi I am getting an Error in Step 32/40. It also seems to appear randomly, since yesterday it did not accur and the installation went well. But I had some trouble so wanted to reinstall and now its stopping in Step 32/40 with the following output:

    (32/40) Starting

    npm --prefix vendor/shopware/platform/src/Storefront/Resources/app/storefront/ clean-install
    npm WARN prepare removing existing node_modules/ before installation
    npm ERR! code ENOTEMPTY
    npm ERR! syscall rmdir
    npm ERR! path /mnt/c/Users/XXXX/XXXX/shopware6/development/vendor/shopware/platform/src/Storefront/Resources/app/storefront/node_modules/sockjs-client
    npm ERR! errno -39
    npm ERR! ENOTEMPTY: directory not empty, rmdir '/mnt/c/Users/XXXX/XXXX/shopware6/development/vendor/shopware/platform/src/Storefront/Resources/app/storefront/node_modules/sockjs-client'

        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/XXXX/.npm/_logs/2020-02-04T10_53_05_712Z-debug.log

    Execution aborted, a subcommand failed!

    Daniel W
    @danielwolf1
    storefront:watch compiles the js files if I change them in the plugin - but the browser wont pick the new js files - even after reloading the browser. Any ideas?
    Stan van Sluisveld
    @StanSluisveld
    @danielwolf1 did you add your compiled JS file to your theme.json
    aoezoguz
    @aoezoguz
    Any ideas concerning the npm Error?
    Daniel W
    @danielwolf1
    @StanSluisveld I'm importing the module in my main.js - it works if I run storefront:dev but it takes ages :-)
    Stan van Sluisveld
    @StanSluisveld
    @danielwolf1 and did you add
    if (module.hot) { module.hot.accept(); }
    to your main.js
    Daniel W
    @danielwolf1
    @StanSluisveld No - is that necessary even for storefront:watch?
    @StanSluisveld I just checked - storefront:hot works without the line if(module.hot)... but I had to set {% set isHMRMode = true %} in base.html.twig
    Stan van Sluisveld
    @StanSluisveld
    Does anyone has a solution about the error I mentiont before? Uncaught Error: The plugin "OffCanvasFilter" is not registered.
    brainium
    @brainium
    sw6 is driving me nuts. since mail header/footer did not work, i deleted header and footer and rendered those stuff within in the mail.content. what happend? now mails have the (already deleted) old header/footer, but the ne content is ignored
    ist there any cache in this case?
    raincity19
    @raincity19
    Hello. For the product variants almost all properties are inherited by default . But not for the custom fields. They are defined only for the main product, not for its variants. How could they be inherited as well?
    netzkollektiv
    @netzkollektiv
    @shyim Hi! I tried to use the FroshPluginUploader to build a plugin package (Thanks for providing!). The plugin:zip:dir cmd does the composer install, but tries to install all shopware dependencies into the plugin - does that make sense?
    Joshua Behrens
    @JoshuaBehrens
    @netzkollektiv it does as you require it
    well at least I bet you require shopware/core ~6.1
    netzkollektiv
    @netzkollektiv
    inside of the plugin composer.json, right? but when shopware is being installed in vendor it does package whole shopware in the plugin archive, doesn't it?
    johnmitz
    @johnmitz_gitlab
    Is it possible to do batch import of the products and update price, inside shopware 6?
    Joshua Behrens
    @JoshuaBehrens
    @netzkollektiv it does. if it would've been removed it would break the plugins composer autoloader. you can bypass this by adding a replace entry in composer.json while building. So you say your plugin replaces shopware. This way composer does not pulls shopware into your plugin vendor folder. But you can't commit this to the community store like this
    Not really nice so far. Studies are done. Composer 2.0 will propably be the future
    netzkollektiv
    @netzkollektiv
    @JoshuaBehrens thanks - ok, so that's the way to go? upload the plugin including sw 6.1 into the store?
    Joshua Behrens
    @JoshuaBehrens
    @netzkollektiv you have to have the requirement to shopware/... as in the community store tests they composer install your plugin and apply tests
    Without it you would miss files a regular installation would provide
    @johnmitz_gitlab not without coding a tool for it. But the API is nice to do that