Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Need to display Product ID in functions_general.php to edit Category List Showcase

    I am trying to . $_GET['products_id'])”] . in functions_general.php, I dont know how to do this.

    The code . $_GET['products_id'])”] . works in tpl_product_info_display.php but does not work in functions_general.php

    I just dont know much about it.... basically thats the question above but if you want more information read below
    ####################___


    I am using mod contribution "ask a question v 1.8"
    It has its own contact form and files you upload that incorporates product title into the contact form...

    All you have to do is upload the files and insert the following code into tpl_product_info_display.php
    PHP Code:
       <span id="productQuestions" class="biggerText">
       <br />
       <b><?php echo '<a href="' zen_href_link(FILENAME_ASK_A_QUESTION'products_id=' $_GET['products_id']) . '">' ASK_A_QUESTION '</a>'?></b>
       </span>
       <br class="clearBoth" />

  2. #2
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Need to display Product ID in functions_general.php to edit Category List Showcas

    I am trying to replace

    PHP Code:
     
    // show case only superceeds all other settings
    if (STORE_STATUS != '0') {
    return 
    '<a href="' zen_href_link(FILENAME_CONTACT_US) . '">' TEXT_SHOWCASE_ONLY '</a>';

    with

    PHP Code:
     
    // show case only superceeds all other settings
        
    if (STORE_STATUS != '0') {
          return  
     
       
    '<div id="askQuestion" class="biggerText" style="padding-top:1px">
       &nbsp;&nbsp;&nbsp;' 
    '<a href="' zen_href_link(FILENAME_ASK_A_QUESTION'products_id='
       
    products_id '">' '<img src="/enquire_button.gif" border="0" />  <!----zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) ---->'
        
    .
       
    '</a>''</div>';     } 
    in /includes/functions/functions_general.php

    The only thing that is not coming out is $_GET['products_id'])”]
    Last edited by vandiermen; 9 Mar 2009 at 03:28 AM.

 

 

Similar Threads

  1. v151 Need to edit the design of a single Product List page....How?
    By Bronco78th in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 6 Jun 2014, 11:04 AM
  2. Need some help diagnosing functions_general,php errors
    By philip937 in forum General Questions
    Replies: 28
    Last Post: 22 Feb 2013, 07:35 PM
  3. How to edit featured product page 1 colum list display into a grid??
    By elite supplement in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 22 Sep 2012, 11:41 PM
  4. Category Product List & All/New Product List (DISPLAY IS DIFFERENT)
    By shiff in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Jan 2011, 10:24 AM
  5. Need to override functions_general.php
    By lbowenc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Mar 2008, 12:18 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR