[SHARE] Let seller input Custom Price

Updated on Jul 6, 2016 in [I] MicrojobEngine
10 on Jun 10, 2016

Do this at your own risk as I’m not sure if this modification will create any conflict with the theme or not. (So far there’s  no problem with mine)

Final result will look like this :

 

If you notice any possible conflict or found a better way, please share it with us 🙂

1. edit the wp-content\themes\microjobengine\template\post-service-step3.php by adding this code in this section:

 

 

2. Then edit the wp-content\themes\microjobengine\template-js\template-edit-mjob.php by adding this code in this section:

 

 

3. Edit wp-content\themes\microjobengine\includes\modules\mJob\class-mJobAction.php by CHANGING this line:

$request[‘et_budget’] = ae_get_option(‘mjob_price’, 5);

to this line:

$request[‘et_budget’] = $_POST[‘et_budget’];

 

4. Edit wp-content\themes\microjobengine\assets\js\post-service.js by adding code in this  section:

et_budget: {
required: true,
min: 0
},

 

5. Edit wp-content\themes\microjobengine\assets\js\single-mjob.js by adding code in this  section:

et_budget: {
required: true,
min: 0
},

DONE

NB: All those modified file can be done from child-theme EXCEPT class-mJobAction.php. This class-mJobAction.php file can’t be modified through child-theme. (I tried and it didn’t work)

  • Liked by
  • Retro WP
  • Uyen
  • Daniel Nguyen
  • Phat
0 on Jun 11, 2016

Thanks for your sharing! 😀

  • Liked by
Cancel
0 on Jun 11, 2016

Thank you for posting in.

Concerning this, we already have a plan to implement the mentioned feature for version 1.1.1. Please keep following our blog for the latest update.

  • Liked by
Cancel

I still haven’t figured out the AJAX when we edit an mJob’s price though, so we have to manually refresh the page after editing the price.

Do you see any problem with the modification above? I’m afraid the modifications above might produce some bugs in the long term.

thanks,

NB: If the modification above is totally fine, is there by any chance EngineTheme will implement this feature faster like in version 1.0.7? 🙂 hehe since I’ve already done it anyway, so we don’t have to check the child theme everytime the theme is updated.

 

Customer Customer
on Jun 13, 2016

i will buy this as soon as this implemented 😉 ! very good work there.

Show more replies
  • Liked by
Cancel
0 on Jun 13, 2016

Hello there,

I’ll move this topic to the idea category. The more you can contribute ideas, we are very happy with that.
Thanks for you writing.
Please keep contact with us at Blog and forum.
Thank you!
TP

  • Liked by
Cancel

Hello, the codes in number 1 and 2 are messed in the movement, how do I edit it?

it should be this:

<div class="form-group clearfix">
 <div class="input-group">
 <div class="input-group-addon"><i class="fa fa-usd"></i></div>
 <input type="number" class="input-item et-budget" min="0" pattern="[-+]?[0-9]*[.,]?[0-9]+" name="et_budget" placeholder="<?php _e('Price', ET_DOMAIN); ?>" required>
 </div>
 </div>
Customer Customer

¿Hablas español Reynaldo?

 

Tu aporte es genial, ya me había planteado buscar la manera de hacer lo que hiciste. Aunque yo solo pensaba habilitar el precio personalizado al momento de crear el anuncio y no permitir cambiarlo al editarlo.

 

Gracias y saludos

Show more replies
  • Liked by
Cancel
1 on Jun 21, 2016

Hello guys!!!!! Is it work are u sure??? Then i m gonna try to set :)))) tyyyy

Customer Customer

Hi, It working for me!

Show more replies
  • Liked by
Cancel
0 on Jun 29, 2016

Please vote for this. This is the true way this needs to be implemented and not just placing a field for the price. We also need revisions field! 

http://forum.enginethemes.com/thread/individual-price-setup-by-category-and-revisions-for-each-job/

  • Liked by
Cancel
Loading more replies
Posting & Replying function will be deactivated from 3pm GMT+7 12th Sep.
Read More