Skip to main content

summary order

12 years 7 months ago #151341 by lwlbar
summary order was created by lwlbar
-- 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.

12 years 7 months ago #151348 by lionel75
Replied by lionel75 on topic summary order
Hi
The url you give goes to 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.

12 years 7 months ago #151363 by lwlbar
Replied by lwlbar on topic summary order
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 :

stlena.dekerpelbarclay.com/index.php/com.../checkout?Itemid=149

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

12 years 7 months ago #151415 by lionel75
Replied by lionel75 on topic summary order
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.

12 years 7 months ago #151451 by lwlbar
Replied by lwlbar on topic summary order
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: 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.

12 years 7 months ago #151481 by Mohamed Thelji
Replied by Mohamed Thelji on topic summary order
Hello Luke,
The solution will be to move these lines :
Code:
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 :
Code:
$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.

12 years 7 months ago #151602 by lwlbar
Replied by lwlbar on topic summary order
Thanks Mohamed worked perfectly!

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

Time to create page: 0.070 seconds
Powered by Kunena Forum