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

#   price by weight

##

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

Less More

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

15 years 3 months ago [\#20874](#20874) by [noelclarke](/forum/user/3238-noelclarke "View noelclarke's Profile")  *[price by weight](/forum/4-how-to/20874-price-by-weight#20874 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")* was created by *[noelclarke](/forum/user/3238-noelclarke "View noelclarke's Profile")*

Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.

My question - how can I set up products to sell by weight?

I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.

Thanks

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 3 months ago [\#20880](#20880) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#20880 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

You could indeed use characteristics: [ www.hikashop.com/support/documentation/i...html#characteristics](http://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop-product-form.html#characteristics)

Create one characteristic weight with the values 250g, 500g, 750g, 1kg and 1.5kg and then add it to your products when editing them. Then, via the manage variants button, you can set a price for each variant.

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

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

Less More

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

15 years 3 months ago [\#20881](#20881) by [noelclarke](/forum/user/3238-noelclarke "View noelclarke's Profile")  Replied by *[noelclarke](/forum/user/3238-noelclarke "View noelclarke's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#20881 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

Great, thanks for that, but is there a way those prices can be worked out automatically from the one base price per Kilo?

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 3 months ago [\#20882](#20882) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#20882 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

Well, that's possible to do that as well but that require some custom coding: creating a custom field to select whether or not a product can be both by weight, another one for the weight selection field, the edition of a view to display or not the second custom field based on the first one value, and a plugin to calculate the price based on the weight and the base price.
If you know your way around in PHP, we have a documentation about the creation of product quantity calculation plugins: [ www.hikashop.com/support/documentation/6...tation.html#override](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#override)

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago [\#22599](#22599) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22599 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

so we used characteristics to this as described above, but then on the product listing page it says under price $2.99 each... ideally we would want it to be the variant label so $2.99 half-pint say...
which file would i edit to change this?

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 2 months ago [\#22612](#22612) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22612 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

If you want to change the text "each" to "half-pint" you can do that by editing your translation file on the tab Languages of the configuration:
[ www.hikashop.com/download/languages.html#modify](http://www.hikashop.com/download/languages.html#modify)

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago [\#22614](#22614) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22614 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

ahhh if it were only that easy i could have done it without help. LOL

i want the variation name to show up. i have for instance variations of half pint, pint and quart... each with a separate price...

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 2 months ago [\#22619](#22619) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22619 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

Then, you could create a custom field of the type 'product' so that when creating a product you could choose between the different variations.
Then, edit the file listing_price of the view product via the menu Display-&gt;Views and change the line:
echo JText::_('PER_UNIT');

to use that custom field value instead:
echo $this-&gt;element-&gt;CUSTOM_FIELD_COLUMN;

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago [\#22620](#22620) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22620 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

will try that tomorrow... when my brain recovers ![:-)](/media/kunena/emoticons/9.png ":-)")

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago -  15 years 2 months ago [\#22866](#22866) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22866 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

so i added that line: echo $this-&gt;element-&gt;measurement; to the listing_price template and it works on the main show page but not on the listing_img_desc page. is there a different way to call custom fields on this page...?

sorry, i got it.. actually if you want it to work in both screens you need to call
echo $this-&gt;row-&gt;measurement;

Last edit: 15 years 2 months ago by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile").

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 2 months ago [\#22867](#22867) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22867 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

Yes. On listings, you have several products. So it's:
$this-&gt;row-&gt;CUSTOM_FIELD_COLUMN;

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

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

Less More

- Posts: 102
- Thank you received: 0
-
-

15 years 2 months ago [\#22868](#22868) by [MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")  Replied by *[MinnieMouse](/forum/user/3535-minniemouse "View MinnieMouse's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22868 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

nicolas, where can i find the content for the links of the ajax popup when you have added something to the cart?
thanks Liz

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 2 months ago [\#22869](#22869) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#22869 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

It's the "notice" file of the "checkout" view that you can edit via Display-&gt;Views.

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

15 years 3 weeks ago [\#26227](#26227) by [BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")  Replied by *[BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#26227 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

how do i remove the custom field i just added to my product page from the default location, and just use it where i decide it should go ?

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 3 weeks ago [\#26250](#26250) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#26250 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

I'm not following you. Could you explain more what you want to do ?

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

15 years 3 weeks ago [\#26275](#26275) by [BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")  Replied by *[BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#26275 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

i created a custom field in product, and placed it as you suggested earlier in this topic to replace the 'Each', this is fine.

However it appears that you have also put a piece of code to display custom fields, so my custom field is called in a location where i didn't place any code.

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 3 weeks ago [\#26281](#26281) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#26281 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

Ah , that's because you set it to be displayed on the front end. You should turn off that option of your custom field and it won't be displayed on your product page.

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

15 years 3 weeks ago [\#26430](#26430) by [BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")  Replied by *[BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#26430 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

So i have 'echo $this-&gt;row-&gt;{MYFIELDNAME};' in the listing_price template as described above and the field is disabled in front end. On the category view it reads the custom field as expected (next to the price), however on product page itself the custom field is not shown.

If i enable front end for the field i see it in the right place in category AND product page (next to the price) but also in product page i have it shown under a H4 heading 'Specifications'.

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

15 years 3 weeks ago [\#26454](#26454) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#26454 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

Maybe it's because your product has characteristics ?
In that case, you should try with this for the product page:
echo $this-&gt;element-&gt;main-&gt;CUSTOM_FIELD_COLUMN;

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 11 months ago [\#28497](#28497) by [BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")  Replied by *[BigDutch](/forum/user/2792-bigdutch "View BigDutch's Profile")* on topic *[Re: price by weight](/forum/4-how-to/20874-price-by-weight#28497 "Hi, first off - thank you for Hikashop. I've been using Virtuemart, and Hikashop is a very welcome relief.  My question - how can I set up products to sell by weight?  I'm building an online butchers shop and need to sell, for example, Rump Steak at £15.70 per kilo but have the shopper choose whether they want 250g, 500g, 750g, 1 kilo or 1.5 kilo and be charged the appropriate price. Other products can be sold per unit, say burgers, so that's no problem. I suppose I use the product characteristics but can anyone explain how this could work.  Thanks")*

so i've ended up with the custom field disabled for the front end and this line in product / listing_price.php
Code:

echo $this-&gt;element-&gt;main-&gt;CUSTOM_FIELD_COLUMN.$this-&gt;row-&gt;CUSTOM_FIELD_COLUMN

because ...

$this-&gt;element-&gt;main-&gt;CUSTOM_FIELD_COLUMN // this shows on the main product page but not on the category list page

$this-&gt;row-&gt;CUSTOM_FIELD_COLUMN // this doesn't show on the main product page but DOES on the category list page

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

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

[](#top)
