this code is for the tab in store settings also i want to give her priority under store and location position but i couldn’t find a such thing to work.
add_action( 'end_wcfm_vendor_settings', function( $vendor_id ) {
global $WCFM, $WCFMmp;
$wcfm_vendor_company = get_user_meta( $vendor_id, 'wcfm_vendor_company', true );
?>
<!-- collapsible -->
<div class="page_collapsible" id="wcfm_settings_form_min_order_amount_head">
<label class="wcfmfa fa-building"></label>
<?php _e('Company', 'wc-frontend-manager'); ?><span></span>
</div>
<div class="wcfm-container">
<div id="wcfm_settings_form_vendor_invoice_expander" class="wcfm-content">
<?php
$WCFM->wcfm_fields->wcfm_generate_form_field( array(
"wcfm_vendor_company_options" => array('label' => __('Company', 'wc-frontend-manager'), 'type' => 'textarea', 'class' => 'wcfm-textarea wcfm_ele wcfm_full_ele', 'label_class' => 'wcfm_title wcfm_ele wcfm_full_ele_title', 'value' => $wcfm_vendor_company ),
) );
?>
</div>
</div>
<div class="wcfm_clearfix"></div>
<!-- end collapsible -->
<?php
}, 500 );
add_action( 'wcfm_vendor_settings_update', function( $vendor_id, $wcfm_settings_form ) {
global $WCFM, $WCFMmp;
if( isset( $wcfm_settings_form['wcfm_vendor_company_options'] ) ) {
$wcfm_vendor_company = $wcfm_settings_form['wcfm_vendor_company_options'];
update_user_meta( $vendor_id, 'wcfm_vendor_company', $wcfm_vendor_company );
}
}, 500, 2 );
this is the code i use for tab in store page
add_filter( 'wcfmmp_store_tabs', 'custom_wcfmmp_store_tabs',90,2);
function custom_wcfmmp_store_tabs($store_tabs, $vendor_id) {
$store_tabs['company'] = __( 'Company', 'wc-multivendor-marketplace' );
return $store_tabs;
}
add_filter( 'wcfmp_store_default_query_vars', 'wcfm_store_events_default_query_var' );
function wcfm_store_events_default_query_var( $query_var ) {
global $WCFM, $WCFMmp;
if ( get_query_var( 'company' ) ) {
$query_var = 'company';
}
return $query_var;
}
add_filter( 'wcfmp_store_tabs_url', 'new_wcfmp_store_tabs_url',10,2);
function new_wcfmp_store_tabs_url($store_tab_url, $tab) {
switch( $tab ) {
case 'company':
$store_tab_url = $store_tab_url.'company';
break;
}
return $store_tab_url;
}
add_action( 'wcfmmp_rewrite_rules_loaded', 'new_register_rule', 8 );
function new_register_rule($wcfm_store_url) {
global $WCFM, $WCFMmp;
add_rewrite_rule( $wcfm_store_url.'/([^/]+)/'.$WCFMmp->wcfmmp_rewrite->store_endpoint('company').'?$', 'index.php?post_type=product&'.$wcfm_store_url.'=$matches[1]&'.$WCFMmp->wcfmmp_rewrite->store_endpoint('company').'=true', 'top' );
add_rewrite_rule( $wcfm_store_url.'/([^/]+)/'.$WCFMmp->wcfmmp_rewrite->store_endpoint('company').'/page/?([0-9]{1,})/?$', 'index.php?post_type=product&'.$wcfm_store_url.'=$matches[1]&paged=$matches[2]&'.$WCFMmp->wcfmmp_rewrite->store_endpoint('company').'=true', 'top' );
}
function wcfm_vendor_profile_custom_endpoint() {
global $WCFM, $WCFMmp,$WCFMu;
$wcfm_store_url = get_option( 'wcfm_store_url', 'store' );
add_rewrite_endpoint( 'company', EP_ROOT | EP_PAGES );
}
add_action( 'init', 'wcfm_vendor_profile_custom_endpoint',12 );
i’ve tried a lot of rules for post types, users, forms.but it dosent shown on the vendors store settings page
is there any thing to do to fixthis
]]>i am trying to install a new tab in the vendor store settings tab under store tab
this tab is going to have an acf fields group that the vendor is going to fill so it must show in the store page
i follow all the steps:
https://docs.wclovers.com/tweaks/#new-tab-at-store-page
https://wclovers.com/forums/topic/new-tab-at-store-page/
and also this
<?php
add_action( 'end_wcfm_vendor_settings', function( $vendor_id ) {
global $WCFM;
$wcfm_vendor_website = get_user_meta( $vendor_id, 'wcfm_vendor_website', true );
?>
<!-- collapsible -->
<div class="page_collapsible" id="wcfm_settings_form_additional_head">
<label class="fa fa-certificate"></label>
<?php _e('Additional Info', 'wc-multivendor-marketplace'); ?><span></span>
</div>
<div class="wcfm-container">
<div id="wcfm_settings_form_additional_expander" class="wcfm-content">
<h2><?php _e('Additional Setting', 'wc-multivendor-marketplace'); ?></h2>
<div class="wcfm_clearfix"></div>
<?php
$WCFM->wcfm_fields->wcfm_generate_form_field( array(
"wcfm_vendor_website" => array( 'label' => __( 'Website', 'wc-multivendor-marketplace'), 'name' => 'wcfm_vendor_website', 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => $wcfm_vendor_website ),
) );
?>
<?php $business_type_checked_values = get_field( 'business_type', 'option' ); ?>
<?php if ( $business_type_checked_values ) : ?>
<?php foreach ( $business_type_checked_values as $business_type_value ): ?>
<?php echo esc_html( $business_type_value ); ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
<!-- end collapsible -->
<?php
}, 50, 1 );
add_action( 'wcfm_vendor_settings_update', function( $vendor_id, $wcfm_settings_form ) {
global $WCFM, $_POST;
if( isset( $wcfm_settings_form['wcfm_vendor_website'] ) ) {
update_user_meta( $vendor_id, 'wcfm_vendor_website', $wcfm_settings_form['wcfm_vendor_website'] );
}
}, 50, 2 );
add_action( 'wcfmmp_store_list_after_store_info', function( $vendor_id, $store_info ) {
global $WCFM;
$site_url = get_user_meta( $vendor_id, 'wcfm_vendor_website', true );
if( $site_url ) {
$site_url_href = $site_url;
if (strpos( $site_url_href, 'http') === false) {
$site_url_href = "https://" . $site_url_href;
}
?>
<p class="store-phone">
<i class="wcfmfa fa-globe" aria-hidden="true"></i>
<a href="<?php echo $site_url_href; ?>"><?php echo $site_url; ?></a>
</p>
<?php
}
}, 10, 2 );
add_action( 'after_wcfmmp_store_header_info', function( $vendor_id ) {
global $WCFM;
$site_url = get_user_meta( $vendor_id, 'wcfm_vendor_website', true );
if( $site_url ) {
$site_url_href = $site_url;
if (strpos( $site_url_href, 'http') === false) {
$site_url_href = "https://" . $site_url_href;
}
?>
<div class="store_info_parallal">
<i class="wcfmfa fa-globe" aria-hidden="true"></i>
<span>
<a href="<?php echo $site_url_href; ?>"><?php echo $site_url; ?></a>
</span>
</div>
<div class="spacer"></div>
<?php
}
}, 10 );
add_filter( 'wcfm_marketplace_settings_fields_general', function( $setting_fields, $vendor_id ) {
if( !wcfm_is_vendor() ) {
$wcfm_vendor_website = get_user_meta( $vendor_id, 'wcfm_vendor_website', true );
$wcfm_vendor_website_field = array(
"wcfm_vendor_website" => array( 'label' => __( 'Website', 'wc-multivendor-marketplace'), 'name' => 'wcfm_vendor_website', 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => $wcfm_vendor_website ),
);
$setting_fields = array_merge( $wcfm_vendor_website_field, $setting_fields );
}
return $setting_fields;
}, 50, 2 );
?>
but i cannot make it to work i use ELECTRO THEME
let me put some image for more context
https://ibb.co/J352F9q
https://ibb.co/x5CPp8y
al the template i modify was
\demo\wp-content\themes\electro-child\wcfm\store
wcfmmp-view-store-art-works.php
wcfmmp-view-store.php
and
demo\wp-content\plugins\wc-multivendor-marketplace\core
class-wcfmmp-store.php
https://ibb.co/5sWqDZC
https://ibb.co/fH6ZMvb
https://ibb.co/Y8ywMRW
https://ibb.co/1LrVdcg
https://ibb.co/swN4SFb
https://ibb.co/p1zFGrV
It appears that I basically have to go in and re-setup my entire store settings and redo all of my images. Is there any way around it???
I finally figured out some of the settings to get the products up with images, but now there’s an excerpt showing on the product page, once you’ve clicked on the product. I already don’t have the excerpt option selected, but I can’t figure out how to get rid of this.
Please let me know if there is some time saving way to take care of this.
https://www.ads-software.com/plugins/wordpress-ecommerce/
]]>First of all, thanks for a great commercial plugin.
I updated wp ecommerce and after that my back-end store settings are broken…. They only show the tabs, as I can see other users describe in the most recent posts on this forum. Only tabs, nothing below…..
Please help.
Hjorth007
https://www.ads-software.com/plugins/wp-e-commerce/
]]>I have installed wp ecommerce and it was working fine but now all the content/options below the tabs (general, admin etc) have disappeared. Only the tabs are showing. Oddly, I have tried reinstalling but its the same. I have the Patti theme.
https://www.ads-software.com/plugins/wp-e-commerce/
]]>I’m a bit helpless on all this, but would like to fumble around with my wordpress-site without breaking down everything…
I happened to try out another theme, but when I switched back, things changed and it was a painful process to restore all the plugins, settings, widgets and so on to the state it was before, so that I am scared to to this anymore…
does somebody know of a plugin or easy method to store (and restore) the settings I use for the active theme? would this be a restore from a backup or is there an easy (theres no step three) plugin-way?
thanks much!
]]>all products SHOULD use the same template, right??
so completely at a loss as to why these 8 products do not display image, price, add to cart, ratings, etc… they DO display the thumbnail in the category listing, but on the single product page i get only the description, nothing else.
but ONLY those 8 products. all the other 53 products display just as they should.
any suggestions?
please…
i’m dyin’ over here…
https://www.ads-software.com/extend/plugins/wp-e-commerce/
]]>Please help me.
All software is up to date with latest versions 3.4.1
]]>