Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Location
    Fredericksburg, VA
    Posts
    5
    Plugin Contributions
    0

    Default Attributes Query Function?

    'ello,

    What include, require, or function must I have in order to query the attributes for a given product id on a page other than product_info_display? In a perfect world, I'd invoke a function call and be returned an array of attributes. I could manually execute the queries, but I assume there's already one in the system.

    Perhaps another question: where are $options_XXX set? For example, $options_name[], $options_menu[], etc. I can't divine from tpl_product_info_display or tpl_main_page where $products_XXX or $options_XXX are generated.

    Thank you.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Attributes Query Function?

    I can't divine from tpl_product_info_display or tpl_main_page where $products_XXX or $options_XXX are generated.
    Mostly the tpl files only arrange data extracted by another file and most of these are in the /modules dir and named for the page you are trying to alter

    You might add more explanation about what it is that you are attempting to acheive.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Location
    Fredericksburg, VA
    Posts
    5
    Plugin Contributions
    0

    Default Re: Attributes Query Function?

    I'd like to separate the selection of attributes from the product info page. On the product info page the customer is given an choice between adding the generic product to his cart or to personalize the product. Choosing personalize takes the customer to another page where they select the product attributes. I'm using page_2 as that page.

    Right now, tpl_modules_attributes is commented out in tpl_product_info_display. I'd like a similar, but significantly different, behavior in define_page_2. $options_name, for example, is assigned in tpl_product_info_display but not in tpl_page_2. How can I get values assigned to $option_name, _comment, _menu, etc in page_2?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Attributes Query Function?

    You can look at these files to find what you might need
    includes/classes/order.php
    includes/classes/shopping_cart.php
    includes/functions/functions_general.php
    includes/functions/functions_lookups.php
    includes/modules/attributes.php
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. function install() - code number query
    By dw08gm in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Mar 2011, 12:21 AM
  2. Zen Code (function) for Query Category Tree
    By kwright in forum General Questions
    Replies: 3
    Last Post: 27 Oct 2008, 04:26 PM
  3. Query - Base Price + Attributes (Upgrades)
    By johna8 in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 31 Jul 2008, 07:13 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