Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default New Mod: Embed Products onto third Party Site

    Hi All,

    I have made this mod to embed products onto third party sites.

    Ideally the 3rd party site will use file_get_contents or just file and read the output.

    I have created a file embed.php and this is the code I have used:

    PHP Code:
      require('includes/application_top.php');


      
    $pID zen_db_prepare_input($_REQUEST['products_id']);
      
    $product $db->Execute("select * from products where products_id ='" . (int)$pID "'");

    while (!
    $product->EOF){
    $image  "<img src='http://********.com/shop/images/";
    $image .= "{$product->fields['products_image']}' width=150/>";

    $url  "http://***********.com/shop/index.php?";
    $url .= "main_page=product_info";
    $url .= "&products_id={$product->fields['products_id']}";
    $url .= "&action=add_product";


    print 
    "<form method='post' ";
    print 
    "action='$url'>\n";

    print 
    "$image\n";
    print 
    "<br />Price: $";
    print 
    sprintf("%.2f",$product->fields['products_price']);

    print 
    "<input type='hidden' name='cart_quantity' value=1>\n";

    print 
    "<input type='hidden' name='products_id' ";
    print 
    "value={$product->fields['products_id']}>\n";

    print 
    "<br /><input type='submit' name='submit' value='Buy Now!'>\n";
    print 
    "</form>";

    break;

    Any reviews, suggestions, critiques?

    Thanks,

    Leonard

  2. #2
    Join Date
    Mar 2007
    Posts
    153
    Plugin Contributions
    0

    Default Re: New Mod: Embed Products onto third Party Site

    not sure how easy this is to implement.
    if I put this file on each of the other sites and call it, it will then do as as I ask, but would need to be a constant update by each site.
    would be nice if it was always updated and easy to manage for each of the other store owners, like in admin, and choosing which categories (1 or more), then submitting that to the main site.
    So in Admin of a particular site, the owner could choose the categories and hit submit...

  3. #3
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: New Mod: Embed Products onto third Party Site

    Leonard-

    Where will I be uploading this module, as I have been trying to find the right file to upload it into. Can you give some steps on how to do this for the zenners who are not php, website savy.

    Instructions:
    Upload this file to domain.ext/zen/cart/path/embed.php
    Then execute http://www.domain.ext/zen/cart/path/...?products_id=3

    The instructions is the txt file states this above, but I don't know where to look first.
    Diva Boutiques
    www.divaboutiques.com

 

 

Similar Threads

  1. third party site seal style override
    By plc613 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 May 2014, 12:22 AM
  2. Embeding product onto a 3rd party site
    By systemagic in forum General Questions
    Replies: 24
    Last Post: 23 Oct 2010, 01:56 PM
  3. Embed Products onto 3rd Party Site
    By Beth-katherine in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 7 May 2009, 12:24 AM
  4. Embed Products onto 3rd Party Site
    By breck in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 2 Oct 2008, 01:34 PM
  5. Pass the total amount to third-party site (bank)
    By mchahkandi in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Sep 2007, 12:04 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