Osclass Support Forums

Osclass plugin support => Backoffice Manager Plugin => Topic started by: jcarrolo01 on August 20, 2019, 09:59:44 PM

Title: Simple question about republish listings
Post by: jcarrolo01 on August 20, 2019, 09:59:44 PM
Dear all...

When a email is received to republish the listing, when we press the republish link we are redirected to home page telling the listing was successfully republished, so far it ok....

The question i have is, when republish link its pressend on the received email it's possible to redirect to the listing page and not for Home page....



Best Regards





Title: Re: Simple question about republish listings
Post by: MB Themes on August 21, 2019, 07:23:45 AM
@jcarollo1
You can find redirects here:
oc-content/plugins/backoffice_manager/republish.php

Code: [Select]
//Send user to homepage or payment page with flash message
if($pay_per_post == 1 && $item_id <> '') {
  osc_add_flash_ok_message( __('There is fee for republishing listing. After payment is successful, your listing will be activated. Please continue to payment process.', 'backoffice_manager'));
  header('Location: ' . osc_route_url('payment-publish', array('itemId' => $item_id)));
} else {
  if($redirect == '') {
    if(osc_is_web_user_logged_in()) {
      header('Location: ' . osc_user_dashboard_url(osc_logged_user_id()));
    } else {
      header('Location: ' . osc_base_url());
    }
  }
}

Title: Re: Simple question about republish listings
Post by: jcarrolo01 on August 21, 2019, 10:50:15 AM
Hello...

Thanks this will help allot...



Best regards