not working with wordfence plugin
-
I have used wordfence security plugin.
When I run api on postman it’s not working – only loading
if disable wordfence plugin then it’s working
-
While I do find Wordfence makes the REST API a lot slower active, I still have the use of CoCart when testing in Postman.
Can you share any specific data while Wordfence plugin is active that could be helpful to understand what is happening?
OK the response was slower because Wordfence was still doing it’s initial scan in the background. Response times are back to normal and no issues using CoCart in Postman.
Perhaps you have a configuration applied that is being to hard on CoCart?
For now I disable wordfence plugin.
But I have other issue when add to cart API
I have used this API for create custom add ons
https://woocommerce.com/products/product-add-ons/
But its not working
can you please helpIf I am tried to add website make like this
for your easy understand{ "item_key": "7bb2c792f2014264ce271ecaec931d5f", "id": 8247, "name": "Ayanda's straight highlight - 18inches", "title": "Ayanda's straight highlight", "price": "4800", "quantity": { "value": 1, "min_purchase": 1, "max_purchase": -1 }, "totals": { "subtotal": "4800", "subtotal_tax": 0, "total": 4800, "tax": 0 }, "slug": "ayandas-straight-highlight", "meta": { "product_type": "variation", "sku": "SPH_563468244-02", "dimensions": { "length": "", "width": "", "height": "", "unit": "cm" }, "weight": 0, "variation": { "Inches": "18inches" } }, "backorders": "", "cart_item_data": { "addons": [ { "name": "Customization", "value": "Customized Hair", "price": 300, "field_name": "8244-customization-0", "field_type": "multiple_choice", "price_type": "flat_fee" }, { "name": "Density", "value": "150%", "price": 500, "field_name": "8244-density-1", "field_type": "multiple_choice", "price_type": "flat_fee" }, { "name": "Cap Size", "value": "Medium size", "price": 300, "field_name": "8244-cap-size-2", "field_type": "multiple_choice", "price_type": "flat_fee" } ], "addons_price_before_calc": 3700, "addons_regular_price_before_calc": 3700 }, "featured_image": "https://sarhaphairline.com/wp-content/uploads/2022/09/IMG_8376-430x538.jpg" },Please help me add for addons
Please try to keep the ticket on the issue you requested support for so we can keep track of it.
As for product add-ons I don’t know how to support it with CoCart just yet. Still got a lot of improvements in the works to support more plugins including add-ons.
If you manage to figure it out please don’t hesitate to create a new ticket demonstrating with a code example.
Thank you.
The topic ‘not working with wordfence plugin’ is closed to new replies.