Join our new community forum for support & discussion

Join Now

Home Support Extensions Marketplace Mixing listing and marketplace

Mixing listing and marketplace

  • Author
    Posts
  • Lenki

    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?

    ihor developer

    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

    Is 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.

    ihor developer

    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

    How to make price field optional?

    izaproch

    I would like to make somthing like this Airbnb=HivePress+Marketplace+Bookings is it possible with TaskHive + Maketplace+Calendarista? How to integrate Marketplace with Calendarista?

    ihor developer

    @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.

    Lenki

    @ihor my question is how to make “Optional” text next to price field with custom text in this specific attribute. I want add next “optional” info, that typing in this field is running marketplace extension.

    ihor developer

    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

    Could 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.

    serhii developer

    Please try using this plugin to add and manage custom PHP snippets https://wordpress.org/plugins/code-snippets/

    Lenki

    Thanks @ihor, works perfectly.

Viewing 12 posts - 1 through 12 (of 12 total)

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.