{"id":36994174,"url":"https://github.com/magepal/magento2-link-product","last_synced_at":"2026-01-13T23:46:23.707Z","repository":{"id":62522252,"uuid":"158561972","full_name":"magepal/magento2-link-product","owner":"magepal","description":"Custom Product Relation for Magento 2.2.x and 2.3.x sample extension ","archived":false,"fork":false,"pushed_at":"2025-04-16T20:23:26.000Z","size":42,"stargazers_count":54,"open_issues_count":2,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-20T02:21:29.049Z","etag":null,"topics":["custom-module","magento-2","magento-2-extension","magento2","magento2-extension","magento2-extension-free","magento2-module"],"latest_commit_sha":null,"homepage":"https://www.magepal.com","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/magepal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://paypal.me/magepal"]}},"created_at":"2018-11-21T14:39:33.000Z","updated_at":"2025-11-01T08:12:31.000Z","dependencies_parsed_at":"2023-01-22T12:45:57.863Z","dependency_job_id":null,"html_url":"https://github.com/magepal/magento2-link-product","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/magepal/magento2-link-product","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magepal%2Fmagento2-link-product","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magepal%2Fmagento2-link-product/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magepal%2Fmagento2-link-product/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magepal%2Fmagento2-link-product/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magepal","download_url":"https://codeload.github.com/magepal/magento2-link-product/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magepal%2Fmagento2-link-product/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["custom-module","magento-2","magento-2-extension","magento2","magento2-extension","magento2-extension-free","magento2-module"],"created_at":"2026-01-13T23:46:23.621Z","updated_at":"2026-01-13T23:46:23.697Z","avatar_url":"https://github.com/magepal.png","language":"PHP","funding_links":["https://paypal.me/magepal"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.magepal.com\" title=\"Top Magento 2 Extension Provider\" \u003e\u003cimg src=\"https://image.ibb.co/dHBkYH/Magepal_logo.png\" width=\"100\" align=\"right\" alt=\"Magento Extension Provider\" /\u003e\u003c/a\u003e\n\n## Custom Product Relation Sample Extension for Magento 2.2.x and 2.3.x (with zero class rewrite or hacks)\n\n[![Total Downloads](https://poser.okvpn.org/magepal/link-product/downloads)](https://packagist.org/packages/magepal/magento2-link-product)\n[![Latest Stable Version](https://poser.okvpn.org/magepal/link-product/v/stable)](https://packagist.org/packages/magepal/magento2-link-product)\n\n\nCreate a new product accessory relationship in additional to the default Up-sell products, Related products, and Cross-sell products options available in Magento.\n\n![Magento Custom Product Relation](https://image.ibb.co/mPXauq/magento-2-link-product.png)\n\nPlease Note: Our extension perform all of the backend logic of relating the various product, you will need to design the frontend component and where to place these products\n#### Usage\n\n````\n    public function __construct(\n        ...\n        \\MagePal\\LinkProduct\\Model\\Accessory $accessory,\n        ....\n    ) {\n        ...\n        $this-\u003eaccessory = $accessory;\n    }\n    \n    $product = $currentProduct;\n    return products\n    $accessoryItems = $this-\u003eaccessory-\u003egetAccessoryProducts($product);\n    //return product ids\n    $accessoryItemIds = $this-\u003eaccessory-\u003egetAccessoryProductIds($product);\n    \n````\n\n#### Step 1\n\n##### Using Composer (recommended)\n\n```\ncomposer require magepal/link-product\n```\n\n##### Manually\n * Download the extension\n * Unzip the file\n * Create a folder {Magento 2 root}/app/code/MagePal/LinkProduct\n * Copy the content from the unzip folder\n\n\n#### Step 2 - Enable extension (\"cd\" to {Magento root} folder)\n```\n  php -f bin/magento module:enable --clear-static-content MagePal_LinkProduct\n  php -f bin/magento setup:upgrade\n```\n\n\nContribution\n---\nWant to contribute to this extension? The quickest way is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).\n\nImporting via CSV or 3rd party extensions\n---\n\nTo import via CSV, you need to have the [a patch applied to the core](https://github.com/magento/magento2/pull/21230/commits/0846e9aed7040659e7ce3e109eb91df3f5fdfb7e.patch) (until merged to Magento 2).\n\nSupport\n---\nIf you encounter any problems or bugs, please open an issue on [GitHub](https://github.com/magepal/link-product/issues).\n\nNeed help setting up or want to customize this extension to meet your business needs? Please email support@magepal.com and if we like your idea we will add this feature for free or at a discounted rate.\n\nMagento 2 Extensions\n---\n- [Custom SMTP](https://www.magepal.com/magento2/extensions/custom-smtp.html)\n- [Catalog Hover Image for Magento](https://www.magepal.com/magento2/extensions/catalog-hover-image-for-magento.html)\n- [Enhanced Success Page for Magento 2](https://www.magepal.com/magento2/extensions/enhanced-success-page.html)\n- [Enhanced Transactional Emails for Magento 2](https://www.magepal.com/magento2/extensions/enhanced-transactional-emails.html)\n- [Google Tag Manager](https://www.magepal.com/magento2/extensions/google-tag-manager.html) \n- [Enhanced E-commerce](https://www.magepal.com/magento2/extensions/enhanced-ecommerce-for-google-tag-manager.html) \n- [Reindex](https://www.magepal.com/magento2/extensions/reindex.html) \n- [Custom Shipping Method](https://www.magepal.com/magento2/extensions/custom-shipping-rates-for-magento-2.html) \n- [Preview Order Confirmation](https://www.magepal.com/magento2/extensions/preview-order-confirmation-page-for-magento-2.html)\n- [Guest to Customer](https://www.magepal.com/magento2/extensions/guest-to-customer.html) \n- [Admin Form Fields Manager](https://www.magepal.com/magento2/extensions/admin-form-fields-manager-for-magento-2.html) \n- [Customer Dashboard Links Manager](https://www.magepal.com/magento2/extensions/customer-dashboard-links-manager-for-magento-2.html) \n- [Lazy Loader](https://www.magepal.com/magento2/extensions/lazy-load.html) \n- [Order Confirmation Page Miscellaneous Scripts](https://www.magepal.com/magento2/extensions/order-confirmation-miscellaneous-scripts-for-magento-2.html)\n- [HTML Minifier for Magento2](https://www.magepal.com/magento2/extensions/html-minifier.html)\n\n© MagePal LLC. | [www.magepal.com](https://www.magepal.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagepal%2Fmagento2-link-product","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagepal%2Fmagento2-link-product","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagepal%2Fmagento2-link-product/lists"}