Join our new community forum for support & discussion
Join NowHome › Support › Extensions › Marketplace › Mixing listing and marketplace
Mixing listing and marketplace
-
AuthorPosts
-
Lenki 2 years, 6 months ago
I wanna buy marketplace extension, but I’m thinking – is it possible to mix listing and marketplace offers? I mean is user have option to check option to send listing or marketplace offer?
The price field is required by default, but it’s possible to make it optional with a simple code snippet. If there’s no price then the “Buy Now” button will be hidden.
Lenki 2 years, 6 months agoIs it possible to set it like this: all listings are free, but marketplace offer needs payment (packages or something – that’s not a problem). And now I want make it like typing optional price field, which is running “buy now” button and next others feature like receiving orders is running payment gate.
If you dont understand I see this like: Add listing(/submit-lisitng) then categories and fields then no price – listing added free. And “premium” one with marketplace function like: Add listing (/submit-listing) then categories and fields, price filed is typed and then after “add listing” button click – payment gate.
There’s no such feature at the moment, you can make price optional but making this a premium feature (so, integrating it with Paid Listings) is not possible at the moment.
izaproch 2 years, 6 months agoHow to make price field optional?
izaproch 2 years, 6 months agoI would like to make somthing like this Airbnb=HivePress+Marketplace+Bookings is it possible with TaskHive + Maketplace+Calendarista? How to integrate Marketplace with Calendarista?
@izaproch Please try using this PHP snippet:
add_filter( 'hivepress/v1/models/listing/attributes', function( $attributes ) { if ( isset( $attributes['price'] ) ) { $attributes['price']['edit_field']['required'] = false; } return $attributes; }, 1000 );
There’s no booking extension at the moment, but I plan to release it within a month, it’ll seamlessly integrate with the Marketplace extension so each listing will have its own calendar. If you use Calendarista it will require integration because there will be a common calendar for all listings, and vendor commissions will not be calculated separately.
You can try setting a custom field description via the “description” key:
add_filter( 'hivepress/v1/models/listing/attributes', function( $attributes ) { if ( isset( $attributes['price'] ) ) { $attributes['price']['edit_field']['required'] = false; $attributes['price']['edit_field']['description']='custom text here'; } return $attributes; }, 1000 );
izaproch 2 years, 5 months agoCould you please write where to put the above code. What directory, file and line in the code? Unfortunately, I don’t know much about programming.
Please try using this plugin to add and manage custom PHP snippets https://wordpress.org/plugins/code-snippets/
-
AuthorPosts
New Reply
This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.