首页 \ 问答 \ 根据Woocommerce中的自定义字段计算自定义购物车商品价格(Custom cart item price calculation based on dimentions custom fields in Woocommerce)

根据Woocommerce中的自定义字段计算自定义购物车商品价格(Custom cart item price calculation based on dimentions custom fields in Woocommerce)

我在woocommerce单个产品页面中创建了一些输入自定义字段,用户可以分别输入高度和宽度值...当产品添加到购物车时,自定义字段值也显示在购物车和结帐页面中。

示例:如果用户输入高度='15'且宽度='20',则其显示为购物车页面,如height = 15 width = 20

单品页面

单品页面

购物车页面

购物车页面

现在Iém试图实现的是根据“高度”和“宽度”自定义字段值进行自定义价格计算:

总价=(高/ 3 *宽/ 30 + 3)* 1.48

最终计算的价格应更新购物车商品价格。 但我无法实现这一部分,或者我不知道如何实现它。

这是我的代码:

/*
 * Display input on single product page
 * @return html
 */
function kia_satish_option(){
    $value = isset( $_POST['_satish_option'] ) ? sanitize_wp_checkbox( $_POST['_satish_option'] ) : '';
    printf( '<label>%s</label><input name="_satish_option" value="%s" type="number"/>', __( 'Height', 'kia-plugin-textdomain' ), esc_attr( $value ) );
}
add_action( 'woocommerce_before_add_to_cart_button', 'kia_satish_option', 9 );

function kia_satisher_option(){
    $value = isset( $_POST['_satisher_option'] ) ? sanitize_wp_checkbox( $_POST['_satisher_option'] ) : '';
    printf( '<label>%s</label><input name="_satisher_option" value="%s" type="number"/>', __( 'width', 'kia-plugin-textdomain' ), esc_attr( $value ) );
}
add_action( 'woocommerce_before_add_to_cart_button', 'kia_satisher_option', 9 );


function kia_yard_option(){
    $value = isset( $_POST['_yard_option'] ) ? sanitize_wp_checkbox( $_POST['_yard_option'] ) : '';
    printf( '<label>%s</label><input name="_yard_option" value="%s" type="number"/>', __( 'yard', 'kia-plugin-textdomain' ), esc_attr( $value ) );
}
add_action( 'woocommerce_before_add_to_cart_button', 'kia_yard_option', 9 );



/*
 * Add custom data to the cart item
 * @param array $cart_item
 * @param int $product_id
 * @return array
 */
function kia_add_cart_item_data( $cart_item, $product_id ){

    if( isset( $_POST['_satish_option'] ) ) {
        $cart_item['satish_option'] = sanitize_text_field( $_POST['_satish_option'] );
    }

    if( isset( $_POST['_satisher_option'] ) ) {
        $cart_item['satisher_option'] = sanitize_text_field( $_POST['_satisher_option'] );
    }

    if( isset( $_POST['_yard_option'] ) ) {
        $cart_item['yard_option'] = sanitize_text_field( $_POST['_yard_option'] );
    }

    return $cart_item;

}
add_filter( 'woocommerce_add_cart_item_data', 'kia_add_cart_item_data', 10, 2 );


/*
 * Load cart data from session
 * @param array $cart_item
 * @param array $other_data
 * @return array
 */
function kia_get_cart_item_from_session( $cart_item, $values ) {

    if ( isset( $values['satish_option'] ) ){
        $cart_item['satish_option'] = $values['satish_option'];
    }

    if ( isset( $values['satisher_option'] ) ){
        $cart_item['satisher_option'] = $values['satisher_option'];
    }

    if ( isset( $values['yard_option'] ) ){
        $cart_item['yard_option'] = $values['yard_option'];
    }

    return $cart_item;

}
add_filter( 'woocommerce_get_cart_item_from_session', 'kia_get_cart_item_from_session', 20, 2 );





/*
 * Add meta to order item
 * @param int $item_id
 * @param array $values
 * @return void
 */
function kia_add_order_item_meta( $item_id, $values ) {

    if ( ! empty( $values['satish_option'] ) ) {
        woocommerce_add_order_item_meta( $item_id, 'satish_option', $values['satish_option'] );           
    }

    if ( ! empty( $values['satisher_option'] ) ) {
        woocommerce_add_order_item_meta( $item_id, 'satisher_option', $values['satisher_option'] );           
    }
}
add_action( 'woocommerce_add_order_item_meta', 'kia_add_order_item_meta', 10, 2 );




/*
 * Get item data to display in cart
 * @param array $other_data
 * @param array $cart_item
 * @return array
 */
function kia_get_item_data( $other_data, $cart_item ) {

    if ( isset( $cart_item['satish_option'] ) ){

        $other_data[] = array(
            'name' => __( 'height', 'kia-plugin-textdomain' ),
            'value' => sanitize_text_field( $cart_item['satish_option'] )
        );

    }

    if ( isset( $cart_item['satisher_option'] ) ){

        $other_data[] = array(
            'name' => __( 'width', 'kia-plugin-textdomain' ),
            'value' => sanitize_text_field( $cart_item['satisher_option'] )
        );

    }

    if ( isset( $cart_item['yard_option'] ) ){

        $other_data[] = array(
            'name' => __( 'Yard', 'kia-plugin-textdomain' ),
            'value' => sanitize_text_field( $cart_item['yard_option'] )
        );

    }

    return $other_data;

}
add_filter( 'woocommerce_get_item_data', 'kia_get_item_data', 10, 2 );

我尝试通过以下代码实现公式部分:

    function woo_add_custom_general_fields_save($post_id)
{
    $woocommerce_product_height = $_POST['_product_height'];
    $woocommerce_product_width = $_POST['_product_width'];
    $woocommerce_final_price = $_POST['_final_price'];


// calculate and save _product_area_price, _regular_price, price as Height*Width
    if (!empty($woocommerce_product_height) && !empty($woocommerce_product_width)))
        $woocommerce_final_price = $woocommerce_product_height * $woocommerce_product_width ;

但它不起作用......

如何根据自定义购物车数据自定义计算更改购物车商品价格?


I have created some input custom fields in woocommerce single product pages where user can input height and width values respectively… When product is added to cart that custom fields values are displays in cart and checkout page too.

Example: if user input height='15' and width='20' then its display is cart page like height=15 width=20

single product page

single product page

cart page

cart page

Now what Iém trying to achieve is to make a custom price calculation based on that "height" and "width" custom fields values:

total price = (height/3 * width/30 + 3)*1.48

The final calculated price should update cart item price. But I'm unable to achieve this section or I dont know how to achieve it.

Here is my code:

/*
 * Display input on single product page
 * @return html
 */
function kia_satish_option(){
    $value = isset( $_POST['_satish_option'] ) ? sanitize_wp_checkbox( $_POST['_satish_option'] ) : '';
    printf( '<label>%s</label><input name="_satish_option" value="%s" type="number"/>', __( 'Height', 'kia-plugin-textdomain' ), esc_attr( $value ) );
}
add_action( 'woocommerce_before_add_to_cart_button', 'kia_satish_option', 9 );

function kia_satisher_option(){
    $value = isset( $_POST['_satisher_option'] ) ? sanitize_wp_checkbox( $_POST['_satisher_option'] ) : '';
    printf( '<label>%s</label><input name="_satisher_option" value="%s" type="number"/>', __( 'width', 'kia-plugin-textdomain' ), esc_attr( $value ) );
}
add_action( 'woocommerce_before_add_to_cart_button', 'kia_satisher_option', 9 );


function kia_yard_option(){
    $value = isset( $_POST['_yard_option'] ) ? sanitize_wp_checkbox( $_POST['_yard_option'] ) : '';
    printf( '<label>%s</label><input name="_yard_option" value="%s" type="number"/>', __( 'yard', 'kia-plugin-textdomain' ), esc_attr( $value ) );
}
add_action( 'woocommerce_before_add_to_cart_button', 'kia_yard_option', 9 );



/*
 * Add custom data to the cart item
 * @param array $cart_item
 * @param int $product_id
 * @return array
 */
function kia_add_cart_item_data( $cart_item, $product_id ){

    if( isset( $_POST['_satish_option'] ) ) {
        $cart_item['satish_option'] = sanitize_text_field( $_POST['_satish_option'] );
    }

    if( isset( $_POST['_satisher_option'] ) ) {
        $cart_item['satisher_option'] = sanitize_text_field( $_POST['_satisher_option'] );
    }

    if( isset( $_POST['_yard_option'] ) ) {
        $cart_item['yard_option'] = sanitize_text_field( $_POST['_yard_option'] );
    }

    return $cart_item;

}
add_filter( 'woocommerce_add_cart_item_data', 'kia_add_cart_item_data', 10, 2 );


/*
 * Load cart data from session
 * @param array $cart_item
 * @param array $other_data
 * @return array
 */
function kia_get_cart_item_from_session( $cart_item, $values ) {

    if ( isset( $values['satish_option'] ) ){
        $cart_item['satish_option'] = $values['satish_option'];
    }

    if ( isset( $values['satisher_option'] ) ){
        $cart_item['satisher_option'] = $values['satisher_option'];
    }

    if ( isset( $values['yard_option'] ) ){
        $cart_item['yard_option'] = $values['yard_option'];
    }

    return $cart_item;

}
add_filter( 'woocommerce_get_cart_item_from_session', 'kia_get_cart_item_from_session', 20, 2 );





/*
 * Add meta to order item
 * @param int $item_id
 * @param array $values
 * @return void
 */
function kia_add_order_item_meta( $item_id, $values ) {

    if ( ! empty( $values['satish_option'] ) ) {
        woocommerce_add_order_item_meta( $item_id, 'satish_option', $values['satish_option'] );           
    }

    if ( ! empty( $values['satisher_option'] ) ) {
        woocommerce_add_order_item_meta( $item_id, 'satisher_option', $values['satisher_option'] );           
    }
}
add_action( 'woocommerce_add_order_item_meta', 'kia_add_order_item_meta', 10, 2 );




/*
 * Get item data to display in cart
 * @param array $other_data
 * @param array $cart_item
 * @return array
 */
function kia_get_item_data( $other_data, $cart_item ) {

    if ( isset( $cart_item['satish_option'] ) ){

        $other_data[] = array(
            'name' => __( 'height', 'kia-plugin-textdomain' ),
            'value' => sanitize_text_field( $cart_item['satish_option'] )
        );

    }

    if ( isset( $cart_item['satisher_option'] ) ){

        $other_data[] = array(
            'name' => __( 'width', 'kia-plugin-textdomain' ),
            'value' => sanitize_text_field( $cart_item['satisher_option'] )
        );

    }

    if ( isset( $cart_item['yard_option'] ) ){

        $other_data[] = array(
            'name' => __( 'Yard', 'kia-plugin-textdomain' ),
            'value' => sanitize_text_field( $cart_item['yard_option'] )
        );

    }

    return $other_data;

}
add_filter( 'woocommerce_get_item_data', 'kia_get_item_data', 10, 2 );

I tried to achieve formula section by code below:

    function woo_add_custom_general_fields_save($post_id)
{
    $woocommerce_product_height = $_POST['_product_height'];
    $woocommerce_product_width = $_POST['_product_width'];
    $woocommerce_final_price = $_POST['_final_price'];


// calculate and save _product_area_price, _regular_price, price as Height*Width
    if (!empty($woocommerce_product_height) && !empty($woocommerce_product_width)))
        $woocommerce_final_price = $woocommerce_product_height * $woocommerce_product_width ;

But it doesn't work…

How can I change the cart item price with a custom calculation based on custom cart data?


原文:https://stackoverflow.com/questions/49523416
更新时间:2019-12-13 07:40

最满意答案

我完全重新审视了你的代码,删除了一些小东西,重命名了其他代码并添加了缺少的部分......

你的计算看起来很奇怪:

$total_price = ($height/3 * $width/30 + 3)*1.48;

一切正常,如果需要,您将能够轻松更改计算...

代码:

// Display custom input fields in single product page
add_action( 'woocommerce_before_add_to_cart_button', 'add_product_custom_fields', 20 );
function add_product_custom_fields(){
    $domain =  'woocommerce';
    $value = isset( $_POST['height_option'] ) ? sanitize_key( $_POST['height_option'] ) : '';
    printf( '<label>%s</label><input name="height_option" value="%s" type="number"/><br>', __( 'Height', $domain ), esc_attr( $value ) );

    $value = isset( $_POST['width_option'] ) ? sanitize_key( $_POST['width_option'] ) : '';
    printf( '<label>%s</label><input name="width_option" value="%s" type="number"/><br>', __( 'Width', $domain ), esc_attr( $value ) );
}

// Add custom fields data to cart items and make calculation price
add_filter( 'woocommerce_add_cart_item_data', 'custom_add_cart_item_data', 20, 2 );
function custom_add_cart_item_data( $cart_item, $product_id ){

    if( isset( $_POST['height_option'] ) )
        $cart_item['custom_data']['height'] = sanitize_key( $_POST['height_option'] );

    if( isset( $_POST['width_option'] ) )
        $cart_item['custom_data']['width'] = sanitize_key( $_POST['width_option'] );

    // Make calculation and save calculated  price
    if( isset( $_POST['height_option'] ) && isset( $_POST['width_option'] ) ){
        $height      = (int) sanitize_key( $_POST['height_option'] );
        $width       = (int) sanitize_key( $_POST['width_option'] );

        if( $width > 0 && $height > 0 ){
            $total_price = ( ( $height / 3 ) * ( $width / 30 ) + 3 ) * 1.48; // <== The calculation
            $cart_item['custom_data']['price'] = round($total_price, 2); // Save the price in the custom data
        }
    }

    return $cart_item;
}

// Display custom data in cart and checkout pages
add_filter( 'woocommerce_get_item_data', 'display_custom_cart_item_data', 10, 2 );
function display_custom_cart_item_data( $cart_data, $cart_item ) {
    $domain = 'woocommerce';

    if ( isset( $cart_item['custom_data']['height'] ) ){
        $cart_data[] = array(
            'name' => __( 'Height', $domain ),
            'value' => $cart_item['custom_data']['height']
        );
    }
    if ( isset( $cart_item['custom_data']['width'] ) ){
        $cart_data[] = array(
            'name' => __( 'Width', $domain ),
            'value' => $cart_item['custom_data']['width']
        );
    }
    return $cart_data;
}

// Set the new calculated price replacing cart item price
add_action( 'woocommerce_before_calculate_totals', 'set_cart_item_calculated_price', 20, 1 );
function set_cart_item_calculated_price( $cart ) {
    if ( is_admin() && ! defined( 'DOING_AJAX' ) )
        return;

    // Loop through cart items
    foreach ( $cart->get_cart() as $cart_item ){
        if( ! isset( $cart_item['custom_data']['price'] ) ){
            continue;
        }
        if( $cart_item['custom_data']['price'] > 0 ){
            // Set the calculated item price (if there is one)
            $cart_item['data']->set_price( (float) $cart_item['custom_data']['price'] );
        }
    }
}


// Get cart item custom data and update order item meta and display in orders and emails
add_action( 'woocommerce_checkout_create_order_line_item', 'save_order_item_custom_meta_data', 10, 2 );
function custom_add_order_item_meta( $item_id, $values ) {
    $domain = 'woocommerce';

    if( isset( $cart_item['custom_data']['height'] ) )
        $item->update_meta_data( __( 'Height', $domain ), $values['custom_data']['height'] );

    if( isset( $cart_item['custom_data']['width'] ) )
        $item->update_meta_data( __( 'Width', $domain ), $values['custom_data']['width'] );
}

代码位于活动子主题(或活动主题)的function.php文件中。 经过测试和工作。


I have revisited completely your code, removed some little things, renamed others and added missing parts…

Yours calculation looks very strange:

$total_price = ($height/3 * $width/30 + 3)*1.48;

As everything works, you will be able to make easily changes in your calculation if needed…

The code:

// Display custom input fields in single product page
add_action( 'woocommerce_before_add_to_cart_button', 'add_product_custom_fields', 20 );
function add_product_custom_fields(){
    $domain =  'woocommerce';
    $value = isset( $_POST['height_option'] ) ? sanitize_key( $_POST['height_option'] ) : '';
    printf( '<label>%s</label><input name="height_option" value="%s" type="number"/><br>', __( 'Height', $domain ), esc_attr( $value ) );

    $value = isset( $_POST['width_option'] ) ? sanitize_key( $_POST['width_option'] ) : '';
    printf( '<label>%s</label><input name="width_option" value="%s" type="number"/><br>', __( 'Width', $domain ), esc_attr( $value ) );
}

// Add custom fields data to cart items and make calculation price
add_filter( 'woocommerce_add_cart_item_data', 'custom_add_cart_item_data', 20, 2 );
function custom_add_cart_item_data( $cart_item, $product_id ){

    if( isset( $_POST['height_option'] ) )
        $cart_item['custom_data']['height'] = sanitize_key( $_POST['height_option'] );

    if( isset( $_POST['width_option'] ) )
        $cart_item['custom_data']['width'] = sanitize_key( $_POST['width_option'] );

    // Make calculation and save calculated  price
    if( isset( $_POST['height_option'] ) && isset( $_POST['width_option'] ) ){
        $height      = (int) sanitize_key( $_POST['height_option'] );
        $width       = (int) sanitize_key( $_POST['width_option'] );

        if( $width > 0 && $height > 0 ){
            $total_price = ( ( $height / 3 ) * ( $width / 30 ) + 3 ) * 1.48; // <== The calculation
            $cart_item['custom_data']['price'] = round($total_price, 2); // Save the price in the custom data
        }
    }

    return $cart_item;
}

// Display custom data in cart and checkout pages
add_filter( 'woocommerce_get_item_data', 'display_custom_cart_item_data', 10, 2 );
function display_custom_cart_item_data( $cart_data, $cart_item ) {
    $domain = 'woocommerce';

    if ( isset( $cart_item['custom_data']['height'] ) ){
        $cart_data[] = array(
            'name' => __( 'Height', $domain ),
            'value' => $cart_item['custom_data']['height']
        );
    }
    if ( isset( $cart_item['custom_data']['width'] ) ){
        $cart_data[] = array(
            'name' => __( 'Width', $domain ),
            'value' => $cart_item['custom_data']['width']
        );
    }
    return $cart_data;
}

// Set the new calculated price replacing cart item price
add_action( 'woocommerce_before_calculate_totals', 'set_cart_item_calculated_price', 20, 1 );
function set_cart_item_calculated_price( $cart ) {
    if ( is_admin() && ! defined( 'DOING_AJAX' ) )
        return;

    if ( did_action( 'woocommerce_before_calculate_totals' ) >= 2 )
        return;

    // Loop through cart items
    foreach ( $cart->get_cart() as $cart_item ){
        if( ! isset( $cart_item['custom_data']['price'] ) ){
            continue;
        }
        if( $cart_item['custom_data']['price'] > 0 ){
            // Set the calculated item price (if there is one)
            $cart_item['data']->set_price( (float) $cart_item['custom_data']['price'] );
        }
    }
}


// Get cart item custom data and update order item meta and display in orders and emails
add_action( 'woocommerce_checkout_create_order_line_item', 'save_order_item_custom_meta_data', 10, 2 );
function custom_add_order_item_meta( $item_id, $values ) {
    $domain = 'woocommerce';

    if( isset( $cart_item['custom_data']['height'] ) )
        $item->update_meta_data( __( 'Height', $domain ), $values['custom_data']['height'] );

    if( isset( $cart_item['custom_data']['width'] ) )
        $item->update_meta_data( __( 'Width', $domain ), $values['custom_data']['width'] );
}

Code goes in function.php file of your active child theme (or active theme). Tested and works.

2018-10-01

相关问答

更多

MVC4:ViewModel(带有radiobuttonlist)在HttpPost之后为空(MVC4: ViewModel (with radiobuttonlist) is empty after HttpPost)

我没有看到表单有如下ID的映射: @Html.HiddenFor(model => model.Id) 每个内部问题集合也应该具有Id,以便与表单一起发布。 因此,对于您可以拥有的每个问题,在表单的foreach循环中: @Html.HiddenFor(model => item.Question.Id) 该模型还具有MultipleChoiceQuestion类型的集合。 对于模型绑定到集合,集合元素的名称应具有带有序数字的name属性,如本文http://haacked.com/arch

如何在同一帐户上设置“Dev repo”(在prod和团队之间)(How to set up a “Dev repo” (between the prod and the team) on the same account)

在git中似乎存在一个基本的误解。 您有一个通过设置组织正确找到的回购。 那很棒。 你和你的开发人员在他们的回购中单独分工。 那也没关系。 现在,如果您是首席开发人员,并且想要了解人们的工作方式,那么您可以在GitHub上的中央组织中组织所有这些。 即开发者发送拉动请求并将它们拉入开发分支,您不必将它们拉入主控。 在您的开发分支中,您可以测试合并的代码,看它是否符合您的需求。 如果您不喜欢它,则不必将其与生产和/或主分支合并。 在git中,你使用分支机构来理清好事和坏事。 你批准的所有东西都合并

xml序列化程序导致光子rpc命令中的空引用(xml serializer causes nullreference in photon rpc comand)

你的问题是o1没有做任何事情。 updateinfo正在设置值,但是从updateinfo返回后o1正在丢失。 请参阅下面的代码进行更正 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml; using System.Xml.Serialization; namespace ConsoleApplicatio

在列表中找到re.compile匹配的最快方法(Fastest way to find a re.compile match in list)

我制作了一个测试文件并测试了一些变化。 通过遍历文件来搜索静态字符串(如您所做的那样)的最快方法是使用string in line 。 但是,如果您将使用加载的数据进行多次搜索(实际上根据下面的测试数据超过30次),那么以(计算)时间以dicts的形式为PLU和EAN生成查找表是值得的并将其用于将来的搜索。 loaded 120000 lines question regex 0.114868402481 simpler regex 0.417045307159 other reg

CakePHP和GoogleMapsHelper:如何从我的数据库中加载标记?(CakePHP and GoogleMapsHelper: How do I load markers from my DB?)

你只是忘记回应标记。 请注意示例中的短标记<?= 。 这是做<?php echo的简短(有点难看)的方式。 此外,没有必要像你一样打开/关闭PHP标签。 它可以全部放在一个区块内。 最后,您在选项数组中声明了一个重复的键longitude ,您可能通过Post模型的字段名称来表示longitude 。 所有这些都放在一起,这应该可以解决问题: <?php foreach ($posts as $post): echo $this->GoogleMap->addMarker(

从同一网站/路径提供内容和webdav(Serving content and webdav from the same website/path)

我最终使用了一个Apache实例并在前面建立了一个反向代理。 I ended up using an Apache instance at my disposal and establishing a reverse proxy in front.

在Sql Server Analysis Services中计算MODE(一组中最常见的数字)(Calculating MODE (most common number in a set) in Sql Server Analysis Services)

我可以看到两种可能的选择。 创建.Net存储过程是一个,但调用它们有一些开销,所以你不希望在太多单元格上运行模式功能。 另一个选项是,如果没有太多需要操作的不同值,则创建一个具有基于该数字的属性的维度。 然后,您可以创建行计数度量并通过使用数值对维度执行TOPCOUNT(...,1)来获取模式。 I can see two possible alternatives. Creating a .Net stored proc is one, but there is a bit of overhe

如何防止javascript中的重复条目?(how to prevent duplicated entries in javascript?)

只需使用$.inArray(val, arr)就行了! http://api.jquery.com/jQuery.inArray/ 但只是关于你的代码的评论。 更换 document.getElementById('question').value 通过 $('#question').val() 和 document.getElementById('headTitle').innerHTML=y 通过 $('#headTitle').html(y) 会更清洁;-) Just use $.

相关文章

更多

最新问答

更多
  • NumPy标量,广播和__iadd__方法(NumPy scalars, broadcasting and the __iadd__ method)
  • 快速排序算法输出错误(Getting wrong output for quicksort algorithm)
  • Rails管理员:没有Rails 4应用程序的编辑,显示或删除按钮(Rails Admin: No edit, show, or delete buttons for Rails 4 app)
  • 部分刷新问题触发两次(Issue with partial refresh triggered twice)
  • jsPlumb draggable element javascript函数(jsPlumb draggable element javascript function)
  • MVC4:ViewModel(带有radiobuttonlist)在HttpPost之后为空(MVC4: ViewModel (with radiobuttonlist) is empty after HttpPost)
  • 如何在同一帐户上设置“Dev repo”(在prod和团队之间)(How to set up a “Dev repo” (between the prod and the team) on the same account)
  • 如何在tcl中将eth0配置为发送方udp端口(how to configure eth0 as a sender udp port in tcl)
  • EF6.1 beta 1如何获得Tooling Consolidation功能?(EF6.1 beta 1 how to get the Tooling Consolidation feature?)
  • 适用于Windows和PHP 5.5的Phalcon(Phalcon for Windows and PHP 5.5)
  • 有没有办法忽略hg责任中的提交?(Is there a way to ignore a commit in hg blame?)
  • Desire2通过API学习访问学期的权限(Desire2Learn Permissions to Access Semesters Via API)
  • 从aspx将服务器的文件复制到另一台服务器(Copy a file of a server to another server from aspx)
  • 使用YSlow / Web Developer扩展程序确定页面大小(Figuring out page size with YSlow / Web Developer extension)
  • Select语句将字符串中的前7个字符与其他表中的其他7个字符进行比较(Select statement which compares first 7 chars in a string with other 7 chars in other table)
  • 检测对注册表的更改,防止更改等(Detect changes to registry, prevent changes, etc)
  • 用户的鼠标/键盘运动分析是否有特殊名称?(Does the analysis of mouse/keyboard motions of a user have a special name?)
  • 获取Rails中资源的路由列表(Get list of routes for a resource in Rails)
  • 用函数值除以数字(Divide a function value by a number)
  • 熊猫Python:如何从今天开始创建失效列?(Pandas Python: How to create lapse since today column?)
  • GDK Bug报告(GDK Bug Reports)
  • 困惑于在python中循环遍历列表(confused about looping through lists in python)
  • 'less'由'which'输出指定的文件('less' the file specified by the output of 'which')
  • 如何在ASP.NET中优化AJAX(How to optimize AJAX in ASP.NET)
  • 在文本文件中转换纪元时间(Convert epoch times in text file)
  • 表细胞伸展(Table cell stretching)
  • GridView控件(GridView Control)
  • 从构建定义文件控制pdb文件输出(Control pdb file output from build defintion file)
  • *将方法传递给类(*Passing a Method into a Class)
  • 如何在HttpReceiveHttpRequest()中使用HTTPS?(How to use HTTPS with HttpReceiveHttpRequest()?)