Button: hikashop_cart_input_button

  • Posts: 61
  • Thank you received: 1
12 years 3 months ago #60707

Hi
Where i can find the button "hikashop_cart_input_button" (to ad more products), on the checkout/login page (in the cart).
I wish to move the button right under the cart total sumn, instead of the bottom of this page (below the registration form).
I want to know where, in which file i can find he code for this button, then I want change it (giv it another ID and Class), then put it into the file, where the cart with the total coasts is in.

Thank you
Rolandus

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
12 years 3 months ago #60785

Hi,

"hikashop_cart_input_button" is a generic class. It could have several button with the same class but with different function.
So it is a little bit complicated to know which button you are talking about.

Can you gave us a screenshot of what you want to do ?

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: 61
  • Thank you received: 1
12 years 3 months ago #60978

File Attachment:

File Name: MGD-checko...een.docx
File Size:312 KB


Thank you for help !
Rolandus

Attachments:

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #61050

You can add your HTML in the file "cart" of the view "checkout" via the menu Display > Views.

Last edit: 12 years 3 months ago by Jerome.

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

  • Posts: 61
  • Thank you received: 1
12 years 2 months ago #62284

OK, I didn't get it.

The Button I want change place on the cart (step 1) I found in the file checkout/step.php

Then I like to put it into checkout/cart.php into the end of the last table after the </tbody> tag

Which part of the PHP Code I have to put in there to show the button there for continue_shopping?
And which part of the PHP Code I have to remove in the file step.php where it originally appears on the bottom of the page ->checkout / step.php?

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 2 months ago #62407

if you want to remove the continue button on the step file, you can change the line:
if($this->continueShopping){

to:
if(false){

If you want to add the continue button on the cart file, you can add the code below at the end:
<?php
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"');
}
?>

The following user(s) said Thank You: Rolandus1

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

Time to create page: 0.061 seconds
Powered by Kunena Forum