• Resolved Anonymous User 16584431

    (@anonymized-16584431)


    Hello, I am pretty new with pods and only have used it on some simple relation establishing among custom post types and ofc simple custom post type creation and extension which it was very helpful but recently I was trying to do this to learn and explore what I can do more with Pods.

    Conditions of what I am trying to do:

    I have a services custom post type AND I have a Customers custom post type.

    In Customer Post type there is a custom field which is related to the Services post type.

    There is no standard price for the services given.
    A customer can have multiple services associated with it.

    What I am trying to do ;

    When adding a new customer I need to select a service from the dropdown list and enter a price which should be associated with that service for this particular customer. And repeat this for each Service the Customer is buying.

    Where I am at;

    Well I can see and select the services thanks to the relation and thats it. I need some help to direct me towards right direction. How would I be able to accomplish this using Pods ? which features should I focus on or use ? I got pretty lost with the documentation.

    Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello,

    You’ll need to add a link table to add context to your relationships.
    Since we get more questions like this I’ve added a docs page for this: https://docs.pods.io/advanced-topics/using-link-tables-for-multi-field-relationships/

    Cheers, Jory

    Thread Starter Anonymous User 16584431

    (@anonymized-16584431)

    Thanks I created the setup and now I can add services with payment amounts to the linkPods.

    But I have another question now Is how can I use the “Custimzed WHERE” , “Custimzed GROUP BY”, “Custimzed ORDER BY” fields in “advanced field options” section. What does these do ? Only documentation that I could find didnt really help me out much about how to use these fields or what they do :/. I tought maybe I could use these to only show related services and payments on the customer page. Currently every customer can see everything in the LinkPods.

    Secondly, Can I display more than 1 LinkPods field in the customer screen ?

    Thanks for the help

    • This reply was modified 4 years, 2 months ago by Anonymous User 16584431.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom field with associated value’ is closed to new replies.