osCmax v2.5 User Manual
Results 1 to 3 of 3

grabbing data from osC pages and posting on HTML page

This is a discussion on grabbing data from osC pages and posting on HTML page within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I want to try to include some data from my osCmax catalog on the home page of my site. Specifically, ...

      
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Cool grabbing data from osC pages and posting on HTML page

    I want to try to include some data from my osCmax catalog on the home page of my site. Specifically, I'm hoping to list the newest Articles from my store on my home page. I tried to discern where the data was coming from (which php file within my catalog), but couldn't get it to include properly. Can anyone shed light on the theory behind such a "data grab?"

    Note: though I'm a newbie to dynamic pages/PHP, I was recently able to include a php file in the midst of a normal HTML page (using a <script> tag with an "src" set to the php page I wanted to include) in order to display a rotating ad. It worked like a charm, so I'm hoping there's some way to do the same with a php page from osCmax.

    Best,
    G Heffron

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: grabbing data from osC pages and posting on HTML page

    The easiest is to hard code links in your main/other websites

    To all articles:
    Code:
    www.yoursite.com/catalog/articles.php
    To only new articles:
    Code:
    www.yoursite.com/catalog/articles_new.php
    These would not be Auto updating.....
    To specific topics (change the tPath number to the one you need):
    Code:
    www.yoursite.com/catalog/articles.php?tPath=1
    To specific article (change the articles_id number to the one you need):
    Code:
    www.yoursite.com/catalog/article_info.php?articles_id=1

    To make a dynamic showing of say - all the current titles of articles would take a bit of PHP programing. Not imposable - but would take a bit of time.

    Good Luck!

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Wink Re: grabbing data from osC pages and posting on HTML page

    Yes, I'm definitely hoping to include a dynamic list of, say, the three most recent posts. Hard coding would be fine, but would require maintainance that the client's can't afford.

    Is there any "easy" way to pull in the data dynamically using PHP?

    If not, no sweat. Just thought I'd check.

Similar Threads

  1. Help needed: Linkpoint Payment Mod Not posting data
    By michael_s in forum osCMax v2 Features Discussion
    Replies: 10
    Last Post: 05-24-2006, 07:43 PM
  2. Specials page, how to show in html bts
    By gamefreak7 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 08-31-2005, 07:29 AM
  3. index.html the default page help
    By ZARZOR in forum osCommerce 2.2 Installation Help
    Replies: 10
    Last Post: 01-23-2005, 07:19 PM
  4. How do I import data from previous version data base?
    By rondgray in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-18-2004, 11:24 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
  •