WP eCommerce
Can't find right hooks and classes for my features (2 posts)

  1. LuckySevenSoft
    Posted 1 year ago #

    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.


  2. Jeff Pye Brook
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic