Jump to content

Custom flight bidding


PikoSim

Recommended Posts

Hi guys, i have a problem. Im making my own type of flight bidding for cargo. So in my Schedule.php module, i created a new function and name it addbid_opscargo. So in my opscargo page, when i press Add Bid, it will have to add to my created database rather than then default one, phpvms_bids. But the problem now is, when i press Add bid, it will use the default one and will not run or use my addbid_opscargo function. Everytime i press Add bid, it will add it to phpvms_bids instead.

I'm not sure if its jquery issue cause i did remember adding jquery in my Layout.php when i have one in core_htmlhead.php. It worked somehow but always bring me to a white page which shows either "No Route Passed", "Bid added" or "Bid already exists!" on the top left which is not i want!

This is the code in OpsCargo page on everytime schedules found it will put Add Ofer to Bid option.

 <a id="<?php echo $bid->id;?>" class="addbid btn-btn-success" href="<?php echo actionurl('/schedules/addbid_opscargo');?>">Add offer to Bid</a><br/>

Can anyone guide me through? Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...