• Resolved wayofmusic

    (@wayofmusic)


    How can I add a product type in the plugin (rental product)

    Here you can see the simple product where we can use it normally https://prnt.sc/qeyvVGHBAcaP

    and here you can see our custom product (rental) https://prnt.sc/YjeQe5Yiu-xt where we cant use your plugin..

    and a information you need, is that you custom product (rental) is programmed on woocommerce standard and is nothing spectacular

    thank you for your fast help

    Greetings

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Softound Solutions

    (@softound)

    We will check and get back to you soon.

    Plugin Author Softound Solutions

    (@softound)

    Could you please provide us with the name of the rental product plugin you’re currently using in your WooCommerce store?

    Thread Starter wayofmusic

    (@wayofmusic)

    Das ist ein Custom Plug-In und hei?t “Way of Music”, w?re es nicht m?glich uns zu zeigen wo wir im code eures Plugins einfach den Produkttypen “Rental Product” hinzuzufügen ?

    Wir haben das gleiche Problem bereits mit dem “BEAR Bulk Editing” Plugin gehabt, das wir unsere “Rental Products” nicht bearbeiten konnten und der Support von dort hat uns im Code gezeigt wo wir weitere Produkte hinzufügen kann damit das funktioniert.

    Plugin Author Softound Solutions

    (@softound)

    Please send the message in English.

    Thread Starter wayofmusic

    (@wayofmusic)

    This is a custom plug-in called ‘Way of Music’, would it be possible for you to show us where in the code of your plug-in we can simply add the product type ‘Rental Product’?

    We’ve had the same issue with the ‘BEAR Bulk Editing’ plug-in, where we couldn’t edit our ‘Rental Products’, and their support showed us in the code where we can add additional products to make it work.

    Plugin Author Softound Solutions

    (@softound)

    Hi,

    You need to make modifications in three places to enable custom stock status for rental products:

    • woo-custom-stock-status/includes/class-wc-stock-product.php:
      • Inside the woo_add_simple_product_stock_status function, include the class show_if_rental to display the stock status tab on the rental product page.
      • Add the following code within the constructor function to save the custom stock status of rental products to the database:
        add_action( ‘woocommerce_process_product_meta_rental’, array( $this, ‘save_stock_status_message’ ) );
    • woo-custom-stock-status/includes/class-wc-stock-base.php:
      • Within the woo_rename_stock_status function, include the “rental” product type in the if condition to display the custom stock status on the frontend.

    By making these modifications, you’ll seamlessly integrate the custom stock status feature into your rental product system.
    Reference images are attached below for further assistance.

    https://drive.google.com/file/d/1wJPAAOqvlesYtI2d0HnG4c0bXwBI0ZaB/view?usp=drivesdk
    https://drive.google.com/file/d/1g8Pd6oV1aJ43NL5NXPhZ8ALVetsd_b6q/view?usp=drivesdk
    https://drive.google.com/file/d/1yi9NTzJl7twuAPsTru64vH31Ten7QIt6/view?usp=drivesdk

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Product Typ (Rental) cant write a custom stock status’ is closed to new replies.