Remove currency name pre-tax

  • Posts: 260
  • Thank you received: 25
11 years 7 months ago #96044

Hi all,

Just wondering how I would remoce the second reference to the currency when displaying both pre and post tax. (See below)

I want to retain the AU $ on the first price but remove it from the pre-tax amount (to save some space).



magnet.com.au/studfinders.html


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Attachments:
Last edit: 11 years 7 months ago by sambob.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #96086

Hi,

I think that you'll have to do it through "Hikashop->Display->Views" by editing the cart file of the checkout view of your front-end template.

Hope this will help you a little.

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

  • Posts: 260
  • Thank you received: 25
11 years 7 months ago #96280

Hi Mohamed,

A bit confused as that is not the checkout page - it is the listing_table and the price area is from listing_price

I am just not sure where in listing_price I can edit.

Or are you sure it is checkout cart?


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 2334
  • Thank you received: 403
11 years 7 months ago #96327

Hi there,

I think the best for you to do is edit the listing_price view.
Then just replace this code:

if($this->params->get('price_with_tax')==2){
						echo JText::_('PRICE_BEFORE_TAX');
					}
					if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
						echo $this->currencyHelper->format($price->price_value_without_discount,$price->price_currency_id);
					}
					if($this->params->get('price_with_tax')==2){
						echo JText::_('PRICE_AFTER_TAX');
					}

by this one:
if($this->params->get('price_with_tax')==2){
						echo JText::_('PRICE_BEFORE_TAX');
					}
					if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
						echo $price->price_value_without_discount;
					}
					if($this->params->get('price_with_tax')==2){
						echo JText::_('PRICE_AFTER_TAX');
					}

I think it will do the job (I didn't tested it). I simply replaced the price between parentheses by the price value without any format.
Hope it will help you!

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

  • Posts: 260
  • Thank you received: 25
11 years 7 months ago #96415

Hi Eliot...

Thanks for your reply.

Tried that but no change, so I had another idea; change the currency display code to just $ and not AU $ and has saved some space.

Thanks anyway.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Last edit: 11 years 7 months ago by sambob.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum