Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Hassan Hossinie

    (@onlinerir)

    Hello

    Yes, we will add more options and features in the next versions.

    Thanks for using

    Plugin Author Hassan Hossinie

    (@onlinerir)

    Hello

    I tested the plugin completely.

    But I did not see this problem. Is your Dokan the latest version?

    The plugin has been updated according to the new changes of the Dokan Plugin.

    Let me know if your problem is solved

    Thread Starter Hassan Hossinie

    (@onlinerir)

    I do not have access to controls docs
    controls docs is not found:
    https://developers.elementor.com/docs/control-classes/

    please report to elementor team for solve bug

    Thread Starter Hassan Hossinie

    (@onlinerir)

    Hello

    Yes, it still has a problem
    Because when receiving orders, the seller’s ID is not set.

            $args = [
                'status'      => $request['status'],
                'order_date'  => $request['order_date'],
                'limit'       => $request['per_page'],
                'paged'       => isset( $request['page'] ) ? absint( $request['page'] ) : 1,
                'customer_id' => $request['customer_id'],
            ];
    
            $orders = dokan()->order->all( $args );

    dokan-lite/includes/REST/OrderController.php
    Line 420

    I put it like this and it was fixed

            $args = [
                'status'      => $request['status'],
                'order_date'  => $request['order_date'],
                'limit'       => $request['per_page'],
                'paged'       => isset( $request['page'] ) ? absint( $request['page'] ) : 1,
                'customer_id' => $request['customer_id'],
    	    'seller_id'   => get_current_user_id(), // <= Seller ID
            ];
    Thread Starter Hassan Hossinie

    (@onlinerir)

    So please explain more about this in last version:
    new: Dokan admin setting repeatable field added 2 new options must-use and desc

    Thread Starter Hassan Hossinie

    (@onlinerir)

    I am developing on localhost

    This is the actual result of receiving all requests withdraws:

    [
      {
        "id": 1,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 100000,
        "created": "2021-05-04T20:07:31",
        "status": "cancelled",
        "method": "paypal",
        "method_title": "PayPal",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/1"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 2,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 100000,
        "created": "2021-05-04T20:11:29",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/2"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 3,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 100000,
        "created": "2021-05-07T19:09:58",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "?? ????? ?????? 123456789 ?????? ??",
        "ip": "192.168.1.42",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/3"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 4,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:01:29",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/4"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 5,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:06",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/5"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 6,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:33",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/6"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 7,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:36",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/7"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 8,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:39",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/8"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 9,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T19:41:30",
        "status": "cancelled",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/9"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 10,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "[email protected]",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "https://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "https://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 586,
        "created": "2021-05-08T19:42:02",
        "status": "cancelled",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw/10"
            }
          ],
          "collection": [
            {
              "href": "https://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      }
    ]

    I want to be sort on the latest.
    But now the order of the show is based on the oldest.

    Thread Starter Hassan Hossinie

    (@onlinerir)

    i want when product deleted , it moved to trash

    but now deleted permamently

    Thread Starter Hassan Hossinie

    (@onlinerir)

    Hello

    I am a professional developer And this solution of yours does not work for me

    I also changed the code in this file:
    wp-content\plugins\dokan-lite\includes\Dashboard\Templates\Products.php
    line:
    520
    this code:
    dokan()->product->delete( $product_id, true );
    changed:
    dokan()->product->delete( $product_id, false );

    But still the product is completely erased.

    Thread Starter Hassan Hossinie

    (@onlinerir)

    Hello again

    request url: https://localhost/wp-json/dokan/v1/products/20 ==> product ID

    return in post man:

    {
        "code": "dokan_rest_product_invalid_id",
        "message": "Sorry, you have no permission to do this. Since it's not your product.",
        "data": {
            "status": 400
        }
    }

    wp-content\plugins\dokan-lite\includes\REST\ProductController.php
    Line: 351 and 325 for Delete Product

    Thread Starter Hassan Hossinie

    (@onlinerir)

    ???? ? ??? ???? ????

    ????? ?? ??? ???? ?? ??? ???? ?? ???? 4.0.3

    ???????? ??? ??? ?????

    Thread Starter Hassan Hossinie

    (@onlinerir)

    Thank you very much everyone

    Thread Starter Hassan Hossinie

    (@onlinerir)

    Thank you

    Thread Starter Hassan Hossinie

    (@onlinerir)

    Thread Starter Hassan Hossinie

    (@onlinerir)

    I do not wanna edit the core js plugin directly

    Thread Starter Hassan Hossinie

    (@onlinerir)

    thanks

    But I do not know how to work with vue.js
    how to customise getPaymentDetails
    Please help me.

Viewing 15 replies - 1 through 15 (of 18 total)