dynamicweb / DynamicWeb

Make feature requests for Dynamicweb in Issues section of this repository
https://doc.dynamicweb.dev/documentation/fundamentals/support/feature-requests.html
GNU General Public License v3.0
1 stars 0 forks source link

Stock State in Swift #85

Closed Wassini closed 1 week ago

Wassini commented 1 week ago

There are 2 feature requests here:

Minor request: Swift will show "Out of stock" as a hard coded value when the stock is 0 even if the stock state is not setup. There should be a setting that enables this this text - and otherwise show 0 (or the actual stock value). This is just a minor request.

Major request: Setting up stock state is not working as expected: Adding a stock state to the shop or the product group does nothing for existing products in that group. How I would expect this to work: A product should use the stock state set on the product. If this is not present, it should look at the group, the parent group and last at the shop for the setting.

Right now it is not possible to set a stock state on a group and use this on the front end without have to make a script that updates all products in the database. Also it makes the product import more complicated, as we have to take the stock state setting into account when importing.

jentjohansen commented 1 week ago

Hi Wassini

When adding stock state on an existing product group with existing products, you need to force its inheritance so the products will get this stock state information. you can do that by clickingon this icon, then you do not need to run a script to update the products in the database

image

nicped commented 1 week ago

I can add to this that the section is named "Default values for new products" generated in the UI. It cannot inherit these information because products can belong to many groups with potential different settings. So it has to be specified on the product it self

lbw-dynamicweb commented 1 week ago

@nicped:

I can add to this that the section is named "Default values for new products" generated in the UI.

Not in DW10 ;-) image

lbw-dynamicweb commented 1 week ago

@jentjohansen:

When adding stock state on an existing product group with existing products, you need to force its inheritance so the products will get this stock state information. you can do that by clicking on this icon, then you do not need to run a script to update the products in the database

This icon is not present in DW10, so when the user changes the default stock state, they need a script to change all the products in the group. I also need a script, because importing new products needs to set it on the imported product.

lbw-dynamicweb commented 5 days ago

@nicped:

It cannot inherit these information because products can belong to many groups with potential different settings.

But there is only ONE default group on a product.