summary order

  • Posts: 84
  • Thank you received: 0
11 years 1 month ago #151341

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,

I am having no luck swapping the position of taxes to above the sub-total (taxes, sub-total, delivery, final total) in the checkout summary. I have tried several "options" of blocks of code within the cart/checkout.php but only have managed to vanish the taxes :blush:

kindly,

Claire

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

  • Posts: 846
  • Thank you received: 92
11 years 1 month ago #151348

Hi
The url you give goes to http://website.1and1.com/#top

regard's

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 84
  • Thank you received: 0
11 years 1 month ago #151363

True, the website is the standard used in the forum message. I didn't include as the adjustments to the core php that I was asking about didn't really warrant it...if the site still interests :

http://stlena.dekerpelbarclay.com/index.php/component/hikashop/checkout?Itemid=149

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

  • Posts: 846
  • Thank you received: 92
11 years 1 month ago #151415

Hi
Can you give a direct url to the issue page .

Can you inform us if we need to register to access to the page ?
if yes could you give a user / password for test purpose .

Can you take a capteur screen with what i have and what i want ?

Reard's

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

  • Posts: 84
  • Thank you received: 0
11 years 1 month ago #151451

Hi Lionel,

The "issue" is in the checkout process. Thus one has to engage in an order so it can be seen, which requires registration....

Here is a screenshot if you aren't wanting to go through those processes: http://awesomescreenshot.com/0002mh2u19

The aim is to move taxes (in this case labelled TVA) to above the total (in this case renamed Sous-Total)
I understand which file to edit (cart/checkout.php) I am just not clearly identifying the right block(s) :blush:

thanks again,

Luke

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #151481

Hello Luke,
The solution will be to move these lines :

		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(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
			}
		}
just after the line :
$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));

The following user(s) said Thank You: lwlbar

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

  • Posts: 84
  • Thank you received: 0
11 years 1 month ago #151602

Thanks Mohamed worked perfectly!

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

Time to create page: 0.095 seconds
Powered by Kunena Forum