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

#  Profile for julio.royo

##

[![julio.royo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34079-julio-royo "View julio.royo's Profile")

**[ Offline](/forum/user/34079-julio-royo)**

- **User Type:** User

- **Register Date:** 08 Sep 2014
- **Last login:** 2 years 7 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 23:50

- **Posts:** 3
- **Profile views:** 77

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  julio.royo's recent posts  (3 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/31-development/891272-create-order-with-current-cart#274708) | [Create order with current cart](/forum/31-development/891272-create-order-with-current-cart#274708 "Hi  I'm developing a simple plugin and I need to get the current cart and create an order. How can I add the cart product array to the new order.  function onCheckoutWorkflowLoad(&amp;$checkout&#95;workflow, &amp;$shop&#95;closed, $cart&#95;id){  //Get the cart product array $cartClass = hikashop&#95;get('class.cart'); $cart = $cartClass-&gt;loadFullCart(); $products = $cart-&gt;products;  //create the order and set default settings $order = new stdClass(); $order-&gt;order&#95;status = confirmed; $order-&gt;products= array($products); $orderClass = hikashop&#95;get('class.order'); $orderClass-&gt;save($order);  The order is created but the product list does not update. How can i do it?  Thank you!")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 9 years 3 months ago, by [julio.royo](/forum/user/34079-julio-royo "View julio.royo's Profile")       [Last Post](/forum/31-development/891272-create-order-with-current-cart#274723 "Hello,  By using HikaShop 3, you can use the new Cart and Order features and also the new API. The HikaShop Order Class now have a function : createFromCart($cart&#95;id) which allow to process a cart (from its id) and make an order. It will also call all required triggers regarding the shipping and payment methods, perform the redirection to the payment platform if required, etc.  You can use that function if you want ; but you can also use the code in that function if you want to handle all elements when you want to create an order from a cart. Please note that if you pass the $cart&#95;id &quot; 0 &quot;, the system will load the customer current cart.  Regards,") 9 years 3 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:3  Views:2565 | [Last Post](/forum/31-development/891272-create-order-with-current-cart#274723 "Hello,  By using HikaShop 3, you can use the new Cart and Order features and also the new API. The HikaShop Order Class now have a function : createFromCart($cart&#95;id) which allow to process a cart (from its id) and make an order. It will also call all required triggers regarding the shipping and payment methods, perform the redirection to the payment platform if required, etc.  You can use that function if you want ; but you can also use the code in that function if you want to handle all elements when you want to create an order from a cart. Please note that if you pass the $cart&#95;id &quot; 0 &quot;, the system will load the customer current cart.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 3 months ago |
| [](/forum/31-development/891272-create-order-with-current-cart#274652) | [Create order with current cart](/forum/31-development/891272-create-order-with-current-cart#274652 "Hi  I'm developing a simple plugin and I need to get the current cart and create an order. How can I add the cart product array to the new order.  function onCheckoutWorkflowLoad(&amp;$checkout&#95;workflow, &amp;$shop&#95;closed, $cart&#95;id){  //Get the cart product array $cartClass = hikashop&#95;get('class.cart'); $cart = $cartClass-&gt;loadFullCart(); $products = $cart-&gt;products;  //create the order and set default settings $order = new stdClass(); $order-&gt;order&#95;status = confirmed; $order-&gt;products= array($products); $orderClass = hikashop&#95;get('class.order'); $orderClass-&gt;save($order);  The order is created but the product list does not update. How can i do it?  Thank you!")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 9 years 3 months ago, by [julio.royo](/forum/user/34079-julio-royo "View julio.royo's Profile")       [Last Post](/forum/31-development/891272-create-order-with-current-cart#274723 "Hello,  By using HikaShop 3, you can use the new Cart and Order features and also the new API. The HikaShop Order Class now have a function : createFromCart($cart&#95;id) which allow to process a cart (from its id) and make an order. It will also call all required triggers regarding the shipping and payment methods, perform the redirection to the payment platform if required, etc.  You can use that function if you want ; but you can also use the code in that function if you want to handle all elements when you want to create an order from a cart. Please note that if you pass the $cart&#95;id &quot; 0 &quot;, the system will load the customer current cart.  Regards,") 9 years 3 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:3  Views:2565 | [Last Post](/forum/31-development/891272-create-order-with-current-cart#274723 "Hello,  By using HikaShop 3, you can use the new Cart and Order features and also the new API. The HikaShop Order Class now have a function : createFromCart($cart&#95;id) which allow to process a cart (from its id) and make an order. It will also call all required triggers regarding the shipping and payment methods, perform the redirection to the payment platform if required, etc.  You can use that function if you want ; but you can also use the code in that function if you want to handle all elements when you want to create an order from a cart. Please note that if you pass the $cart&#95;id &quot; 0 &quot;, the system will load the customer current cart.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      9 years 3 months ago |
| [](/forum/27-checkout/886709-minimum-order-amount-message#251378) | [Minimum order amount message](/forum/27-checkout/886709-minimum-order-amount-message#251378 "I know there is a way to set a mimimun order amount in the manual shipping plugin.  Is there a way to force the user to reach that mimimum amount before he can press the button &quot;Proceed to checkout&quot;?  The message about the mimimum order amount only shows up in the shipping step.  Regards")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 10 years 3 weeks ago, by [julio.royo](/forum/user/34079-julio-royo "View julio.royo's Profile")       [Last Post](/forum/27-checkout/886709-minimum-order-amount-message#251382 "Hi,  You would have to edit the file &quot;cart&quot; of the view &quot;product&quot; via the menu Display&gt;Views and add some code where the proceed to checkout button is displayed to not display it below the amount you want.") 10 years 3 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:729 | [Last Post](/forum/27-checkout/886709-minimum-order-amount-message#251382 "Hi,  You would have to edit the file &quot;cart&quot; of the view &quot;product&quot; via the menu Display&gt;Views and add some code where the proceed to checkout button is displayed to not display it below the amount you want.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      10 years 3 weeks ago |

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

Time to create page: 0.188 seconds

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

[](#top)
