You need to sign in to do that
Don't have an account?

Adding object in a cart
I have 2 object:
Products and Cart. The objects have the same fields.
I want to copy after a click (in a commandlink in my products vfp) a product from the Object products in a Cart object.
How i can write the code?
Products and Cart. The objects have the same fields.
I want to copy after a click (in a commandlink in my products vfp) a product from the Object products in a Cart object.
How i can write the code?
So when you click on the product ( will be better a command button but it depends of the bussines rules ), you will create a relationship in the juntion object, and in this juntion object you can add a quantity field to specify how many products you want to add to your cart