Skip to content

item_model_bindings relation.name not working #286

Description

@DevRaeph

Hey there.

I have a product and an item Model.
My config.item_model = \App\Models\Item::class;

My Item Model have a related Product Model Item->Product->name.

I'm trying to set up Item_model_bindings.
I tried to set:
\LukePOLO\LaraCart\CartItem::ITEM_NAME => 'Product.name',
sadly it's still null.
if i set
\LukePOLO\LaraCart\CartItem::ITEM_NAME => 'Product',
i got the Full Product Array in the name field.

Any suggestions. Also Price is not working.
Thank you in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions