ResolvedProblem with Codecanyon plugin “BEAR”
Tagged: bugs
- This topic has 13 replies, 3 voices, and was last updated 2 years, 4 months ago by
Alex.
- AuthorPosts
- July 7, 2021 at 1:28 pm #30974
roberto
ParticipantHello.
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.
July 7, 2021 at 1:36 pm #30985Althemist
KeymasterHi 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)
July 7, 2021 at 2:09 pm #30992roberto
ParticipantHello, 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.July 7, 2021 at 4:08 pm #30996Althemist
KeymasterI 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)?
July 7, 2021 at 4:17 pm #30997roberto
ParticipantYes, 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.
July 9, 2021 at 12:13 pm #31017Althemist
KeymasterNo, 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)
July 9, 2021 at 4:11 pm #31023roberto
ParticipantAs 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.
July 12, 2021 at 10:00 am #31044Althemist
KeymasterHi 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.
July 12, 2021 at 10:54 am #31048roberto
ParticipantThis reply has been marked as private.July 12, 2021 at 5:15 pm #31051Alex
KeymasterHello 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,
AlexJuly 13, 2021 at 10:39 am #31055roberto
ParticipantHello, 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.
July 13, 2021 at 10:56 am #31056Alex
KeymasterHello,
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,
AlexJuly 13, 2021 at 11:09 am #31057roberto
ParticipantOk, 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
July 13, 2021 at 11:15 am #31058Alex
KeymasterThat’s Great.
Thanks too.
- AuthorPosts
You must be logged in and have valid license to reply to this topic.