- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Konfigurierbares Produkt mit dynamischer Lieferzeit
Hallo zusammen,
ich möchte gerne das die Lieferzeit aus dem simple Produkt übernommen wird. Wie der Preis auch, je nachdem welches kindprodukt ausgewählt ist.
Ich kann in Magento 2.3.3 nur eine feste Lieferzeit hinter dem Konfigurierbaren Produkt hinterlegen. Diese Produkt enthält zwei unterprodukte. Farbe schwarz 3 Tage Lieferzeit. Farbe Blau 20 Tage Lieferzeit.
Wie bekomme ich hin, das die Lieferzeit vom dem simple Produkt übernommen wird ? Das ist ja ein wichtiger Punkt in der EU Region. Kann mir da jemand weiter helfen ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Konfigurierbares Produkt mit dynamischer Lieferzeit
There are few steps
1. Create Product Attribute to set delivery time for each product.
2. Override these two classes
<preference for="Magento\ConfigurableProduct\Model\ConfigurableAttributeData" type="Vendor\Module\Model\Rewrite\ConfigurableAttributeData" />
<preference for="Magento\Swatches\Block\Product\Renderer\Configurable" type="Vendor\Module\Block\Product\View\Type\Configurable" />
Vendor\Module\Block\Product\View\Type\Configurable
Override the function getJsonConfig() to return delivery date of all childs
app/code/Vendor/Module/view/frontend/web/js/swatch-renderer.js
When initializing the script get Delivery Data Return By getJsonConfig
var $deliveryDates = window.swatchJsonConfig.optionDeliveryDates;
On changing the configurable attribute option get the date and print
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Konfigurierbares Produkt mit dynamischer Lieferzeit
Hi, vielen dank !!
Das Attribut Lieferzeit gibt es.
Wo kann ich die Anpassungen vornehmen ? Muss ich mit Filezilla zu einer Datei gehen und diese dann anpassen ? Können sie mir den Pfad geben ?
Danke nochmal
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Konfigurierbares Produkt mit dynamischer Lieferzeit
Please follow this tutorial
https://www.dckap.com/blog/display-custom-attribute-value-product-viewlist-page-magento-2/
create the attribute name as per your requirement and replace it.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Konfigurierbares Produkt mit dynamischer Lieferzeit
Vielen Dank nochmal für die Antwort.
Ich werde daraus nicht schlau.
Kann mir jemand bei der Anpassung gegen Bezahlung behilflich sein ?