put 2 custom fields in different checkout steps

  • Posts: 31
  • Thank you received: 0
8 years 10 months ago #203962

-- HikaShop version -- : 2.5
-- Joomla version -- : 3.4
-- PHP version -- : 5.5
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : I want to put 2 custom fields in different checkout steps ( custom field 1 in step 1, custom field 2 in step 2), any way to do that ?

I want to put 2 custom fields in different checkout steps ( custom field 1 in step 1, custom field 2 in step 2), any way to do that ?
That is very essential for me because i have different messages for customers in different checkout process.
Please help me for that.

Thanks

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
8 years 10 months ago #203967

Hi,

There is no option for that, but we have something in place to do it easily by editing the file "custom_fields" of the view "checkout" via the menu Display>Views and changing the code:

$showfields = array(
	'my_special_field1' => 0,
);
There, you can for example write:
$showfields = array(
	'my_special_field1' => 0,
	'my_special_field2' => 1,
);
And if you have the "fields" view on the first and second step of your checkout workflow, the field with the column name my_special_field1 will be displayed on the first step, and the field with the column name my_special_field2 will be displayed on the second step.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum