Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Checking shopping cart info in php

    I've been working with ZenCart for a few days now, and have got it all set up with modified templates and everything. But there are several custom things I want to do for which I don't think there exists a module (or at least, I wouldn't expect there to be as many things are very minor).

    Mainly, I would like to know of an easy way to access info about the user's shopping cart from PHP, but I couldn't find anything obvious. One specific task, for example, is if the user has more than $200 worth of items in their shopping cart, I need to display a link to a pdf document the user must fill out and fax in before their item can be shipped. So for that, I would just need some variable like $ORDER_TOTAL to check and then take whatever action based on that. When I searched for "TOTAL" in the code, to try to find some value that may be set by ZenCart, I came up with a bunch of MODULE_ORDER_TOTAL things that didn't seem to relate (but I could easily be wrong).

    Another useful piece of info would be how many items the user has in the cart.

    Can someone point me in the right direction? Even if there's not a simple one-step way of finding this information, I can do whatever queries/calculations need to be done as long as I know where to look to get started.

    Thanks!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Checking shopping cart info in php

    Does it matter where in the checkout process this Link is displayed?

  3. #3
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Checking shopping cart info in php

    Quote Originally Posted by Kim
    Does it matter where in the checkout process this Link is displayed?
    I would prefer to know at all times... so I could display the link underneath the user's shopping cart, or at least the first time after they exceeded $200. At the very least, they would need to see it on the final confirmation page before they completed paying for their order.

 

 

Similar Threads

  1. blank page adding items to shopping cart or checking out
    By bloomingvine in forum General Questions
    Replies: 13
    Last Post: 14 Apr 2011, 05:18 PM
  2. Checking order still in shopping cart
    By mooncavecrystals in forum General Questions
    Replies: 8
    Last Post: 9 Mar 2010, 09:14 PM
  3. How do we link our shopping cart to your checking site
    By Lifeiq in forum Basic Configuration
    Replies: 1
    Last Post: 13 Jul 2009, 06:35 PM
  4. Replies: 9
    Last Post: 23 Jan 2007, 10:38 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