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

#   Mini cart href

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#19175](#19175) by [onisama](/forum/user/507-onisama "View onisama's Profile")  *[Mini cart href](/forum/4-how-to/19175-mini-cart-href#19175 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")* was created by *[onisama](/forum/user/507-onisama "View onisama's Profile")*

When using the mini cart, the anchor href is &lt;?php echo hikashop::completeLink('checkout'.$url_itemid); ?&gt;, which ends up being mysite/component/hikashop/checkout.html

This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.

That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html

Is there a better way to do this?

I changed the anchor href to just "/checkout.html", which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be "mysite/component/hikashop/product/show/cid-2.html", but instead becomes "mysite/checkout/product/show/cid-2.html"

I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, "&lt;a href="#" onclick="document.hikashop_cart_form.submit(); return false" class="hikashop_product_price"&gt;"

What would solve it, is if my Checkout menu item would link to "mysite/component/hikashop/checkout.html" instead of "mysite/checkout.html," but I'm not sure how to make that happen, or if it is even possible.

I'm just not sure how to proceed.

Thanks,
Shannon

Last edit: 15 years 4 months ago by [onisama](/forum/user/507-onisama "View onisama's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 4 months ago [\#19178](#19178) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#19178 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

You can easily change your menu item url. Instead of using a menu of the type hikashop checkout, use the type URL and enter the url you want for the checkout and that's it. There are no options for the hikashop checkout menu type so it's the same as a direct link menu.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 4 months ago [\#19179](#19179) by [onisama](/forum/user/507-onisama "View onisama's Profile")  Replied by *[onisama](/forum/user/507-onisama "View onisama's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#19179 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

Using a direct link as a URL menu type isn't working with the template assignment. Only the checkout internal link is being assigned the different template.

Is there a way within my template index file to sniff out if the user is in the checkout process?

I've done similar things to see if a user is logged in or not.

Shannon

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#19182](#19182) by [onisama](/forum/user/507-onisama "View onisama's Profile")  Replied by *[onisama](/forum/user/507-onisama "View onisama's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#19182 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

There is probably another way to do this, but here is what I did...

I added this to my template index.php file:

&lt;?php $u =&amp; JURI::current();
if (strstr($u, 'checkout')){do stuff};?&gt;

I needed to do this, because I'm using the Joomla login module, not the Hikashop login. However, I only want the login module to show during the checkout process.

This has got me going again.

Thanks,
Shannon

Last edit: 15 years 4 months ago by [onisama](/forum/user/507-onisama "View onisama's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 4 months ago [\#19197](#19197) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#19197 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

In that case I would have done:
if(JRequest::getVar('option')=='com_hikashop' &amp;&amp; JRequest::getVar('ctrl')=='checkout' &amp;&amp; JRequest::getVar('tmpl')!='component') {dostuff}

That way, you're sure that your code is only run on the checkout page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 16
- Thank you received: 1
-
-

14 years 3 months ago [\#59362](#59362) by [dankron](/forum/user/7331-dankron "View dankron's Profile")  Replied by *[dankron](/forum/user/7331-dankron "View dankron's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#59362 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

i'm having the same issue and i'm a bit lost on how to fix it, can you give me some words of wisdom?

cheers,
dan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 3 months ago [\#59421](#59421) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#59421 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

There were several questions asked on that thread.
Could you give more information on what issue you have ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 16
- Thank you received: 1
-
-

14 years 3 months ago [\#59423](#59423) by [dankron](/forum/user/7331-dankron "View dankron's Profile")  Replied by *[dankron](/forum/user/7331-dankron "View dankron's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#59423 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

Sorry nicolas,

its about the url when you use a shopping cart module when people click the proceed to check out button you get this url

mysite/component/hikashop/checkout.html

i need to be able to point this to a proper page in the menu so i can attach and remove modules...

cheers,
dan.

PS. i've also sent you a PM on the recurring payments a couple of days ago

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 3 months ago [\#59514](#59514) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Mini cart href](/forum/4-how-to/19175-mini-cart-href#59514 "When using the mini cart, the anchor href is , which ends up being mysite/component/hikashop/checkout.html  This is causing me a bit of trouble because I am using a separate template for checkout.html. This was accomplished by adding a checkout link to a hidden menu and selecting that menu item when assigning the template.  That works if the URL is mysite/checkout.html, but not with mysite/component/hikashop/checkout.html  Is there a better way to do this?  I changed the anchor href to just &quot;/checkout.html&quot;, which works OK until the user clicks on a product from with in the check out cart page. At this point the URL should be &quot;mysite/component/hikashop/product/show/cid-2.html&quot;, but instead becomes &quot;mysite/checkout/product/show/cid-2.html&quot;  I'm not sure if it is an SEF issue or a hikashop issue. It worked OK in an earlier version of Hikashop, but at that point a form was being used to submit the min cart and not just an anchor. I was then able to use this, &quot;&quot;  What would solve it, is if my Checkout menu item would link to &quot;mysite/component/hikashop/checkout.html&quot; instead of &quot;mysite/checkout.html,&quot; but I'm not sure how to make that happen, or if it is even possible.  I'm just not sure how to proceed.  Thanks, Shannon")*

You can select the menu you want with the option "force a menu on checkout" option of the checkout tab of the configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTc1LW1pbmktY2FydC1ocmVmP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.082 seconds

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