Cal. Bus. & Prof. Code § 22435.7.5
(b)
(1) A city, county, or city and county shall only retrieve and return a shopping cart that is located outside the premises or parking area of a retail establishment to the parking area or premises of the owner or retailer identified on the sign affixed to it in accordance with Section 22435.1 and recover its actual costs, if the city, county, or city and county adopts an ordinance subject to the following requirements:
(2) The ordinance may specify, but is not limited to, at least one of the following:
(c) When a city, county, or city and county retrieves a shopping cart in response to a duly filed complaint or service request submitted by a member of the public, the city, county, or city and county may do either of the following:
(f) For purposes of this section, both of the following apply: