You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
I tested nearly everything at the moment😅
I have a little weird constalation with my models, with Item->Product->price i get my price normally only in the config file it did not find the value.
Thx for responding
Edit:
Maybe you have any idea how to handle, in the worst case i'll initialize the the cart products manuelly with the attrs. :b
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!
The text was updated successfully, but these errors were encountered: