Forum Replies Created
-
AuthorPosts
-
Tristan
ParticipantHi, thank you for your answer. It’s true, my theme is not updated recently, i’m thinking on changing it, but dt-the7 has much more options than the others, so i hesitate…
About what i want to change : in each product page, (let’s say an animal for sale), there are tabs : description + attributes + comments & grades + seller_info. On this last one, i would like to show not only the seller_info, but also the shop_description related to my vendor (available on the vendor perso page, but not on each of his products).
That tab would finally look like :STORE DESCRIPTION
Here the store_description that the vendor informed when subscribing
SELLER INFO
Here the seller_info that the vendor informed when subscribing— > I’m looking for the good code to add the titles “STORE DESCRIPTION” and “SELLER INFO” + the existing field store_description
Is it more clear ?
Thank you very muchApril 17, 2017 at 11:32 am in reply to: How to hide the product type box in the product form without hiding the price? #62211Tristan
ParticipantOk Anna, thank you for your information ! I will try differently then.
Thanks,Tristan
ParticipantThank you Anna, i think i found one : especially the store-header.php
I’m still looking for the file for changing the product description (see doc “capture”), where i would like to change the vendor tab (see doc “capture 2”).
On this page i also have a problem : all the photos are displayed one by one, not like with a main photo + a carousel of mini photos. Is it normal ? (see “capture 3”)
Thank you =)Tristan
ParticipantHello !
I have a problem with this code, i added it on my functions.php in the child theme (dt-the7), and it returns an error on the my-account page. I have the pro version.
Thanks for your support
Tristan
ParticipantHello,
I finally could unbug my site, now i created a child theme and i try to follow the instruction to customize the vendor form. I checked the page https://www.wcvendors.com/kb/custom-fields-to-shop-settings-page/
I’m sorry but i am not really sure of what I can copy and paste (without changes), and what I have to change. For example, if i want to add a section “animals sold” (multiple choice), would this be correct? :/* WC Vendors Pro – My Custom Field */
function animals_sold( ){
if ( class_exists( ‘WCVendors_Pro’ ) ){
$key = ‘_wcv_custom_settings_animals_sold’;
$value = get_user_meta( get_current_user_id(), $key, true );
// Animals sold
WCVendors_Pro_Form_Helper::input( array(
‘id’ => $key,
‘label’ => __( ‘Animals sold’, ‘wcvendors-pro’ ),
‘placeholder’ => __( ‘Animals sold’, ‘wcvendors-pro’ ),
‘desc_tip’ => ‘true’,
‘description’ => __( ‘Select the animals you sell’, ‘wcvendors-pro’ ),
‘type’ => ‘list’,
‘value’ => ‘cats’,’dogs’,’birds’,
)
);
}
}Then, what should i write in this code ?
add_action( ‘wcvendors_admin_after_commission_due’, ‘wcv_store_bank_details_admin’ );
function wcv_store_bank_details_admin( $user ) {
?>
<tr>
<th><label for=”_wcv_custom_settings_bankname”><?php _e( ‘Bank Name’, ‘wcvendors-pro’ ); ?></label></th>
<td><input type=”text” name=”_wcv_custom_settings_bankname” id=”_wcv_custom_settings_bankname” value=”<?php echo get_user_meta( $user->ID, ‘_wcv_custom_settings_bankname’, true ); ?>” class=”regular-text”></td>
</tr>
<?php
}
?>Part 3: In order to show the custom field on your Pro Settings page, you need to add the function you just created above to the
template. Copy /plugins/wc-vendors-pro/templates/dashboard/store-settings.php to /themes/yourtheme-child/wc-vendors/dashboard/store-settings.php
and add this wherever you want the field to show up:<?php store_bank_details( ); ?>
Thank you =)
TFTristan
ParticipantHello,
thanks for your answers,
Actually I followed these instructions, (1) I “enabled people to apply as vendors” on the my-account page (image 1), then i pasted the wp-content/plugins/wcvendors-pro/templates/front/vendor-signup-form.php file in my theme (the7), and now the form is totally bugged : black screen, impossible to fill the form and validate. I am not a coder, so I do my best, but i’m a bit lost with all these processes…
Thanks for your support,
TFTristan
ParticipantSorry, here is a new screenshot, of the signin page, when BuddyPress is activated. Nothing anymore about “become a vendor”… ?
Tristan
Participant### WordPress Environment ### Home URL: https://chezmoneleveur.fr Site URL: https://chezmoneleveur.fr WC Version: 2.6.14 Log Directory Writable: ✔ WP Version: 4.7.2 WP Multisite: – WP Memory Limit: ❌ 40 MB - Nous recommandons l’augmentation de la mémoire à 64Mo minimum. Voir : Augmenter la mémoire allouée à PHP WP Debug Mode: – WP Cron: ✔ Language: fr_FR ### Server Environment ### Server Info: Apache PHP Version: 7.0.15 PHP Post Max Size: 6 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.38.0 OpenSSL/1.0.1t SUHOSIN Installed: – MySQL Version: ❌ 5.5.54 - Nous recommandons MySQL version 5.6 minimum. Voir : Exigences de WordPress Max Upload Size: 64 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.6.14 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ woocommerce_shipping_zones: ✔ woocommerce_shipping_zone_locations: ✔ woocommerce_shipping_zone_methods: ✔ woocommerce_payment_tokens: ✔ woocommerce_payment_tokenmeta: ✔ MaxMind GeoIP Database: ❌ La base de données GeoIP MaxMind n’existe pas - La géolocalisation ne fonctionnera pas. Vous pouvez la télécharger et l’installer manuellement depuis http://dev.maxmind.com/geoip/legacy/geolite/ dans ce chemin : . Faites défiler vers le bas jusqu’à \"Downloads\" et téléchargez le fichier \"Binary / gzip\" à coté de \"GeoLite Country\" ### Active Plugins (13) ### Ultimate Addons for Visual Composer: par Brainstorm Force – 3.16.7 BP WC Vendors: par Sven Lehnert – 1.0.9 Display Medium Posts: par AceKYD – 2.0.0 The7 Demo Content: par Dream-Theme – 1.5.3 The7 Post Types: par Dream-Theme – 1.1.3 Google Analytics Dashboard for WP: par Alin Marcu – 4.9.6.2 WPBakery Visual Composer: par Michael M - WPBakery.com – 4.12.1 MANGOPAY WooCommerce plugin: par Yann Dubois MANGOPAY – 2.1.0 Quick View WooCommerce: par XootiX – 1.6 Slider Revolution: par ThemePunch – 5.2.6 WC Vendors Pro: par WC Vendors – 1.3.9 WC Vendors: par WC Vendors – 1.9.8 WooCommerce: par WooThemes – 2.6.14 ### Settings ### Force SSL: ✔ Currency: EUR (€) Currency Position: right_space Thousand Separator: Decimal Separator: , Number of Decimals: 2 ### API ### API Enabled: – ### WC Pages ### Base Boutique: #15606 - /animalerie/ Panier: #15263 - /panier/ Commande: #15264 - /commande/ Mon Compte: #15265 - /mon-compte/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: The7 Version: 4.1.0 Author URL: http://dream-theme.com/ Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant WooCommerce Support: ✔ ### Templates ### Overrides: dt-the7/woocommerce/cart/cart.php dt-the7/woocommerce/content-product.php dt-the7/woocommerce/content-product_cat.php dt-the7/woocommerce/emails/admin-cancelled-order.php dt-the7/woocommerce/emails/admin-new-order.php dt-the7/woocommerce/emails/customer-on-hold-order.php dt-the7/woocommerce/global/breadcrumb.php dt-the7/woocommerce/loop/loop-end.php dt-the7/woocommerce/loop/loop-start.php dt-the7/woocommerce/loop/orderby.php ### WC Vendors Pro ### Theme Compatability: - Pro Dashboard Page: - #15618 Feedback form page: - #15619 Vendor Shop Permalink: - vendeurs/ ### Templates ### Overrides: –
Tristan
Participantthank you !!
-
AuthorPosts