Greetings! I am looking for an experienced WordPress/WooCommerce developer for a small but urgent task.
Problem: We are integrating Instagram Shop (Meta). When transitioning from the Instagram shop to the site cart, Meta passes product parameters in its own format: ?products=ID:quantity. Currently, WooCommerce ignores this parameter, and the cart opens empty.
What needs to be done:
It is necessary to implement a handler (hook on init or through a proper redirect) that will intercept parameters from Meta and convert them into the standard WooCommerce format for adding to the cart: ?add-to-cart=ID&quantity=X.
Example logic:
Link from Meta: https://treskare.com/cart-2/?products=18446%3A3
Should transform/redirect to: https://treskare.com/cart-2/?add-to-cart=18446&quantity=3
There is a basic example of code from our specialist (I will provide it in private messages). It needs to be checked, adapted to our site's theme/plugins, and tested to ensure the cart is filled correctly and there are no conflicts with current user sessions or caching plugins.
Requirements for the performer:
Excellent knowledge of PHP, WordPress, WooCommerce API.
Experience with customizing the WooCommerce cart (cart/checkout).
Availability of reviews and successful projects on WordPress.
Mandatory testing: The performer must conduct a functionality check of the code. The new setup should not disrupt the standard ordering process on the site. Directly adding products to the cart from the catalog, changing quantities in the cart itself, and proceeding to Checkout must work without errors.
Security and code isolation: The code must check for the presence of the products parameter and the correctness of the product ID before executing the redirect to avoid causing Fatal errors or redirect loops for regular site visitors.
Work on a test copy (Staging) or backup: Before uploading the code to the "live" site, the performer must demonstrate the script's functionality on a copy of the site OR make a backup of the file being modified.
Conditions for acceptance of work and guarantees:
Payment is made only after a full functionality check of the code on the site.
The project is considered successfully completed only if:
The link from Meta correctly adds the product to the cart.
The standard functionality of the site is NOT disrupted (normal product addition, order processing, payment/shipping plugin functionality works without failures).
If technical errors occur after the code implementation (Fatal error, conflicts with WooCommerce sessions, or order processing fails), the performer is obliged to resolve them within this project at no additional cost.