We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How can get grid fields from Channel entry on Custom Addon?

How Do I?

Andrés Molina's avatar
Andrés Molina
43 posts
5 years ago
Andrés Molina's avatar Andrés Molina

Im Have custom Addon called Cart, they process ajax request with product ID, check if exist a Channel Entry by user ID, and check if exist the product ID in the grid

im Have Channel Called “Cart” This channel have products Grid This grid have price field(integer) and RelationShip field to Products Channel(relation one product to many Cart

im need get an array or objet with price and product ID, like this

$cart=array(
   cart_id=x,
   products=array(
           product_id=x,
           price=xxxxx
   )
)

ym need know how can get all rows from a grid field with Model service or legacy query

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.