- Posts: 38
- Thank you received: 0
Auction component
-- HikaAuction version -- : 1.0.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.17
-- Browser(s) name and version -- : Firefox 44.0.2
Hello,
We are just testing prior going live with our primer auction and we think Auctions does not work correctly.
We are two persons bidding, with two different users. When I bid I can see starting price, current bid which is my bid and my maximum bid, but when the other pèrson bid with higher price they see starting price correct but current price is what I was bidding even if he out bid me. I think if he bidded more then the current price should show as his bidding price but it shows mine. Also if he bidded more than me , I can see that minimum bid shows just my bid + 1 not his bid +1.
We are really confused and actual Auction functionality looks confused.
Hope you can help with this.
P.S: Please note that to see actual auction page you have to have special group permission.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
The current bid will always be equals to :I think if he bidded more then the current price should show as his bidding price but it shows mine
[0 - 1] bid => The starting price
More than 2 bids => The second (customer) highest bid + bidding increment, the bidder with the highest bid will always be the winner until a customer bid with an higher value.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
It's the only auction mode we have for the moment but we already added other auction modes in our TODO list (including what you want to do).
If you really want to do it as you want, the only solution will be to directly develop that mode by editing the code of the files of the HikaAuction component.
Also note that the current price will only show the "minimum amount" your customer will have to bid so that his bid can be taken into account. At the end of the auction, the winner will win the auction for amount equals to the second highest bidder max bid
Please Log in or Create an account to join the conversation.
Again thank you for your response.
I wish that you coud implement this simple public auction as soon as posible, this is what we are after. Unfortunately we do not understand how to change the code so the only solution is to wait for your update.
There is still something which I do not understand. We did auction test and the winning price is the second higest bidder bid as you say so the winner will pay what the other bidder was bidding? I do not see logic. if the second bidder was paing that price the the winner can not winn and pay the same price, it should be higher what previous bidder was bidding for.At the end of the auction, the winner will win the auction for amount equals to the second highest bidder max bid
Mohamed, if we could just change in the code that the final winning price is the same as higest bidder max bid then everything would be fine.
Thank you for your assistance,
Jerzy
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
To do what you want you'll have to edit 2 files :
- To send an email with a valid price to the winner of your auction "administrator\components\com_hikaauction\classes\auction.php" and change this line
The best solution will be to create a custom function which will retrieve a current price according to your needs through the file "administrator\components\com_hikaauction\classes\auction.php" and then call it.
Please Log in or Create an account to join the conversation.
Thank you very much, this information is very useful in order to change that actual bidding price. We will try to set it up following your indications.
Thank you again for your help, I really do appreciate it.
Jerzy
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 1
Can you help me? What code I have to paste instead those rows?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
It will actually depends on what you exactly need, contacting jerzy to ask him if he succeed to do it can be a solution
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
To do what you want you'll have to do as I said through my last Post :
To do what you want you'll have to edit 2 files :
- To send an email with a valid price to the winner of your auction "administrator\components\com_hikaauction\classes\auction.php" and change this line- To set the correct price when your user will validate his auction to create an order "components\com_hikaauction\controllers\auction.php"Code:$current_price_amount = $this->getAuctionCurrentPrice($product_id,$starting_price_amount, $current_winner_id);So you'll have to make sure that the $current_price_amount is set to the value of the last cheapest/maximum (as you prefer) valid bid of the winner of the auction.Code:$current_price_amount = $auctionClass->getAuctionCurrentPrice($product_id,$starting_price_amount, $current_winner_id);
In your case you'll have to :
- Replace this line via "administrator\components\com_hikaauction\classes\auction.php" to send an email with a valid price to the winner of your auction :
- Replace this line via "components\com_hikaauction\controllers\auction.php" to set the correct price when your user will validate his auction to create an order :
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 1
I changed the code .But the auction is not working properly. The current price is wrong, the minimum bet is wrong, the final price is wrong, but at checkout the price is correct. Th у first screen is from user Crazydope, the second is from Shnatochka a the one moment.
And another question - e-mail is delivered only if I run cron manually.. Why?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
1. I only gave you the code that will enable you to change the value of the final price through the validation link, but for other location as :
- Current price
- Final price
That are displayed through your auction page, you'll have to edit the code of the "show_default" file of the "productauction" view via "Hikashop->Display->Views". For the Final price you'll have to change these lines :
2. You should configure it to be triggered automatically : www.hikashop.com/support/support/documen...ashop-cron-task.html
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 1
To change the price of the auction you don't need to do the changes described in the previous messages. When the setting of the auction mode "Free bidding" you'll have to edit the code of the "show_auction" file of the "productauction" view via "Hikashop->Display->Views". You'll have to change these lines :
But Now about the cron. I configured it as specified in the documentation. But 3 days later he started in 20:26 and 22:40. And yesterday he began to issue every 10 minutes "Task is completed. No file path specified". But for the participants it sends only when run manually
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Did you configured your server to launch your Cron like it's explained on our documentation ?Now about the cron. I configured it as specified in the documentation. But 3 days later he started in 20:26 and 22:40. And yesterday he began to issue every 10 minutes "Task is completed. No file path specified". But for the participants it sends only when run manually
www.hikashop.com/support/support/documen...ron-task.html#server
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 1
I have created a cron task on your and on my own server following your documentation.
I am receiving the cron email all the day with this message:
--2016-04-19 22:20:01-- my.site/index.php?option=com_hikashop&ctrl=cron
Recognized moreart.pro... my ip
The connection to my.site|my ip|:80... connected.
HTTP request sent, waiting for response... 200 OK
Length: none [text/html]
Saving to: "/dev/null"
0K 73,7 M=0s
2016-04-19 22:20:02 (73,7 MB/s) - "/dev/null" saved [389]
But I am not receiving any system emails at all, like the outbid notification, like Lene. And support of my hosting says that everything is OK and they adviced me to get your support.
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 1
Now I trigger the cron task every 15 minutes using the hika-server. But I would like to trigger the cron task every 5 minutes using my own server, but the mail is not delivered, although cron works fine.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
That's actually weird, can you test it with the last HikaAuction version that you can download through our website ? But before, make sure to correctly backup every files you customized.But I am not receiving any system emails at all, like the outbid notification, like Lene. And support of my hosting says that everything is OK and they adviced me to get your support.
To do that you'll have to directly use the "Minimum delay between two cron tasks" option via "Hikashop->System->Configuration->Cron"Now I trigger the cron task every 15 minutes using the hika-server. But I would like to trigger the cron task every 5 minutes using my own server, but the mail is not delivered, although cron works fine.
Also, note that with the new HikaAuction version you'll have 2 new options via "HikaAuction->Configuration" :
- A "Cron Check Period" option to add a verification period of finished auctions
- A "Cron Queue Period" option to add a verification period of Emails related to auctions to be sent
Please Log in or Create an account to join the conversation.
To do that you'll have to directly use the "Minimum delay between two cron tasks" option via "Hikashop->System->Configuration->Cron"
Also, note that with the new HikaAuction version you'll have 2 new options via "HikaAuction->Configuration" :
- A "Cron Check Period" option to add a verification period of finished auctions
- A "Cron Queue Period" option to add a verification period of Emails related to auctions to be sent
I just update HikaAuction to the latest version and I cannot see the 2 new options in HikaAuction->configuration.
The cron seems to be working sometimes. I have had emails that has come through 1:10pm, 1:11pm, 1:12pm but then other times it does not.
Regards
Lene
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I just installed it through your website and initialized both these options for you. Regarding your cron issue, you should check each points of the "If your cron task is not working, you should:" part of the "Cron" documentation : www.hikashop.com/support/support/documen...cron-task.html#check
Please Log in or Create an account to join the conversation.