Thread: Output XML

Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    12
    Plugin Contributions
    0

    Default Output XML

    Hi,

    I'm using Zen Cart 1.2.8a. I'm trying to add some AJAX to my templates, by creating a template that just returns XML. I have the XML, but I don't know how to bypass the usual template decoration process so I get pure XML without any HTML. I've truncated all of the overridden template files, but the final closing html tag is coming from somewhere, so clearly truncating the template files isn't enough or isn't the right way to do it. Can someone help?

    Many thanks,
    Max

  2. #2
    Join Date
    Jul 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Output XML [SOLVED]

    Came up with a solution. I've created a directory in the shop root called e.g. ajax, then created my PHP file, but first I chdir to the root and include includes/application_top. As long as I set an appropriate Content-Type header and secure the file, then things work fine.

 

 

Similar Threads

  1. LinkPoint Invalid XML - how to grab copy of the XML request?
    By smallarmsdealer in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Jan 2014, 07:57 PM
  2. Replies: 1
    Last Post: 30 Oct 2009, 05:46 PM
  3. RSS Module: XML Parsing Error: xml declaration not at start of external entity
    By Slash74 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 May 2008, 12:40 PM
  4. No messageStack output at all
    By ericpeng in forum General Questions
    Replies: 5
    Last Post: 2 Mar 2007, 07:55 AM

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