Issue with Using States for Price Calculation in Reusable Element

Hi everyone,

I’m working on a job board setup similar to Indeed, where I have a repeating group of job listings. On the right side, I’ve created a reusable group to display job details. This part is functioning well, as I’m using “Get data from page URL” to pull in the appropriate information.

However, I’m encountering an issue when trying to set a state for price calculation. The state automatically defaults to the hourly rate of the first job in the repeating group, and it doesn’t update when I select other jobs.

I’ve attached some images to illustrate the setup. Any insights on how to make the state change based on the selected job would be greatly appreciated!

I can just make everything on the page level is necessary just been enjoying using reusable elements keeps things cleaner.


Thanks!

Custom states is not the best approach for something like this in my opinion. In the past I used List Shifter which was free, it is now part of the paid Floppy plugin. The developer of List Shifter has lots of videos on how to create a shopping cart with List Shifter.

What I have begun using myself now is a paid plugin called JSON Assistant which allows me to use JSON formatting.

Other people may use the database for this, which I do not recommend, but may be the simplest to setup.

This topic was automatically closed after 70 days. New replies are no longer allowed.