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!
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!