Set user address default to 'Yes' in an order

  • Posts: 40
  • Thank you received: 0
11 years 2 months ago #122943

-- HikaShop version -- : 2.2.1
-- Joomla version -- : 2.5.14

Hi. In the backend administration of Hikashop, when an order is placed and we select the client, I would like to set 'Set User Address' to 'yes' by default instead of 'no'. How can this be changed ?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #122957

Hi,

You can edit the view "backend | your_backend_template | order | customer_set" and replace the line

<td><?php echo JHTML::_('hikaselect.booleanlist', 'set_user_address', '', 0); ?></td>
By
<td><?php echo JHTML::_('hikaselect.booleanlist', 'set_user_address', '', 1); ?></td>
So the "yes" will be set by default.

PS: You can do the exact same thing in HikaMarket for the view "frontend | your_frontend_template | ordermaket | customer_set".

Regards;


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 2 months ago by Jerome.
The following user(s) said Thank You: nibe

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

Time to create page: 0.055 seconds
Powered by Kunena Forum