Author Topic: [SOLVED] Custom Order Status, cannot edit configuration parameters  (Read 465 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 153
[SOLVED] Custom Order Status, cannot edit configuration parameters
« on: September 21, 2018, 11:50:39 am »
Hello,

When creating custom order status, we find that some options (Order status Configuration parameters) cannot be changed (see screenshot).

[Joomla 3.8.10 / VM 3.2.15]

Marion

  • Beginner
  • *
  • Posts: 15
  • A beginner
Re: Custom Order Status, cannot edit configuration parameters
« Reply #1 on: October 03, 2018, 12:03:06 pm »
Hi

I'm just plunging into order status logics myself. As far as I can see, the "edit order" option is handled in php-scripts. I don't know why it isn't simply handled as a database entry.

I've found the option set in ...administrator/components/com_virtuemart/config/default_email.php line 59:

Code: [Select]
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_ADMIN_CFG_STATUS_ORDER_ALLOWEDIT_OS', $this->os_Options, 'order_allowedit_os[]', $attrlist, 'order_status_code', 'order_status_name', VmConfig::get('order_allowedit_os', array('P', 'U')), 'order_allowedit_os', true);
In order to toggle the "edit order" option, you'll have to add the caracter code of your order status to the array.

Mind you:
  • I didn't test it myself. I'm not sure it is the only script that has to be changed in order to make it work.
  • You'll want to make this update-proof. So don't change the orignal file, but make an override in your admin template.

Hope that helps.

EvanGR

  • Jr. Member
  • **
  • Posts: 153
Re: Custom Order Status, cannot edit configuration parameters
« Reply #2 on: October 11, 2018, 10:23:30 am »
Thanks, but I am wondering if it's a configuration issue, rather than a VM limitation.

I am attaching the page I see when I attempt to create a new Order status. Note that I cannot do anything with the e-mail options at the bottom.

(I am trying to create an Order status which sends an e-mail to the shopper)

[VM3.2.15/J3.8.10/PHP7.1]


AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2820
  • VirtueMart Version: 3.4
Re: Custom Order Status, cannot edit configuration parameters
« Reply #3 on: October 11, 2018, 10:46:00 am »
This is information only for this status

The email options are set in the VM configuration/orders settings

e.g. Default Order Status to send email to shopper

When you set these - they will be shown in the relevant order status screen

regards
A

Joomla 3.8.13
php 7.1

EvanGR

  • Jr. Member
  • **
  • Posts: 153
Re: Custom Order Status, cannot edit configuration parameters
« Reply #4 on: October 11, 2018, 10:59:09 am »
That was it! Thank you!