The Wayback Machine - https://web.archive.org/web/20220705065441/https://github.com/topics/shopping
Skip to content
#

shopping

Here are 810 public repositories matching this topic...

rucky96
rucky96 commented Apr 16, 2021

Hi,

I was trying to get the associated model from the cart item with $cartItem->model. However, it returns null.

I have seen that in CartItem class there is a call to the associatedModel function within __get method:

    /**
     * Get an attribute from the cart item or get the associated model.
     *
     * @param string $attribute
     *
     * @return mixed
     */
    pub
bug help wanted good first issue question

Improve this page

Add a description, image, and links to the shopping topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the shopping topic, visit your repo's landing page and select "manage topics."

Learn more