pujithamutyala
Forum Replies Created
-
When the cookies are not sent, this means that it is a new session/user. Therefore new cart token must be generated. Is this not the correct behaviour?
Also in what scenario is a new cart token created? Can you point out the source code in WooCommerce which generates the cart token?
- This reply was modified 4 months, 4 weeks ago by pujithamutyala.
Changing the Authroization header in the Simple JWT Plugin settings worked successfully. Thank you for the quick response.
Hi Eivin, I get the below error when I try to open an order with Dropp shipping Options in Word Press Woocommerce Admin page. Does this mean Social Security Number is mandatory while creating an order with Dropp?
Error Details
=============
An error of type E_ERROR was caused in line 62 of the file /srv/htdocs/wp-content/plugins/dropp-for-woocommerce/classes/models/class-dropp-customer.php. Error message: Uncaught TypeError: Cannot assign null to property Dropp\Models\Dropp_Customer::$social_security_number of type string in /srv/htdocs/wp-content/plugins/dropp-for-woocommerce/classes/models/class-dropp-customer.php:62
Stack trace:
#0 /srv/htdocs/wp-content/plugins/dropp-for-woocommerce/classes/models/class-dropp-consignment.php(148): Dropp\Models\Dropp_Customer->fill(Array)
#1 /srv/htdocs/wp-content/plugins/dropp-for-woocommerce/classes/models/class-dropp-consignment.php(588): Dropp\Models\Dropp_Consignment->fill(Array)
#2 /srv/htdocs/wp-content/plugins/dropp-for-woocommerce/classes/actions/class-convert-dropp-order-ids-to-consignments-action.php(49): Dropp\Models\Dropp_Consignment::remote_find(652, ‘1d99a458-ec2c-4…’)
#3 /srv/htdocs/wp-content/plugins/dropp-for-woocommerce/classes/class-shipping-meta-box.php(115): Dropp\Actions\Convert_Dropp_Order_Ids_To_Consignments_Action->handle()
#4 /wordpress/core/6.4.3/wp-includes/class-wp-hook.php(324): Dropp\Shipping_Meta_Box::admin_enqueue_scripts(‘post.php’)
#5 /wordpress/core/6.4.3/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#6 /wordpress/core/6.4.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /wordpress/core/6.4.3/wp-admin/admin-header.php(118): do_action(‘admin_enqueue_s…’, ‘post.php’)
#8 /wordpress/core/6.4.3/wp-admin/edit-form-advanced.php(425): require_once(‘/wordpress/core…’)
#9 /wordpress/core/6.4.3/wp-admin/post.php(206): require(‘/wordpress/core…’)
#10 {main}
thrownThis is very helpful. Thank you so much. Is there any timeline when this version of the plugin will be released ?
- This reply was modified 7 months, 2 weeks ago by pujithamutyala.
Is there any way to do it using WooCommerce Rest API?
But if Woocommerce sanitizes the slugs, it should be the same in both product endpoint and product variations endpoint. Why is there a difference?
In the products endpoint, the attribute name is “attribute_malae?” which is not correct.
GET https://stokkur.wpcomstaging.com/wp-json/cocart/v1/products/406
Response Snippet:
"attributes": { "attribute_malae?": { "id": 0, "name": "Malae?", "position": 0, "is_attribute_visible": true, "used_for_variation": true, "options": [ "Nei - Baunir", "Já - Filter", "Já - Mokkakanna", "Já - Pressukanna", "Já - Aeropress", "Já - Espresso" ] }
Thank you. Can you please update this topic once this is fixed?
Hi @doublezed2,
Yes. We are getting this error with only “IS” as country code. Other country codes work as expected and able to create an order successfully.
Please find the link to system report : https://gist.github.com/pujithamutyala/f8b5228f61e276d5b6354212c587cbda
Thanks & Regards,
Pujitha
Hi, The mentioned document link does not have the error code which I am talking about. I get a 500 “internal_server_error” when I am trying to create an order with country as “IS”.
POST?https://stokkur.wpcomstaging.com/wp-json/wc/v3/orders?consumer_key=xxxx&consumer_secret=xxxx
Sample Request :
{ "customer_id": 194470358, "customer_note": "Beware of aggresive dogs", "payment_method": "google", "payment_method_title": "Google Pay Payment", "set_paid": false, "billing": { "first_name": "Pujitha", "last_name": "M", "address_1": "Stokkur Software", "address_2": "Borgatun", "city": "Reykjavik", "state": "", "postcode": "105", "country": "IS", "email": "[email protected]", "phone": "6550601" }, "shipping": { "first_name": "Pujitha", "last_name": "M", "address_1": "Stokkur Software", "address_2": "Borgatun", "city": "Reykjavik", "state": "", "postcode": "105", "country": "IS" }, "line_items": [ { "product_id": 388, "quantity": 1 } ], "shipping_lines": [ ] }
Response : { "code": "internal_server_error", "message": "<p>There has been a critical error on this website.</p><p><a href=\"https://www.ads-software.com/documentation/article/faq-troubleshooting/\">Learn more about troubleshooting WordPress.</a></p>", "data": { "status": 500 }, "additional_errors": [] }
We are not seeing this error on the website. We see this error only when we run the REST API to create an order with country as “IS”. We use the below WooCommerce document : https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order
Yes. I am using a valid sharekey in the URL of the request. I always get the shareKey from your endpoint : /wp-json/wc/v3/wishlist/get_by_user/:userId and use the same shareKey value.
And yes, adding the product to the same wishlist works from frontend but not using the rest api.
- Yes. I am using a valid WooCommerce product id. For eg., in the request mentioned above product id is “297”. This is the same product id which is configured in WooCommerce Admin.
- I get this error even if I try to add product to empty wishlist.
- This reply was modified 1 year, 3 months ago by pujithamutyala.