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

#   Category Listing pricing display changes

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 4 months ago [\#110634](#110634) by [tandreas6](/forum/user/8323-tandreas6 "View tandreas6's Profile")  *[Category Listing pricing display changes](/forum/4-how-to/84097-category-listing-pricing-display-changes#110634 "Hello - I have been setting up a different &quot;per&#95;unit&quot; display for a specific category of products, using this previous forum guide:  The product page currently displays the right information: it shows information for a certain quantity, and info for a larger quantity order. However, this information isn't showing correctly on the category listing. Please see the example in this subcategory (of the main category, &quot;Roving&quot;):  Also, I require customers to order a minimum of 4 of any one product in this category and subcategories. Is there a way to display a notice when they click &quot;add to cart&quot; that reminds them of this requirement? For example, I'd like to list these products on the home page under featured products, but it is a little wordy to always display &quot;minimum order of 4 oz. for any one color&quot; under each item. That would be ok if there are no other options, but I'd love to find another way.  Thanks for your help!")* was created by *[tandreas6](/forum/user/8323-tandreas6 "View tandreas6's Profile")*

Hello - I have been setting up a different "per_unit" display for a specific category of products, using this previous forum guide: [ ](http://www.hikashop.com/en/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel.html)[ www.hikashop.com/en/forum/4-how-to/51395...length-per-reel.html](http://www.hikashop.com/en/forum/4-how-to/51395-change-per-unit-into-per-set-per-length-per-reel.html).

The product page currently displays the right information: it shows information for a certain quantity, and info for a larger quantity order. However, this information isn't showing correctly on the category listing. Please see the example in this subcategory (of the main category, "Roving"):
[ ](http://www.bellwetherwool.com/index.php/roving/roving-colors/category/24-blues-group)[ www.bellwetherwool.com/index.php/roving/...egory/24-blues-group](http://www.bellwetherwool.com/index.php/roving/roving-colors/category/24-blues-group)

Also, I require customers to order a minimum of 4 of any one product in this category and subcategories. Is there a way to display a notice when they click "add to cart" that reminds them of this requirement? For example, I'd like to list these products on the home page under featured products, but it is a little wordy to always display "minimum order of 4 oz. for any one color" under each item. That would be ok if there are no other options, but I'd love to find another way.

Thanks for your help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDk3LWNhdGVnb3J5LWxpc3RpbmctcHJpY2luZy1kaXNwbGF5LWNoYW5nZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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 4 months ago [\#110701](#110701) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Category Listing pricing display changes](/forum/4-how-to/84097-category-listing-pricing-display-changes#110701 "Hello - I have been setting up a different &quot;per&#95;unit&quot; display for a specific category of products, using this previous forum guide:  The product page currently displays the right information: it shows information for a certain quantity, and info for a larger quantity order. However, this information isn't showing correctly on the category listing. Please see the example in this subcategory (of the main category, &quot;Roving&quot;):  Also, I require customers to order a minimum of 4 of any one product in this category and subcategories. Is there a way to display a notice when they click &quot;add to cart&quot; that reminds them of this requirement? For example, I'd like to list these products on the home page under featured products, but it is a little wordy to always display &quot;minimum order of 4 oz. for any one color&quot; under each item. That would be ok if there are no other options, but I'd love to find another way.  Thanks for your help!")*

Hi there,

About the first, the price displayed for these both views is based on the same file which is listing_price. So, you should take a look to be sure you edited the right view and also check the translation.
For the minimum quantity, this will require some good php knowledge because it's not something available in Hikashop and you have to code it yourself.
If you feel confident I can give you some advice otherwise I would suggest you to ask on the commercial jobs forum ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDk3LWNhdGVnb3J5LWxpc3RpbmctcHJpY2luZy1kaXNwbGF5LWNoYW5nZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 4 months ago -  13 years 4 months ago [\#111153](#111153) by [tandreas6](/forum/user/8323-tandreas6 "View tandreas6's Profile")  Replied by *[tandreas6](/forum/user/8323-tandreas6 "View tandreas6's Profile")* on topic *[Category Listing pricing display changes](/forum/4-how-to/84097-category-listing-pricing-display-changes#111153 "Hello - I have been setting up a different &quot;per&#95;unit&quot; display for a specific category of products, using this previous forum guide:  The product page currently displays the right information: it shows information for a certain quantity, and info for a larger quantity order. However, this information isn't showing correctly on the category listing. Please see the example in this subcategory (of the main category, &quot;Roving&quot;):  Also, I require customers to order a minimum of 4 of any one product in this category and subcategories. Is there a way to display a notice when they click &quot;add to cart&quot; that reminds them of this requirement? For example, I'd like to list these products on the home page under featured products, but it is a little wordy to always display &quot;minimum order of 4 oz. for any one color&quot; under each item. That would be ok if there are no other options, but I'd love to find another way.  Thanks for your help!")*

Hi Eliot,

Thanks for the info - if you can give me some advice on the listing_price php, that would help a lot. I have been editing the listing_price php, but was unable to figure out how to fix things in the category listing part.

Here is my code for the price info: Code:

if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)) { if ($this-&gt;element-&gt;price_per == 'per ounce') { if($price-&gt;price_min_quantity&gt;3 &amp;&amp; $price-&gt;price_min_quantity&lt;16) { echo "per ounce, minimum order of 4 oz. for any one color"; echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); } else if($price-&gt;price_min_quantity&gt;15) { echo "per ounce for orders of 16 oz. (1 pound) or more"; echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); } } else { if($price-&gt;price_min_quantity&gt;1) { echo " per ounce"; } else { echo JText::_('PER_UNIT'); } } }

Do I need to put in a line for: $this-&gt;row-&gt;price_per == 'per ounce'?

Last edit: 13 years 4 months ago by [tandreas6](/forum/user/8323-tandreas6 "View tandreas6's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDk3LWNhdGVnb3J5LWxpc3RpbmctcHJpY2luZy1kaXNwbGF5LWNoYW5nZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

13 years 4 months ago [\#111355](#111355) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category Listing pricing display changes](/forum/4-how-to/84097-category-listing-pricing-display-changes#111355 "Hello - I have been setting up a different &quot;per&#95;unit&quot; display for a specific category of products, using this previous forum guide:  The product page currently displays the right information: it shows information for a certain quantity, and info for a larger quantity order. However, this information isn't showing correctly on the category listing. Please see the example in this subcategory (of the main category, &quot;Roving&quot;):  Also, I require customers to order a minimum of 4 of any one product in this category and subcategories. Is there a way to display a notice when they click &quot;add to cart&quot; that reminds them of this requirement? For example, I'd like to list these products on the home page under featured products, but it is a little wordy to always display &quot;minimum order of 4 oz. for any one color&quot; under each item. That would be ok if there are no other options, but I'd love to find another way.  Thanks for your help!")*

Instead of:
if ($this-&gt;element-&gt;price_per == 'per ounce')

you should use:
if ($this-&gt;row-&gt;price_per == 'per ounce')

That way, it will work for both the product page and the listing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDk3LWNhdGVnb3J5LWxpc3RpbmctcHJpY2luZy1kaXNwbGF5LWNoYW5nZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.111 seconds

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

[](#top)
