MultivendorX
-
AuthorPosts
-
-
March 27, 2023 at 9:10 PM #1899002kiParticipant
Good 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 #1899032kiParticipant
And 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 #189940Sangita Support SquadKeymaster
Hi 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 #1899672kiParticipant
Thank 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 #1899702kiParticipant
at I would also like to remove the two lines in the screenshot. THANKS
-
March 28, 2023 at 8:57 PM #190004Sangita Support SquadKeymaster
Please translate the pages into english, then share the images again.
-
March 28, 2023 at 9:24 PM #1900102kiParticipantThis reply has been marked as private.
-
March 29, 2023 at 1:17 PM #190048Sangita Support SquadKeymaster
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? 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; }
Copy -
March 29, 2023 at 3:34 PM #1900532kiParticipant
“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 #1900542kiParticipant
I 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 #190070NerdySupportExpert MoumitaKeymaster
Sorry, 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; }
Copy -
March 29, 2023 at 6:19 PM #1900742kiParticipant
THANKS,
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 #1900842kiParticipant
I 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 #1901382kiParticipantThis reply has been marked as private.
-
March 30, 2023 at 9:27 PM #190143NerdySupportExpert MoumitaKeymaster
Hi, 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 #1901472kiParticipant
All 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 #190172NerdySupportExpert MoumitaKeymaster
@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.