show first total price without discount...

  • Posts: 45
  • Thank you received: 0
11 years 10 months ago #93941

I would like that during the checkout process user will get first the total price without discount and below that the total price with discount. I am using Awocoupon with HikaShop. I already asked for help from Awocoupon admin and they told me to ask you guys for help because it could be hikashop setting.

Please see the attachment for more.

What should I do?

Thanks in advance!

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #94061

Hi,

You can edit the view "checkout / cart" and replace the lines:

						$this->row=$this->total;
						echo $this->loadTemplate();
By:
$priceWithoutDiscount = @$this->total->prices[0]->price_value_with_tax - the discount value;
echo $this->currencyHelper->format(@$priceWithoutDiscount,@$this->total->prices[0]->price_currency_id);

And replace "the discount value" by the value of the discount, maybe: @$this->coupon->discount_value_without_tax

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

  • Posts: 45
  • Thank you received: 0
11 years 10 months ago #94197

Unfortunately it didn't work the way I wanted.
Do you have any other option for me?

Please see the attachment for the way it worked when I made changes you asked for.

Thank you!

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #94297

Si you have to change:
"$priceWithoutDiscount = @$this->total->prices[0]->price_value_with_tax - the discount value;"
to:
"$priceWithoutDiscount = @$this->total->prices[0]->price_value_with_tax + the discount value;'

The following user(s) said Thank You: mirlinda.kosova

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

Time to create page: 0.049 seconds
Powered by Kunena Forum