Category : vendor

I am trying to require Dokan vendors to enter dimensions when adding or editing a product through their vendor dashboards. This is because we calculate shipping automatically on the backend and if they don’t provide said information, the sale won’t complete. What I have tried is: add_action( ‘admin_head’, ‘dcwd_require_weight_field’ ); function dcwd_require_weight_field() { $screen = ..

Read more

I am trying to use a template-part as a vendor detail single page, for this I am using the following function: class WC_Product_Vendors_Custom { /** * Init * * @access public * @since 2.0.0 * @version 2.0.0 * @return bool */ public static function init() { $self = new self(); add_action( ‘woo_custom_vendor_profile’, array( $self, ‘display_custom_vendor_logo_profile’ ..

Read more

I keep having the same error after migration.It’s a fresh project, this is the only code I run: php artisan make:migration create_products_table –create=products; I’ve created the table successfully and tried twice, via postgres and mysql (same code), however, always after the migration this happens and I can’t run any command anymore. I’ve tried after to ..

Read more