Question: Quotations Pending Aleart Notification

Quotations Pending Aleart Notification

Hi.. dr Mr Mian Saleem..... Have a nice day Quotations Pending Aleart notification I added these for I duplicated an existing copy, but I do not understand how to include a URL link. Brother

IS

iqtoys store

Asked
Hi.. dr Mr Mian Saleem.....
Have a nice day
Quotations Pending Aleart notification I added these for I duplicated an existing copy, but I do not understand how to include a URL link. Brother Mr Mian Saleem Please answer me ? The notification works. ``` <?= admin_url( ***** ? ***** ) ?> ``` could not be found What should I put in admin_url? I want to see All pending...

###### app/core/MY_Controller.php
``` $meta['quote_alerts'] = $this->site->get_quote_alerts(); ```

###### app/models/Site.php
``` php public function get_quote_alerts()
{
$this->db->where('quotes.status', 'pending');
return $this->db->count_all_results('quotes');
}
```

###### themes/default/admin/views/header.php
``` php <?php if ($quote_alerts) {
?>
<li>
<a href="<?= admin_url( ***** ? ***** ) ?>" class="">
<span class="label label-danger pull-right" style="margin-top:3px;"><?= $quotes_alerts; ?></span>
<span style="padding-right: 35px;"><?= lang('order_list') ?></span>
</a>
</li>
<?php
} ?>
```
  • MS

    Mian Saleem

    Answered
    Hello,

    Helper `admin_url` is to generate url for admin area. It accept a string value of uri `customers` or `customers/add` the first value `customers` is the controller name and if there is no second value then system will check for `index` method bur if there any like `add` it will call that `add` method. The third and so on can be arguments of method.

    Let say you want to link to quotations page you can `<?= admin_url('quotes') ?>` or if you have added new method to Quotes controller then `<?= admin_url('quotes/your_method_name') ?>`

    For more info, please refer to [CodeIgniter User Guide](/userguide3/tutorial/static_pages.html)

    Thank you
  • IS

    iqtoys store

    Answered
    Thank you
  • IS

    iqtoys store

    Answered
    Thank you... Dr Mr Mian Saleem

    I want to split Send and Pending in the Status List on the quotes page. For example Looks like
    - <? = admin_url ('sales? shop = yes & delivery = no')?>
  • IS

    iqtoys store

    Answered
    i want to create url View All Pending list Identify in Quotes page
  • MS

    Mian Saleem

    Answered
    Hello,

    You can pass a query param from the link `<?= admin_url('quotes?pending=yes') ?>` and modify the view file `themes/default/admin/view/quotes/index.php` to check `$this->input->get('pending') == 'yes'` and make appropriate ajax call as you need.

    If you are not sure, you should hire a developer to help you as it won't take long.

    > Please be informed that we don't offer support for modification or modified versions. You are allowed to modify the item code as you need as per license.

    Thank you
  • EG

    Enyinnaya Gift

    Answered
    **[iqtoys store](/u/iqstore)** If you are still having with this. I can help you with it at **no cost/charge**.

    Please contact me via `[email protected]` or `[email protected]`

    I am an **independent developer** that knows the system well.

    @ **Mian Saleem** is aware of my presence here.

    Thanks.
  • Login to Reply