Important security update, please update to Osclass 3.7.4
At Osclass we have changed our Privacy Policy and Terms of Use in order to adapt them to the new General Data Protection Regulation (GDPR). We want you to know what user data we store, what we need them for, and who we share them with in each specific case. Furthermore, we are making it even easier for you to exercise your right to manage your own data.
Our goal is that you enjoy the best possible experience with our website. As the GDPR comes into force, legislation requires us that you grant us permission—both to us and our partners—to store cookies in your browser. Remember you can find more information about what we do with your data by clicking here.
I accept Osclass SL’s Terms of Use and Cookies Policy and grant them permission to manage my data.
Hello,About your second problem, I think their still fixing that problem when I tried to post a same problem earlier.But I manage to solve the problem.. Follow this..1. Locate ModelPayment.php -> /oc-content/plugins/payment/ModelPayment.php2. Find the code:Code: [Select]public function getTable_premium() { return DB_TABLE_PREFIX . 't_payments_premium'; }Changed it to:Code: [Select]public function getTable_premium() { return DB_TABLE_PREFIX . 't_item'; }3. Find the code:Code: [Select] public function premiumFeeIsPaid($itemId) { $this->dao->select('*'); $this->dao->from($this->getTable_premium()); $this->dao->where('fk_i_item_id', $itemId); $this->dao->where(sprintf("TIMESTAMPDIFF(DAY,dt_date,'%s') < %d", date('Y-m-d H:i:s'), osc_get_preference("premium_days", "payment"))); $result = $this->dao->get(); $row = $result->row(); if (isset($row['dt_date'])) { return true; } return false; }Changed it to:Code: [Select] public function premiumFeeIsPaid($itemId) { $this->dao->select('*'); $this->dao->from($this->getTable_premium()); $this->dao->where('pk_i_id', $itemId); $result = $this->dao->get(); $row = $result->row(); if ($row) { if ($row['b_premium'] == 1) { return true; } else { return false; } } return false; }Hope this helps!
public function getTable_premium() { return DB_TABLE_PREFIX . 't_payments_premium'; }
public function getTable_premium() { return DB_TABLE_PREFIX . 't_item'; }
public function premiumFeeIsPaid($itemId) { $this->dao->select('*'); $this->dao->from($this->getTable_premium()); $this->dao->where('fk_i_item_id', $itemId); $this->dao->where(sprintf("TIMESTAMPDIFF(DAY,dt_date,'%s') < %d", date('Y-m-d H:i:s'), osc_get_preference("premium_days", "payment"))); $result = $this->dao->get(); $row = $result->row(); if (isset($row['dt_date'])) { return true; } return false; }
public function premiumFeeIsPaid($itemId) { $this->dao->select('*'); $this->dao->from($this->getTable_premium()); $this->dao->where('pk_i_id', $itemId); $result = $this->dao->get(); $row = $result->row(); if ($row) { if ($row['b_premium'] == 1) { return true; } else { return false; } } return false; }