Subtotal price is the same as final price

  • Posts: 203
  • Thank you received: 0
10 years 10 months ago #166942

-- HikaShop version -- : HikaShop Starter 2.3.2
-- Joomla version -- : 3.3.3.
-- PHP version -- : 5.4.30
-- Browser(s) name and version -- : Firefox 31

Hello,

i have an issue with my checkout.

awesomescreenshot.com/00c3af9k1e

Subtotal is the same amount as the final price.

how could i change this.
Subtotal should be final price - taxes.

Thx

Andreas

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
10 years 10 months ago #166948

Hi,

That's because you have the option "show taxed prices" activated in the configuration of HikaShop. Turn it off and it should work like you want

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

  • Posts: 203
  • Thank you received: 0
10 years 8 months ago #174710

Since i updated to business versions the problem is again there and i cant fix it.

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
10 years 8 months ago #174712

Hi,

Fix what ?
Nicolas told you that the problem was related to an option ; it is not link to something in the starter/business package, it is something in your configuration.

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: 3
  • Thank you received: 2
10 years 8 months ago #174829

Yes, but for example i want to show the taxed price in the shoop, but in the checkout i wan to se:

Subtotal: 8
Tax: 2
Total: 10

Is possible?

The following user(s) said Thank You: CMS-Buttler

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

  • Posts: 203
  • Thank you received: 0
10 years 8 months ago #174849

Yeah right this is the question :-)

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
10 years 8 months ago #174853

Hi,

For sure it is possible.
Like Nicolas said

That's because you have the option "show taxed prices" activated in the configuration of HikaShop. Turn it off and it should work like you want

If the sub total make the total using the price with tax, the sub total and the total will be the same ; specially if you don't have any payment or shipping methods.

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: 3
  • Thank you received: 2
10 years 8 months ago #174922

This solve the problem in the checkout but not in the shop.
But I want show taxed prices in the shop, but not in the subtotal in the checkout.
Look ate the screens.






Attachments:
Last edit: 10 years 8 months ago by Ashmithiel.
The following user(s) said Thank You: CMS-Buttler

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

  • Posts: 203
  • Thank you received: 0
10 years 8 months ago #174934

If i turn off taxex prices, the product prices in the shop will also appear without taxes.

I want to show the prices in shop with taxes and in the checkout like described above.

Thx

Andreas

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #174986

Hi,

You can edit the view "checkout / cart" and add:

<?php 
$oldTaxSetting = $this->params->get('price_with_tax');
$this->params->set('price_with_tax',0);
?>
<!-- Before -->
<tfoot>
And:
<?php 
$this->params->set('price_with_tax',$oldTaxSetting );
?>
<!-- After-->
</tfoot>

Last edit: 10 years 7 months ago by Xavier.

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

  • Posts: 3
  • Thank you received: 2
10 years 8 months ago #175084

Simply perfect!

Thank you =)

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

  • Posts: 203
  • Thank you received: 0
10 years 8 months ago #175180

Okay im too stupid

where in the file i have to add or edit this?

thx

Andreas

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
10 years 8 months ago #175182

Hi,

Like Xavier said, it's the view "checkout | cart".
www.hikashop.com/support/support/documen...ize-the-display.html

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: 203
  • Thank you received: 0
10 years 8 months ago #175332

yeah but where in this file

i tried but withsut success

thx

andreas

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #175345

Hi,

As said in the comment of the code part of my last post, the first code part must be placed before "<tfoot>" and the second part after "</tfoot>" HTML tag.

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

  • Posts: 203
  • Thank you received: 0
10 years 8 months ago #176138

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
10 years 8 months ago #176164

This indicates that you didn't add the code pieces at the correct place in the file. Please follow our instructions.

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

  • Posts: 37
  • Thank you received: 1
10 years 8 months ago #176209

Hi all,

I had the same problems and I followed the above instructions, all is looking fine now. My question is: will this be changed on your site in future versions or do I have to change the settings after each Hikashop update ?

Many thanks
Torsten

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #176239

Hi,

I don't think that this will be changed on our side. As this edition is made in a view, you will not have to edit it after each update.

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

  • Posts: 203
  • Thank you received: 0
10 years 7 months ago #176490

<?php 
$oldTaxSetting = $this->params->set('price_with_tax');
$this->params->set('price_with_tax',0);
?>
			<tfoot>
				<tr <?php if(HIKASHOP_RESPONSIVE){ echo 'class="hidden-phone"'; } ?>>
					<td colspan="<?php echo $row_count; ?>">
						<hr />
					</td>
				</tr>
<?php

		if(HIKASHOP_RESPONSIVE){
			$td = '';
			if($this->params->get('show_cart_image'))
				$td = '<td colspan="3" class="hidden-phone hikashop_cart_empty_footer"></td>';
			else
				$td .= '<td colspan="2" class="hidden-phone hikashop_cart_empty_footer"></td>';
		}else{
			$td = '';
			if($this->params->get('show_cart_image'))
				$td .= '<td colspan="3" class="hikashop_cart_empty_footer"></td>';
			else
				$td .= '<td colspan="2" class="hikashop_cart_empty_footer"></td>';
		}

		$taxes = round($this->full_total->prices[0]->price_value_with_tax-$this->full_total->prices[0]->price_value,$this->currencyHelper->getRounding($this->full_total->prices[0]->price_currency_id));
		if(!empty($this->coupon) || !empty($this->shipping) || !empty($this->additional) || bccomp($taxes,0,5)) {
?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title">
						<?php echo JText::_('SUBTOTAL'); ?>
					</td>
					<td class="hikashop_cart_subtotal_value">
					<?php
						$this->row = $this->total;
						echo $this->loadTemplate();
					?>
					</td>
				</tr>
<?php
		}
		if(!empty($this->coupon)) {
?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title">
						<?php echo JText::_('HIKASHOP_COUPON'); ?>
					</td>
					<td class="hikashop_cart_coupon_value" >
						<span class="hikashop_checkout_cart_coupon">
						<?php
							if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax')){
								echo $this->currencyHelper->format(@$this->coupon->discount_value_without_tax*-1,@$this->coupon->discount_currency_id);
							}else{
								echo $this->currencyHelper->format(@$this->coupon->discount_value*-1,@$this->coupon->discount_currency_id);
							}
						?>
						</span>
					</td>
				</tr>
<?php
		}

		if(!empty($this->shipping)) {
?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title">
						<?php echo JText::_('HIKASHOP_SHIPPING'); ?>
					</td>
					<td class="hikashop_cart_shipping_value" >
						<span class="hikashop_checkout_cart_shipping">
<?php
			if(isset($this->value)) {
				echo $this->value;
			} else {
				$shipping_price = null;
				foreach($this->shipping as $shipping) {
					if(!isset($shipping->shipping_price) && isset($shipping->shipping_price_with_tax) ) {
						$shipping->shipping_price = $shipping->shipping_price_with_tax;
					}
					if(isset($shipping->shipping_price)) {
						if($shipping_price === null)
							$shipping_price = 0.0;
						if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($shipping->shipping_price_with_tax)) {
							$shipping_price += $shipping->shipping_price;
						} else {
							$shipping_price += $shipping->shipping_price_with_tax;
						}
					}
				}
				if($shipping_price !== null) {
					echo $this->currencyHelper->format($shipping_price, $this->full_total->prices[0]->price_currency_id);
				}
			}
?>
						</span>
					</td>
				</tr>
<?php
		}

		if(!empty($this->additional)) {
			$exclude_additionnal = explode(',', $this->config->get('order_additional_hide', ''));
			foreach($this->additional as $k => $additional) {
				if(in_array($additional->name, $exclude_additionnal))
					continue;
?>
				<tr id="hikashop_checkout_cart_additional_<?php echo str_replace(' ','_',$k); ?>_line" >
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_additional_<?php echo str_replace(' ','_',$k); ?>_title" class="hikashop_cart_additional_title hikashop_cart_title"><?php
						echo JText::_($additional->name);
					?></td>
					<td class="hikashop_cart_shipping_value" >
						<span class="hikashop_checkout_cart_shipping">
<?php
				if(!empty($additional->price_value) || empty($additional->value)) {
					if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax')){
						echo $this->currencyHelper->format(@$additional->price_value,$additional->price_currency_id);
					}else{
						echo $this->currencyHelper->format(@$additional->price_value_with_tax,$additional->price_currency_id);
					}
				} else {
					echo $additional->value;
				}
?>
						</span>
					</td>
				</tr>
<?php
			}
		}

		if(bccomp($taxes,0,5)){
			if($this->config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)) {
				foreach($this->full_total->prices[0]->taxes as $tax) {
?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
						<?php echo $tax->tax_namekey; ?>
					</td>
					<td class="hikashop_cart_tax_value">
						<span class="hikashop_checkout_cart_taxes">
						<?php
							echo $this->currencyHelper->format($tax->tax_amount,$this->full_total->prices[0]->price_currency_id);
						?>
						</span>
					</td>
				</tr>
<?php
				}
			} else {
?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
						<?php echo JText::_('TAXES'); ?>
					</td>
					<td class="hikashop_cart_tax_value">
						<span class="hikashop_checkout_cart_taxes">
						<?php
							echo $this->currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id);
						?>
						</span>
					</td>
				</tr>
<?php
			}
		}

		 if(!empty($this->payment) && $this->payment->payment_price != 0) {
?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_payment_title" class="hikashop_cart_payment_title hikashop_cart_title">
						<?php echo JText::_('HIKASHOP_PAYMENT'); ?>
					</td>
					<td class="hikashop_cart_payment_value">
						<span class="hikashop_checkout_cart_payment">
						<?php
							if(!isset($this->payment->payment_price) && isset($this->payment->payment_price_with_tax) ) {
								if(isset($this->value)) {
									echo $this->value;
								} else {
									$this->payment->payment_price = 0.0;
									$this->payment->payment_price_with_tax = 0.0;
								}
							}
							if(isset($this->payment->payment_price)) {
								if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($this->payment->payment_price_with_tax) ){
									echo $this->currencyHelper->format(@$this->payment->payment_price,$this->full_total->prices[0]->price_currency_id);
								}else{
									echo $this->currencyHelper->format(@$this->payment->payment_price_with_tax,$this->full_total->prices[0]->price_currency_id);
								}
							}
						?>
						</span>
					</td>
				</tr>
				<?php } ?>
				<tr>
					<?php echo $td; ?>
					<td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title">
						<?php echo JText::_('HIKASHOP_TOTAL'); ?>
					</td>
					<td class="hikashop_cart_total_value">
						<span class="hikashop_checkout_cart_final_total">
						<?php
							echo $this->currencyHelper->format($this->full_total->prices[0]->price_value_with_tax,$this->full_total->prices[0]->price_currency_id);
						?>
						</span>
					</td>
				</tr>
			</tfoot>
			<?php 
$this->params->set('price_with_tax',$oldTaxSetting );
?>

This is the code.

But it does not work anyway

where is the failure?

thx

andreas

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

Time to create page: 0.138 seconds
Powered by Kunena Forum