Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: product commission bulk edit #2464

Merged
merged 6 commits into from
Dec 6, 2024

Conversation

Aunshon
Copy link
Collaborator

@Aunshon Aunshon commented Dec 5, 2024

All Submissions:

  • My code follow the WordPress' coding standards
  • My code satisfies feature requirements
  • My code is tested
  • My code passes the PHPCS tests
  • My code has proper inline documentation
  • I've included related pull request(s) (optional)
  • I've included developer documentation (optional)
  • I've added proper labels to this pull request

Changes proposed in this Pull Request:

Added commission setting in product bulk edit.
image

Closes

How to test the changes in this Pull Request:

  • If the checkbox is not enabled then commission will not be affected.
  • Check all type of products simple, variable, grouped, external, subscription, auction, booking and all other products.
  • make suer we have excluded [ 'product_pack', 'external', 'grouped' ] products these products will not be affected even if the checkbox enabled.
  • Make sure that if any product that we can controll those product can be controlled from bulk edit page.

Changelog entry

- **new:** Added commission setting in wooocmmerce product bulk edit.

PR Self Review Checklist:

  • Code is not following code style guidelines
  • Bad naming: make sure you would understand your code if you read it a few months from now.
  • KISS: Keep it simple, Sweetie (not stupid!).
  • DRY: Don't Repeat Yourself.
  • Code that is not readable: too many nested 'if's are a bad sign.
  • Performance issues
  • Complicated constructions that need refactoring or comments: code should almost always be self-explanatory.
  • Grammar errors.

FOR PR REVIEWER ONLY:

As a reviewer, your feedback should be focused on the idea, not the person. Seek to understand, be respectful, and focus on constructive dialog.

As a contributor, your responsibility is to learn from suggestions and iterate your pull request should it be needed based on feedback. Seek to collaborate and produce the best possible contribution to the greater whole.

  • Correct — Does the change do what it’s supposed to? ie: code 100% fulfilling the requirements?
  • Secure — Would a nefarious party find some way to exploit this change? ie: everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities?
  • Readable — Will your future self be able to understand this change months down the road?
  • Elegant — Does the change fit aesthetically within the overall style and architecture?

Summary by CodeRabbit

  • New Features

    • Introduced bulk editing functionality for managing product commissions, allowing administrators to set commission settings for multiple products at once.
    • Added a new template for the bulk commission settings interface, enhancing user experience during product management.
  • Bug Fixes

    • Improved data handling for saving commission options to ensure accurate processing and flexibility.
  • Documentation

    • Updated inline documentation for better clarity on method parameters and functionality.

@Aunshon Aunshon added Needs: Testing This requires further testing Needs: Dev Review It requires a developer review and approval labels Dec 5, 2024
@Aunshon Aunshon self-assigned this Dec 5, 2024
Copy link
Contributor

coderabbitai bot commented Dec 5, 2024

Walkthrough

The changes in this pull request enhance the functionality of the Hooks class in two main files, introducing new methods for managing product commission settings during bulk editing. In includes/Admin/Hooks.php, two action hooks are added to facilitate the display and saving of commission settings in bulk edits. In includes/Product/Hooks.php, the save_per_product_commission_options method is updated to improve data handling for commission settings. Additionally, a new template file is created to provide a user interface for overriding commission settings during bulk edits.

Changes

File Change Summary
includes/Admin/Hooks.php Added methods add_product_commission_bulk_edit_field and save_custom_bulk_edit_field.
includes/Product/Hooks.php Updated save_per_product_commission_options method to accept an additional parameter $data.
templates/products/dokan-products-edit-bulk-commission.php Introduced a new template for managing bulk product commission settings.

Assessment against linked issues

Objective Addressed Explanation
Add commission setting in WooCommerce product listing bulk edit (#[155])

Possibly related PRs

Suggested labels

Upcoming Release

Suggested reviewers

  • mrabbani
  • shohag121

🐇 "In the fields where the rabbits play,
New hooks and templates come out to stay.
Commissions to manage, oh what a delight,
Bulk edits made easy, all day and night!
With a hop and a skip, we cheer and we sing,
For the joy that these changes will bring!" 🐇


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Outside diff range and nitpick comments (7)
includes/Product/Hooks.php (3)

541-541: Ensure Default Commission Type is Properly Set

The ternary condition can be simplified to ensure Fixed::SOURCE is always used as the default when the commission type is not provided.

Simplify the assignment as follows:

-    $commission_type = ! empty( $data['_per_product_admin_commission_type'] ) ? sanitize_text_field( $data['_per_product_admin_commission_type'] ) : Fixed::SOURCE;
+    $commission_type = isset( $data['_per_product_admin_commission_type'] ) && ! empty( $data['_per_product_admin_commission_type'] )
+        ? sanitize_text_field( $data['_per_product_admin_commission_type'] )
+        : Fixed::SOURCE;

553-554: Use Appropriate Sanitization for Numeric Inputs

Using sanitize_text_field for numeric inputs may not be ideal. Consider using wc_format_decimal directly after ensuring the input is sanitized appropriately.

Refactor as follows:

-    $additional_fee = ( '' === $data['_per_product_admin_additional_fee'] ) ? '' : sanitize_text_field( $data['_per_product_admin_additional_fee'] );
-    $additional_fee = wc_format_decimal( $additional_fee );
+    $additional_fee_input = isset( $data['_per_product_admin_additional_fee'] ) ? $data['_per_product_admin_additional_fee'] : '';
+    $additional_fee = ( '' === $additional_fee_input ) ? '' : wc_format_decimal( $additional_fee_input );

557-564: Check for Successful Saving of Commission Settings

After calling dokan()->product->save_commission_settings(), it's good practice to verify that the settings were saved successfully and handle any errors if needed.

Consider adding error handling:

     dokan()->product->save_commission_settings(
         $post_id,
         [
             'type'       => $commission_type,
             'percentage' => $admin_commission,
             'flat'       => $additional_fee,
         ]
     );
+    // You may want to add logging or error handling here in case saving fails.
templates/products/dokan-products-edit-bulk-commission.php (3)

19-19: Associate Label with Checkbox for Accessibility

The <label> element should be properly associated with the <input> checkbox by adding the for attribute, enhancing accessibility.

Modify the label tag as follows:

-    <input type="checkbox" name="dokan_override_bulk_product_commission" id="dokan_override_bulk_product_commission">
+    <input type="checkbox" name="dokan_override_bulk_product_commission" id="dokan_override_bulk_product_commission">
     </label>

31-31: Add Input Validation for Commission Percentage

The commission percentage input should have validation to ensure values between 0 and 100 are entered.

Add step and max attributes:

 <input class="input-text wc_input_price" min="0" max="100" type="text" name="_per_product_admin_commission" value=""/>
+<input class="input-text wc_input_price" min="0" max="100" step="0.01" type="number" name="_per_product_admin_commission" value=""/>

33-33: Ensure Consistent Input Types

For the additional fee input, consider using type="number" to match the commission percentage input and facilitate numeric input validation.

Modify the input type:

-<input type="text" name="_per_product_admin_additional_fee" class="input-text wc_input_price" value="">
+<input type="number" name="_per_product_admin_additional_fee" class="input-text wc_input_price" value="">
includes/Admin/Hooks.php (1)

253-255: Improve Conditional Logic for Better Readability

The conditional statement can be simplified for clarity by returning early if the product type is excluded.

Refactor the condition:

-    if ( ! current_user_can( 'manage_woocommerce' ) || in_array( $product->get_type(), $excluded_product_types, true ) ) {
+    if ( ! current_user_can( 'manage_woocommerce' ) ) {
+        return;
+    }
+    if ( in_array( $product->get_type(), $excluded_product_types, true ) ) {
         return;
     }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 490a380 and e9452e0.

📒 Files selected for processing (3)
  • includes/Admin/Hooks.php (3 hunks)
  • includes/Product/Hooks.php (3 hunks)
  • templates/products/dokan-products-edit-bulk-commission.php (1 hunks)

Comment on lines +545 to +548
$_per_product_admin_commission = wc_format_decimal( sanitize_text_field( $data['_per_product_admin_commission'] ) );

if ( 0 <= $_per_product_admin_commission && 100 >= $_per_product_admin_commission ) {
$admin_commission = ( '' === $_POST['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission; // phpcs:ignore
$admin_commission = ( '' === $data['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Validate Commission Percentage Input

When processing the commission percentage, consider adding validation to ensure the input is numeric and within the expected range (0 to 100). Currently, non-numeric input could cause unintended behavior.

Add a check to validate the input:

     $_per_product_admin_commission = wc_format_decimal( sanitize_text_field( $data['_per_product_admin_commission'] ) );

+    if ( ! is_numeric( $_per_product_admin_commission ) ) {
+        $_per_product_admin_commission = 0;
+    }

     if ( 0 <= $_per_product_admin_commission && 100 >= $_per_product_admin_commission ) {
         $admin_commission = ( '' === $data['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission;
     }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
$_per_product_admin_commission = wc_format_decimal( sanitize_text_field( $data['_per_product_admin_commission'] ) );
if ( 0 <= $_per_product_admin_commission && 100 >= $_per_product_admin_commission ) {
$admin_commission = ( '' === $_POST['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission; // phpcs:ignore
$admin_commission = ( '' === $data['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission;
$_per_product_admin_commission = wc_format_decimal( sanitize_text_field( $data['_per_product_admin_commission'] ) );
if ( ! is_numeric( $_per_product_admin_commission ) ) {
$_per_product_admin_commission = 0;
}
if ( 0 <= $_per_product_admin_commission && 100 >= $_per_product_admin_commission ) {
$admin_commission = ( '' === $data['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission;

Comment on lines +530 to +535
public static function save_per_product_commission_options( $post_id, $data = [] ) {
if ( ! current_user_can( 'manage_woocommerce' ) ) {
return;
}

$commission_type = '';
$commission_type = Fixed::SOURCE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Refactor to Avoid Direct Access to $_POST and PHPCS Ignore

Accessing $_POST directly is discouraged due to security and code quality concerns. The use of // phpcs:ignore suppresses potential warnings, but it's better to adhere to coding standards.

Consider refactoring to use filter_input_array for better input handling and compliance:

 public static function save_per_product_commission_options( $post_id, $data = [] ) {
     if ( ! current_user_can( 'manage_woocommerce' ) ) {
         return;
     }

-    $data = empty( $data ) ? $_POST : $data; // phpcs:ignore
+    if ( empty( $data ) ) {
+        $data = filter_input_array( INPUT_POST, [
+            '_per_product_admin_commission_type' => FILTER_SANITIZE_STRING,
+            '_per_product_admin_commission'      => FILTER_SANITIZE_STRING,
+            '_per_product_admin_additional_fee'  => FILTER_SANITIZE_STRING,
+        ] );
+    }

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines 257 to 259
if ( ! isset( $_REQUEST['dokan_override_bulk_product_commission'] ) || sanitize_text_field( $_REQUEST['dokan_override_bulk_product_commission'] ) !== 'on' ) { // phpcs:ignore
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add Nonce Verification to Prevent CSRF Attacks

There is no nonce verification when processing bulk edit form data. This can expose the function to Cross-Site Request Forgery (CSRF) attacks.

Implement nonce verification to enhance security:

+    if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( $_REQUEST['_wpnonce'] ), 'bulk_edit_product' ) ) {
+        return;
+    }

     if ( ! isset( $_REQUEST['dokan_override_bulk_product_commission'] ) || sanitize_text_field( $_REQUEST['dokan_override_bulk_product_commission'] ) !== 'on' ) { // phpcs:ignore
         return;
     }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if ( ! isset( $_REQUEST['dokan_override_bulk_product_commission'] ) || sanitize_text_field( $_REQUEST['dokan_override_bulk_product_commission'] ) !== 'on' ) { // phpcs:ignore
return;
}
if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( $_REQUEST['_wpnonce'] ), 'bulk_edit_product' ) ) {
return;
}
if ( ! isset( $_REQUEST['dokan_override_bulk_product_commission'] ) || sanitize_text_field( $_REQUEST['dokan_override_bulk_product_commission'] ) !== 'on' ) { // phpcs:ignore
return;
}

return;
}

ProductHooks::save_per_product_commission_options( $product->get_id(), $_REQUEST ); // phpcs:ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Avoid Direct Use of $_REQUEST and Suppressing PHPCS Warnings

Directly accessing $_REQUEST and ignoring PHPCS warnings is discouraged. Instead, sanitize and validate the input properly without suppressing coding standards.

Refactor to sanitize inputs and adhere to coding standards:

-    ProductHooks::save_per_product_commission_options( $product->get_id(), $_REQUEST ); // phpcs:ignore
+    $sanitized_data = filter_input_array( INPUT_POST, [
+        '_per_product_admin_commission_type'   => FILTER_SANITIZE_STRING,
+        '_per_product_admin_commission'        => FILTER_SANITIZE_STRING,
+        '_per_product_admin_additional_fee'    => FILTER_SANITIZE_STRING,
+    ] );
+    ProductHooks::save_per_product_commission_options( $product->get_id(), $sanitized_data );

Committable suggestion skipped: line range outside the PR's diff.

@shashwatahalder01 shashwatahalder01 added QA In Progress and removed Needs: Testing This requires further testing labels Dec 6, 2024
@mrabbani mrabbani changed the title Enhancement/produt commission buld edit Enhancement: product commission bulk edit Dec 6, 2024
Copy link
Member

@mrabbani mrabbani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text of checkbox may need to be changed.

@mrabbani mrabbani added 👍 Dev Review Done and removed Needs: Dev Review It requires a developer review and approval labels Dec 6, 2024
@shashwatahalder01
Copy link
Contributor

Scenario:
Product Advertisement Payment and Reverse Withdrawal Payment products should also be excluded from bulk edit commission.

Screenshot at Dec 06 11-17-38

@Aunshon
Copy link
Collaborator Author

Aunshon commented Dec 6, 2024

Text of checkbox may need to be changed.

@jamil-mahmud vai please check this out.

@imtiaz-pranto
Copy link

Text of checkbox may need to be changed.

Instead of the checkbox, a dropdown will be more appropriate for this scenario to maintain consistency with other edit fields.
image

CC: @jamil-mahmud @mrabbani

Skip reverse withdrawal and advertisement product id
Skip reverse withdrawal and advertisement product id
@shashwatahalder01 shashwatahalder01 added QA approved This PR is approved by the QA team and removed QA In Progress labels Dec 6, 2024
@Aunshon Aunshon merged commit 608d126 into develop Dec 6, 2024
1 check passed
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (1)
includes/Product/Hooks.php (1)

535-541: Consider making commission type configurable

The commission type is hardcoded to Fixed::SOURCE. This might limit flexibility if other commission types need to be supported in the future.

-    $commission_type  = Fixed::SOURCE;
+    $commission_type  = apply_filters( 'dokan_product_commission_type_default', Fixed::SOURCE );
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 6917eb8 and 834a9b3.

📒 Files selected for processing (1)
  • includes/Product/Hooks.php (2 hunks)
🔇 Additional comments (3)
includes/Product/Hooks.php (3)

557-564: LGTM! Well-structured commission settings

The commission settings are saved in a clean and organized manner using the appropriate Dokan method.


530-538: ⚠️ Potential issue

Improve input data handling and validation

The direct use of $_POST superglobal should be avoided. Consider using WordPress or WooCommerce functions for safer input handling.

-    $data             = empty( $data ) ? $_POST : $data; // phpcs:ignore
+    if ( empty( $data ) ) {
+        $data = array(
+            '_per_product_admin_commission_type' => isset( $_POST['_per_product_admin_commission_type'] ) ? sanitize_text_field( wp_unslash( $_POST['_per_product_admin_commission_type'] ) ) : '',
+            '_per_product_admin_commission'      => isset( $_POST['_per_product_admin_commission'] ) ? sanitize_text_field( wp_unslash( $_POST['_per_product_admin_commission'] ) ) : '',
+            '_per_product_admin_additional_fee'  => isset( $_POST['_per_product_admin_additional_fee'] ) ? sanitize_text_field( wp_unslash( $_POST['_per_product_admin_additional_fee'] ) ) : '',
+        );
+    }

544-548: ⚠️ Potential issue

Enhance commission percentage validation

The code validates the range but should also ensure numeric input to prevent potential issues.

     if ( isset( $data['_per_product_admin_commission'] ) ) {
         $_per_product_admin_commission = wc_format_decimal( sanitize_text_field( $data['_per_product_admin_commission'] ) );
 
+        if ( ! is_numeric( $_per_product_admin_commission ) ) {
+            return;
+        }
+
         if ( 0 <= $_per_product_admin_commission && 100 >= $_per_product_admin_commission ) {
             $admin_commission = ( '' === $data['_per_product_admin_commission'] ) ? '' : $_per_product_admin_commission;
         }

Likely invalid or redundant comment.

Comment on lines +552 to +554
if ( isset( $data['_per_product_admin_additional_fee'] ) ) {
$additional_fee = ( '' === $data['_per_product_admin_additional_fee'] ) ? '' : sanitize_text_field( $data['_per_product_admin_additional_fee'] );
$additional_fee = wc_format_decimal( $additional_fee );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add validation for additional fee

The additional fee should be validated to prevent negative values.

     if ( isset( $data['_per_product_admin_additional_fee'] ) ) {
         $additional_fee = ( '' === $data['_per_product_admin_additional_fee'] ) ? '' : sanitize_text_field( $data['_per_product_admin_additional_fee'] );
         $additional_fee = wc_format_decimal( $additional_fee );
+        if ( $additional_fee < 0 ) {
+            $additional_fee = 0;
+        }
     }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if ( isset( $data['_per_product_admin_additional_fee'] ) ) {
$additional_fee = ( '' === $data['_per_product_admin_additional_fee'] ) ? '' : sanitize_text_field( $data['_per_product_admin_additional_fee'] );
$additional_fee = wc_format_decimal( $additional_fee );
if ( isset( $data['_per_product_admin_additional_fee'] ) ) {
$additional_fee = ( '' === $data['_per_product_admin_additional_fee'] ) ? '' : sanitize_text_field( $data['_per_product_admin_additional_fee'] );
$additional_fee = wc_format_decimal( $additional_fee );
if ( $additional_fee < 0 ) {
$additional_fee = 0;
}

@coderabbitai coderabbitai bot mentioned this pull request Dec 7, 2024
12 tasks
shashwatahalder01 added a commit to shashwatahalder01/dokan that referenced this pull request Dec 7, 2024
* chore: bump version to 3.14.0

* Add geolocation map tests

* Update feature map

* fix coverage map

* Auction tests (getdokan#2452)

* Add a test

* Update feature map

* Fix lint issue

* change filename temporary

* Revert filename to original

* Fix notice test

* Fix commission test

* Add new tests to featuremap (getdokan#2453)

* Add new tests to feature map

* Add new tests to featuremap

* Skip shipstation tests

* Add notice for version compatibility. (getdokan#2450)

* Add notice for version compatibility.

* Added dokan pro update message.

* Added dokan pro update message.

* Added dokan pro update message.

* fix: plugin version after activation (getdokan#2447)

* chore: bump version to 3.14.0

* chore: Released Version 3.14.0

* Fix commission upgrader (getdokan#2463)

* Fix commission upgrader

* Add database backup message in upgrade.

* chore: Released Version 3.14.1

* Fix skipped product tests (getdokan#2457)

* Fix and update skipped product tests

* Update a variable

* Add store list & reviews test (getdokan#2460)

* Fix skipped store tests

* Add store reviews tests

* Update comment

* skipped a test

* Enhancement: product commission bulk edit (getdokan#2464)

* Remove $commission_type variable it was not used

* Save fixed as default commission type

* Save bulk product commission.

* Update bulk edit ui
Skip reverse withdrawal and advertisement product id

* Update bulk edit ui
Skip reverse withdrawal and advertisement product id

* Revert alignment

* chore: bump version to v3.14.2

* Add Commission tests (getdokan#2471)

* add new commission tests

* Add commission tests

* Add vendor coupon tests (getdokan#2470)

* Add vendor coupon tests

* Update test tags

---------

Co-authored-by: Aunshon <[email protected]>
Co-authored-by: Aunshon <[email protected]>
Co-authored-by: KAMRUZZAMAN <[email protected]>
shashwatahalder01 added a commit to shashwatahalder01/dokan that referenced this pull request Dec 7, 2024
* chore: bump version to 3.14.0

* Add dokan tracking tests

* Add commission meta box test

* Update feature map

* Update config file

* Update feature map

* Add vendor filters test

* Add a shortcode test

* Fix commission tests

* Add geolocation tests

* Auction tests (getdokan#2452)

* Add a test

* Update feature map

* Fix lint issue

* change filename temporary

* Revert filename to original

* Fix notice test

* Fix commission test

* Add new tests to featuremap (getdokan#2453)

* Add new tests to feature map

* Add new tests to featuremap

* Skip shipstation tests

* Add notice for version compatibility. (getdokan#2450)

* Add notice for version compatibility.

* Added dokan pro update message.

* Added dokan pro update message.

* Added dokan pro update message.

* fix: plugin version after activation (getdokan#2447)

* chore: bump version to 3.14.0

* chore: Released Version 3.14.0

* Fix commission upgrader (getdokan#2463)

* Fix commission upgrader

* Add database backup message in upgrade.

* chore: Released Version 3.14.1

* Fix skipped product tests (getdokan#2457)

* Fix and update skipped product tests

* Update a variable

* Add store list & reviews test (getdokan#2460)

* Fix skipped store tests

* Add store reviews tests

* Update comment

* skipped a test

* Enhancement: product commission bulk edit (getdokan#2464)

* Remove $commission_type variable it was not used

* Save fixed as default commission type

* Save bulk product commission.

* Update bulk edit ui
Skip reverse withdrawal and advertisement product id

* Update bulk edit ui
Skip reverse withdrawal and advertisement product id

* Revert alignment

* chore: bump version to v3.14.2

* Add Commission tests (getdokan#2471)

* add new commission tests

* Add commission tests

* Add vendor coupon tests (getdokan#2470)

* Add vendor coupon tests

* Update test tags

---------

Co-authored-by: Aunshon <[email protected]>
Co-authored-by: Aunshon <[email protected]>
Co-authored-by: KAMRUZZAMAN <[email protected]>
shashwatahalder01 added a commit to shashwatahalder01/dokan that referenced this pull request Dec 7, 2024
* Add booking product details test

* Add booking product tests

* Fix mix-max flaky issue

* Update product name & id reference

* update tags test

* chore: bump version to 3.14.0

* Fix failed tests

* Fix flaky tests

* Fix commission tests

* Update commission test logic

* Add new tests & update feature map

* Auction tests (getdokan#2452)

* Add a test

* Update feature map

* Fix lint issue

* change filename temporary

* Revert filename to original

* Fix notice test

* Fix commission test

* Add new tests to featuremap (getdokan#2453)

* Add new tests to feature map

* Add new tests to featuremap

* Skip shipstation tests

* Add notice for version compatibility. (getdokan#2450)

* Add notice for version compatibility.

* Added dokan pro update message.

* Added dokan pro update message.

* Added dokan pro update message.

* fix: plugin version after activation (getdokan#2447)

* chore: bump version to 3.14.0

* chore: Released Version 3.14.0

* Fix commission upgrader (getdokan#2463)

* Fix commission upgrader

* Add database backup message in upgrade.

* chore: Released Version 3.14.1

* Fix skipped product tests (getdokan#2457)

* Fix and update skipped product tests

* Update a variable

* Add store list & reviews test (getdokan#2460)

* Fix skipped store tests

* Add store reviews tests

* Update comment

* skipped a test

* Enhancement: product commission bulk edit (getdokan#2464)

* Remove $commission_type variable it was not used

* Save fixed as default commission type

* Save bulk product commission.

* Update bulk edit ui
Skip reverse withdrawal and advertisement product id

* Update bulk edit ui
Skip reverse withdrawal and advertisement product id

* Revert alignment

* chore: bump version to v3.14.2

* Add changes

* Add Commission tests (getdokan#2471)

* add new commission tests

* Add commission tests

* Add vendor coupon tests (getdokan#2470)

* Add vendor coupon tests

* Update test tags

---------

Co-authored-by: Aunshon <[email protected]>
Co-authored-by: Aunshon <[email protected]>
Co-authored-by: KAMRUZZAMAN <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA approved This PR is approved by the QA team 👍 Dev Review Done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants