{"id":18455884,"url":"https://github.com/malikhamzasaleemi/sendcloud-api-integration","last_synced_at":"2025-09-10T17:50:34.405Z","repository":{"id":214943266,"uuid":"737738276","full_name":"MalikHamzaSaleemi/SendCloud-API-Integration","owner":"MalikHamzaSaleemi","description":"Integrating SC Shipping ,Label Creation API in WordPress","archived":false,"fork":false,"pushed_at":"2024-01-01T11:45:20.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T14:57:36.952Z","etag":null,"topics":["carrier","carrier-integration","customphp","dhl","php","postnl","postnl-api-php","sendcloud-api","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MalikHamzaSaleemi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-01T10:00:10.000Z","updated_at":"2024-01-01T10:19:15.000Z","dependencies_parsed_at":"2025-02-16T14:45:54.908Z","dependency_job_id":"923092fb-c4e8-43a2-90cc-73dac78d6dc6","html_url":"https://github.com/MalikHamzaSaleemi/SendCloud-API-Integration","commit_stats":null,"previous_names":["malikhamzasaleemi/send-cloud-api-integration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalikHamzaSaleemi%2FSendCloud-API-Integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalikHamzaSaleemi%2FSendCloud-API-Integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalikHamzaSaleemi%2FSendCloud-API-Integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalikHamzaSaleemi%2FSendCloud-API-Integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalikHamzaSaleemi","download_url":"https://codeload.github.com/MalikHamzaSaleemi/SendCloud-API-Integration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285734,"owners_count":21405298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carrier","carrier-integration","customphp","dhl","php","postnl","postnl-api-php","sendcloud-api","wordpress"],"created_at":"2024-11-06T08:09:24.661Z","updated_at":"2025-04-22T17:14:53.898Z","avatar_url":"https://github.com/MalikHamzaSaleemi.png","language":"PHP","readme":"# SendCloud Integration Plugin README\n\n\n## Introduction\n\nThis plugin is designed to integrate with the Dokan plugin and requires Dokan to be installed and activated. Upon activation, the plugin will upload three tables to the database, namely:\n\n1. **cu_sendcloud_webhook**: Contains webhook calls.\n2. **cu_sendcloud_credentials**: Stores API keys of SendCloud.\n3. **cu_sendcloud_parcels**: Contains parcel entries in the Database.\n\n## Usage\n\n### Display Orders Details in Vendor Side\n\nTo display the order details in the vendor dashboard, use the following code snippet:\n\n```php\n $user_order_number = esc_attr(dokan_get_prop($order, 'id'));\nif (function_exists('display_create_label_button')) {\n    display_create_label_button($user_order_number);\n}\n\n```\n\n### Display Carriers List to the Vendor\n\nTo display the list of carriers chosen by the seller in the vendor dashboard, use the following code snippet:\n\n```php\n echo do_shortcode('[custom_shipping_form]');\n```\n\n### Override or Display Shipping Price in WooCommerce\n\nUse the following code in WooCommerce to override or display the shipping price. The `post_author_id` is used to post the user ID of the vendor of the product.\n\n```php\n function custom_wc_shipping_package_name($package_name, $i, $package, $post_author_id) {\n    $custom_package_name = __('Shipping', 'woocommerce') . \"\n\" . do_shortcode('[display_shipping_courier user_id=\"' . $post_author_id . '\"]');\n    return $custom_package_name;\n}\nadd_filter('woocommerce_shipping_package_name', function ($package_name, $i, $package) use ($post_author_id) {\n    return custom_wc_shipping_package_name($package_name, $i, $package, $post_author_id);\n}, 99, 3);\n\n```\n\n### Auto Create Label on Successful Payment\n\nTo automatically create a label when the payment is successful, use the following code snippet:\n\n```php\n $pdfFileName = create_autolabel_on_order($order_id_to_trigger);\n\n```\n\nThis will create a label on SendCloud and return the PDF file, which can be used to send an email to the vendor.\n\n## Note\n\nMake sure to configure the SendCloud API keys in the `cu_sendcloud_credentials` table for proper integration.\n\nFeel free to reach out for any issues or further assistance. Happy shipping!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalikhamzasaleemi%2Fsendcloud-api-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalikhamzasaleemi%2Fsendcloud-api-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalikhamzasaleemi%2Fsendcloud-api-integration/lists"}