Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Printable Catalog V 3.0


Guest

Recommended Posts

I installed the module, and I can get links installed on the page it produces but I'm trying to get links to work direct from the information box. I can get the links showing and working but the link for the info page shows above each link like this;

 

Info Page Link

Direct Link

Info Page Link

Direct Link

 

I have included the code from catalog\includes\boxes\information.php as it is currently, what I want is this:

 

Info Page Link

Direct Link

Direct Link

 

Any help would be greatly appreciated. Thanks

 

<?php

  $info_box_contents = array();

  $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

  new infoBoxHeading($info_box_contents, false, false);

 

  // Retrieve information from Info table

  $informationString = "";

 

// joles

//$sql=mysql_query('SELECT information_id, info_title FROM ' . TABLE_INFORMATION .' WHERE visible=\'1\' ORDER BY v_order')

$sql=mysql_query('SELECT information_id, languages_id, info_title FROM ' . TABLE_INFORMATION .' WHERE visible=\'1\' and languages_id ='.$languages_id.' ORDER BY v_order')

 

    or die(mysql_error());

  while($row=mysql_fetch_array($sql)):

  $filename_information = tep_href_link(FILENAME_INFORMATION) . (stristr(tep_href_link(FILENAME_INFORMATION), '?')?'&':'?') . 'info_id=' . $row['information_id'];

  $informationString .= '<a href="' . $filename_information . '">' . $row['info_title'] . '</a><br>';

  endwhile;

 

  $info_box_contents = array();

  $info_box_contents[] = array('text' =>  $informationString .

 

  '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>');

 

 

  $info_box_contents[] = array('text' =>  $informationString .

                                          '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

  new infoBox($info_box_contents);

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...