Coder Social home page Coder Social logo

Comments (7)

braidn avatar braidn commented on August 14, 2024

Bryan,

That’s the plan! The old sync ability doesn’t even work with the new API so this will change.
-- 

On July 3, 2014 at 3:39:14 PM, Bryan Mahoney ([email protected]) wrote:

Removing an order only removes it (seemingly) from the campaign stats, but not the total order count. As such, calling remove and then add, as we do in the sync method, can cause inflated numbers in MailChimp.

from spree_chimpy.

bryanmtl avatar bryanmtl commented on August 14, 2024

👍

from spree_chimpy.

braidn avatar braidn commented on August 14, 2024

Bryan,

This is my first whirl. Since there is no way to "sync" an order we need to rely on these two methods (add/delete). This alleviates our blanket use of delete but, will it still cause inflated numbers?

      def sync(order)
        add(order)
      rescue Mailchimp::InvalidEcommOrderError
        remove(order)
        add(order)

from spree_chimpy.

bryanmtl avatar bryanmtl commented on August 14, 2024

@braidn - That is worth a try. Is sync only called once though?

from spree_chimpy.

braidn avatar braidn commented on August 14, 2024

It will be called when an order is updated or created.

On Jul 4, 2014, at 7:35, Bryan Mahoney [email protected] wrote:

@braidn - That is worth a try. Is sync only called once though?


Reply to this email directly or view it on GitHub.

from spree_chimpy.

bryanmtl avatar bryanmtl commented on August 14, 2024

I think our best bet is to just call it when it transitions to complete.

from spree_chimpy.

braidn avatar braidn commented on August 14, 2024

Sounds good

On Jul 4, 2014, at 7:43, Bryan Mahoney [email protected] wrote:

I think our best bet is to just call it when it transitions to complete.


Reply to this email directly or view it on GitHub.

from spree_chimpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.