[Skip to main content](#vessel-content)

#   Populate Custom Field Value in Manual Shipping Inf

##

- **[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")**
- [![SuzyBGood's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8544-suzybgood "View SuzyBGood's Profile") Topic Author
- [ Offline](/forum/user/8544-suzybgood)

Less More

- Posts: 103
- Thank you received: 0
-
-

14 years 3 weeks ago [\#72007](#72007) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  *[Populate Custom Field Value in Manual Shipping Inf](/forum/2-general-talk-about-hikashop/72007-populate-custom-field-value-in-manual-shipping-inf#72007 "Hi There,  For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the  Hand delivered Free shipping  Choose this method and your order will be delivered to your chosen Organization  Easy? Possible?  Thanks! Susan")* was created by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")*

Hi There,

For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the

Hand delivered Free shipping

Choose this method and your order will be delivered to your chosen **Organization**

Easy? Possible?

Thanks!
Susan

- [ ![HandDeliver.png](/forum/attachment/6455) ](/forum/attachment/6455 "HandDeliver.png") [ ](/forum/attachment/6455?download=1 "HandDeliver.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyMDA3LXBvcHVsYXRlLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1tYW51YWwtc2hpcHBpbmctaW5mP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago [\#72064](#72064) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Populate Custom Field Value in Manual Shipping Inf](/forum/2-general-talk-about-hikashop/72007-populate-custom-field-value-in-manual-shipping-inf#72064 "Hi There,  For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the  Hand delivered Free shipping  Choose this method and your order will be delivered to your chosen Organization  Easy? Possible?  Thanks! Susan")*

Hi,

Yes it's possible, for your shipping method description click on the toggle editor and replace the text by: Code:

Choose this method and your order will be delivered to your chosen &lt;div id="chsnOrg"&gt;Organization&lt;/div&gt; ...

Then in HikaShop &gt; Display &gt; Views, edit the view "checkout / custom_fields" and replace the exiting code by: Code:

&lt;?php $type = $this-&gt;type; foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) { ?&gt; &lt;tr class="hikashop_checkout_&lt;?php echo $fieldName;?&gt;_line" id="hikashop_&lt;?php echo $type.'_'.$oneExtraField-&gt;field_namekey; ?&gt;"&gt; &lt;td class="key"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/td&gt; &lt;td&gt; &lt;?php $onWhat='onchange'; if($oneExtraField-&gt;field_type=='radio') $onWhat='onclick'; echo $this-&gt;fieldsClass-&gt;display($oneExtraField,$this-&gt;$type-&gt;$fieldName,'data['.$type.']['.$fieldName.']',false,' '.$onWhat.'="document.getElementById(\'chsnOrg\').innerHTML = this.value; hikashopToggleFields(this.value,\''.$fieldName.'\',\''.$type.'\',0);"'); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt;

If you have many custom fields in the checkout, an "if" condition will be necessary to do the action only if the custom field is the good one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyMDA3LXBvcHVsYXRlLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1tYW51YWwtc2hpcHBpbmctaW5mP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")**
- [![SuzyBGood's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8544-suzybgood "View SuzyBGood's Profile") Topic Author
- [ Offline](/forum/user/8544-suzybgood)

Less More

- Posts: 103
- Thank you received: 0
-
-

14 years 2 weeks ago [\#72286](#72286) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Re: Populate Custom Field Value in Manual Shipping Inf](/forum/2-general-talk-about-hikashop/72007-populate-custom-field-value-in-manual-shipping-inf#72286 "Hi There,  For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the  Hand delivered Free shipping  Choose this method and your order will be delivered to your chosen Organization  Easy? Possible?  Thanks! Susan")*

Hi Xavier,

Thanks. Do I need to set the custom field to be chsnOrg somewhere? I have made these changes.. and it's blank

" Pick Up Free shipping

Choose this method and your order will be delivered to
on the arranged Campaign Date .."

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyMDA3LXBvcHVsYXRlLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1tYW51YWwtc2hpcHBpbmctaW5mP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 2 weeks ago [\#72480](#72480) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Populate Custom Field Value in Manual Shipping Inf](/forum/2-general-talk-about-hikashop/72007-populate-custom-field-value-in-manual-shipping-inf#72480 "Hi There,  For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the  Hand delivered Free shipping  Choose this method and your order will be delivered to your chosen Organization  Easy? Possible?  Thanks! Susan")*

Hi,

Xavier didn't understand what you wanted to do.

You want to add in the shipping description to value of a custom field which has been selected previously.

That's possible with a small view modification but we would need a screenshot of the options of your custom field in order to tell you what to do exactly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyMDA3LXBvcHVsYXRlLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1tYW51YWwtc2hpcHBpbmctaW5mP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")**
- [![SuzyBGood's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8544-suzybgood "View SuzyBGood's Profile") Topic Author
- [ Offline](/forum/user/8544-suzybgood)

Less More

- Posts: 103
- Thank you received: 0
-
-

14 years 2 weeks ago [\#72504](#72504) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Re: Populate Custom Field Value in Manual Shipping Inf](/forum/2-general-talk-about-hikashop/72007-populate-custom-field-value-in-manual-shipping-inf#72504 "Hi There,  For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the  Hand delivered Free shipping  Choose this method and your order will be delivered to your chosen Organization  Easy? Possible?  Thanks! Susan")*

Hi There,

Thanks.. I did what Xavier suggested using the column name "organizername", no luck.

Attached is my custom field screenshot. THANKS!

Suz

- [ ![Charity.png](/forum/attachment/6502) ](/forum/attachment/6502 "Charity.png") [ ](/forum/attachment/6502?download=1 "Charity.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyMDA3LXBvcHVsYXRlLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1tYW51YWwtc2hpcHBpbmctaW5mP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 2 weeks ago [\#72776](#72776) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Populate Custom Field Value in Manual Shipping Inf](/forum/2-general-talk-about-hikashop/72007-populate-custom-field-value-in-manual-shipping-inf#72776 "Hi There,  For the charity we run a campaign and the products are delivered to the campaigning organization on a certain date. Is there a way to populate this organization name (taken from the custom field on an earlier step) into the  Hand delivered Free shipping  Choose this method and your order will be delivered to your chosen Organization  Easy? Possible?  Thanks! Susan")*

Hi,

You can edit the file "shipping" of the view "checkout" via the menu Display-&gt;Views and change the code:
&lt;div class="hikashop_checkout_shipping_description"&gt;&lt;?php echo $rate-&gt;shipping_description;?&gt;&lt;/div&gt;

to:
&lt;?php
$app = JFactory::getApplication();
$order = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.checkout_fields',null); ?&gt;
&lt;div class="hikashop_checkout_shipping_description"&gt;&lt;?php echo str_replace('{organizer}',@$order-&gt;organizername,$rate-&gt;shipping_description);?&gt;&lt;/div&gt;

Then, you can use the tag {organizer} in your shipping methods description and it will be replaced by the selected value of that custom field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyMDA3LXBvcHVsYXRlLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1tYW51YWwtc2hpcHBpbmctaW5mP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.079 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
