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

#   Unit Pricing in Cart

##

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

Less More

- Posts: 18
- Thank you received: 0
-
-

15 years 3 months ago [\#22216](#22216) by [Robertson](/forum/user/3226-robertson "View Robertson's Profile")  *[Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22216 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")* was created by *[Robertson](/forum/user/3226-robertson "View Robertson's Profile")*

I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.

Thanks

Aubrey

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

Less More

- Posts: 86359
- Thank you received: 14293
-
-

15 years 3 months ago [\#22225](#22225) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22225 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

There is no option for that and no one requested that so far. The problem is that the cart module is usually displayed on the side and doesn't have enough space to display well so we removed that column in order to offer more space for the other columns.

If you want to add that column, you need to edit the file "cart" of the view "product" via the menu Display-&gt;Views and change the code in order to display that additional column.

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

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

Less More

- Posts: 18
- Thank you received: 0
-
-

15 years 3 months ago [\#22226](#22226) by [Robertson](/forum/user/3226-robertson "View Robertson's Profile")  Replied by *[Robertson](/forum/user/3226-robertson "View Robertson's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22226 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

Thanks for the response. We are using the cart a little different so it will be helpful to have it. Should be able to add it.

Should i start another thread to ask about payment options? I would like to change the order of the options in checkout and have the top one default selected.

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

Less More

- Posts: 86359
- Thank you received: 14293
-
-

15 years 3 months ago [\#22229](#22229) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22229 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

The payment methods are displayed based on their ordering. You can change their ordering in the plugins manager of Joomla.

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

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

Less More

- Posts: 18
- Thank you received: 0
-
-

15 years 3 months ago [\#22231](#22231) by [Robertson](/forum/user/3226-robertson "View Robertson's Profile")  Replied by *[Robertson](/forum/user/3226-robertson "View Robertson's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22231 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

Well of course... that's easy - thank you again. Support around here is exceptional!

On the previous question, I added this to the product cart view and it's showing the unit header, but the total and not the unit prices int that column:

In the table header:

&lt;th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt;
&lt;/th&gt;
After the product name &lt;/td&gt;:

&lt;td class="hikashop_cart_product_price_value"&gt;
&lt;?php
$this-&gt;row=&amp;$row;
$this-&gt;unit=true;
echo $this-&gt;loadTemplate();
?&gt;
&lt;/td&gt;

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

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

Less More

- Posts: 18
- Thank you received: 0
-
-

15 years 3 months ago [\#22232](#22232) by [Robertson](/forum/user/3226-robertson "View Robertson's Profile")  Replied by *[Robertson](/forum/user/3226-robertson "View Robertson's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22232 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

Also - I'm going to upgrade to business today to get the customer order fields - will the upgrade overwrite this type of view customization or the language file?

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

Less More

- Posts: 86359
- Thank you received: 14293
-
-

15 years 3 months ago [\#22235](#22235) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22235 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

The unit variable is not used in the listing_price file of the view product. It's only used in the listing_price file of the view checkout.
Thus, you need to port the code below from one to the other in order to do that:
if(!empty($this-&gt;unit) &amp;&amp; isset($price-&gt;unit_price)){
$price =&amp; $price-&gt;unit_price;
}

If you customize the views via the interface and that you customize your translations via the override area, you won't loose them when you update/upgrade HikaShop.

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

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

Less More

- Posts: 18
- Thank you received: 0
-
-

15 years 3 months ago -  15 years 3 months ago [\#22239](#22239) by [Robertson](/forum/user/3226-robertson "View Robertson's Profile")  Replied by *[Robertson](/forum/user/3226-robertson "View Robertson's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22239 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

**nicolas wrote:**

> if(!empty($this-&gt;unit) &amp;&amp; isset($price-&gt;unit\_price)){
> $price =&amp; $price-&gt;unit\_price;
> }

Okay, I added that to the product listing_price view, but now both the unit price column and the price column show the unit price?? image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/7_29_2011_3_22_31_PM.png

- [ ![7&#95;29&#95;2011&#95;3&#95;22&#95;31&#95;PM.png](/forum/attachment/1520) ](/forum/attachment/1520 "...3&#95;22&#95;31&#95;PM.png") [ ](/forum/attachment/1520?download=1 "...3&#95;22&#95;31&#95;PM.png")

Last edit: 15 years 3 months ago by [Robertson](/forum/user/3226-robertson "View Robertson's Profile").

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

Less More

- Posts: 86359
- Thank you received: 14293
-
-

15 years 3 months ago [\#22242](#22242) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22242 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

Of course. You need to set $this-&gt;unit back to false after your code.

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

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

Less More

- Posts: 18
- Thank you received: 0
-
-

15 years 3 months ago [\#22248](#22248) by [Robertson](/forum/user/3226-robertson "View Robertson's Profile")  Replied by *[Robertson](/forum/user/3226-robertson "View Robertson's Profile")* on topic *[Re: Unit Pricing in Cart](/forum/4-how-to/22216-unit-pricing-in-cart#22248 "I'm sure that i'm overlooking something simple, but how do I add unit price display to the cart? I've looked everywhere and searched the forum and docs. On a deadline here and would appreciate any input.  Thanks  Aubrey")*

Absolutely perfect. Thank you so much!

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

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