Forum Replies Created
- AuthorPosts
csheriff
ParticipantHI,
The Marketplace Settings is already set to 20, but that seems to only affect the main Shop page, not the individual Vendor Store page…
I would like the Categories on a Tab on the Store Vendor Page, in addition to the Products and About tabs. I need to list the Product Categories on that tab and sort the Products by category (just like on the main Shop page).
Thank You
April 14, 2020 at 5:56 pm in reply to: Populate Store Name and Address Fields from Custom Post Type #119040csheriff
ParticipantHi,
Thank you for your quick response! The information that I need is for the Vendor Registration, not the Customer…
I’m using the WooCommerce Front End Manager – I think that I need to update the wcfmmp_profile_settings in the database,but I don’t know what action hook to use. I was able to populate the Shop Name with my custom post type Business title using the following code, but I haven’t been able to populate the Address Fields from the Business address…add_action( 'wcfmmp_new_store_created', function( $member_id, $wcfmmp_settings ) { global $WCFM, $wpdb; update_user_meta( $member_id, 'store_name', $member_id ); update_user_meta( $member_id, 'wcfmmp_store_name', $member_id ); $wcfmmp_settings['store_name'] = $member_id; update_user_meta( $member_id, 'wcfmmp_profile_settings', $wcfmmp_settings ); $wpdb->query( "UPDATE {$wpdb->prefix}users SET <code>user_nicename</code> = '{$member_id}' WHERE ID = $member_id" ); }, 50, 2 ); add_filter( 'wcfm_is_allow_store_name', '__return_false' );
- AuthorPosts