Plugin Directory

Changeset 459339


Ignore:
Timestamp:
11/04/2011 05:24:59 AM (14 years ago)
Author:
moshthepitt
Message:

Finishing up fixes to checkout page and order log.

Location:
dukapress/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dukapress/trunk/css/dp-admin.css

    r341872 r459339  
    8989
    9090.dp_pagination:hover {color: #D54E21; border-bottom-color:#999999;}
     91
     92
     93table.order_log_info{
     94    width:auto;
     95    table-layout: fixed;
     96}
     97
     98table.order_log_info td{
     99    width:200px;
     100}
  • dukapress/trunk/css/dpsc-basic.css

    r320051 r459339  
    7777.dpsc-mini-shopping-cart.aligncenter a{text-transform: uppercase;font-weight: bold;color: #000;clear: both;display: block}
    7878.dpsc_error_msg{color:red;font-size:11px;font-weight:bold;letter-spacing:1px;margin-left:5px;}
     79
     80table.thankyou_detail{
     81    width:100%;
     82}
     83table.thankyou{
     84    width:auto; float:right;
     85}
     86table.thankyou th{
     87    width:100px;
     88    font-weight:bold
     89}
     90table.thankyou .thankyou_info{text-align:right; font-weight:normal !important;}
     91
     92table.order_log_info{
     93    width:auto;
     94}
     95table.order_log_info th{
     96    width:200px;
     97}
  • dukapress/trunk/dukapress.php

    r458897 r459339  
    724724                <td><?php _e("Country:","dp-lang");?> </td><td><?php _e($dpsc_country_code_name[$result->billing_country], "dp-lang") ;?></td>
    725725            </tr>
     726            <tr>
     727                <td><?php _e("Email:","dp-lang");?> </td><td><?php _e($result->billing_email, "dp-lang") ;?></td>
     728            </tr>
    726729        </table>
    727         <?php  if($shipping) { ?>
     730        <?php  if(!$shipping) { ?>
    728731            <h4><?php _e("Shipping Address:","dp-lang");?></h4>
    729732            <table class="order_log_info">
     
    749752                    <td><?php _e("Country:","dp-lang");?> </td><td><?php _e($dpsc_country_code_name[$result->shipping_country], "dp-lang") ;?></td>
    750753                </tr>
     754               
    751755            </table>
    752756        <?php } ?>
  • dukapress/trunk/php/dp-cart.php

    r458897 r459339  
    14341434        $shipping = $result->shipping;
    14351435        $discount = $result->discount;
     1436        $tax= $result->tax;
    14361437        if ($discount > 0) {
    14371438            $total_discount = $total * $discount / 100;
     
    14471448        $product_details = unserialize($result->products);
    14481449        foreach ($product_details as $product) {
     1450            $price = number_format((float) $product['price'], 2, '.', '');
    14491451            $order_detail_table .= '<tr>
    14501452                                        <td>' . __($product['name'], "dp-lang") . '</td>
    14511453                                        <td>' . __($product['quantity'], "dp-lang") . '</td>
    1452                                         <td>' . $currency.' '.__($product['price'], "dp-lang") . '</td>
     1454                                        <td>' . $currency.' '.__($price, "dp-lang") . '</td>
    14531455                                    </tr>';
    14541456        }
     
    14581460                            <tr>
    14591461                                <th>' . __('Price', "dp-lang") . '</th>
    1460                                 <th class="thankyou_info">' . $currency. ' ' .$total. '</th>
     1462                                <th class="thankyou_info">' . $currency. ' ' .number_format((float) $total, 2, '.', ''). '</th>
    14611463                            </tr>
    14621464                            <tr>
    14631465                                <th>' . __('Shipping', "dp-lang") . '</th>
    1464                                 <th class="thankyou_info">' .$shipping . '</th>
     1466                                <th class="thankyou_info"> + ' .number_format((float) $shipping, 2, '.', '') . '</th>
    14651467                            </tr>
    14661468                            <tr>
    14671469                                <th>' . __('Discount', "dp-lang") . '</th>
    1468                                 <th class="thankyou_info">' .$discount . '</th>
     1470                                <th class="thankyou_info"> -' .number_format((float) $discount, 2, '.', '') . '</th>
     1471                            </tr>
     1472                            <tr>
     1473                                <th>' . __('Tax', "dp-lang") . '</th>
     1474                                <th class="thankyou_info"> + ' .number_format((float) $total_tax, 2, '.', '') . '</th>
    14691475                            </tr>
    14701476                            <tr>
    14711477                                <th>' . __('Total', "dp-lang") . '</th>
    1472                                 <th class="thankyou_info">' . $currency. ' '. $amount . '</th>
     1478                                <th class="thankyou_info">' . $currency. ' '. number_format((float) $amount, 2, '.', ''). '</th>
    14731479                            </tr>
    14741480                            </table>';
Note: See TracChangeset for help on using the changeset viewer.