change url in proceed to cart

  • Posts: 28
  • Thank you received: 0
12 years 10 months ago #37802

I need to change the url of the proceed to checkout button on the mini cart i dont understand the function complete the link can someone describe it to me please

<?php }
if($this->params->get('show_cart_proceed',1)){
echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,hikashop_completeLink('checkout'.$url_itemid),'');
} ?>

i need to change this to go to /checkout/ this is to put a custom step in we have in place on that page thanks

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
12 years 10 months ago #37805

Hi,

hikashop_completeLink generate urls for hikashop.
If you want to put another url, I suggest you to remove the function hikashop_completeLink and set your url instead.

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: 12
  • Thank you received: 0
12 years 3 months ago #62730

Jerome wrote: Hi,

hikashop_completeLink generate urls for hikashop.
If you want to put another url, I suggest you to remove the function hikashop_completeLink and set your url instead.

Regards,


Hi Jerome,

Can you tell me where to find this code and maybe give an example of how to change it please? Our cart is adding in whatever category you are in when you click "proceed to checkout". So it's ending up like www.domain.com/category-name/checkout - instead of www.domain.com/checkout . Is there a way to fix this with that url?

Thanks

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
12 years 3 months ago #62850

You don't need to change the code for that.
First you need to have a menu item of the type hikashop checkout.
Then, select that menu item in the option "force a menu on checkout" in the configuration of HikaShop.
Thanks to that, when you go to the checkout, it will use the link of the menu item and not the category link with checkout appended to it.

The following user(s) said Thank You: remofit

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

  • Posts: 39
  • Thank you received: 0
11 years 10 hours ago #137780

Hi i am also want find this function where i can find this function give me pleace link?

Last edit: 11 years 10 hours ago by Мыктыбек.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 36 minutes ago #137818

Hi,

As I said in my previous post, this option is to be found in the configuration page of HikaShop.

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

  • Posts: 39
  • Thank you received: 0
10 years 11 months ago #137838

Hi you know I want to edit the actual method hikashop_completeLink please tell me where it is?

Last edit: 10 years 11 months ago by Мыктыбек.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
10 years 11 months ago #137879

You can find it in the file administrator/components/com_hikashop/helpers/helper.php

I don't know why you want to change it but I don't think that you will be able to do what you want by modifying it.

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

  • Posts: 39
  • Thank you received: 0
10 years 11 months ago #137922

Thank you for your help I changed this method as I wanted and it works.

Last edit: 10 years 11 months ago by Мыктыбек.

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

Time to create page: 0.092 seconds
Powered by Kunena Forum