Checkout cart discount & price

  • Posts: 1119
  • Thank you received: 114
5 years 7 months ago #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 "hikashop_product_price_with_discount":



I could be miss some setting so please advise.

Thank you

Attachments:
Last edit: 5 years 7 months ago by kyratn.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 7 months ago #297470

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 1119
  • Thank you received: 114
5 years 7 months ago #297520

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:

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

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:
$classes = array('hikashop_product_price hikashop_product_price_'.$i);
			if(!empty($this->row->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....



Please advise?

Kind Regards

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
5 years 7 months ago #297521

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 or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum