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

#   How to use a custom field in product listing table

##

- **[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/avatars/resized/size144/users/avatar_2012-12-01.png)](/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 9 months ago [\#84267](#84267) by [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")  *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84267 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")* was created by *[jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")*

Hello,

I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading "$40.00 when you buy 5" I would like it to read "As low as $40.00 per SET. Most of my items have minimum quantity prices set up.

Where can I accomplish this and can it be done the same I did it on the product page?

In the menu Display -&gt; Views, edit the product / listing_price.php file.
In this file, replace:
echo JText::_('PER_UNIT');
By:
if(isset($this-&gt;element-&gt;main)) echo JText::_($this-&gt;element-&gt;main-&gt;salemethod);
elseif(isset($this-&gt;row)) echo JText::_($this-&gt;row-&gt;salemethod);
else echo JText::_($this-&gt;element-&gt;salemethod);

Thank you,
Jeff
[ www.legacyetchings.com](http://www.legacyetchings.com)

- [ ![ProductListingPage&#95;2013-01-06.jpg](/forum/attachment/7841) ](/forum/attachment/7841 "...2013-01-06.jpg") [ ](/forum/attachment/7841?download=1 "...2013-01-06.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#84405](#84405) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84405 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

Hi,

Yes it can be done in the same file, I think that you have to add another check on the line "echo JText::_('PER_UNIT');" to change the text depending on if it's in a listing or a product page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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/avatars/resized/size144/users/avatar_2012-12-01.png)](/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 9 months ago [\#84644](#84644) 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 *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84644 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

Thanks Xavier, Could you give me an example please? I appreciate your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#84709](#84709) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84709 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

You can use something like: Code:

if($this-&gt;row-&gt;salemethod == "set"){ echo JText::_('PER_SET'); // for "per set" }else{ echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); } }else{

And use it at the top of the file too, for: Code:

if($this-&gt;row-&gt;salemethod == "set"){ echo JText::_('START_PER_SET'); //for "As low as" }else{ echo echo JText::_('PRICE_BEGINNING'); } }else{

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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/avatars/resized/size144/users/avatar_2012-12-01.png)](/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 9 months ago [\#84790](#84790) 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 *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84790 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

I really hate to ask you this but could you please point out where in the code I should insert this? I tried a dozen places and only succeeded in breaking the shop.

This is the last thing I really need to get finished before I start to promote my site and start selling.

You've been great, thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#84839](#84839) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84839 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

For the first part of the code, you have to replace the line "echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity);" by the code.
And the second part, replace the line "echo echo JText::_('PRICE_BEGINNING');".

The following user(s) said Thank You: [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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/avatars/resized/size144/users/avatar_2012-12-01.png)](/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 9 months ago [\#84964](#84964) 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 *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#84964 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

I've tried your code several ways, thanks! However I'm still doing something wrong, it breaks the page. Here's how I have it:
Code:

if(empty($this-&gt;row-&gt;prices)){ echo JText::_('FREE_PRICE'); }else{ $first=true; if($this-&gt;row-&gt;salemethod == "Set"){ echo JText::_('START_PER_SET'); }else{ echo JText::_('PRICE_BEGINNING'); } }else{ $i=0; echo '&lt;/span&gt; ';

Could you please tell me what I did wrong? Thank you!
Jeff

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 9 months ago [\#85074](#85074) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#85074 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

Hi there,

I think this line Code:

}else{

shouldn't be there ![;)](/media/kunena/emoticons/11.png ";)")

The following user(s) said Thank You: [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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/avatars/resized/size144/users/avatar_2012-12-01.png)](/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 9 months ago [\#85135](#85135) 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 *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#85135 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

Thanks for all of your help guys, I just can't seem to get it to work. I'm going to explore some other ways to sell the products by the piece that makes sense.

Could you recommend a freelancer that could do this for me?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

13 years 9 months ago [\#85246](#85246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#85246 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

You can contact the PolishedGeek team. They specialized in ecommerce extensions customization and extensions development:
[ polishedgeek.com/](https://polishedgeek.com/)

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

- **[Menzer](/forum/user/12854-menzer "View Menzer's Profile")**
- [![Menzer's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12854-menzer "View Menzer's Profile")
- [ Offline](/forum/user/12854-menzer)

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 9 months ago [\#85255](#85255) by [Menzer](/forum/user/12854-menzer "View Menzer's Profile")  Replied by *[Menzer](/forum/user/12854-menzer "View Menzer's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#85255 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

So is it actually possible to create a custom field on the product listing page.

I want to have a summary description and a couple of text fields on the product listing page, if i create custom fields how would I go about dispaying those fields on the product listing page.

I have followed this thread but I am still unclear any help would be appreciated

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MjM3LWhvdy10by11c2UtYS1jdXN0b20tZmllbGQtaW4tcHJvZHVjdC1saXN0aW5nLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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/avatars/resized/size144/users/avatar_2012-12-01.png)](/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 9 months ago -  13 years 9 months ago [\#85300](#85300) 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 *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#85300 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

Hi Menzer,

I've been able to get this to work: [ ](http://www.hikashop.com/en/support/documentation/faq.html#each)[ www.hikashop.com/en/support/documentation/faq.html#each](http://www.hikashop.com/en/support/documentation/faq.html#each) but haven't had much luck beyond that. You might be able to build on it.

My .php skills are minimal, I know just enough to screw things up. ![;)](/media/kunena/emoticons/11.png ";)") For now I decided to restructure the way I'm selling things and to revisit this in the future. If you come up with a solution could you please let me know?

Thanks and good luck!

Last edit: 13 years 9 months ago by [jeff\_heilman@comcast.net](/forum/user/7531-jeff-heilman-comcast-net "View jeff&#95;heilman@comcast.net's Profile"). Reason: fix link.

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

- **[Menzer](/forum/user/12854-menzer "View Menzer's Profile")**
- [![Menzer's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12854-menzer "View Menzer's Profile")
- [ Offline](/forum/user/12854-menzer)

Less More

- Posts: 2
- Thank you received: 0
-
-

13 years 9 months ago [\#85320](#85320) by [Menzer](/forum/user/12854-menzer "View Menzer's Profile")  Replied by *[Menzer](/forum/user/12854-menzer "View Menzer's Profile")* on topic *[How to use a custom field in product listing table](/forum/2-general-talk-about-hikashop/77237-how-to-use-a-custom-field-in-product-listing-table#85320 "Hello,  I have created a custom field named salemethod which contains the unit of measure for the product being sold (Pc, Set, Case, etc). I have managed to get it to appear on the product page but would like to also have it show up on the product listing page with the price. Instead of reading &quot;$40.00 when you buy 5&quot; I would like it to read &quot;As low as $40.00 per SET. Most of my items have minimum quantity prices set up.  Where can I accomplish this and can it be done the same I did it on the product page?  In the menu Display -&gt; Views, edit the product / listing&#95;price.php file. In this file, replace: echo JText::&#95;('PER&#95;UNIT'); By: if(isset($this-&gt;element-&gt;main)) echo JText::&#95;($this-&gt;element-&gt;main-&gt;salemethod); elseif(isset($this-&gt;row)) echo JText::&#95;($this-&gt;row-&gt;salemethod); else echo JText::&#95;($this-&gt;element-&gt;salemethod);  Thank you, Jeff   www.legacyetchings.com")*

Hi thanks for replying, I am just like you in terms of php knowledge, just wish I had the time top learn... Anyway... That link suggests that I can add custom fields to the product listings page which is what I want, however I only have the standard version at the moment and you have to have commercial version to creat custom fields for products. So I cannot try this yet.

I cannot find the custom field for product sections discussed below in my configuration area so I assume that is because I don't have a commercial version.

**Custom item fields don't appear on the front end.**

When you create a custom field, don't forget to enable the "Front-end" option.
Be careful, when you create the custom field, be sure that you set the good table , which is the "item" table, not the "product" table.
For products listings, enable the default option in System-&gt;configuration-&gt;display, enable "Display custom item fields" in the Default parameters for products.
For products listings, enable the same option, in Display-&gt;content menus/modules.

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

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

[](#top)
