PikoSim Posted July 30, 2019 Report Share Posted July 30, 2019 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! Quote Link to comment Share on other sites More sharing options...
flyalaska Posted July 30, 2019 Report Share Posted July 30, 2019 You have your main jquery in both layout and core_htmlhead.php? Quote Link to comment Share on other sites More sharing options...
PikoSim Posted July 31, 2019 Author Report Share Posted July 31, 2019 hi, i managed to solved it by editing the jquery file. HAd to change the path. All work good now! Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.