Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Looking for this function: get_products(); so i can modify

    can someone please tell me where i can find the get_products() function?,

    thanks

    $products = $_SESSION['cart']->get_products();

    i want to pull up some an add'l column, thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Looking for this function: get_products(); so i can modify

    Quote Originally Posted by tcarden View Post
    can someone please tell me where i can find the get_products() function?,

    thanks

    $products = $_SESSION['cart']->get_products();

    i want to pull up some an add'l column, thanks
    Using the developers tool kit to find it.
    it appears here....
    includes/classes/shopping_cart.php

  3. #3
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Looking for this function: get_products(); so i can modify

    thank you, i forget i can use that tool,

    and i looked in the file, but my mistake was looking for this

    get_products();

    'doh!, thanks

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Looking for this function: get_products(); so i can modify

    Remember: changes you make to that file are not upgrade-friendly. And not plugin-friendly.

    Better to hook into notifier points and use an external observer class to add extra data if at all possible.
    .

    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.

  5. #5
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Looking for this function: get_products(); so i can modify

    okay, i believe it, (though i like getting underhood w/ these files and seeing how they work)
    where can i read up on notifier points and using an external observer class??

    i will do so ASAP,

    thanks

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Looking for this function: get_products(); so i can modify

    The wiki has discussion of this... look for "Another Real World Example" and observer notifier.

  7. #7
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Looking for this function: get_products(); so i can modify

    okay i will, thanks

 

 

Similar Threads

  1. looking for function definition get_products(), please help
    By tcarden in forum General Questions
    Replies: 1
    Last Post: 20 May 2013, 10:50 PM
  2. Can someone pls help to modify this layout? Aberdeen
    By mdivk in forum Addon Templates
    Replies: 20
    Last Post: 13 Nov 2011, 05:50 PM
  3. looking for this header
    By paulkhon in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jun 2011, 06:09 PM
  4. Looking for this addon:
    By Anna.S in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 4 Oct 2008, 03:19 PM
  5. Can someone please help me to modify this sanitizer function for Google Base Feeder?
    By lankeeyankee in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Jan 2008, 05:37 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR