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

#   Get basket items - to send via email

##

- **[swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")**
- [![swan&#95;e's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12954-swan-e "View swan&#95;e's Profile") Topic Author
- [ Offline](/forum/user/12954-swan-e)

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 8 months ago [\#88664](#88664) by [swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")  *[Get basket items - to send via email](/forum/4-how-to/78065-get-basket-items-to-send-via-email#88664 "Hello  I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.  The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.  My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'. I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.  I can't see anything on the API and wondered if anyone had done anything like this before?  Thanks Alan")* was created by *[swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")*

Hello

I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.

The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.

My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'.
I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.

I can't see anything on the API and wondered if anyone had done anything like this before?

Thanks
Alan

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#88798](#88798) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Get basket items - to send via email](/forum/4-how-to/78065-get-basket-items-to-send-via-email#88798 "Hello  I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.  The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.  My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'. I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.  I can't see anything on the API and wondered if anyone had done anything like this before?  Thanks Alan")*

Hi,

I don't remember that someone already need this functionality.

What about a payment method like "check" and edit it to "Hire". In the payment method configuration change the title of the payment method and the description to describe the function of this method.
By this way, when a customer have products in cart and use this payment method, he don't need to pay the items, and he will receive an email with the products in it.

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

- **[swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")**
- [![swan&#95;e's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12954-swan-e "View swan&#95;e's Profile") Topic Author
- [ Offline](/forum/user/12954-swan-e)

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 8 months ago [\#88878](#88878) by [swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")  Replied by *[swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")* on topic *[Get basket items - to send via email](/forum/4-how-to/78065-get-basket-items-to-send-via-email#88878 "Hello  I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.  The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.  My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'. I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.  I can't see anything on the API and wondered if anyone had done anything like this before?  Thanks Alan")*

Thanks - i think this works. The only thing is that the hire items have no price attached - so that they cannot be purchased.

However this means that the payment options are not displayed.
I'm assuming the php code in the checkout component only displays the payment plugins if the price is greater than 0. I can't seem to locate where this happens, so I can change it to show payment options in every scenario.

Can you help with this?

Many thanks

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#88971](#88971) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Get basket items - to send via email](/forum/4-how-to/78065-get-basket-items-to-send-via-email#88971 "Hello  I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.  The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.  My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'. I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.  I can't see anything on the API and wondered if anyone had done anything like this before?  Thanks Alan")*

If they can't be purchased so why display a payment method ?
Why not display only a message ?

If all the products are free, you display a message, the payment methods are not displayed, and the checkout can be finished.
In the checkout options, you can set the default order status to "confirmed" and in each payment methods to "created".

By this way the Hire process give a confirmed status and no payment, and the regular process create a "created" order and take the customer to the payment to confirm the order.

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

- **[swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")**
- [![swan&#95;e's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12954-swan-e "View swan&#95;e's Profile") Topic Author
- [ Offline](/forum/user/12954-swan-e)

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 8 months ago [\#89263](#89263) by [swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")  Replied by *[swan\_e](/forum/user/12954-swan-e "View swan&#95;e's Profile")* on topic *[Get basket items - to send via email](/forum/4-how-to/78065-get-basket-items-to-send-via-email#89263 "Hello  I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.  The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.  My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'. I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.  I can't see anything on the API and wondered if anyone had done anything like this before?  Thanks Alan")*

Sounds perfect - how do i display a message instead of payment methods - when the total is 0?

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#89390](#89390) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Get basket items - to send via email](/forum/4-how-to/78065-get-basket-items-to-send-via-email#89390 "Hello  I am currently dealing with a request from a client to be able to produce an 'enquiry list' of products - that would run along the existing payment method on the site.  The client wants to have both hire and purchase items on the site, so need an enquiry option as well as a 'pay' option.  My theory is that if I can get the list of current items in the basket, I can input a button on the checkout page for 'Click to enquire'. I could use the list to produce a form, which could then be sent via email to the client without the need to pay for the items.  I can't see anything on the API and wondered if anyone had done anything like this before?  Thanks Alan")*

You can edit the view "checkout / payment" and at the end of the file add: Code:

else if(bccomp($this-&gt;orderInfos-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,0,5)==0){ echo JText::_('HIRE_CHECKOUT'); }

And add a translation for the key "HIRE_CHECKOUT" in Configuration &gt; Languages in the override part.

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

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