Add a Message At The Bottom of Cart

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 9 months ago #87039

I would like to add a message/note at the bottom of the cart. Do I use a custom field for that or do I have to add it in a template. I don't see a suitable option to use in custom fields.

I would like to add the message just above the "continue shopping" and "next" buttons.

Thank you!!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 9 months ago #87113

Hi,

I think that you'll just have to :
- Go to "Hikashop->Display->Views"
- Edit the "step" file of the "checkout" view of your front-end template
- add this code :

<?php echo"YOUR MESSAGE";?>
before the lines :
if($this->nextButton){
      echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',$this->params,hikashop_completeLink('checkout&task=step&step='.($this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');

Hope this will help you.

Last edit: 11 years 9 months ago by Mohamed Thelji.

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 9 months ago #88201

I got an error when I add this:
<?php echo"YOUR MESSAGE";?>

This is the error:

Parse error: syntax error, unexpected '<' in /home/.../public_html/.../templates/.../html/com_hikashop/checkout/step.php on line 127


Thanks!!

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 9 months ago #88202

Oooops I put it in the wrong place. Sorry it's fine now.

Thanks!!

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

Time to create page: 0.068 seconds
Powered by Kunena Forum