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

#   How to sell by different variables?

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

15 years 5 months ago [\#18776](#18776) by [Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")  Replied by *[Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18776 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

Ok that worked ![=)](/smile.gif "=)") Thanks a lot Nicolas!

But is there a way to edit the "each"? Thats kind of what I wanted edited

This is what its displaying:

$5.00 each
5$ for 1/2 lbs

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTYzLWhvdy10by1zZWxsLWJ5LWRpZmZlcmVudC12YXJpYWJsZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18779](#18779) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18779 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

The each word can be changed in that view:
echo JText::_('PER_UNIT');

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

15 years 5 months ago [\#18782](#18782) by [Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")  Replied by *[Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18782 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

But then it changes it for every product. I only want it for the one product ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTYzLWhvdy10by1zZWxsLWJ5LWRpZmZlcmVudC12YXJpYWJsZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18784](#18784) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18784 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

Yes. You need to change that code...like explained previously:
switch($this-&gt;row-&gt;product_code){
case 'product_1':
echo JText::_('PER_UNIT');
break;
default:
echo 'other text';
break;
}

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

15 years 5 months ago -  15 years 5 months ago [\#18785](#18785) by [Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")  Replied by *[Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18785 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

Yes I did that but again its showing it like this:

$5.00 each
$5 1/2

Its showing the price by each THEN my added variable.

Like here:
[ magnismunchies.com/index.php/component/h...pathway-0?Itemid=257](http://magnismunchies.com/index.php/component/hikashop/product/show/cid-13/name-magnis-milk-bone-munchie/category_pathway-0?Itemid=257)

Last edit: 15 years 5 months ago by [Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTYzLWhvdy10by1zZWxsLWJ5LWRpZmZlcmVudC12YXJpYWJsZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18788](#18788) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18788 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

As much as we like to help, our time is finite. We already gave you where to modify and how. We can't make your customizations for you on our forum. If you want us to do it for you on your website, please use our contact form to request a quote.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

15 years 5 months ago [\#18790](#18790) by [Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")  Replied by *[Johnny B](/forum/user/2891-johnny-b "View Johnny B's Profile")* on topic *[Re: How to sell by different variables?](/forum/4-how-to/18563-how-to-sell-by-different-variables?start=20#18790 "First off great product! I made the switch from virtuemart and I couldnt be happier.  But my question is I have a customer that wants to sell dog treats. They sell by weight, groups of 3,4, etc, or just by individual product.  When I sell by weight Id like it to say for example 5.95$ per lb or 1/2 lb But other products may say 4 for 5$ And others say 5$ each  Ive done some reading but I cant find anything answering this do you have any suggestions? Any help is greatly appreciated.  On a side note, Do you guys have a donation button or anything? Id like to donate to help support hika shop!")*

Ok thats understandable. I greatly appreciate all of the help!

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

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