[ECOMMERCE-461]  Can not use product picker with dialogues that have multiple fields or Content Apps Created: 30/Aug/21  Updated: 18/Oct/21  Resolved: 28/Sep/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.3.1

Type: Bug Priority: Neutral
Reporter: Bartosz Staryga Assignee: Thuy To
Resolution: Fixed Votes: 0
Labels: VN-Analysis, VN-Implementation, VN-Testing, cm-team-support, maintenance
Remaining Estimate: 0d
Time Spent: 15d 7.25h
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2021-08-30 at 14.37.38.png     PNG File Screenshot 2021-08-30 at 14.38.21.png     PNG File image-2021-09-09-11-21-36-542.png     PNG File image-2021-09-09-11-25-03-450.png     PNG File image-2021-09-29-14-32-10-447.png     PNG File image-2021-09-29-14-51-34-813.png     PNG File image-2021-09-29-14-55-11-997.png     PNG File image-2021-09-29-15-28-42-091.png     PNG File image-2021-09-29-15-30-13-035.png     PNG File image-2021-09-30-13-21-41-333.png    
Issue Links:
Cloners
is cloned by ECOMMERCE-464 Investigate - Salesforce seems to los... Closed
dependency
is depended upon by ECOMMERCE-426 Create UI-test for ecommerce templati... Closed
relation
is related to ECOMMERCE-466 Should not display two validation mes... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Commerce maintenance & partnership support
Sprint: Content Mngmt 12, Content Mngmt 13
Story Points: 8

 Description   

Hey guys,

Couple of things I noticed when using the new Commerce Pack.

1. Can not use product picker with dialogues that have multiple fields or Content Apps

The new product picker requires to use new layout type.
It makes it impossible to have dialog that has more fields.

I need to be able to do something like:

label: Product properties
form:
  properties:
    cta:
      label: Call to action
      $type: textField
    productId:
      label: Product
      $type: ecommerceChooserField

I also need to be able to use the product picker in Content App via decoration.

Currently when I remove layout I get:

When I keep the layout and keep second field:

 

Expectation: Can use the product picker with chooser like the link field

 

 



 Comments   
Comment by Christopher Zimmermann [ 07/Sep/21 ]

Can it be configured that the commerce picker opens a new dialog? Like a link field or an asset field? I thought that is what I saw when it was demod - but maybe its just what I assumed. It's what I would expect.

Comment by Christopher Zimmermann [ 07/Sep/21 ]

Could it just be a configuration problem?

Comment by Thuy To [ 09/Sep/21 ]

Hi bstaryga
For the temporary workaround, maybe you try to add 'wide: true' to your dialog like this

 

I try to apply this way, it works well and shows the dialog as below image

but still have the problem about the style. I'll discuss with the team and fix it later.

Comment by Bartosz Staryga [ 09/Sep/21 ]

thuy.to we'd rather avoid doing that.
it's just not looking good, and it's gonna be shown for the Gartner demo as the progress we've made since last year, hence this would not be ideal

Comment by Thuy To [ 14/Sep/21 ]

bstaryga  we can discuss what you would expect for demo with the ecommerce team on slack.

Comment by Thuy To [ 29/Sep/21 ]

 Hi jlegendre

I have some notes for document. We've introduced a new field that it's type is ecommerceLinkField.

How to configure in yaml for ecommerceLinkField like this:

+ category-list-v3.yaml 

      

+ product-list-v3.yaml 

   

+ product-detail-v3.yaml

   

+ product-teaser-v3.yaml

     

 

Please feel free to contact me if you need more information.

Thanks

 

 

Comment by Julie Legendre [ 30/Sep/21 ]

Thank you thuy.to, I've created ECOMMERCE-473 to document it.

Generated at Mon Feb 12 01:44:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.