elementor / elementor/elementor

🐞 Bug report: Custom add to cart widget's product field doesn't have dynamic tags

Open
#18,137 3 comments 0 reactions 0 assignees View on GitHub
component/pro/dynamic-tag integration/woocommerce mod/r* product/pro request/enhancement type/dynamic-content
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

### Prerequisites

- [X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [X] The issue still exists against the latest stable version of Elementor.

### Description

It should have dynamic tags, so the widget can be used in The Loop.

![image](https://user-images.githubusercontent.com/60075863/157780174-c585ded0-20ed-4330-9ed4-55501e93bf00.png)

It's a really small thing but it's a huge improvement.

Right now, it can only be used in a static way. Selecting a product is basically selecting that product's id behind the scenes. Having the dynamic tags and selecting the Post ID from there, allows using the button in The Loop, therefore, using it in custom listings/loops/singles created for the products.

P.S. You already have the code for this so it shouldn't take long. If I see this one closed too, I'll go crazy

### Steps to reproduce

Add the Custom add to cart widget in the page and see that the product field has no dynamic tags.

https://developers.elementor.com/docs/dynamic-tags/

### Isolating the problem

- [X] This bug happens with only Elementor plugin active (and Elementor Pro).
- [X] This bug happens with a Blank WordPress theme active ([Hello theme](https://wordpress.org/themes/hello-elementor/)).
- [X] I can reproduce this bug consistently using the steps above.

### System Info

Blank install

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.