Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

width problem on shopping cart box..


draculakos

Recommended Posts

Posted

Try something similar to this as you are missing a table row:

' </tr>';

<tr>

 

$cart_contents .= $total;

 

$info_box_contents = array();

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

 

// BEGIN JS Amount Till Free Shipping

$free_shipping_mount = 150;

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

 

if ($cart->show_total() < $free_shipping_mount) {

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

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

'text' => '<span class="freeship2">' . BOX_SHIPPING_CART_FREE_SHIPPING . $currencies->format($free_shipping_mount) . '</span>');

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

'text' => '<span class=freeship2>' . BOX_SHIPPING_CART_LEFT_TO_QUALIFY . '</span><br><span class=freeship>' . $currencies->format($free_shipping_mount - $cart->show_total()) . '</span>');

 

} else if ($cart->show_total() > $free_shipping_mount) {

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

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

'text' => '<span class=freeship>' . BOX_SHIPPING_CART_QUALIFIES_FREE_SHIPPING . '</span>');

}

}

// END JS Amount Till Free Shipping

 

new cartBox($info_box_contents);

 

} else {

new infoBox(array(array('text' => BOX_SHOPPING_CART_EMPTY)));

}

?>

</form>

</tr>

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

i tried this : (and some other like this, but nothing!!)

 

' </tr>'.

'<tr>'.

' <td> '.

// BEGIN JS Amount Till Free Shipping

$free_shipping_mount = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER;

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

 

if ($cart->show_total() < $free_shipping_mount) {

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

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

'text' => '<span class="freeship2">' . BOX_SHIPPING_CART_FREE_SHIPPING . $currencies->format($free_shipping_mount) . '</span>');

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

'text' => '<span class=freeship2>' . BOX_SHIPPING_CART_LEFT_TO_QUALIFY . '</span><br><span class=freeship>' . $currencies->format($free_shipping_mount - $cart->show_total()) . '</span>');

 

} else if ($cart->show_total() > $free_shipping_mount) {

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

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

'text' => '<span class=freeship>' . BOX_SHIPPING_CART_QUALIFIES_FREE_SHIPPING . '</span>');

}

}

// END JS Amount Till Free Shipping

'</td>'.

'</tr>';

I am Maintaining :

Product_Short_Description (i added it on specials.php and in shopping_cart.php)

City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)

I had Created :

UTF bug fix on standard reviews system (admin & block)

Corrupted character on mysql with utf-8

Posted

nobody knows? I tried to put the code of the table in a .html file to see how it looks and it looks like it takes the 100% of the width.. i don't know why in the oscommerce it doesn't take the 100%..

I am Maintaining :

Product_Short_Description (i added it on specials.php and in shopping_cart.php)

City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)

I had Created :

UTF bug fix on standard reviews system (admin & block)

Corrupted character on mysql with utf-8

Posted
nobody knows? I tried to put the code of the table in a .html file to see how it looks and it looks like it takes the 100% of the width.. i don't know why in the oscommerce it doesn't take the 100%..

Not sure if this will help.

Posted

i want the last td to be in the 100% of the box width, but it doesn't.. you can look the pic@!

I am Maintaining :

Product_Short_Description (i added it on specials.php and in shopping_cart.php)

City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)

I had Created :

UTF bug fix on standard reviews system (admin & block)

Corrupted character on mysql with utf-8

Archived

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

×
×
  • Create New...