[SOLVED] Order statuses

  • Posts: 117
  • Thank you received: 6
7 years 4 months ago #273578

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 7.1.0
-- Browser(s) name and version -- : Firefox 52.0.0

Hello!

There is no such category in the documentation so I ask to help me with a kind of questions about order statuses.

1. What is Capture (look at screenshot)? Where it can be used?

2. Why there is no current order status at "detailed order view" (order / show.php)? Why there is no history of changing order statuses on that page?

3. How can I get on the order / show view output of order_id and order_status? This code doesn't work in the order / show.php:

<?php echo $row->order_id; ?>
<?php echo hikashop_orderStatus($row->order_status); ?>

4. I found that current HikaShop configuration capabilities doesn't allow the following algorithm of changing order statuses:
- There is a payment method, which involves prepayment before shipment.
- Therefore, immediately after the order is created, it is assigned the status Pending.
- At the same time immediately after placing the order, I want the cart to be cleaned.
- However, I can not achieve this, because in the configuration there are only two options for which the cart is cleaned: Created and Confirmed.
Is it possible to add more items from the list of order statuses or to add an option "Any" which means that the cart will be cleaned at any status of the placed order?

5. I have overriden language constants with the order status names. Now, for example, in the payment methods in the dropdown list, I see new names. But in mass actions old (not overriden) names are used therefore, it introduces confusion (this can be seen in three screenshots below). Is it possible to fix this?


Sorry for my English, it's not my native language.
Attachments:
Last edit: 7 years 4 months ago by alin. Reason: [SOLVED] added

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #273594

Hi,

1. That setting is not used for now. That's why it says N/A which means "not available"

2. In the backend order/show, there is. The order status is the third setting there: monosnap.com/file/mm1xTe5tY5437wAPXxPQ4WiATyoON1
And at the bottom of the order details view there is a history of the order status changes.
I suppose that you're talking about the frontend. In that case, yes, there is no such thing. Because we felt that it wasn't necessary there.

3. If you look in the code of the view, there is no $row and the data of the order is in $this->element

4. If you set the setting "Clean cart when order is" to "created" that's what it will do.

5. It's normal. In the mass actions we use the real values that are stored in the database. If you use an action "display the values" with the "order_status" column you'll also see the real value stored in the database.
And same if you want to update the values in the column with an action, you need to enter the order status in english because that's always that value with is stored.
That's done on purpose and there is no way to change it.

The following user(s) said Thank You: alin

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 6
7 years 4 months ago #273658

Hi,

1. Got it.

2, 3. Yes, I'm talking about the frontend because I'm used to seeing the order status and the history of its change in other shopping cart. Which code must I use to get id and current order status in order / show.php?

4. It's set to "created" but doesn't work when a buyer chooses a payment method whose configuration of order status is set to Pending. This is what I'm trying to explain. If on checkout page a buyer chooses the payment method whose configuration of order status is set to Pending then order is immediately assigned a status Pending and that is why it doesn't work. So is it possible to add more items from the list of order statuses or to add an option "Any" which means that the cart will be cleaned at any status of the placed order?

5. But this is not so, take a look at the screenshots, them show that for the Created status the value in database is "created" but in the list of order statuses in mass actions I see the values translated into my language. So I ask, if the order status values are displayed in my language, then why not use overridden values in my language?


Sorry for my English, it's not my native language.
Attachments:
Last edit: 7 years 4 months ago by alin.

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #273665

Hi,

2.3. You already have the answer to that.
You said that you wanted to use the code:
<?php echo $row->order_id; ?>
<?php echo hikashop_orderStatus($row->order_status); ?>
And I told you that instead of $row you should use $this->element... so use your code and replace $row by $this->element and it will work.

4. Ok, first, please understand that we don't speak your language so we can't read your screenshots. Can you provide a screenshot of all the settings of your payment method ? Do you have the problem with any payment method ? If you use bank transfer, or collect or delivery does it work ?

5. In order to simplify the coding on our end, we've reused the same code which controls the display of the order statuses dropdown selectors elsewhere. That dropdown supports the translation of the order statuses. That's why it's like that. But as I said, all the code of the mass actions system (besides that dropdown which comes from another part of HikaShop) uses the values from the database.

The following user(s) said Thank You: alin

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 6
7 years 4 months ago #273735

2,3. Thank you! It works.

4. It's hard for me to describe everything so better I'll show it on the video using the English interface: youtu.be/SpPSbW7E5VE . Maybe it's important - I have two cart modules. I have deleted the second cart module and strange things began to happen - if one item was added to the cart, then after placing an order the cart is not cleaned, but on the contrary, there is an increase in the quantity of goods.
Addition. And now I again can not reproduce an issue :( Maybe you can understand the reason for this problem by watching the video? I am afraid that the problem will return again.

5. You said that the code of the mass actions system uses the values from the database and I see that it is so if interface language is English but if if interface language is Russian I see translated values and not the values from the database. Please take a look at the second and third screenshots. That's why I'm asking - if you still display the translated values from the language file and not the values from the database in the mass actions system, why not display overridden values for current language? I have overridden some values of order statuses in Russian language, but in mass actions I still see the initial values from the Russian language file.


Sorry for my English, it's not my native language.
Attachments:
Last edit: 7 years 4 months ago by alin.

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #273927

Hi,

4. It could be that you have/had the "enable multicart" setting of the HikaShop configuration activated.
And when you finished the order, the current cart was deleted, the system loaded the next cart in line for your user account, which had the same products in it.
So you'll want to turn off that option if you don't want your customers to have several carts, and you want to clear your carts in the menu Customers>Carts on the backend to have only one of them for your test of the "clean cart after order".

5. No, I specifically said that the mass actions system uses an external dropdown for the order statuses and that this dropdown supports the display of the statuses in the language, but not the rest of the mass action system.
So it's normal that it is like this.

The following user(s) said Thank You: alin

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 6
7 years 4 months ago #273933

Hi,

4. You're right! It's the "enable multicart" setting caused that "issue".
But I don't see the menu Customers>Carts on the backend (there is screenshot below), have I truncate hikashop_cart and hikashop_cart_product tables?

5. Honestly, I did not fully understand but if the dropdowns support the interface language, is there a chance that in the future you will implement mapping of the overridden language values there?

Addition.

In mass actions the new order status "Completed" that I created is not displayed, what should I do to make it appear there?


Sorry for my English, it's not my native language.
Attachments:
Last edit: 7 years 4 months ago by alin. Reason: Addition

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #273936

Hi,

4. Ah yes, that's a feature of the commercial editions of HikaShop. So you can truncate the tables yes.

5. Frankly, we have other priorities right now. We have plans to redo the whole mass actions system in the future. So for now we prefer to delay such details later since everything will be rewritten in the future in the mass actions system. We'll note down that point for the next version of the mass actions system.

The following user(s) said Thank You: alin

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum