Hello

I try to custom the popup.
In dc-ajax-add-cart-popup.html.twig it says to use something like {{ product_variation|without('title') }} or {{ product_variation.title }} to custom display.

If I use the default template I've 2 times informations like : sku, attributes.

If I use something like {{ product_variation.title }} or {{ product_variation|without('title') }}, nothing appears.

I've cleared twig cache each times.

What is the correct way to display separately each information.

See attached file.

Thanks for your help.

CommentFileSizeAuthor
dc-add-cart-ajax.jpg818.09 KBselinav

Comments

selinav created an issue. See original summary.

subhojit777’s picture

Category: Support request » Bug report

Thanks for reporting the problem in the documentation. There should be a new display called dc_ajax_add_to_cart_popup for commerce_product_variation entity. Can you try editing the fields from there.

vasyok’s picture

Why {{ product_variation }} in dc-ajax-add-cart-popup.html.twig render default variation display, not Ajax Add to Cart Popup ?