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

#   Checkout cart discount &amp; price

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 2 months ago -  8 years 2 months ago [\#297468](#297468) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[Checkout cart discount &amp; price](/forum/27-checkout/895639-checkout-cart-discount-price#297468 "Hi,  I am not sure but i think there is some class missing in checkout cart view block product price with discount. Those i am not able to style it.  This is correct html from cart module:  Ant this is wrong html with missing class &quot;hikashop&#95;product&#95;price&#95;with&#95;discount&quot;:  I could be miss some setting so please advise.  Thank you")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

Hi,

I am not sure but i think there is some class missing in checkout cart view block product price with discount. Those i am not able to style it.

This is correct html from cart module:

[ ![ok.png](/forum/attachment/44757) ](/forum/attachment/44757 "ok.png")

Ant this is wrong html with missing class "hikashop_product_price_with_discount":

[ ![wrong&#95;2018-09-01.png](/forum/attachment/44758) ](/forum/attachment/44758 "...2018-09-01.png")

I could be miss some setting so please advise.

Thank you

- [ ![ok.png](/forum/attachment/44757) ](/forum/attachment/44757 "ok.png") [ ](/forum/attachment/44757?download=1 "ok.png")
- [ ![wrong&#95;2018-09-01.png](/forum/attachment/44758) ](/forum/attachment/44758 "...2018-09-01.png") [ ](/forum/attachment/44758?download=1 "...2018-09-01.png")

Last edit: 8 years 2 months ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 2 months ago [\#297470](#297470) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Checkout cart discount &amp; price](/forum/27-checkout/895639-checkout-cart-discount-price#297470 "Hi,  I am not sure but i think there is some class missing in checkout cart view block product price with discount. Those i am not able to style it.  This is correct html from cart module:  Ant this is wrong html with missing class &quot;hikashop&#95;product&#95;price&#95;with&#95;discount&quot;:  I could be miss some setting so please advise.  Thank you")*

Hello,

Regarding the parent elements ; I don't think that your views are HikaShop official one.
We don't have "tz-" classes in HikaShop.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 2 months ago [\#297520](#297520) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Checkout cart discount &amp; price](/forum/27-checkout/895639-checkout-cart-discount-price#297520 "Hi,  I am not sure but i think there is some class missing in checkout cart view block product price with discount. Those i am not able to style it.  This is correct html from cart module:  Ant this is wrong html with missing class &quot;hikashop&#95;product&#95;price&#95;with&#95;discount&quot;:  I could be miss some setting so please advise.  Thank you")*

Hi,

Well yes, i have customized checkout show_block_cart.php view but that's not the issue. The issue is that to show price you are using this code as example:
Code:

&lt;?php if(!empty($this-&gt;options['show_price'])) { ?&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?&gt;" class="hikashop_cart_product_total_value"&gt;&lt;?php echo $this-&gt;getDisplayProductPrice($product, false); ?&gt;&lt;/td&gt; &lt;?php } ?&gt;

I think it comes from checkout listing_price.php and comparing with product listing_price.php view i see it does miss something like this:
Code:

$classes = array('hikashop_product_price hikashop_product_price_'.$i); if(!empty($this-&gt;row-&gt;discount)){ $classes[]='hikashop_product_price_with_discount'; }

Here is also the screenshot of the checkout show_block_cart.php view with default protostar template which has no modifications and it also miss "hikashop_product_price_with_discount" class....

[ ![error&#95;2018-09-03.png](/forum/attachment/44761) ](/forum/attachment/44761 "...2018-09-03.png")

Please advise?

Kind Regards

- [ ![error&#95;2018-09-03.png](/forum/attachment/44761) ](/forum/attachment/44761 "...2018-09-03.png") [ ](/forum/attachment/44761?download=1 "...2018-09-03.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTYzOS1jaGVja291dC1jYXJ0LWRpc2NvdW50LXByaWNlP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

8 years 2 months ago [\#297521](#297521) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout cart discount &amp; price](/forum/27-checkout/895639-checkout-cart-discount-price#297521 "Hi,  I am not sure but i think there is some class missing in checkout cart view block product price with discount. Those i am not able to style it.  This is correct html from cart module:  Ant this is wrong html with missing class &quot;hikashop&#95;product&#95;price&#95;with&#95;discount&quot;:  I could be miss some setting so please advise.  Thank you")*

Hi,

Well, it's not really that it's an issue. It's just something we've added for the product page and didn't think it would be useful elsewhere and thus didn't bother.
But if you want to add it to the listing_price view file of the checkout view, you can do it in your override.
We'll look at adding it too in a future version.

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