Skip to main content

Subtotal price is the same as final price

More
12 years 2 months ago #166942 by CMS-Buttler
-- 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.

More
12 years 2 months ago #166948 by nicolas
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.

More
12 years 2 weeks ago #174710 by CMS-Buttler
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.

More
12 years 2 weeks ago #174712 by Jerome
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.

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

More
12 years 2 weeks ago #174829 by Ashmithiel
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.

More
12 years 2 weeks ago #174849 by CMS-Buttler
Yeah right this is the question :-)

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

More
12 years 2 weeks ago #174853 by Jerome
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.

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

More
12 years 2 weeks ago - 12 years 2 weeks ago #174922 by Ashmithiel
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.






Last edit: 12 years 2 weeks ago by Ashmithiel.
The following user(s) said Thank You: CMS-Buttler

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

More
12 years 2 weeks ago #174934 by CMS-Buttler
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.

More
12 years 2 weeks ago - 12 years 4 days ago #174986 by Xavier
Hi,

You can edit the view "checkout / cart" and add:
Code:
<?php $oldTaxSetting = $this->params->get('price_with_tax'); $this->params->set('price_with_tax',0); ?> <!-- Before --> <tfoot>
And:
Code:
<?php $this->params->set('price_with_tax',$oldTaxSetting ); ?> <!-- After--> </tfoot>
Last edit: 12 years 4 days ago by Xavier.

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

More
12 years 2 weeks ago #175084 by Ashmithiel
Simply perfect!

Thank you =)

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

More
12 years 2 weeks ago #175180 by CMS-Buttler
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.

More
12 years 2 weeks ago #175182 by Jerome
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.

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

More
12 years 2 weeks ago #175332 by CMS-Buttler
yeah but where in this file

i tried but withsut success

thx

andreas

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

More
12 years 2 weeks ago #175345 by Xavier
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.

More
12 years 1 week ago #176138 by CMS-Buttler

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

More
12 years 1 week ago #176164 by nicolas
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.

More
12 years 1 week ago #176209 by TorstenL
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.

More
12 years 6 days ago #176239 by Xavier
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.

More
12 years 5 days ago #176490 by CMS-Buttler
Code:
<?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.683 seconds
Powered by Kunena Forum