thuycom205 / swap

0 stars 0 forks source link

fff #1

Open thuycom205 opened 4 years ago

thuycom205 commented 4 years ago

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)

thuycom205 commented 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.create_discount_for_shopify(discountcode = "qwerty")

    # self.cron_fetch_abandoned_cart()