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

#   Product change after order creation

##

- **[Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile")**
- [![Sheldon's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/time_eye.jpg)](/forum/user/35992-sheldon "View Sheldon's Profile") Topic Author
- [ Offline](/forum/user/35992-sheldon)

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 4 months ago [\#243274](#243274) by [Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile")  *[Product change after order creation](/forum/35-orders-management/885124-product-change-after-order-creation#243274 "-- HikaShop version -- : HikaShop Business: 2.6.2 -- Joomla version -- : Joomla! 3.5.1 Stable &#91; Unicorn &#93; 05-April-2016 22:45 GMT -- PHP version -- : 5.6.19  The product name is not complete when we add or change a product after the customer has created an order    view.xscreenshot.com/c40f3cf076d52928a16a2f85cc5b48a6  Can this be corrected?  Thank you")* was created by *[Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile")*

-- HikaShop version -- : HikaShop Business: 2.6.2
-- Joomla version -- : Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT
-- PHP version -- : 5.6.19

The product name is not complete when we add or change a product after the customer has created an order

[ view.xscreenshot.com/c40f3cf076d52928a16a2f85cc5b48a6](http://view.xscreenshot.com/c40f3cf076d52928a16a2f85cc5b48a6)

Can this be corrected?

Thank you

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243290](#243290) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product change after order creation](/forum/35-orders-management/885124-product-change-after-order-creation#243290 "-- HikaShop version -- : HikaShop Business: 2.6.2 -- Joomla version -- : Joomla! 3.5.1 Stable &#91; Unicorn &#93; 05-April-2016 22:45 GMT -- PHP version -- : 5.6.19  The product name is not complete when we add or change a product after the customer has created an order    view.xscreenshot.com/c40f3cf076d52928a16a2f85cc5b48a6  Can this be corrected?  Thank you")*

That's because you must have added the main product, instead of adding the variant of the product in the product adding popup of the backend interface.
And it's normal that the time limits are the same because the system bases itself on the date of the creation of the order, not the date of adding of the product from the backend.

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

- **[Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile")**
- [![Sheldon's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/time_eye.jpg)](/forum/user/35992-sheldon "View Sheldon's Profile") Topic Author
- [ Offline](/forum/user/35992-sheldon)

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#243344](#243344) by [Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile")  Replied by *[Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile")* on topic *[Product change after order creation](/forum/35-orders-management/885124-product-change-after-order-creation#243344 "-- HikaShop version -- : HikaShop Business: 2.6.2 -- Joomla version -- : Joomla! 3.5.1 Stable &#91; Unicorn &#93; 05-April-2016 22:45 GMT -- PHP version -- : 5.6.19  The product name is not complete when we add or change a product after the customer has created an order    view.xscreenshot.com/c40f3cf076d52928a16a2f85cc5b48a6  Can this be corrected?  Thank you")*

That was adding the variant as you can see by the product code. So I then added a name to the Variant like this:
[ view.xscreenshot.com/78459be08718e94609d28308f0624342](http://view.xscreenshot.com/78459be08718e94609d28308f0624342)

Even though it looks like I'm pointing to the time in the first screenshot, first post, I was referring to the entire line (product)

Now the added product is different again.
[ view.xscreenshot.com/891bcc886d7c65e6dadf134df5fd11f6](http://view.xscreenshot.com/891bcc886d7c65e6dadf134df5fd11f6)

essentially we are trying to understand the correct way to alter an order after it has been placed by the customer.
[ view.xscreenshot.com/24561258e05535c4d9a4f424b954d68c](http://view.xscreenshot.com/24561258e05535c4d9a4f424b954d68c)

Thank you Nicolas

Last edit: 10 years 4 months ago by [Sheldon](/forum/user/35992-sheldon "View Sheldon's Profile").

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago -  10 years 4 months ago [\#243350](#243350) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product change after order creation](/forum/35-orders-management/885124-product-change-after-order-creation#243350 "-- HikaShop version -- : HikaShop Business: 2.6.2 -- Joomla version -- : Joomla! 3.5.1 Stable &#91; Unicorn &#93; 05-April-2016 22:45 GMT -- PHP version -- : 5.6.19  The product name is not complete when we add or change a product after the customer has created an order    view.xscreenshot.com/c40f3cf076d52928a16a2f85cc5b48a6  Can this be corrected?  Thank you")*

Hi,

Change the code: Code:

if($isVariant &amp;&amp; empty($product-&gt;product_name)){ $product-&gt;product_name = $allproducts[ (int)$product_id[1] ]-&gt;product_name; }

to: Code:

if($isVariant){ $database-&gt;setQuery('SELECT * FROM '.hikashop_table('variant').' AS a LEFT JOIN '.hikashop_table('characteristic') .' AS b ON a.variant_characteristic_id=b.characteristic_id WHERE a.variant_product_id='.(int)$product-&gt;product_id.' ORDER BY a.ordering'); $product-&gt;characteristics = $database-&gt;loadObjectList(); $productClass-&gt;checkVariant($product,$allproducts[ (int)$product_id[1] ]); }

in the file administrator/components/com_hikashop/views/order/view.html.php and that should then work properly when you do new additions of variants to orders.

Last edit: 10 years 4 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

[](#top)
