Skip to main content

Set user address default to 'Yes' in an order

More
13 years 3 weeks ago #122943 by nibe
-- 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.

More
13 years 3 weeks ago - 13 years 3 weeks ago #122957 by Jerome
Hi,

You can edit the view "backend | your_backend_template | order | customer_set" and replace the line
Code:
<td><?php echo JHTML::_('hikaselect.booleanlist', 'set_user_address', '', 0); ?></td>
By
Code:
<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.
Last edit: 13 years 3 weeks 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.168 seconds
Powered by Kunena Forum