Forums / Templates, Stylesheets, Page Layout / Need to display Product ID in functions_general.php to edit Category List Showcase

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

Locked

Views: 2,557

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Mar 2009, 2:00 AM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

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

   <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" />
 
9 Mar 2009, 2:25 AM
#2
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

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

I am trying to replace

 
// 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

 
// show case only superceeds all other settings
    if (STORE_STATUS != '0') {
      return  
 
   '<div id="askQuestion" class="biggerText" style="padding-top:1px">
      ' . '<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'])”]