Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Posts
    32
    Plugin Contributions
    0

    Default Strange product id in shopping cart

    I'm developing some code for an observer, notified by NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE_ADD_PRODUCTS, i.e. after the order has been made.

    I'm going trough the content of shopping chart $_SESSION[cart]->get_products()

    When I display the product id's there is one strange id:
    [id] = 183:b82db7468155b3b7ce02a50e8965db33

    This is for a product, which actually has an id 183. But what the heck is the rest :b82db7468155b3b7ce02a50e8965db33 ???

  2. #2
    Join Date
    Jan 2004
    Posts
    58,235
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Strange product id in shopping cart

    That's a hash which represents the attributes selected by the customer when adding that product to their cart.
    Products which don't have attributes don't have any hash added to them.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Jul 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Strange product id in shopping cart

    Quote Originally Posted by DrByte View Post
    That's a hash which represents the attributes selected by the customer when adding that product to their cart.
    Products which don't have attributes don't have any hash added to them.
    Thanks a lot!

    Can I use the hash somehow i.e. decode what are the attributes selected?

 

 

Similar Threads

  1. Show comments field below shopping cart if cart contains certain product model
    By frank18 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Feb 2010, 11:37 AM
  2. Shopping Cart wont display after adding product to cart
    By fmf_tactical in forum General Questions
    Replies: 2
    Last Post: 6 Mar 2009, 03:43 AM
  3. Shopping Cart display has strange values
    By mcb650 in forum General Questions
    Replies: 3
    Last Post: 24 Jul 2007, 10:43 PM
  4. Replies: 9
    Last Post: 23 Jan 2007, 10:38 AM
  5. Strange "shopping cart" warning in logs
    By quentinjs in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 9 Jan 2007, 06:57 AM

Bookmarks

Posting Permissions

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