Forum Replies Created
- AuthorPosts
- aurelien_boutillierParticipant
Hello,
Nobody has an idea to do this? It’s important for me, I am not so far with this snippet code.
Thanks for your help.
Have a good day,
Aurélien.aurelien_boutillierParticipantHello,
Thanks, I activate the product custom field and I try to add a custom field.
But I have an issue.
The field “visibility” doesn’t work. In the dropdown list I have only “Do not show”. The other possibilities such as “with product summary” are not displayed.
Have a look at the screenshot.Do you have any idea to solve this problem ?
Thanks
Aurélien.Attachments:
You must be logged in to view attached files.aurelien_boutillierParticipantHello Sarmistha Chakraborty,
Thank you for your return !
It doesn’t work.
The display of the description tab with this snippets is always empty even if there is a text inside.
The title of the tab is also empty.
cf. screenshot. Normally, there is a text inside the description tab on this product.Aurélien.
Attachments:
You must be logged in to view attached files.aurelien_boutillierParticipantHello Sarmistha Chakraborty,
Thank you very much ! it works fine.
Aurélien.
aurelien_boutillierParticipantHi Sushobhan,
It works perfectly. Thank you very much !
Have a good evening !
Aurélienaurelien_boutillierParticipantHi Sushobhan,
Thank you ! For the order of appearance it works :
1. Dimensions
2. Attributes
3. InventoryBut the tab “inventory” is not clickable anymore. Do you have a solution ?
Thanks
Aurélien.aurelien_boutillierParticipantHello,
Any idea to do this ?
I try with this code (adding html balise such as : <html><body><table><tr><td></td><td></td></tr></table></body></html>) but it doesn’t workThanks
Aurélien<html><body> <table> <tr> <td> <?php /** * The Template for displaying store. * * @package WCfM Markeplace Views Store Sold By as Tab * * For edit coping this to yourtheme/wcfm/sold-by * */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $WCFM, $WCFMmp; $vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $product_id ); if( $vendor_id ) { if( apply_filters( 'wcfmmp_is_allow_sold_by', true, $vendor_id ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'sold_by' ) ) { // Check is store Online $is_store_offline = get_user_meta( $vendor_id, '_wcfm_store_offline', true ); if ( $is_store_offline ) { return; } $sold_by_text = $WCFMmp->wcfmmp_vendor->sold_by_label( absint($vendor_id) ); if( apply_filters( 'wcfmmp_is_allow_sold_by_linked', true ) ) { $store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( absint($vendor_id) ); } else { $store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_name_by_vendor( absint($vendor_id) ); } $store_user = wcfmmp_get_store( $vendor_id ); $store_info = $store_user->get_shop_info(); $gravatar = $store_user->get_avatar(); $email = $store_user->get_email(); $phone = $store_user->get_phone(); $address = $store_user->get_address_string(); echo '<div class="wcfmmp_sold_by_container">'; do_action('before_wcfmmp_sold_by_gravatar_product_page', $vendor_id ); echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_gravatar"><img src="' . $store_user->get_avatar() . '" /></div>'; do_action('before_wcfmmp_sold_by_label_product_page', $vendor_id ); echo '<div class="wcfmmp_sold_by_wrapper">' . $store_name . '</div>'; if( apply_filters( 'wcfm_is_pref_vendor_reviews', true ) ) { $WCFMmp->wcfmmp_reviews->show_star_rating( 0, $vendor_id ); } do_action('after_wcfmmp_sold_by_label_product_page', $vendor_id ); do_action('before_wcfmmp_sold_by_info_product_page', $vendor_id ); if( $address && ( $store_info['store_hide_address'] == 'no' ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vendor_address' ) ) { echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_address"><i class="wcfmfa fa-map-marker" aria-hidden="true"></i>' . $address . '</div>'; } if( $email && ( $store_info['store_hide_email'] == 'no' ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vendor_email' ) ) { echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_address"><i class="wcfmfa fa-envelope" aria-hidden="true"></i>' . $email . '</div>'; } if( $phone && ( $store_info['store_hide_phone'] == 'no' ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vendor_phone' ) ) { echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_address"><i class="wcfmfa fa-phone" aria-hidden="true"></i><span>' . $phone . '</div>'; } do_action('after_wcfmmp_sold_by_info_product_page', $vendor_id ); if( apply_filters( 'wcfmmp_is_allow_sold_by_social', true ) ) { if( !empty( $store_info['social'] ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $store_user->get_id(), 'vendor_social' ) ) { do_action('before_wcfmmp_sold_by_social_product_page', $vendor_id ); ?> <div class="wcfm_cearfix"></div> <div class="wcfmmp_store_tab_info wcfmmp_store_info_store_social"> <?php $WCFMmp->template->get_template( 'store/wcfmmp-view-store-social.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) ); ?> </div> <div class="wcfm_cearfix"></div> <?php do_action('after_wcfmmp_sold_by_social_product_page', $vendor_id ); } } if( apply_filters( 'wcfmmp_is_allow_sold_by_about', false ) ) { $wcfm_shop_description = apply_filters( 'woocommerce_short_description', $store_user->get_shop_description() ); ?> <?php if( $wcfm_shop_description ) { ?> <div class="wcfm-store-about" style="font-style:italic;"> <div class="wcfm_store_description" ><?php echo $wcfm_shop_description; ?></div> </div> <?php } } if( apply_filters( 'wcfmmp_is_allow_sold_by_location', true ) ) { $api_key = isset( $WCFMmp->wcfmmp_marketplace_options['wcfm_google_map_api'] ) ? $WCFMmp->wcfmmp_marketplace_options['wcfm_google_map_api'] : ''; $store_lat = isset( $store_info['store_lat'] ) ? esc_attr( $store_info['store_lat'] ) : 0; $store_lng = isset( $store_info['store_lng'] ) ? esc_attr( $store_info['store_lng'] ) : 0; if ( !empty( $api_key ) && !empty( $store_lat ) && !empty( $store_lng ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $store_user->get_id(), 'vendor_map' ) ) { echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_store_location">'; do_action( 'before_wcfmmp_sold_by_location_product_page', $store_user->get_id() ); $WCFMmp->template->get_template( 'store/widgets/wcfmmp-view-store-location.php', array( 'store_user' => $store_user, 'store_info' => $store_info, 'store_lat' => $store_lat, 'store_lng' => $store_lng, 'map_id' => 'wcfm_sold_by_tab_map_'.rand(10,100) ) ); do_action( 'after_wcfmmp_sold_by_location_product_page', $store_user->get_id() ); echo '</div>'; wp_enqueue_script( 'wcfmmp_store_js', $WCFMmp->library->js_lib_url . 'store/wcfmmp-script-store.js', array('jquery' ), $WCFMmp->version, true ); $scheme = is_ssl() ? 'https' : 'http'; wp_enqueue_script( 'wcfm-store-google-maps', $scheme . '://maps.googleapis.com/maps/api/js?key=' . $api_key . '&libraries=places' ); } } echo '</div>'; } } ?> </td> /** * Description tab * * This template can be overridden by copying it to yourtheme/woocommerce/single-product/tabs/description.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 2.0.0 */ <td bgcolor="#CCCCCC"> <?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $post; $heading = esc_html( apply_filters( 'woocommerce_product_description_heading', __( '', 'woocommerce' ) ) ); ?> <?php if ( $heading ) : ?> <h2><?php echo $heading; ?></h2> <?php endif; ?> <?php the_content(); ?> </td> </tr> </table> </body></html>
aurelien_boutillierParticipantHi Sushobhan,
thank you for your return.
It doesn’t work.
I have put the file in my theme folder.
wp-content/themes/mesmerize-pro/wcfm/products-manager/wcfm-view-products-manage-tabs.php
I understand that I can adjust the code to display the order of appearance that suits me. It’s Ok for me.And that’s all ? Or I have to do another thing ?
Thanks
Aurélienaurelien_boutillierParticipantHi,
Thanks for your help.
I don’t understand what I have to do ? I have to copy / paste the file wcfm-view-products-manage-tabs.php in the folder child-theme-folder/wcfm/products-manager/ ?
And then what I have to do ?Have a good evening.
Aurélienaurelien_boutillierParticipantHi,
Review of the plugin done !
Thanks again a lot !
Aurélienaurelien_boutillierParticipantHi Sushobhan,
It works perfectly ! Thank you very much.
FInd attached the screenshot.
I have just changed abbreviation H/L/W by H/L/l to be in french.Thanks a lot.
Have a good day
Aurélien.Attachments:
You must be logged in to view attached files.April 22, 2020 at 2:48 am in reply to: Display two elements in a single tab (vendor presentation/product description) #121557aurelien_boutillierParticipanthello,
does anyone have an idea to solve this problem ?
Please help 🙂Many thanks
Bouth.aurelien_boutillierParticipantHello,
Thanks a lot it works well !
I would like to give the possibility for the vendor to put on his product image either “sold” or “Reserved”
For the moment, only the possibility to put “sold” on the image works (code used below)(by using “soldout”).
Now, I would like to add the possibility to put “Reserved” on the image. So I thnink I have to use the same type of code and use the third status object but I don’t know his name. There are “In stock”, “soldout or out of stock”, “repunishment”…I don’t know the exact nameDo you have an idea of the code to make ?
/* Display “Sold”=”vendu” (in french) on the image */
add_action( ‘woocommerce_before_shop_loop_item_title’, ‘wpm_display_sold_out_loop_woocommerce’ );// On l’affiche sur la page boutique
add_action( ‘woocommerce_single_product_summary’, ‘wpm_display_sold_out_loop_woocommerce’ );// On l’affiche sur la page du produit seulfunction wpm_display_sold_out_loop_woocommerce() {
global $product;
//Si le produit est en rupture de stock, on affiche :
if ( !$product->is_in_stock() ) {
echo ‘<span class=”soldout”>’ . __( ‘Vendu’, ‘woocommerce’ ) . ‘</span>’;
}
}aurelien_boutillierParticipantHi,
Thank you for your return. I asked the theme support but they asked me : “Please ask WCFM support what theme adjustments are needed for this feature and we will implement them”.
So, could you precise me what theme adjustments are needed for this feature ?Thank you !
regards
AurélienSeptember 19, 2019 at 3:29 am in reply to: Store logo, store banner, store list banner, Mobile Banner #82358aurelien_boutillierParticipantThank you very much, it works well !
August 28, 2019 at 10:03 pm in reply to: Store logo, store banner, store list banner, Mobile Banner #78838aurelien_boutillierParticipantHello,
Sure,
A. On the initial store setting page, I would like to display the wording in french + add description text :
1. store logo
Translate the wording by “logo de votre galerie”
Add a text that describes what it is used for : “Il s’agit de l’image qui sera visible par les clients dans chacune de vos annonces (au dessus de vos coordonnées). Cette image sera également visible par les clients lorsqu’ils consultent la liste des antiquaires ou la page dédiée à votre galerie. Elle apparaît sous la forme d’une petite image incorporée à votre bannière. Vous pouvez par exemple y mettre votre photo ou votre logo ou la photo de l’une de vos oeuvres”2. bannière
the wording is OK, no translation needed
Add a text that describes what it is used for : “Il s’agit de la grande image qui sera visible par les clients lorsqu’ils consultent la liste des antiquaires ou la page dédiée à votre galerie. Vous pouvez par exemple y mettre la photo d’une de vos œuvres ou la photo de votre magasin d’antiquités”B. In the store dashboard, I would like to display the wording in french + add description text :
1. store logo
Same as above
2. store banner
Translate the wording by “bannière”
Add the same description as above
3. Mobile banner
I would like to cancel it (not displayed, because not useful)
4. store list banner
Translate the wording by “bannière liste antiquaires”
Add a text that describes what it is used for : “Il s’agit de l’image de votre galerie, visible par les clients lorsqu’ils consultent la liste des antiquaires”Regards,
Aurélienaurelien_boutillierParticipantThank you ! It works well !
Aurélienaurelien_boutillierParticipantHello, thanks a lot, it works well !
Could you tell me how to delete payment step in the initial store settings ?
I try this code but it doesn’t work : add_filter( ‘wcfm_is_allow_setup_payment_settings’, ‘__return_false’ );Thank you
Regards
Aurélien. - AuthorPosts