With this module you can replace standard "add to cart" action on product pages with redirection to some specific url. Each product can have own specific url to external website - you can define such url on product edit page in shop's back office.
As you already know - with this plugin you can replace "add to cart" button on product pages with link to specific url. You can use there external urls to other websites / marketplaces. It's great if you want to promote your offer on amazon, allegro or other popular marketplaces.
Configuration page
Configuration process of module is very easy. Module creates special section on each product edit page where you can just type url. If you will fill out this special field with valid url - module will automatically replace product page add to cart button action with link to this specific url. If you want to remove feature - just empty the url field on product edit page and standard "add to cart" process will start to work as it works by default.
Feature to add different product to cart than viewed product
str_contains
function with strpos
for improved compatibility with older PHP versions, preventing potential errors and ensuring consistent functionality across different server environments.idproduct=x
(where X is the desired product ID) to implement this feature.