[Skip to main content](#vessel-content)

#   change url in proceed to cart

##

- **[david34ni](/forum/user/5775-david34ni "View david34ni's Profile")**
- [![david34ni's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5775-david34ni "View david34ni's Profile") Topic Author
- [ Offline](/forum/user/5775-david34ni)

Less More

- Posts: 28
- Thank you received: 0
-
-

14 years 8 months ago [\#37802](#37802) by [david34ni](/forum/user/5775-david34ni "View david34ni's Profile")  *[change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")* was created by *[david34ni](/forum/user/5775-david34ni "View david34ni's Profile")*

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

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

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

14 years 8 months ago [\#37805](#37805) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#37805 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jbozaan](/forum/user/7984-jbozaan "View jbozaan's Profile")**
- [![jbozaan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7984-jbozaan "View jbozaan's Profile")
- [ Offline](/forum/user/7984-jbozaan)

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 1 month ago [\#62730](#62730) by [jbozaan](/forum/user/7984-jbozaan "View jbozaan's Profile")  Replied by *[jbozaan](/forum/user/7984-jbozaan "View jbozaan's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#62730 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

> 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](http://www.domain.com/category-name/checkout) - instead of [ www.domain.com/checkout](http://www.domain.com/checkout). Is there a way to fix this with that url?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 month ago [\#62850](#62850) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#62850 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

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](/forum/user/60077-remofit "View remofit's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")**
- [![Мыктыбек's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30192-myktybek "View Мыктыбек's Profile")
- [ Offline](/forum/user/30192-myktybek)

Less More

- Posts: 39
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#137780](#137780) by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")  Replied by *[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#137780 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

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

Last edit: 12 years 10 months ago by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 10 months ago [\#137818](#137818) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#137818 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")**
- [![Мыктыбек's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30192-myktybek "View Мыктыбек's Profile")
- [ Offline](/forum/user/30192-myktybek)

Less More

- Posts: 39
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#137838](#137838) by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")  Replied by *[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#137838 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

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

Last edit: 12 years 10 months ago by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 9 months ago [\#137879](#137879) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#137879 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")**
- [![Мыктыбек's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30192-myktybek "View Мыктыбек's Profile")
- [ Offline](/forum/user/30192-myktybek)

Less More

- Posts: 39
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#137922](#137922) by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")  Replied by *[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")* on topic *[Re: change url in proceed to cart](/forum/4-how-to/37802-change-url-in-proceed-to-cart#137922 "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  params-&gt;get('show&#95;cart&#95;proceed',1)){ echo $this-&gt;cart-&gt;displayButton(JText::&#95;('PROCEED&#95;TO&#95;CHECKOUT'),'checkout',$this-&gt;params,hikashop&#95;completeLink('checkout'.$url&#95;itemid),''); } ?&gt;  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")*

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

Last edit: 12 years 9 months ago by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3ODAyLWNoYW5nZS11cmwtaW4tcHJvY2VlZC10by1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.323 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
