- This topic has 16 replies, 3 voices, and was last updated 3 years, 3 months ago by
NerdySupportExpert Moumita.
-
AuthorPosts
-
-
March 27, 2023 at 9:10 PM #189900
2ki
ParticipantGood morning,
I would like to sell music with other people.
When I’m on the product creation page on the dashboard, I can only put an image. How it will be possible that the seller can upload a sound file via the dashboard to sell it on my site?Best regards
-
March 27, 2023 at 9:19 PM #189903
2ki
ParticipantAnd I would like to add additional text on the same page. Can you tell me which file to edit. THANKS
-
March 28, 2023 at 12:10 PM #189940
Sangita Support Squad
KeymasterHi thanks for your query .
As you can see this is product image uploader, so you can only upload images :
https://prnt.sc/4k0q_TPfe7HYYou can upload files of your product by checking the Downloadable box https://prnt.sc/peitC0t6CBKA in the product metadata field and you will get the option of adding downloadable files https://prnt.sc/jypcuV9lUPBB
Now where do you want to add additional text messages, kindly share a screenshot. So we can assist you out accordingly.
-
March 28, 2023 at 4:07 PM #189967
2ki
ParticipantThank you very much, I was able to make the changes.
Is it possible to make fields always visible and actived ?
-
March 28, 2023 at 4:20 PM #189970
2ki
Participantat I would also like to remove the two lines in the screenshot. THANKS
-
March 28, 2023 at 8:57 PM #190004
Sangita Support Squad
KeymasterPlease translate the pages into english, then share the images again.
-
March 28, 2023 at 9:24 PM #190010
2ki
ParticipantThis reply has been marked as private. -
March 29, 2023 at 1:17 PM #190048
Sangita Support Squad
KeymasterHello @2ki, The scrrenshot you have shared is from WooCommerce add product page, do you want to remove the same for vendor’s add product page? Then all you have to do is override the “ edit-product.php” template file. You will get further instruction on how to override here https://github.com/multivendorx/MultiVendorX/blob/main/templates/vendor-dashboard/product-manager/edit-product.php
To set product as default virtual and downloadable enabled, add this code in the function.php of the theme :
add_filter( 'mvx_product_type_options', 'autocheck_vd'); function autocheck_vd( $options ){ $arr['virtual']['default'] = "yes"; $arr['downloadable']['default'] = "yes"; return $options; } -
March 29, 2023 at 3:34 PM #190053
2ki
Participant“Hello @2ki, The scrrenshot you have shared is from WooCommerce add product page, do you want to remove the same for vendor’s add product page? ”
– Yes that is exactly what I am trying to do
To set product as default virtual and downloadable enabled, add this code in the function.php of the theme : PERFECT
-
March 29, 2023 at 4:22 PM #190054
2ki
ParticipantI added the code given in the function.php file in my child theme, but nothing happens. The virtual and downloadable fields are not active.
-
March 29, 2023 at 6:14 PM #190070
NerdySupportExpert Moumita
KeymasterSorry, use this updated code :
add_filter( 'mvx_product_type_options', 'autocheck_vd'); function autocheck_vd( $options ){ $options ['virtual']['default'] = "yes"; $options ['downloadable']['default'] = "yes"; return $options; } -
March 29, 2023 at 6:19 PM #190074
2ki
ParticipantTHANKS,
it works very well.However, I don’t see where to make the change in the edit-product.php file.
I can’t find the part of code where to remove “Download limit” and “Download timout” -
March 29, 2023 at 7:49 PM #190084
2ki
ParticipantI added this code to remove the fields:
#_download_limit {
display: none !important;
}
#_download_expiry {
display: none !important;
}
For now I’ll do it like this -
March 30, 2023 at 9:13 PM #190138
2ki
ParticipantThis reply has been marked as private. -
March 30, 2023 at 9:27 PM #190143
NerdySupportExpert Moumita
KeymasterHi, as both are taxonomy, hence you can detect whether this is vendor taxonomy by checking with is_tax( ‘dc_vendor_shop’ )
-
March 30, 2023 at 9:45 PM #190147
2ki
ParticipantAll right. But I confess that I do not understand what I have to do with this code. I am a beginner
-
March 31, 2023 at 1:44 PM #190172
NerdySupportExpert Moumita
Keymaster@2ki, we are not sure about the flow you are looking for. Can you share some images to explain the query so we can assist you on this.
-
-
AuthorPosts
- The topic ‘sell musics’ is closed to new replies.




