Diwali

Wishing you joy this Diwali and Halloween! Enjoy up to 20% OFF on all addons!

Claim Offer
04Day 20Hr 28Min 49Sec
Diwali

Lost attributes

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 8 reply threads
  • Author
    Posts
    • #60076
      Aleksandra
      Guest

      Hello, 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 :
      product-manage
      This is when I copy to child theme->wcfm->product-manager->wcfm-view-product-manage.php :
      product-manage1
      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.
      datatables
      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?
      mp3

      Thank you very much for your help.

    • #60471
      Aleksandra
      Guest

      Hi,
      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.
      duplicate

    • #60771
      WCFM Forum
      Member

      Hi,

      Please update WCFM and it’s addons to the latest version.

      Thank You

    • #60893
      Aleksandra
      Guest

      Thank 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.
      view
      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

    • #61096
      Aleksandra
      Guest

      Hi, 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

    • #61155
      Farukh
      Guest
      This reply has been marked as private.
    • #61290
      WCFM Forum
      Member

      HI,

      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

    • #61323
      Aleksandra
      Guest

      Thank you thank you thank you !!!

      It is working great.

      best regards

    • #61655
      WCFM Forum
      Member

      You are welcome 🙂

Viewing 8 reply threads
  • The topic ‘Lost attributes’ is closed to new replies.