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/
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?
import FilterOverride from './script/filter-override';
window.PluginManager.override('OffCanvasFilter', FilterOverride, '.filter-panel-wrapper-toggle')
import OffCanvasFilter from 'src/plugin/offcanvas-filter/offcanvas-filter.plugin';
export default class FilterOverride extends OffCanvasFilter{
init() {
super.init();
}
}
(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!
if (module.hot) {
module.hot.accept();
}