Remove Give Up button?

  • Posts: 105
  • Thank you received: 9
7 years 7 months ago #248959

-- HikaShop version -- : 2.6.3
-- HikaAuction version -- : 1.2
-- Joomla version -- : 3.51

Hi HA Team!

Is there a way we can remove the give up on auction button that appears once the winner clicks the link? I only want to allow the user to proceed to checkout.

Thanks!

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 7 months ago #248980

Hi,

It is possible to remove the button using a view override.

In order to know if it could be useful to add an option in HikaAuction to propose or not the "give up" button ; would it be possible to have more details about your general workflow ?
What would happen if the winner do not proceed to checkout ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 105
  • Thank you received: 9
7 years 7 months ago #249022

Hi Jerome,

We have a lot of auctions that are identical items. We have communicated to our parents to put in their max bid, and only on the items they want. If they have the option to "give up on the auction", they will bid on all 10 of the same item. At the end of the auction, they will give up on nine of them, and then accept one. As a non-profit, this will lose a lot of money for us - because they will have driven the price up by bidding on multiple items, and other parents will not bid as a result of the price being too high.

In those rare instance when a person has to give up on an auction (example - they are moving), the person would contact us directly...so maybe the option to input a "Contact Button With Questions" in place of the "Give up on Auction", would be helpful as an option.

Hope this helps to clarify? If not, please let me know :)

In the meantime, what view should I change and how ? Thanks much !

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 12953
  • Thank you received: 1778
7 years 7 months ago #249184

Hello,

In the meantime, what view should I change and how ?

To do that you'll just have to :
- Go to the page "Hikashop->Display->Views"
- Edit the "show_auction_payment" file of the "auctionauction" view
- Remove these lines :
	<div class="auction_decline_block">
		<?php
			echo JText::_('HKA_AUCTION_GIVE_UP_TEXT') . '</br>';
		?>
			<form action="<?php echo hikaauction::completeLink('auction&task=show_auction_payment'); ?>" method="post" name="hikaauction_product_form" enctype="multipart/form-data">
				<input type="submit" value="<?php echo JText::_('HKA_AUCTION_GIVE_UP');?>">
				<input type="hidden" id="product_id" name="product_id" value="<?php echo $this->fullProduct->product_id; ?>"/>
				<input type="hidden" name="ctrl" value="auction"/>
				<input type="hidden" name="task" value="show_auction_payment"/>
				<input type="hidden" name="cancel_auction" value="1"/>
				<input type="hidden" name="return_url" value="<?php
					echo urlencode(base64_encode(hikaauction::currentUrl()));
				//	echo urlencode(base64_encode(urldecode($this->redirect_url)));
				?>"/>
			</form>
		</div>

Note that you can also use that CSS code to adapt the displaying of the "Proceed to checkout" dropdown and button :
.auction_payment_block {
    float: none !important;
    width: 100% !important;
}

We have a lot of auctions that are identical items. We have communicated to our parents to put in their max bid, and only on the items they want. If they have the option to "give up on the auction", they will bid on all 10 of the same item. At the end of the auction, they will give up on nine of them, and then accept one. As a non-profit, this will lose a lot of money for us - because they will have driven the price up by bidding on multiple items, and other parents will not bid as a result of the price being too high.


Thank you for your feedback we'll probably create a "Show Give up button" option.

Last edit: 7 years 7 months ago by Mohamed Thelji.

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

  • Posts: 105
  • Thank you received: 9
7 years 7 months ago #249187

Thanks Mohamed!

My coding is a little different in the view - just want to make sure I'm removing the correct lines...

<?php
if(isset($this->cancel_auction) && (int)$this->cancel_auction == 1) {
?>
	<div class="auction_cancel">
		<h2><?php echo JText::sprintf('HKA_AUCTION_GIVE_UP_CONFIRMATION',$this->fullProduct->product_name); ?></h2>
		<br/>
		<div class="auction_decline_block">
			<form action="<?php echo hikaauction::completeLink('auction&task=cancel_auction'); ?>" method="post" name="hikaauction_product_form" enctype="multipart/form-data">
				<input type="submit" value="<?php echo JText::_('HKA_AUCTION_GIVE_UP');?>">
				<input type="hidden" id="product_id" name="product_id" value="<?php echo $this->fullProduct->product_id; ?>"/>
				<input type="hidden" name="ctrl" value="auction"/>
				<input type="hidden" name="task" value="cancel_auction"/>
				<input type="hidden" name="return_url" value="<?php
					echo urlencode(base64_encode(hikaauction::currentUrl()));
				?>"/>
			</form>
		</div>

Do I remove from the isset?
Thanks so much for the great support!

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

  • Posts: 105
  • Thank you received: 9
7 years 7 months ago #249188

Maybe I need morning caffeine?! I'll grab and remove the code staring at <div class="auction_decline_block">. Will let you know if I have any problems! Thanks

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

  • Posts: 105
  • Thank you received: 9
7 years 7 months ago #249214

Perfect! Everything seems to be working. Thank you! :)

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

  • Posts: 12953
  • Thank you received: 1778
7 years 7 months ago #249190

Actually, you'll only need to remove these lines and nothing after these lines :

<div class="auction_decline_block">
	<?php
		echo JText::_('HKA_AUCTION_GIVE_UP_TEXT') . '</br>';
	?>
	<form action="<?php echo hikaauction::completeLink('auction&task=show_auction_payment'); ?>" method="post" name="hikaauction_product_form" enctype="multipart/form-data">
		<input type="submit" value="<?php echo JText::_('HKA_AUCTION_GIVE_UP');?>">
		<input type="hidden" id="product_id" name="product_id" value="<?php echo $this->fullProduct->product_id; ?>"/>
		<input type="hidden" name="ctrl" value="auction"/>
		<input type="hidden" name="task" value="show_auction_payment"/>
		<input type="hidden" name="cancel_auction" value="1"/>
		<input type="hidden" name="return_url" value="<?php
			echo urlencode(base64_encode(hikaauction::currentUrl()));
		//	echo urlencode(base64_encode(urldecode($this->redirect_url)));
		?>"/>
	</form>
</div>

Last edit: 7 years 7 months ago by Mohamed Thelji.

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

Moderators: Mohamed Thelji
Time to create page: 0.080 seconds
Powered by Kunena Forum