Open thuycom205 opened 4 years ago
checkout = self.env['whatsapp.shopify.checkout'].sudo().search([('id', '>', 0)],order="checkout_iden desc", limit=1)
cart_token = checkout.attributes['cart_token'] exist_checkout = self.sudo().search([('cart_token', 'like', cart_token)]) if not exist_checkout:
# self.cron_fetch_abandoned_cart()
client = shopify.GraphQL() query = ''' { products(first:10, query:"tag:rental") { edges { node { id title } } } } ''' result = client.execute(query) d = json.loads(result)
client = shopify.GraphQL() query = ''' { products(first:10, query:"tag:rental") { edges { node { id title } } } } ''' result = client.execute(query) d = json.loads(result)
client = shopify.GraphQL() query = ''' { products(first:10, query:"tag:rental") { edges { node { id title } } } } ''' result = client.execute(query) d = json.loads(result)