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

#   Minimum $ spend before checkout is allowed

##

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

Less More

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

10 years 11 months ago [\#223690](#223690) by [dda](/forum/user/32554-dda "View dda's Profile")  *[Minimum $ spend before checkout is allowed](/forum/27-checkout/881019-minimum-spend-before-checkout-is-allowed#223690 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.2.4 -- PHP version -- : 5.4.12  I need to create a mechanism that compares a users cart total to a specific amount. If their total is less than the specific amount links checkout are disabled and a redirect is triggered if they try to got to the checkout manually.  I am struggling to figure out/find what variable holds the cart total. An help as to what it is would be appreciated.")* was created by *[dda](/forum/user/32554-dda "View dda's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.2.4
-- PHP version -- : 5.4.12

I need to create a mechanism that compares a users cart total to a specific amount. If their total is less than the specific amount links checkout are disabled and a redirect is triggered if they try to got to the checkout manually.

I am struggling to figure out/find what variable holds the cart total. An help as to what it is would be appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTAxOS1taW5pbXVtLXNwZW5kLWJlZm9yZS1jaGVja291dC1pcy1hbGxvd2VkP3RtcGw9bWFya2Rvd24=) 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: 86586
- Thank you received: 14325
-
-

10 years 11 months ago [\#223719](#223719) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Minimum $ spend before checkout is allowed](/forum/27-checkout/881019-minimum-spend-before-checkout-is-allowed#223719 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.2.4 -- PHP version -- : 5.4.12  I need to create a mechanism that compares a users cart total to a specific amount. If their total is less than the specific amount links checkout are disabled and a redirect is triggered if they try to got to the checkout manually.  I am struggling to figure out/find what variable holds the cart total. An help as to what it is would be appreciated.")*

Hi,

You can do it like that: Code:

$cartClass = hikashop_get('class.cart'); $cart = $cartClass-&gt;loadFullCart(); echo $cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax;

The following user(s) said Thank You: [dda](/forum/user/32554-dda "View dda's Profile")

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

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

Less More

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

10 years 11 months ago [\#223841](#223841) by [dda](/forum/user/32554-dda "View dda's Profile")  Replied by *[dda](/forum/user/32554-dda "View dda's Profile")* on topic *[Minimum $ spend before checkout is allowed](/forum/27-checkout/881019-minimum-spend-before-checkout-is-allowed#223841 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.2.4 -- PHP version -- : 5.4.12  I need to create a mechanism that compares a users cart total to a specific amount. If their total is less than the specific amount links checkout are disabled and a redirect is triggered if they try to got to the checkout manually.  I am struggling to figure out/find what variable holds the cart total. An help as to what it is would be appreciated.")*

Thats what I need thanks.

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

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