ResolvedProblem with Codecanyon plugin “BEAR”

Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #30974
    roberto
    Participant

    Hello.
    We are a communications agency and have always used the following plugin for product management (purchased on Envato Codecanyon).

    A very strange thing happens in the plugin editor: if I activate the “BabyStreet” theme, the name of the variations is not shown (See ATTACHMENT 1) When using a different theme, everything works correctly (See ATTACHMENT 2).

    I am also attaching the screenshot of the Code view. I think it’s a PHP problem, because opening Admin Page generated HTML code is different (See ATTACHMENT 2 and 3).
    Maybe there is something that “removes” strings for variations. (example: “- 3 MESI <small>[taglia]</small>”) ​

    Attachments:

    ATTACHMENT 1 > https://snipboard.io/eqNkz0.jpg BEAR plugin using BABY themes
    ATTACHMENT 2 > https://snipboard.io/xVqQAh.jpg BEAR plugin using OTHERS theme
    ATTACHMENT 3 > https://snipboard.io/CqP5EW.jpg BEAR plugin using BABY theme (code view)
    ATTACHMENT 4 > https://snipboard.io/NGlSk0.jpg BEAR plugin using OTHERS theme (code view)

    Could be this fixed? Thanks so much.

    #30985
    Althemist
    Keymaster

    Hi roberto,

    Can’t really tell what could be the reason, as we don’t know that plugin. Actually we searched for BEAR plugin on CodeCanyon and couldn’t find it, so we don’t even know what that plugin does.

    The only thing I can think of is that you are may be using our custom attribute types (label, color, image), but can’t be sure if this is the reason. Most probably your plugin was made to work with the default attributes only (select dropdown)

    #30992
    roberto
    Participant

    Hello, this is BEAR plugin (bought on Codecanyon): https://codecanyon.net/item/woobe-woocommerce-bulk-editor-professional/21779835.

    Our license on this plugin has Expired. Could you contact them or take a look to plugin’s code?
    Thanks in advance.

    #30996
    Althemist
    Keymaster

    I am afraid we can’t purchase every third-party plugin to test.

    Did you check the attribute types? Are they set as standard WooCommerce attributes or swatch attributes (color, label, image)?

    #30997
    roberto
    Participant

    Yes, I’m using Label and Color attributes.
    I’m not having problems with different themes.

    Can you tell me if there’s something in your theme code that “hides” variation/attribute name?

    Thanks in advance.

    #31017
    Althemist
    Keymaster

    No, there is nothing that hides the attribute name, but as I alredy explained, it’s possible that the BEAR plugin can only work with standard attributes (select). Most probably the reason is you are using custom attributes (Label and Color)

    #31023
    roberto
    Participant

    As you can see here (https://snipboard.io/ZwVWdk.jpg) We are using standard SELECT ATTRIBUTE.

    As I told you, I’we problems with you theme only.

    Thanks.

    #31044
    Althemist
    Keymaster

    Hi roberto,

    I’ll ask our lead developer Alex to step in and help if possible. He’ll be in touch soon.

    If you can provide a copy of the plugin and temporary admin access to your site, it would be much easier to tell what could be wrong.

    #31048
    roberto
    Participant
    This reply has been marked as private.
    #31051
    Alex
    Keymaster

    Hello Roberto,

    Thanks for the details.

    Babystreet theme changes how variation product’s title appear in the cart. The default way is to have the attributes appended to the title, like: “Giraffe Night Lamp – Small, Orange”, with the theme’s change we have the attributes shown below the title. But this change is also causing the BEAR plugin to not show this attributes.

    So the solution is to add following code to your child theme, but you should know that titles in the cart will be shown in it’s default state.
    remove_filter('woocommerce_product_variation_title_include_attributes', '__return_false');

    Regards,
    Alex

    #31055
    roberto
    Participant

    Hello, Alex.
    Thanks for reply.

    Just added this code to Child Theme, but nothing seems to change.

    remove_filter('woocommerce_product_variation_title_include_attributes', '__return_false');
    

    PS: Is it possible to make it work conditionally, so only Shop Manager could see variations in backend correctly?
    If this is not possible, don’t worry.

    Thanks.

    #31056
    Alex
    Keymaster

    Hello,

    Ah, sorry, you need to wrap it in a proper hook.
    So, this will work:

    
    add_action( 'after_setup_theme', 'babystreet_child_theme_setup', 11 );
    function babystreet_child_theme_setup() {
    	remove_filter('woocommerce_product_variation_title_include_attributes', '__return_false');
    }
    

    In theory it should be possible, but this is out of the support scope.

    Regards,
    Alex

    #31057
    roberto
    Participant

    Ok, thanks a lot,
    I think now problem has been solved.

    I added this code and seems to work:

    add_action( 'after_setup_theme', 'babystreet_child_theme_setup', 11 );
    
    function babystreet_child_theme_setup() {
    	
      if ( current_user_can( 'manage_woocommerce' ) ) { 
    	remove_filter('woocommerce_product_variation_title_include_attributes', '__return_false');
      }
    	
    }
    	 

    Great work guys! Very good theme and support

    #31058
    Alex
    Keymaster

    That’s Great.

    Thanks too.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for any item belonging to this account
AlThemist

AlThemist

sales 17211, followers 742
Login and Registration Log in · Register