- Posts: 62
- Thank you received: 1
Custom field weeknumer default value current week + 1
9 years 10 months ago - 9 years 10 months ago #256745
by nuntius
Custom field weeknumer default value current week + 1 was created by nuntius
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : No error
Hello,
I have a custom field where customers kan select a delivery week. By default it should point to next week, but I could use some pointers on how te get this done (if possible).
See screenshots for the config of the custom field.
Thank you in advance!
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : No error
Hello,
I have a custom field where customers kan select a delivery week. By default it should point to next week, but I could use some pointers on how te get this done (if possible).
See screenshots for the config of the custom field.
Thank you in advance!
Last edit: 9 years 10 months ago by nuntius. Reason: missing screenshot
Please Log in or Create an account to join the conversation.
9 years 10 months ago #256747
by nicolas
Replied by nicolas on topic Custom field weeknumer default value current week + 1
Hi,
You'll have to edit the file "custom_fields" of the view "checkout" via the menu Display>Views and force the value you want in the variable $this->order->weeknr if it isn't already set (if it's already set, it means that it has been selected by the customer already and you don't want to change it).
You'll have to edit the file "custom_fields" of the view "checkout" via the menu Display>Views and force the value you want in the variable $this->order->weeknr if it isn't already set (if it's already set, it means that it has been selected by the customer already and you don't want to change it).
Please Log in or Create an account to join the conversation.
Time to create page: 0.184 seconds