Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

move the vendor description above the “container

WCMp Core

Resolved
Viewing 10 reply threads
  • Author
    Posts
    • #138066
      l.gan
      Participant

      Hello

      Can you please tell me how can I change the archive_vendor_invo.php file to move the vendor description above the “container”? Please see the photo, as an example?

      Important – I’m using an old vendor page with your code.
      add_filter(‘wcmp_load_default_vendor_store’, ‘__return_true’);

    • #138094

      Hi,
      We can’t find container on our end. Maybe you added some custom code or your theme added.
      You have to find out the container on your end then override templates/archive_vendor_info.php template by copying it to yourtheme/dc-product-vendor/archive_vendor_info.php after that add your container code after line number 202.

      Regards,

    • #138130
      l.gan
      Participant

      Hello,
      thanks for the help

      I turned to the creators of the topic, asking where this container is located and explained the situation. They told me the path to the file,
      and here is the content of that file.

      Can you please tell me which code from here I should add?

      <?php
      /**
      * The Template for displaying product archives, including the main shop page which is a post type archive
      *
      * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
      *
      * HOWEVER, on occasion WooCommerce will need to update template files and you
      * (the theme developer) will need to copy the new files to your theme to
      * maintain compatibility. We try to do this as little as possible, but it does
      * happen. When this occurs the version of the template file will be bumped and
      * the readme will list any important changes.
      *
      * @see https://docs.woocommerce.com/document/template-structure/
      * @package WooCommerce/Templates
      * @version 3.4.0
      */

      defined( ‘ABSPATH’ ) || exit;

      if( woodmart_is_woo_ajax() === ‘fragments’ ) {
      woodmart_woocommerce_main_loop( true );
      die();
      }

      if ( ! woodmart_is_woo_ajax() ) {
      get_header( ‘shop’ );
      } else {
      woodmart_page_top_part();
      }

      $cat_desc_position = woodmart_get_opt( ‘cat_desc_position’ );
      ?>

      <?php
      /**
      * Hook: woocommerce_sidebar.
      *
      * @hooked woocommerce_get_sidebar – 10
      */
      do_action( ‘woocommerce_sidebar’ );
      ?>

      <?php
      /**
      * Hook: woocommerce_before_main_content.
      *
      * @hooked woocommerce_output_content_wrapper – 10 (outputs opening divs for the content)
      * @hooked woocommerce_breadcrumb – 20
      * @hooked WC_Structured_Data::generate_website_data() – 30
      */
      do_action( ‘woocommerce_before_main_content’ );
      ?>

      <?php do_action( ‘woodmart_before_shop_page’ ); ?>

      <?php
      if ( $cat_desc_position == ‘before’ ) {
      /**
      * Hook: woocommerce_archive_description.
      *
      * @hooked woocommerce_taxonomy_archive_description – 10
      * @hooked woocommerce_product_archive_description – 10
      */
      do_action( ‘woocommerce_archive_description’ );
      }
      ?>

      <?php woodmart_enqueue_inline_style( ‘woo-shop-predefined’ ); ?>
      <?php woodmart_enqueue_inline_style( ‘woo-mod-shop-loop-head’ ); ?>

      <div class=”shop-loop-head”>
      <div class=”wd-shop-tools<?php echo woodmart_get_old_classes( ‘ woodmart-woo-breadcrumbs’ ); ?>”>
      <?php if ( woodmart_get_opt( ‘shop_page_breadcrumbs’, ‘1’ ) ) : ?>
      <div class=”wd-breadcrumbs”>
      <?php woodmart_current_breadcrumbs( ‘shop’ ); ?>
      </div>
      <?php endif; ?>

      <?php woocommerce_result_count(); ?>
      </div>
      <div class=”wd-shop-tools<?php echo woodmart_get_old_classes( ‘ woodmart-shop-tools’ ); ?>”>
      <?php if ( woocommerce_product_loop() ) : ?>
      <?php
      /**
      * Hook: woocommerce_before_shop_loop.
      *
      * @hooked wc_print_notices – 10
      * @hooked woocommerce_result_count – 20
      * @hooked woocommerce_catalog_ordering – 30
      */
      do_action( ‘woocommerce_before_shop_loop’ );
      ?>
      <?php endif; ?>
      </div>
      </div>

      <?php do_action( ‘woodmart_shop_filters_area’ ); ?>

      <?php woodmart_sticky_loader(); ?>

      <?php do_action( ‘woodmart_woocommerce_main_loop’ ); ?>

      <?php
      if ( $cat_desc_position == ‘after’ ) {
      /**
      * Hook: woocommerce_archive_description.
      *
      * @hooked woocommerce_taxonomy_archive_description – 10
      * @hooked woocommerce_product_archive_description – 10
      */
      do_action( ‘woocommerce_archive_description’ );
      }
      ?>

      <?php
      /**
      * Hook: woocommerce_after_main_content.
      *
      * @hooked woocommerce_output_content_wrapper_end – 10 (outputs closing divs for the content)
      */
      do_action( ‘woocommerce_after_main_content’ );
      ?>

      <?php
      if ( ! woodmart_is_woo_ajax() ) {
      get_footer( ‘shop’ );
      } else {
      woodmart_page_bottom_part();
      }
      ?>

    • #138183

      Hi,
      This is a Woocommerce template. You have to override WCMp.

      You can also override templates/taxonomy-dc_vendor_shop.phptemplate by copying it to yourtheme/dc-product-vendor/taxonomy-dc_vendor_shop.php

      and do some changes to archive this.

      Regards,

    • #138192
      l.gan
      Participant

      Hello, thanks for your time and help

      I changed the hook, but it doesn’t seem to work.

      I am very bad in php, please tell me how can I change this file

      if ( apply_filters( ‘wcmp_load_default_vendor_store’, false ) ) {
      do_action( ‘woocommerce_before_main_content’ );
      } else {
      do_action( ‘wcmp_archive_description’ );
      }

      do_action( ‘woocommerce_before_main_content’ );
      $block_vendor_desc = apply_filters(‘wcmp_blocked_vendor_text’, __(‘Site Administrator has blocked this vendor’, ‘dc-woocommerce-multi-vendor’), $vendor);
      ?>

    • #138202

      Hi.
      Kindly let me know with a clear image and define what you want to change and where.

      Do not share code, because your page code and my code are not same.

      Thank you,

    • #138208
      l.gan
      Participant
      This reply has been marked as private.
    • #138243
      This reply has been marked as private.
    • #138245
      l.gan
      Participant
      This reply has been marked as private.
    • #138254
      This reply has been marked as private.
    • #144913

      Hi @I.gan , we haven’t heard back from you for a while.
      So we presume this issue has been fixed. We are closing this for now.

Viewing 10 reply threads

The topic ‘move the vendor description above the “container’ is closed to new replies.