Hi,
After an auction finalizes, the winner has to go through the checkout to be able to provide the address information, select the payment method, select the shipping method, etc. So it has to send an email to the winner to direct him to the checkout.
And at the end of the checkout, the order is created and the user is normally redirected to the payment gateway payment page for the payment. HikaShop will send an email when the order is created if the "order creation notification" email is published in System>Emails. You can unpublish it if you want.
And after the payment, HikaShop sends an email to tell the user that the order is confirmed (and there is no payment link on this email), it's just a confirmation.
How could the user be redirected to the checkout after the auction ends ? It's likely the user is not on the website when this happens. And thus, the email is necessary.
Now, adding a link to access the payment from the product page once the auction is finished if the current user is the winner makes sense. I think it's a good idea. Try adding the code:
if ( !empty($this->current_winner_id) && $this->current_winner_id == $this->user && $this->auction_finished) {
?>
<div class="hikaauction_bid_checkout_button_div">
<a class="<?php echo $this->config->get('css_button', 'hikabtn') . ' ' . $this->bid_button_css; ?> hikabtn-success" href="<?php echo hikaauction::completeLink('checkout&task=checkout&product_id=' . (int)$this->element->product_id); ?>">
<?php echo JText::_('PAY_NOW'); ?>
</a>
</div>
<?php
}
before the line:
if(!empty($this->element->extraData->rightMiddle)) { echo implode("\r\n",$this->element->extraData->rightMiddle); }
in the view file productauction / show_auction.php via the menu Display>Views.
It should add that button. Please provide feedback on this. We can then include it in the next version of HikaAuction.