Okay
  Public Ticket #3727710
>> USER: タイトルを付けるとしたら 英語で >> ASSISTANT: "Request for Adding 'Kuroneko Yamato' Shipping Carrier to MarketKing and Database Integration Details"
Closed

Comments

  •  2
    YUJI OKUBO started the conversation

    Dear MarketKing Support,

    Thank you for your assistance. I am using the MarketKing pro version.

    I have enabled the Shipping Tracking feature and am currently using it. Since I am creating a Japanese website, I have selected "Other" for the Provider.

    Here is my question:

    I would like to add a shipping carrier. In Japan, the largest shipping company is Kuroneko Yamato. As I have to select "Other" every time, I am facing the hassle of manually entering the details each time.

    Therefore, I would like to add the following shipping carrier configuration:

    I would appreciate it if you could tell me the specific database table and column to register this information (I can handle the database operations).

    If this can be implemented, it would make the vendor’s work much easier. Also, if you could include it in the next version, it would be greatly appreciated by Japanese users.

    Thank you for your response.

  •  2
    YUJI OKUBO replied

    Please revise the title as appropriate. Thank you in advance.

  •  2,212
    WebWizards replied

    Hello Yuji,

    To do this:


    (1) Add this PHP snippet to your site:

    add_filter('marketking_shipping_status_tracking_providers_list', function($providers){
        $providers['kuroneko'] = array(
                'label' => esc_html__( 'Kuroneko', 'marketking' ),
                'url'   => 'https://jizen.kuronekoyamato.co.jp/jizen/servlet/crjz.b.NQ0010?id={tracking_number}',
            );
        return $providers;
    }, 10, 1);
    

    (2) Go to MarketKing -> Settings -> Shipping Tracking and enable it here: https://prnt.sc/Y4uOWle0IjrF


    Now you will see the option here:

    3304736551.png


    Kind regards,

    Stefan

  •  2
    YUJI OKUBO replied

    Stefan,

    Thank you for creating the PHP snippet. It worked as expected.

    I really appreciate your help. Please close the issue.

    Thank you again.