Forum Replies Created

Viewing 14 replies - 46 through 59 (of 59 total)
  • FYI
    Seems to be a conflict between this plugin and “Free Downloads WooCommerce” plugin.
    As soon as I activate Free Downloads WooCommerce plugin saving stops working. Saved data is not loaded correctly. Only one of all selected roles is marked in the checkboxes.

    I have the same problem. If I select two user roles and click save, only one is saved.

    I have done an upgrade of the plugin to 1.4.0.
    I have existing custom order statuses and I select to edit one of them, but I get
    HTML template
    File was not found.

    If I create a new template I can copy the current template to my child theme. Can you add this option for existing custom order statuses please?

    I know that I can copy the template manually and figure out what to call the file by inspecting the submit button in chrome, but it would be better if this was done from within the plugin.

    When I edit a template and save it, the message says that the template was saved. But if I exit the template and open it again my changes seems to have been lost. I don′t see the changes that has been done in the input boxes. Am I missing something here or should my changes not be displayed in the input boxes?

    Thread Starter alijens

    (@alijens)

    Hi,

    To add Sku in the list of items you can add
    $postId = wc_get_order_item_meta($item[‘item_id’], ‘_product_id’, true);
    $sku = get_post_meta($postId, ‘_sku’, true);
    $products[] = array(
    ‘id’ => $item[‘item_id’],
    ‘sku’ => $sku,
    ‘name’ => $item[‘name’],
    ‘virtual’ => is_a($product, ‘WC_Product’) ? $product->is_virtual() : false,
    ‘qty’ => $item[‘qty’],
    ‘shipped’ => $item[‘shipped’],
    ‘order_id’ => $item[‘order_id’]
    );

    Add it in woocommerce-partial-shipment.php at row 248

    Update the admin-scripts.js file like this from row 27

    var html='';
                        html = '<div class="wxp-order-shipment-table wrap"><table class="widefat" cellspacing="0">\
                        <thead><tr>\
                        <th class="manage-column column-cb check-column" scope="col"><input type="checkbox" name="wpx-check-top" class="wpx-check-top"></th>\
                        <th class="manage-column" scope="col">SKU</th>\
                        <th class="manage-column" scope="col">'+wxp_partial_ship.wxp_title+'</th>\
                        <th class="manage-column txt-ctr" scope="col">'+wxp_partial_ship.wxp_qty+'</th>\
                        <th class="manage-column txt-ctr" scope="col">'+wxp_partial_ship.wxp_ship+'</th>\
                        </tr></thead>\
                        <tbody>';
                        for(var i=0;i<data.products.length;i++){
                            html+='<tr class="alternate">\
                        <td class="column-cb check-column"><input type="checkbox" class="wxp-shipment-item-check" name="wxp-order-item['+data.products[i].id+']"></td>\
                        <td class="txt-ltr">'+data.products[i].sku+'</td>\
                        <td class="txt-ltr">'+data.products[i].name+'</td>\
                        <td class="txt-ctr">'+data.products[i].qty+'</td>';
                            if(data.products[i].virtual){
                                html+='<td class="txt-ctr"><input data-item-id="'+data.products[i].id+'" data-order-id="'+data.products[i].order_id+'" class="wxp-order-item-shipped" type="number" min="0" max="'+data.products[i].qty+'" step="1" value="'+data.products[i].qty+'" readonly></td>';
                            }
                            else
                            {
                                var shipped = data.init ? data.products[i].shipped : data.products[i].qty;
                                html+='<td class="txt-ctr"><input data-item-id="'+data.products[i].id+'" data-order-id="'+data.products[i].order_id+'" class="wxp-order-item-shipped" type="number" min="0" max="'+data.products[i].qty+'" step="1" value="'+shipped+'"></td>';
                            }
                            html+='</tr>';
                        }
                        html+='</tbody>\

    and you will get the SKU after the checkbox but before the description.

    Thread Starter alijens

    (@alijens)

    Thank you for trying to help, and indeed did help. Turned out to be the plugin Force Password Change that seems to cause the To many redirects. Deactivating that plugin makes the problem go away. To bad since forcing a password change would be a functionality that is nice to have.

    Thread Starter alijens

    (@alijens)

    Hi,
    When I click the button “Add new custom order status” nothing happens. I have tried to console.log the result of add_option but I get nothing in the log. I would have expected true/false but I get nothing. If I change to update_option the status is added as expected when clicking the “Add new custom staus” button.

    Don′t forget to activate the invoice gateway by checking the checkbox. Done by clicking the button on the right hand side in the payments list and then checking the ckeckbox for activating the gateway.

    • This reply was modified 3 years, 1 month ago by alijens.

    All I had to dp was go to WooCommerce->Settings->Payments and activate the payment method.

    Thread Starter alijens

    (@alijens)

    This still does not work

    Thread Starter alijens

    (@alijens)

    Is it possible to add
    $(“.wxp-order-shipment-table input:checkbox”).prop(“checked”, true);
    $(“.wxp_partial_ship_bulk_action”).val(‘shipped’);
    to the admin-scripts.js file(as row 68,69)?
    The code checks all the checkboxes and selects Mark as shipped as default.
    Maybe you could add it as a setting?

    The suggestion comes from the workers at our warehouse and it would reduce the amount of clicks they have to make each day.

    Thread Starter alijens

    (@alijens)

    Can you also add the product sku number in a column before the title?
    I would also like to be able to sort the list by as ordered, sku and a location in the warehouse. I have a custom meta_key for the location in the warehouse.
    Is there a hook or filter I can use to add it?

    Thread Starter alijens

    (@alijens)

    I have added
    add_filter(‘igfw_invoice_gateway_process_payment_order_status’, ‘change_invoice_payment_order_status’ );
    function change_invoice_payment_order_status( $order_status ) {
    return ‘pending-payment’;
    }
    but I get
    Fatal error: Uncaught Error: Undefined constant “‘igfw_invoice_gateway_process_payment_order_status’”

    Thread Starter alijens

    (@alijens)

    There is also a bug in the customer-partial-shipment.php:30 file. It should use the domain wxp-partial-shipment and not woocommerce. At least if you like me have added your loco translate file to custom location.

    Thread Starter alijens

    (@alijens)

    OK, will do. Thank you.

Viewing 14 replies - 46 through 59 (of 59 total)