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

#   Cart\_id outside Hikashop

##

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

Less More

- Posts: 13
- Thank you received: 3
-
-

2 years 2 months ago [\#363152](#363152) by [Mea Arte](/forum/user/69990-mea-arte "View Mea Arte's Profile")  *[Cart\_id outside Hikashop](/forum/25-install-update/908607-cart-id-outside-hikashop#363152 "-- url of the page with the problem -- :   www.mijnpvcwinkel.nl  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.2.0 -- Browser(s) name and version -- : Safari  Hi,  I am running a hikashop version for a showroom and appointment system. Customers can select different styles and/or products they are interested in and put them into the cart. When they are done they can go to view the cart and proceed to the checkout where they are redirected to an appointment system. In this appointment system they can select a date from the booking calendar and they have to put in their name, address and other contactdetails. All I want is to do is add the cart&#95;id or the list of products to a field (I have custom fields to play with) into the booking form, which will be send to me. In that case I can select all the samples to take with me on a visit at the customers address. Because the wishlist demands me to make a login, this is not applicable, since the customer should not be forced to make an account (GDPR proof). I can adapt the system to my needs, but only this slight problem keeps me from publishing the new layout.  So the question is: is there a way to transfer the cart&#95;id ($cart&#95;id) to another (not hikashop) component?  Thanks in advance.")* was created by *[Mea Arte](/forum/user/69990-mea-arte "View Mea Arte's Profile")*

-- url of the page with the problem -- : [ www.mijnpvcwinkel.nl](http://www.mijnpvcwinkel.nl)
-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.2.0
-- Browser(s) name and version -- : Safari

Hi,

I am running a hikashop version for a showroom and appointment system. Customers can select different styles and/or products they are interested in and put them into the cart. When they are done they can go to view the cart and proceed to the checkout where they are redirected to an appointment system. In this appointment system they can select a date from the booking calendar and they have to put in their name, address and other contactdetails.
All I want is to do is add the cart_id or the list of products to a field (I have custom fields to play with) into the booking form, which will be send to me. In that case I can select all the samples to take with me on a visit at the customers address.
Because the wishlist demands me to make a login, this is not applicable, since the customer should not be forced to make an account (GDPR proof). I can adapt the system to my needs, but only this slight problem keeps me from publishing the new layout.

So the question is: is there a way to transfer the cart_id ($cart_id) to another (not hikashop) component?

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODYwNy1jYXJ0LWlkLW91dHNpZGUtaGlrYXNob3A/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

2 years 2 months ago [\#363154](#363154) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart\_id outside Hikashop](/forum/25-install-update/908607-cart-id-outside-hikashop#363154 "-- url of the page with the problem -- :   www.mijnpvcwinkel.nl  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.2.0 -- Browser(s) name and version -- : Safari  Hi,  I am running a hikashop version for a showroom and appointment system. Customers can select different styles and/or products they are interested in and put them into the cart. When they are done they can go to view the cart and proceed to the checkout where they are redirected to an appointment system. In this appointment system they can select a date from the booking calendar and they have to put in their name, address and other contactdetails. All I want is to do is add the cart&#95;id or the list of products to a field (I have custom fields to play with) into the booking form, which will be send to me. In that case I can select all the samples to take with me on a visit at the customers address. Because the wishlist demands me to make a login, this is not applicable, since the customer should not be forced to make an account (GDPR proof). I can adapt the system to my needs, but only this slight problem keeps me from publishing the new layout.  So the question is: is there a way to transfer the cart&#95;id ($cart&#95;id) to another (not hikashop) component?  Thanks in advance.")*

Hi,

How do you redirect from the HikaShop checkout to your booking form ?
I think that's where you want to provide the id of the cart. You could just add it to the URL when performing the redirection.
Another simple way is to look in Code:

$_COOKIES['hikashop_cart_id']

in your PHP code.
Another way is to load hikashop's main helper file, if it's not already loaded, and use the normal HikaShop PHP code to get the current cart id: Code:

if(!@include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){ return false; } $cartClass = hikashop_get('class.cart'); $cart_id = $cartClass-&gt;getCurrentCartId();

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

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

Less More

- Posts: 13
- Thank you received: 3
-
-

2 years 2 months ago [\#363245](#363245) by [Mea Arte](/forum/user/69990-mea-arte "View Mea Arte's Profile")  Replied by *[Mea Arte](/forum/user/69990-mea-arte "View Mea Arte's Profile")* on topic *[Cart\_id outside Hikashop](/forum/25-install-update/908607-cart-id-outside-hikashop#363245 "-- url of the page with the problem -- :   www.mijnpvcwinkel.nl  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.2.0 -- Browser(s) name and version -- : Safari  Hi,  I am running a hikashop version for a showroom and appointment system. Customers can select different styles and/or products they are interested in and put them into the cart. When they are done they can go to view the cart and proceed to the checkout where they are redirected to an appointment system. In this appointment system they can select a date from the booking calendar and they have to put in their name, address and other contactdetails. All I want is to do is add the cart&#95;id or the list of products to a field (I have custom fields to play with) into the booking form, which will be send to me. In that case I can select all the samples to take with me on a visit at the customers address. Because the wishlist demands me to make a login, this is not applicable, since the customer should not be forced to make an account (GDPR proof). I can adapt the system to my needs, but only this slight problem keeps me from publishing the new layout.  So the question is: is there a way to transfer the cart&#95;id ($cart&#95;id) to another (not hikashop) component?  Thanks in advance.")*

Nicolas,

Thanks for your support. I did implement the extension of the url, since it was an easy addition. Although I tried this earlier and couldn't get it to work, this time it was a quick fix.

Again thanks for the support.

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODYwNy1jYXJ0LWlkLW91dHNpZGUtaGlrYXNob3A/dG1wbD1tYXJrZG93bg==) 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.054 seconds

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