Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Is there a way to tell customer of prior purchase of an item in cart?

    You could consider writing custom code to trigger (via a notifier/observer) on the Shopping Cart page, which could throw up some warnings via the messageStack about things they already "own". It would need to fire on all checkout pages as well as the login-success stage and redirect them to the shopping cart for displaying those messages, so they can remove the items from their cart ... or click a link in the error message to take them to their My Account screen to look up their order history.

    Writing observers is custom code. There are many examples I've posted around the forum, as well as many addons which use them so they don't need to touch any core files when providing their added functionality.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: Is there a way to tell customer of prior purchase of an item in cart?

    Quote Originally Posted by DrByte View Post
    You could consider writing custom code to trigger (via a notifier/observer) on the Shopping Cart page, which could throw up some warnings via the messageStack about things they already "own". It would need to fire on all checkout pages as well as the login-success stage and redirect them to the shopping cart for displaying those messages, so they can remove the items from their cart ... or click a link in the error message to take them to their My Account screen to look up their order history.

    Writing observers is custom code. There are many examples I've posted around the forum, as well as many addons which use them so they don't need to touch any core files when providing their added functionality.
    Is there any way in the database to easily link the customer to the products they own? A quick scan doesn't show any obvious way, but the the history order page does show the products in the orders, so the info is somewhere, just a matter of tracking it down and finding the time - and boning up on MySQL...

    Great...another project...just what I need.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Is there a way to tell customer of prior purchase of an item in cart?

    The orders table contains the customers_id, which is a match to the customers table, and if you link the orders table to orders_products on orders_id then you'll see what products they've purchased.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: Is there a way to tell customer of prior purchase of an item in cart?

    Quote Originally Posted by DrByte View Post
    The orders table contains the customers_id, which is a match to the customers table, and if you link the orders table to orders_products on orders_id then you'll see what products they've purchased.
    Thanks - I'll check it out.

    I guess I'll have to dig out that book on MySQL...

 

 

Similar Threads

  1. v139h Is there a way to track how many times a customer puts items into a cart
    By Allaction in forum Managing Customers and Orders
    Replies: 1
    Last Post: 30 Jun 2012, 07:09 PM
  2. Please tell me there is an easier way...
    By adiamond in forum General Questions
    Replies: 10
    Last Post: 8 Feb 2011, 04:28 AM
  3. Is there a way to accept purchase orders?
    By mumzie in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Nov 2007, 02:59 PM
  4. Is there a way to require a purchase?
    By jaxbakers in forum Managing Customers and Orders
    Replies: 1
    Last Post: 22 Jul 2006, 01:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg