- Issue created by @jonathandealmeida
I encountered this issue after adding a product variation to the cart, it happens when redirecting to see the product variant details, for example /shopify/redirect?variant_id=00000000000000, the following error appears in the URL in question and in the Recent log messages Argument #1 ($url) must be of type string, Drupal\Core\Url given, called in shopify/src/Controller/ShopifyRedirect.php on line 30 in Symfony\Component\HttpFoundation\RedirectResponse->__construct().
Any version of Drupal.
1. Install module
2. Configure and install the module with Shopify
3. View a product that has options (variants)
4. Add the product variation to the cart.
5. Click to view product variation details
5. An error will be displayed or Check Recent log messages
The proposed solution is to call the toString() function after calling the toUrl() function to transform the Drupal\Core\Url class object into a string with the url.
Active
1.0
Code