Forum Replies Created
-
AuthorPosts
-
AsherParticipant
hello anna any update please
AsherParticipantThanks for that. It would be great if you could let me know on variation. Also is their a way to add product thumbnails of variations. Currently i can add a main image and thumbnails. If i have variations of colours i can add a main pic colour variation but not thumbnail coulour variations. Is this possible to do through code or a plugin. Thanks in advance
AsherParticipantalso im wondering if their is a way to add feedback link on the order email the customer gets
AsherParticipanthi thanks for the info.
adding the wp-content/plugins.wc-vendors-pro/templates/dashboard/product-edit.php does not ammend the application form. The application form is what i have attached. It is the form vendors fill out to get approved for an account. Products-edit.php does not affect this page. so adding the code below does add fields to this form. Also have you got any info on the duplicate email situation.
Thanks in advance
AsherParticipantHello
The issue is not the two
?>
?>If i remove 1 or both of them it creates syntax errors and you cant see the site at all. Also my primary objective is to put a new field on the vendor application and this does not do this at all. Can you please tell me how to put a new field on the vendor application that captures in the user backend system and vendor settings page please. Can you paste the code that will do this
I dont have any plugins that affect email. Im running Buddyboss social market place on my website with their plugins
AsherParticipantThanks for your answers
1.) If you look at the code below that is in my fuction file it breaks the file (please see screenshot). I think its the second fuction (//adds the custom field to the wp-admin > Users > Edit User screen) that seems to add an extra php closing tag. Also this custom function does not add any fields on the vendor application form which is what i want to do. I want too add a new field on vendor application form that vendor fills out and that info goes into the vendor user section.
<?php
/* WC Vendors Pro – My Custom Field */
function store_bank_details( ){
if ( class_exists( ‘WCVendors_Pro’ ) ){
$key = ‘_wcv_custom_settings_bankname’;
$value = get_user_meta( get_current_user_id(), $key, true );
// Bank Name
WCVendors_Pro_Form_Helper::input( array(
‘id’ => $key,
‘label’ => __( ‘Bank Name’, ‘wcvendors-pro’ ),
‘placeholder’ => __( ‘First Bank’, ‘wcvendors-pro’ ),
‘desc_tip’ => ‘true’,
‘description’ => __( ‘Your local bank name’, ‘wcvendors-pro’ ),
‘type’ => ‘text’,
‘value’ => $value,
)
);
}
}
//adds the custom field to the wp-admin > Users > Edit User screen
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
}
?>
?>2.) emails are sending three emails when vendor adds product or i approve product. This is an issue which is known on your forum. please look at https://www.wcvendors.com/help/topic/duplicate-email/
-
AuthorPosts