Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    17
    Plugin Contributions
    0

    Default adding an attribute from another database

    i am using a fresh install of 1.3.8.a to build an ecommerce site and would like to add event registration option so we can also accept payments for events.

    i have looked at a couple of event contributions but they seem to be for event calendars and there already is a event database in place i would like to use.

    here is what i would like to do and some options i have tried.

    the events will be added just as any product would in a normal install of ZenCart. as the event date time and location are stored in a separate database i have a small form with 2 drop downs that ask for the location and then the date and time. i included this form in tpl_product_info_display.php and it used $products_model to look up the event and give the information. this all works fine.

    my initial thought was to include the "location date and time" by doing something like $products_description = ($products_description . $location_info) but i see where that could present a problem if they added more than one of the same event at a different date and time.

    my other thought is to include the file in tpl_modules_attributes.php and pass it along as an additional option. this way if they purchase 2 EventA's one on monday and one on tuesday they should see something like
    2 EventA
    * 11/1/2010 @ LocationA
    * 11/2/2010 @ LocationA

    my question is what would be the best way or is there a way to add an option from the external database. i can gather the info and create a variable like $location_info containing "11/1/2010 @ LocationA" using the included dropdown selections, all i need is some insight on the best way to include that info with the item.

    Thanks

    Sean

  2. #2
    Join Date
    Sep 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: [SOLVED] adding an attribute from another database

    after a day of thinking and head scratching, i found a solution.

 

 

Similar Threads

  1. v152 How can copy some products from database to another database ?
    By dmagic in forum General Questions
    Replies: 5
    Last Post: 2 Jul 2018, 02:54 PM
  2. Importing database from another shopping cart?
    By mrbeads in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 17 Mar 2011, 12:48 AM
  3. Adding another database.
    By OKSoda in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 8 Jan 2011, 04:55 AM
  4. Add Info from another database???
    By joshscott31 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 16 Oct 2008, 03:05 PM
  5. Moving database from another cart????
    By AvieLF in forum General Questions
    Replies: 3
    Last Post: 4 Jun 2007, 12:09 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