Developer forum

Forum » Feature requests » Non purchasable / Catalog only Product type

Non purchasable / Catalog only Product type

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

More than often we have where products cannot be purchased, whether that's temporarily or always. For example:

  • Coming soon products
  • Old products

 

We have built some workaround over the years, but what would be much better is to have a brand new Product Type so that we can avoid customizations. Here's are some of the implications:

  • We need to disable/invalidate any "Add to Cart" behavior in the frontend
    • Components, Favorite detail, Express Buy, ...
    • We (may) need to exclude them from the search - depends on the project
  • We need to add some orderline notification subscribers
    • To remove orderlines in case the user adds them to the cart somehow - frontend bug, exploiting the system, "reorder", ...

 

While some of this would come from Swift, the basic need is to have a specific Product type that is non-purchasable, in which case the Shopping cart app and webapi have some knowledge over it (much like it does with Services, excluding them for weight/shipping calculations), so that then the frontend implementation (Swift or otherwise) can more appropriately rely on it.

 

Other usages for this product type (or similar ones):

  • Can be added as a discount/free product, but not purchased
  • Are part of a Kit, but cannot be purchased separately

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Nuno

Probably not a new product type more than a potential new setting.

A product have a discountinued flag and an expected delivery datetime. Can be used for some of it. But I see the benefit of a flag "DisallowOrdering" or similar.

Products of type services does not affect stock and weight calculations so a Service product can be used together with a potential new flag to leave them out of those calcs.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

A "Disallow ordering" setting would do just fine, considering the the use cases we've implemented over the years. In fact, that's how we ended up doing it anyway (with custom fields).

 

Glad there's some value in it. Hope we can see something along those lines in a near future :)

 

// Nuno