move continue shopping button in the check out page

  • Posts: 8
  • Thank you received: 0
6 years 8 months ago #288857

-- url of the page with the problem -- : www.thechinrestlip.com/index.php?option=...=checkout&Itemid=118
-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.7.2

Hi,

I'd like to move my continue shopping button in the checkout page from the buttom of the page to right beneath the order summary. How do I do that? I have tried following this thread: www.hikashop.com/forum/checkout/865811-c...n-in-top.html#143871 by putting the code on the 'step' file, but nothing changed.


This is the code I copied from that thread:

if($this->continueShopping){
if(strpos($this->continueShopping,'Itemid')===false){
if(strpos($this->continueShopping,'index.php?')!==false){
$this->continueShopping.=$url_itemid;
}
}
if(!preg_match('#^https?://#',$this->continueShopping)) $this->continueShopping = JURI::base().ltrim($this->continueShopping,'/');
echo $this->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($this->continueShopping),'window.location=\''.JRoute::_($this->continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"');
}


Please help
Thank you:)

Last edit: 6 years 8 months ago by mizuwate.

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

  • Posts: 12953
  • Thank you received: 1778
6 years 8 months ago #288859

Hello,

Can you show us through some sceenshots what you exactly want to achieve ?

Thank you.

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

  • Posts: 8
  • Thank you received: 0
6 years 8 months ago #288902

Here are the screenshots. :blush: :)

Attachments:
Last edit: 6 years 8 months ago by mizuwate.

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
6 years 8 months ago #288904

Hi,

You're using the new checkout system of HikaShop 3.x while this thread was about the old checkout of HikaShop 2.x.
So the modification will be completely different in your case.
You'll want to take the code:

<?php
	$continue_shopping = $this->config->get('continue_shopping','');
	if(!empty($continue_shopping)) {
		if(strpos($continue_shopping, 'Itemid') === false) {
			if(strpos($continue_shopping, 'index.php?') !== false) {
				$continue_shopping .= $url_itemid;
			}
		}
		if(!preg_match('#^https?://#',$continue_shopping))
			$continue_shopping = JURI::base().ltrim($continue_shopping,'/');
?>
		<a href="<?php echo $continue_shopping; ?>" class="<?php echo $this->config->get('css_button','hikabtn'); ?> hikabtn_checkout_continue" id="hikashop_checkout_shopping_button"><?php echo JText::_('CONTINUE_SHOPPING'); ?></a>
<?php
	}
?>
from the file "show_block_buttons" and put it near the end of the file "show_block_cart" via the menu Display>Views.

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

  • Posts: 8
  • Thank you received: 0
6 years 8 months ago #288934

Hi,

I tried putting the code to the file 'show_block_cart' but nothing happened.
The button still stays at the bottom of the page.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
6 years 8 months ago #288949

Hi,

Did you also remove it from the show_block_buttons view file ?
If so and you still have the button at the bottom, it means that you're editing your view files for the wrong template, not the one you're using on your frontend.

Also, in your screenshot, you're missing some of the code I told you to copy. And the bit you're missing is the most important.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum