Plugin Directory

Changeset 456734


Ignore:
Timestamp:
10/28/2011 03:12:28 PM (14 years ago)
Author:
moshthepitt
Message:

Updating and bug fixing

Location:
dukapress/trunk/php
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dukapress/trunk/php/dp-cart.php

    r433681 r456734  
    12411241
    12421242
    1243         $array1 = array('%from%', '%from_email%', '%details%', '%custom_message%');
     1243        $array1 = array('%from%', '%from_email%', '%details%', '%enq_subject%', '%custom_message%');
    12441244        $array2 = array($from_name, $from_email, $message_content, $subject, $message);
    12451245        $msg = str_replace($array1, $array2, $msg);
  • dukapress/trunk/php/dp-products.php

    r398928 r456734  
    180180            $value_atc = __('Inquire', "dp-lang");
    181181        }
     182        //Out of Stock Button
     183        if ($dp_shopping_cart_settings['dp_shop_inventory_soldout'] === 'yes' && $all_custom_fields['currently_in_stock'][0] < 1) {
     184            $value_atc = __('Out of Stock', "dp-lang");
     185        }
     186        //PayPal Buy Now
    182187        $buy_now_present = '0';
    183188        if ($buy_now) {
     
    185190            $buy_now_present = '1';
    186191        }
     192        //redirect to Checkout
    187193        if ($direct) {
    188194            $value_atc = __('Buy Now', "dp-lang");
    189195            $buy_now_present = '2';
    190196        }
     197        //Out of stock disabled button
    191198        $disabled_add_to_cart = '';
    192199        if (!$available_in_stock) {
  • dukapress/trunk/php/dp-widgets.php

    r399731 r456734  
    199199                    $dpsc_at_checkout_to_be_displayed_price = '';
    200200                }
     201                $dpsc_var = '';
     202                if (!empty($dpsc_product_in_cart['var'])) {
     203                    $dpsc_var = ' (' . $dpsc_product_in_cart['var'] . ')';
     204                }
    201205                $dpsc_total_products += $dpsc_product_in_cart['quantity'];
    202206                $dpsc_total += floatval($dpsc_product_in_cart['price']*$dpsc_product_in_cart['quantity']);
    203                 $dpsc_output .= '<tr><td>'.$dpsc_product_in_cart['name'].'</td>
     207                $dpsc_output .= '<tr><td>'.$dpsc_product_in_cart['name']. __($dpsc_var, "dp-lang").'</td>
    204208                    <td>'.$dpsc_product_in_cart['quantity'].'</td>
    205209                        <td>'.$dpsc_at_checkout_to_be_displayed_price.'</td></tr>';
Note: See TracChangeset for help on using the changeset viewer.