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

#   Use a custom field in price listing

##

- **[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")**
- [![jeff&#95;heilman@comcast.net's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile") Topic Author
- [ Offline](/forum/user/7531-jeff-heilman-comcast-net)

Less More

- Posts: 19
- Thank you received: 0
-
-
- [](http://www.legacyetchings.com)
-

13 years 10 months ago [\#84178](#84178) by [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")  *[Use a custom field in price listing](/forum/4-how-to/77227-use-a-custom-field-in-price-listing#84178 "Hello!  I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.  I have created a custom field in the Products table where I can list the unit of measure &#91;UOM&#93; for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read &quot;As Low as $40.00 per SET. Please see the attached images for a better understanding.  Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!  Jeff")* was created by *[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")*

Hello!

I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.

I have created a custom field in the Products table where I can list the unit of measure [UOM] for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read "As Low as $40.00 per SET. Please see the attached images for a better understanding.

Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!

Jeff

- [ ![ProductPage.jpg](/forum/attachment/7831) ](/forum/attachment/7831 "ProductPage.jpg") [ ](/forum/attachment/7831?download=1 "ProductPage.jpg")
- [ ![ProductListingPage.jpg](/forum/attachment/7832) ](/forum/attachment/7832 "...istingPage.jpg") [ ](/forum/attachment/7832?download=1 "...istingPage.jpg")

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

- **[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")**
- [![jeff&#95;heilman@comcast.net's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile") Topic Author
- [ Offline](/forum/user/7531-jeff-heilman-comcast-net)

Less More

- Posts: 19
- Thank you received: 0
-
-
- [](http://www.legacyetchings.com)
-

13 years 10 months ago [\#84261](#84261) by [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")  Replied by *[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")* on topic *[Use a custom field in price listing](/forum/4-how-to/77227-use-a-custom-field-in-price-listing#84261 "Hello!  I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.  I have created a custom field in the Products table where I can list the unit of measure &#91;UOM&#93; for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read &quot;As Low as $40.00 per SET. Please see the attached images for a better understanding.  Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!  Jeff")*

Hello,

I did manage to get the custom field "salemethod" to appear on the product page for the highest price by using this: [ www.hikashop.com/en/support/documentation/faq.html#each](http://www.hikashop.com/en/support/documentation/faq.html#each)

I still need to get the salemethod field to show with the rest of the fields. If anyone could point me in the right direction it'd be great.

Thanks!
Jeff

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MjI3LXVzZS1hLWN1c3RvbS1maWVsZC1pbi1wcmljZS1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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)
-

13 years 10 months ago [\#84400](#84400) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Use a custom field in price listing](/forum/4-how-to/77227-use-a-custom-field-in-price-listing#84400 "Hello!  I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.  I have created a custom field in the Products table where I can list the unit of measure &#91;UOM&#93; for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read &quot;As Low as $40.00 per SET. Please see the attached images for a better understanding.  Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!  Jeff")*

Hi,

You will have to edit the view "product / listing_price" and add a condition around: "echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity);" and "echo JText::_('PER_UNIT');" to change the text depending of the type of product. If the product is a set so change the translation to set it a "per set ..." etc.

For the text in the products listing it's in the same file.

It require some PHP knowledge to do that.

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

- **[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")**
- [![jeff&#95;heilman@comcast.net's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile") Topic Author
- [ Offline](/forum/user/7531-jeff-heilman-comcast-net)

Less More

- Posts: 19
- Thank you received: 0
-
-
- [](http://www.legacyetchings.com)
-

13 years 10 months ago [\#84649](#84649) by [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")  Replied by *[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")* on topic *[Use a custom field in price listing](/forum/4-how-to/77227-use-a-custom-field-in-price-listing#84649 "Hello!  I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.  I have created a custom field in the Products table where I can list the unit of measure &#91;UOM&#93; for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read &quot;As Low as $40.00 per SET. Please see the attached images for a better understanding.  Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!  Jeff")*

Thanks once again Xavier! My PHP knowledge is minimal at best. Could you provide me with a code snippet sample that I can play with?

This shop is my second installation of Hikashop Business. The first one was for a client and I liked it so much I bought it for my own business. I guess it's a good thing for my clients application it didn't take much customizing!

Again, I appreciate your time. Have a great day!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MjI3LXVzZS1hLWN1c3RvbS1maWVsZC1pbi1wcmljZS1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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)
-

13 years 10 months ago [\#84708](#84708) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Use a custom field in price listing](/forum/4-how-to/77227-use-a-custom-field-in-price-listing#84708 "Hello!  I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.  I have created a custom field in the Products table where I can list the unit of measure &#91;UOM&#93; for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read &quot;As Low as $40.00 per SET. Please see the attached images for a better understanding.  Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!  Jeff")*

You can use something like: Code:

if($this-&gt;row-&gt;salemethod == "set"){ echo JText::_('PER_SET'); }else{ echo JText::_('PER_UNIT'); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MjI3LXVzZS1hLWN1c3RvbS1maWVsZC1pbi1wcmljZS1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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.053 seconds

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