• Resolved wp theme

    (@poiulkjh2)


    Hello, I plan to use this plugin in my WordPress theme.
    Am I allowed to edit plugin codes?
    Can I change the plugin name like this: theme-name-wishsuite
    All your sources and links will remain in the plugin and I will not delete them

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Tarek Aziz

    (@tarekht)

    Hello @poiulkjh2

    Thank you very much for reaching out to us ??

    I am sorry to say that you are NOT allowed to use our plugin by changing its name.

    We request you to make our plugin required or recommended for your theme via TGM.

    If you want to make any modifications to the table and button, our plugin allows template overriding as well as using filters. You can use either one of them.

    Hope this helps!

    Best regards,
    Tarek

    Thread Starter wp theme

    (@poiulkjh2)

    Thank you for your answer
    I had another question
    How can I change the templates?
    For example, I want to change the content of the templates/wishsuite-button-add.php file.

    Thread Starter wp theme

    (@poiulkjh2)

    If possible, please help me to change the content of the following function:
    function wishsuite_icon_list( $key = ” ){

    Plugin Contributor Tarek Aziz

    (@tarekht)

    Hi @poiulkjh2

    Good morning from here ??

    The pleasure is all mine.

    You can change the wishsuite-button-add.php template file by keeping it inside the theme directory like the following:

    themes/your-themename/wishsuite-button-add.php

    Also, you can change the template by following the convention of WooCommerce template overriding. In that case, you need to place the template in the following directory:

    themes/your-themename/woocommerce/wishsuite-button-add.php

    Here is a screenshot of the template:

    https://ibb.co/BPXSYL5

    If you want to change anything related to icons or buttons, you can do so using the following filter:

    wishsuite_button_arg

    Hope this helps!

    Kind regards,
    Tarek Aziz

    Thread Starter wp theme

    (@poiulkjh2)

    Thank you very much for your help.
    You solved a big problem for me
    I hope you are always updated

    Thread Starter wp theme

    (@poiulkjh2)

    It worked fine for template.
    I didn’t get it right about the filter. For example, how to filter the following function:
    public function add_to_cart_html( $product, $quantity ) {
    In this function, I want add_to_cart_button to be deleted

    Plugin Contributor Tarek Aziz

    (@tarekht)

    Hello @poiulkjh2

    It’s a great pleasure for us that we were able to help ??

    You can rest assured that we’ll keep improving the plugin with continuous updates from time to time.

    About filtering the function:

    Could you elaborate a little more on whether you want to delete the add_to_cart_button from the wishlist table?

    If yes, then you can override the corresponding template for the wishlist-table.

    Alternatively, you can simply uncheck the option shown in the screenshot below:

    https://i.imgur.com/Znltd5d.png

    But, if you want to keep this option unchecked by default, you can do so using the following filter:

    wishsuite_default_fields

    Hope this helps!

    Kind regards,
    Tarek

    Thread Starter wp theme

    (@poiulkjh2)

    No, I just want the class to be removed from the button.
    Example: Currently it is:
    class=”wishsuite-addtocart button product_type_simple add_to_cart_button ajax_add_to_cart”
    I want it to be:
    class=”wishsuite-addtocart button product_type_simple ajax_add_to_cart”

    Plugin Contributor Tarek Aziz

    (@tarekht)

    Hello @poiulkjh2

    Thanks a lot for your prompt response ??

    The class you are referring to is actually required as per the WooCommerce convention, so I am afraid it is not possible to remove the class.

    Regards,
    Tarek

    Thread Starter wp theme

    (@poiulkjh2)

    Thank you for your guidance

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permission to edit the plugin’ is closed to new replies.