Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to Get the Zen Cart Version Using a Script

    There is a big chunk missing from your question. If somebody is visiting your website, you wouldn't be able to see what e-commerce packages they may or may not be running elsewhere.

    So presumably you must be asking them something about their site, so why not just ask then which package they're using and which version?

    Or are you suggesting that they would need to install your script on their server, indeed within their site, in order to be able to use your site effectively? If so, then for Zen cart the information you are looking for would be contained in the project_version table. I don't know for sure whether osCommerce has a similar table, though it seems likely.
    Last edited by kuroi; 5 Dec 2008 at 03:06 PM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #2
    Join Date
    Dec 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: How to Get the Zen Cart Version Using a Script

    Hi,

    Thanks for the reply Kuroi.

    Sorry I forgot to mention they have to install the script to their server. You say it can be found in the Project_Version Table, you mean in the database right?

    Is there any php file that contains the information where I can pull the information out? Was thinking the version might be a CONSTANT variable somewhere.

    Thanks,
    Ciel

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How to Get the Zen Cart Version Using a Script

    If you start installing scripts that will disclose software version information, you open up a can of security issues, since somebody could use that script to identify the software version and then target their site with hack attempts based on issues that may have been found in older versions, etc. That's one major reason why the version number is not displayed on the storefront side anywhere.

    If you do intend to do such a thing, it is IMPERATIVE that you FULLY disclose EVERYTHING your script does, and what YOU will do with the information collected by that script ... because you're entering the territory of privacy rights. A script such as you propose encroaches on privacy matters since the script will be used to collect information about their site, which you will be storing somewhere, and conceivably using for targeted marketing campaigns and/or other advertising. I for one would never install such a script on my site because I think it's none of your business knowing what I'm using at a specific URL. I would want to reserve the right to tell you what version I'm interested in, and then you tell me what you offer in that area, rather than arming you with information you (or someone who hacks your site) could use maliciously or for purposes I didn't intend.

    It's MUCH safer to simply instruct your customer to go to their Admin area and click on the "Version" link in the top right corner of their admin menu navigation bar, and have them TELL you what version information is found there. At least this is the right way to do it in Zen Cart.
    The Other Shopping Cart doesn't have any such facility. Granted they've had no new versions in about 5 years so guessing the version there is easy.
    .

    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.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How can I Get the Zen Cart Version Using a Script?

    Have to agree with DrByte on this. You would need a very specific type of business (e.g. support) to make installing such a script appropriate and selling templates doesn't really fall into that category.

    Customers capable of installing your script where it needs to go, should be equally capable of telling what cart and version they're using, without going to that trouble or exposing themselves to that risk.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: How can I Get the Zen Cart Version Using a Script?

    Agreeing with DrByte and kuroi
    I think you should add code to your templates that checks the version. And if you need per sale info create a lite template that the customer could test.
    • 446F63746F722057686F •

  6. #6
    Join Date
    Dec 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: How can I Get the Zen Cart Version Using a Script?

    Quote Originally Posted by skipwater View Post
    Agreeing with DrByte and kuroi
    I think you should add code to your templates that checks the version. And if you need per sale info create a lite template that the customer could test.
    This could sure help too. I'll check around on this. Thanks.

    Ciel

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: How can I Get the Zen Cart Version Using a Script?

    Might be easier to instruct the customer to goto their ZC admin, click on the tools menu, than click on server/version info to check their version and then input that on your site to be used to direct them to the correct templates for their version. I surely wouldn't be loading a script on to my server that does essentially the same thing when I can check it myself.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. how do I get rid of "instructions for using the cart?
    By blossomed in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jun 2011, 01:05 PM
  2. How can get rid of "Zen cart! the art of commerce"?
    By angler in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Mar 2009, 12:49 AM
  3. How do I get the zen cart on my website?
    By Sarahshairbows in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Aug 2008, 11:47 PM
  4. Can I get the total value of stock of my zen cart?
    By louie in forum General Questions
    Replies: 4
    Last Post: 30 Jun 2008, 01:07 PM
  5. How to disable the zen cart ad for my english version?
    By sunzhoujian in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Feb 2008, 06:44 PM

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