Displaying Today Orders In A Row

  • Posts: 108
  • Thank you received: 2
13 years 3 months ago #23845

Hello again.

I am trying to make something that can display at the back-end the orders from today at a row so i wont need to go one by one.
Need to display lets say the order number, billing and shipping address and the products. I need it so at the end of the day i can view my orders of the day and ship them the next day.
Is there an outside module for this? or if not how can this be done?

Thanks in advance.

EDIT: In addition I need to know what is calling the function onAfterInitialise() at hikashopaffiliate.php when partner_id is set in the URL.. thank you.

Last edit: 13 years 3 months ago by bars92.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23864

Hi,

I think that the best is to edit the file listing of the view order for the back end via the menu Display->Views.
There, you could load the necessary data from the database and display it on the listing.

The function onAfterInitialise is called by joomla in the index.php file of your website.

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 2
13 years 3 months ago #23874

Ok I will do that, thank you.

I need to add a cookie to hikashop so i did it in the hikashopaffiliate.php, but it is called only when partner_id is called, how can i call her when a different paramaters comes.
Lets say u want to do something like this:
www.4u2.co.il/?option=com_hikashop&ctrl=...oduct_id=28&cookie=5
or
www.4u2.co.il/?option=com_hikashop&ctrl=...id=28&partner_id=300

I want the function to be executed in both cases, how is this possible? I could find the AfterInitialise mark but couldnt find when it is marked.

Thank you very much for your help.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23876

It's that code of the plugin which check the parameter name:
$partner_id = hikashop_decode(JRequest::getCmd($key_name,0),'partner');
if(empty($partner_id)){
return true;
}

so you could do like that:
$partner_id = hikashop_decode(JRequest::getCmd($key_name,0),'partner');
if(empty($partner_id)){
$partner_id = hikashop_decode(JRequest::getCmd('cookie',0),'partner');
if(empty($partner_id)){
return true;
}
}

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 2
13 years 3 months ago #23878

Ok thats good for that, but if they are both displayed together wont it cancel cookie? (example: ...&cookie=4&partner_id=300)

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23892

It will indeed. That's what I understood you wanted to have.

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 2
13 years 3 months ago #23962

No, i wanted to have the option to do ...&cookie=4 or ...&partner_id=300 because ...&cookie=4&partner_id=300 is working for now (cookie is created when partner_id is called at hikashopaffiliate.php). I need all three options available by Hikashop, how is this can be done?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23966

I still don't understand what you're trying to do so I can't help you :/
Please help more the problem you're trying to solve with the cookie variable.

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 2
13 years 3 months ago #24023

I have created a special cookie at the function onAfterInitialise() at hikashopaffiliate.php. Now, this function is called whenever there is &partner_id=XXX at the URL.
I wish to call the function elso when there is that &cookie=XXX at the URL (only that, and with partner_id).
When there is partner_id and cookie the function i called and create both, when there is only partner_id the function i called and create partner_id, but when there is only cookie function is not called.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #24054

Then you should do like that:

$partner_id = hikashop_decode(JRequest::getCmd($key_name,0),'partner');
$cookie = hikashop_decode(JRequest::getCmd('cookie',0),'partner');
if(empty($partner_id)||empty($cookie )){
return true;
}

and use $cookie and/or $partner_id for your code after that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum