Support » Plugin: WP eCommerce » Can't find right hooks and classes for my features

  • Hi all, i’m creating a plugin that needs eCommerce to work.
    I’ve created the same plugin for WooCommerce, but i can’t find right hooks on eCommerce to do the same things. Can you help me?

    In WooCommerce i have these hooks and filters:

    Are there the same hooks (with same params) on eCommerce?

    Also is there a similar class to the WooCommerce’s WC_Customer?

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • WPeC has the WPSC_Customer class for the current shopper, and the WPSC_Visitor class for any arbitrary (past or current) shopper.

    There are similar hooks that fire when a purchase attempt (successful or unsuccessful) is initiated, or when a purchase changes status.

    Generally the hooks are fired with a unique purchase id as a parameter. From that unique ID you can create a purchase object and use the methods to do just about anything. Some of the filters fire with the instantiated purchase object as a parameter.

    Take a look at the WPSC_Purchase_Log class and its usage for more information.

    – jeff

Viewing 1 replies (of 1 total)
  • The topic ‘Can't find right hooks and classes for my features’ is closed to new replies.