Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2006
    Posts
    11
    Plugin Contributions
    0

    Zencart Functions

    I would like to know what are the list of functions to draw inputs, textfields, etc

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

    Default Re: Zencart Functions

    What are you wanting to do?

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

    Default Re: Zencart Functions

    My own forms to the payment modules.

  4. #4
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: Zencart Functions

    No Doubt, I'd love to hear more on this.

    I posted a similar question a few months ago. All I got was "You have to write custom code."

    In my case, I would like to use Zen Cart to process a very long form for a public radio station. And I want to donate my time and work.

    In this case, I used to work for them. Years ago, I created this form. But by today's standards, it is not compliant with Payment Card Industry (PCI) standards.

    I'd love to hear on fellow Zen Community members on this. Form is here:

    https://www.kvpr.org/giving.html

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

    Default Re: Zencart Functions

    Quote Originally Posted by josedanielestrada
    I would like to know what are the list of functions to draw inputs, textfields, etc
    You can find the code definitions for each of them in the /includes/functions/html_output.php file.
    .

    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.

  6. #6
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: Zencart Functions

    I've been searching for more than 2 hours on a function that updates the cart status. I've been told to look for update order shipping status but I can't find it in the includes directory.

    Does anyone have an idea where this function resides? I suspect its in one of the classes because after a payment is received it has to set the status to Processing...

    Any help is greatly appreciated.

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

    Default Re: Zencart Functions

    Quote Originally Posted by joe.davila View Post
    I've been searching for more than 2 hours on a function that updates the cart status.

    Does anyone have an idea where this function resides?
    As of v1.3.8a, there isn't one. (That *will* change in v2.0)

    Quote Originally Posted by joe.davila View Post
    I suspect its in one of the classes because after a payment is received it has to set the status to Processing...
    Each payment module does it by running 2 queries: one to update the status field in the order record, and another to add a new history record with the updated status and any comments if applicable.
    .

    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.

  8. #8
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: Zencart Functions

    Thanks DrByte, that saved me a lot of time!

    Let me explain what I'm trying to do. I'm working with a company called Webgility, they have a product called eCC that integrates my shipping and accounting functions with my zen cart store via QBooks. One of their nicer features is that they provide an interface to print shipping labels (both USPS and UPS) that then automatically updates zen cart with the tracking number and sends the customer an email with this information.

    What I'm trying to figure out is how to construct a url comprised of the tracking number in a hyperlink back to my site. This would then follow the same flow as their existing code, meaning it would insert a new order status, provide the tracking url (instead of just the tracking number itself), and send the customer email.

    Here is an example of what I'd like to send the customer:
    http://www.mermagica.com/ship.php?tr...6506606#track5

    After speaking with Webgility, they told me that their program uses the existing function that is called upon order completion/success. They told me that they use the existing zen cart code to perform these steps.

    Any information/guidance you can provide is much appreciated.

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

    Default Re: Zencart Functions

    Quote Originally Posted by joe.davila View Post
    After speaking with Webgility, they told me that their program uses the existing function that is called upon order completion/success. They told me that they use the existing zen cart code to perform these steps.
    I'm confused. You said you're 'working with' them, but then you're saying that "their program uses" / "they use the existing ..." --- If they've already written whatever you're trying to do, why are you rewriting it?
    .

    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.

  10. #10
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: Zencart Functions

    Let me try to clarify.
    I haven't installed their program yet, because I want to see if what they are saying is possible by modifying Zen Cart.

    Out of the box, eCC sets the order status to "Shipped", plugs the Tracking Number into the cart, and sends an email to the customer with the Tracking Number.

    So for example, the cart will show the following:

    Order Status: Shipped
    Order Comment: 9102785091401336506606#track5


    Instead of just providing the tracking number I'd like to construct a url to my site containing the number and provide that to the customer. So it would look like:
    Order Status: Shipped
    Order Comment: http://www.mermagica.com/ship.php?tr...6506606#track5
    Last edited by joe.davila; 7 Jan 2010 at 01:54 PM.

 

 

Similar Threads

  1. v139h Overriding functions?
    By retched in forum Contribution-Writing Guidelines
    Replies: 4
    Last Post: 15 Feb 2012, 03:55 PM
  2. using zencart without ecommerce functions, just email an order request
    By aleemx316 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 19 Jun 2008, 03:10 PM
  3. Post javascript to mysql with ZenCart functions
    By qhome in forum General Questions
    Replies: 0
    Last Post: 26 Jul 2006, 02:08 PM

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