WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] [Plugin: WP e-Commerce] How can I empty the cart when the customer logout? (3 posts)

  1. eronardiaras
    Member
    Posted 2 years ago #

    How can I empty the cart when the customer logout?
    And
    How can I insert the product into the cart when he login?

    The process:
    - XY login
    - XY puts the "Example11" product the cart
    - XY logout
    - the cart empty
    - XY login and not put anything into the cart but the "Example11" product is included in the cart

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. eronardiaras
    Member
    Posted 2 years ago #

    I tried:
    http://codepad.org/eZ1BV8bu
    But when the wp_logout action is run, the user is logged out...

    Please help me... :-(

  3. eronardiaras
    Member
    Posted 2 years ago #

    I solved:
    http://codepad.org/W3iPemPg
    Just the "add_filter('widget_title'..." row not optimal...
    Which do I use? filter or action? And which?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic