• Resolved ianbooth

    (@ianbooth)


    Hi there.

    Great plugin, it’s nearly working very well.

    An issue I have is that when a user creates a new campaign, the product is a “simple product” and therefore no details are appearing. We need to manually change the product type.

    Is it possible to make a campaign “product” to be the “crowdfunding” products type by default?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello @ianbooth

    Please use this hook:

    add_action( 'admin_footer', 'product_type_selector_filter_callback' );
    function product_type_selector_filter_callback() {
        global $pagenow, $post_type;
    
        if( $pagenow === 'post-new.php' && $post_type === 'product' ) :
        ?>
        <script>
        jQuery(function($){
            $('select#product-type').val('crowdfunding');
        });
        </script>
        <?php
        endif;
    }

    Kind Regards.

    Thread Starter ianbooth

    (@ianbooth)

    Thanks for the reply.

    Unfortunately, this doesn’t make the default product type “crowdfunding”

    Hello @ianbooth

    It’s working for me. Where do you add this code?

    Kind Regards.

    Thread Starter ianbooth

    (@ianbooth)

    We added this to the functions.php in child theme. After a tweak, it will make new products a “crowdfunding” type by default, but only if I create a Woo product the traditional way (as admin) but not as a user creating their crowding funding campaign through the front end interface

    Plugin Support Parag Das

    (@parag44)

    Hi @ianbooth

    I have checked & seen that product data is crowdfunding by default when users create a campaign from the frontend. Can you please uninstall/delete the plugin and install it again? It should work fine.

    Kind Regards.

    Thread Starter ianbooth

    (@ianbooth)

    Hi Parag.

    I am about to rebuild on the production site now, so hopeful this issue will be resolved.

    Thanks

    Thread Starter ianbooth

    (@ianbooth)

    I find the issue does not happen when we require a review (i.e. a user submission goes to ‘pending review’) however when we allow it to publish straight away it is a ‘simple product’

    I hope this helps? It’s quite frustrating, because otherwise, things are great

    • This reply was modified 3 years, 2 months ago by ianbooth.
    Plugin Support Parag Das

    (@parag44)

    Hi @ianbooth

    I would request you to email support at themeum dot com for further investigation.

    Surely, we will try to resolve your issue. We appreciate your patient and cooperation.

    Regards

    Thread Starter ianbooth

    (@ianbooth)

    Ok, I will. Thank you.

    Thread Starter ianbooth

    (@ianbooth)

    It seems it was a caching plugin issue.

    Thanks for the support

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Default Product Type (not Crowdfunding)’ is closed to new replies.