Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Feature Request › Lost attributes
- This topic has 8 replies, 2 voices, and was last updated 7 years, 6 months ago by
WCFM Forum.
- AuthorPosts
- April 30, 2019 at 10:47 am #60076
Aleksandra
GuestHello, can you please help me with some issues and changes:
1. When I copy storefront->wcfm->product-manager->wcfm-view-product-manage.php to start some modification, I loose custom attribute part. I checked is there some css that is hiding this, but I didn’t find any.
This is regular file :

This is when I copy to child theme->wcfm->product-manager->wcfm-view-product-manage.php :

2. Before Add Product image upload I want to add text “Upload Product Image 325px x 325px”.
2. How to change text Become a vendor?
3. Store default logo 200px x 200px and change text in tooltip ‘preffered size is (200×200) pixels’.
4. Sometimes I have this datatables error.

5. How to change text “Restricted: You are not allowed to access this page. May be you already have a Membership Plan or your User Role does not allow for this action. Please contact Store Admin for more details.”?
6. Why this error is showing up almost all the time?

Thank you very much for your help.
- May 3, 2019 at 8:19 am #60471
Aleksandra
GuestHi,
You didn’t answer me, but I resolved almost all.
For the first issue I found this error:
PHP Warning: include(wcfm-view-products-manage-tabs.php): failed to open stream: No such file or directory in /home/xxxxx/808-beats.com/wp-content/themes/storefront/wcfm/products-manager/wcfm-view-products-manage.php on line 1563
PHP Warning: include(): Failed opening ‘wcfm-view-products-manage-tabs.php’ for inclusion (include_path=’.:/opt/alt/php71/usr/share/pear’) in /home/xxxxx/808-beats.com/wp-content/themes/storefront/wcfm/products-manager/wcfm-view-products-manage.php on line 1563
I understood that it doesn’t recognize path, so I copied wcfm-view-products-manage-tabs.php to folder /storefront/wcfm/products-manager even without modifying and error is gone.
For translation I used code snippet:
function wcfm_custom_translate_text( $translated ) {
$translated = str_ireplace( ‘Become a Vendor’, ‘Register for selling beats’, $translated );
return $translated;
}
add_filter(‘gettext’, ‘wcfm_custom_translate_text’);
add_filter(‘ngettext’, ‘wcfm_custom_translate_text’);1. I found this in debug.log:
PHP Notice: Trying to get property of non-object in /home/xxxxx/808-beats.com/wp-content/plugins/wc-frontend-manager/core/class-wcfm-frontend.php on line 463.
Why is this notice?
2. I have a bug in vendor’s page with repeating products. You can see it here: https://808-beats.com/store/hypnotic/. Under the footer there are repeating products from archive page. I modified store/wcfmmp-view-store-products.php and it is showing regulary, but under the footer the same products are shown again. I found this your answer https://wordpress.org/support/topic/vendor-page-shows-duplicate-products-after-update/page/2/ for duplicating products.
I use storefront, but maybe this code snippet will help me too. Can you give me this code to make store page not an archive page?
Thank you in advance.

- May 5, 2019 at 8:19 pm #60771
WCFM Forum
MemberHi,
Please update WCFM and it’s addons to the latest version.
Thank You
- May 6, 2019 at 9:23 am #60893
Aleksandra
GuestThank you for your respond.
Today I updated all to newest version but there are still duplicate products
on the bottom of the page with data from archive page. I know that because you can see
“wpv_view_count=107” – this is my archive page done in toolset wordpress archive.

You can check in on page https://808-beats.com/store/hypnotic/.Can you help me to declare store page like non-archive page?
Thanks - May 7, 2019 at 11:04 pm #61096
Aleksandra
GuestHi, it’s me again.
After the last update I noticed strange errors in debug.log which I didn’t have before.
Maybe some of them has nothing with your plugins, but I only updated all your plugins
and in this update is some compatibility broken, for example with toolset.[07-May-2019 20:47:31 UTC] PHP Notice: Trying to get property of non-object in /home/xxxxx/808-beats.com/wp-includes/class-wp-query.php on line 3871
public function is_singular( $post_types = ” ) {
if ( empty( $post_types ) || !$this->is_singular )
return (bool) $this->is_singular;$post_obj = $this->get_queried_object();
return in_array( $post_obj->post_type, (array) $post_types ); //on this line is error
}[06-May-2019 23:59:35 UTC] PHP Notice: Trying to get property of non-object in /home/xxxxx/808-beats.com/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset-theme-integration-settings-helper.php on line 398
public function fetch_queried_object_id() {
$object_id = null;
if ( $this->is_layouts_active ) {
$object_id = apply_filters( ‘ddl-rendered_layout_id’, null );
} else {
if ( $this->is_views_active ) {
if ( is_archive() || is_search() || is_home() || is_tax() ) {
$object_id = apply_filters( ‘wpv_filter_wpv_get_current_archive’, null );
}if ( is_single() ) {
global $post;
$object_id = get_post_meta( $post->ID, ‘_views_template’, true ); //on this line is error
}
}
}return $object_id;
}Maybe this will help to resolve duplicate product.
Thanks - May 8, 2019 at 12:09 pm #61155
Farukh
GuestThis reply has been marked as private. - May 9, 2019 at 7:23 am #61290
WCFM Forum
MemberHI,
Do you have any cache for the site then please clear those.
Add this code to child theme’s functions.php –
add_filter( 'pre_get_posts', function( $query, $that = null) { global $wp_query, $post; $wcfm_store_url = get_option( 'wcfm_store_url', 'store' ); $store_name = urldecode( get_query_var( $wcfm_store_url ) ); if ( !is_admin() && $query->is_main_query() && !empty( $store_name ) ) { $query->is_archive = false; $query->is_post_type_archive = false; } return $query; }, 50, 2 );Thank You
- May 9, 2019 at 8:41 am #61323
Aleksandra
GuestThank you thank you thank you !!!
It is working great.
best regards
- May 10, 2019 at 2:37 pm #61655
WCFM Forum
MemberYou are welcome 🙂
- AuthorPosts
- The topic ‘Lost attributes’ is closed to new replies.







