Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

draw_separator doesn't display anything?


cgchris99

Recommended Posts

Posted

Where does the draw_separator graphic come from?

Mine doesn't display anything.

Shouldn't it show a line like

------------------------------------------

but not dashed?

 

Did I mess it up by editing the CSS stylesheet?

 

Thanks for any advice

Posted

It depends on the parameter that is passed in. Normally "pixel_trans.gif" is passed in which is a transparent gif. This is used to create space between rows of text or indents.

I'd rather be flying!

Posted

like:

 

<tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>

Your online success is Paramount.

  • 1 year later...
Posted

Hi, I am using the Shopping Cart box file from the last CCGV contribution.

 

Instead of a line above and below the total amount I am getting a dot on the left hand side of where each line should be drawn.

 

Any suggestions would be appreciated.

 

Here is the part of shopping_cart.php where the lines are drawn:

 

 

 

if ($cart->count_contents() > 0) {

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

$info_box_contents[] = array('align' => 'right',

'text' => $currencies->format($cart->show_total()));

}

// ############ Added CCGV Contribution ##########

if (tep_session_is_registered('customer_id')) {

$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");

$gv_result = tep_db_fetch_array($gv_query);

if ($gv_result['amount'] > 0 ) {

$info_box_contents[] = array('align' => 'left','text' => tep_draw_separator());

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>');

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>');

Posted
Hi, I am using the Shopping Cart box file from the last CCGV contribution.

 

Instead of a line above and below the total amount I am getting a dot on the left hand side of where each line should be drawn.

 

Any suggestions would be appreciated.

 

Here is the part of shopping_cart.php where the lines are drawn:

if ($cart->count_contents() > 0) {

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

    $info_box_contents[] = array('align' => 'right',

                                'text' => $currencies->format($cart->show_total()));

  }

// ############ Added CCGV Contribution ##########

  if (tep_session_is_registered('customer_id')) {

    $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");

    $gv_result = tep_db_fetch_array($gv_query);

    if ($gv_result['amount'] > 0 ) {

      $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator());

      $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>');

      $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>');

Posted

Please ignore my last post.

 

Apparently the OnTheFly Thumbs contribution that I installed recently changed the tep_image function so that it wouldn't write the 100% scaled images (such as the pixel_black and transparent images).

 

I used the code from a previous contribution (7 Jul 2004 - 'On the Fly' Auto Thumbnailer v 1.1) and the lines came back.

 

http://www.oscommerce.com/community/contributions,2226

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...