- Posts: 21
- Thank you received: 0
Subtotal is wrong
-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?
I red here ( www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)
Can you help me?
I also would like to remove the coupon code?
Thanks!
Regards
Please Log in or Create an account to join the conversation.
1. This thread is 4 years old. A lot changed since then.
With HikaShop 3, we introduced a new checkout.
So if you have the "checkout legacy" deactivated in your configuration, you need to edit the file "show_block_cart". Otherwise, it's the "cart" view file you need to edit.
No I don't see what code you're talking about since the thread on your link doesn't contain any code.
2. Just remove the "coupon" view from the "checkout workflow" setting of the HikaShop configuration.
Please Log in or Create an account to join the conversation.
Thanks!
Please Log in or Create an account to join the conversation.
We already know the code in the cart view. What we don't know is what code you're looking for in there ?
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Can you help me chance that and maybe also tell me where i can chance the fields I see in the e-mail. Now its onlu klant, bestelnummer and betaalmethode.
Please Log in or Create an account to join the conversation.
You can edit the emails in the menu System>Emails.
There, look in the "preload" section.
There you will find that code which calculates the subtotal:
Please Log in or Create an account to join the conversation.
Because I really don't know how to achieve that ...
Thank you very much!
Regrads
Please Log in or Create an account to join the conversation.
It's almost the same as before. Swap :
$subtotal += $item->order_product_total_price;
and:
$subtotal += $item->order_product_total_price_no_vat;
Please Log in or Create an account to join the conversation.
How can i display that to the form please, because i'm not very strong with the code ...
Thank you very much!!!
Please Log in or Create an account to join the conversation.
I'm not sure what you mean. How did you configure the custom field ? Could you do a screenshot of its settings ?
Please Log in or Create an account to join the conversation.
Also there is a second : sign that i not able to remove? how can i do that?
Thank you very much
Please Log in or Create an account to join the conversation.
1. In the HikaShop configuration, in the checkout tab, you can configure the address format. You need to add the tag for your custom field there and it will be added in the email address area, like the other custom address fields.
2. Edit your order admin notification email via the menu System>Emails and in the preload area, remove it on the line :
'CUSTOMER_DETAILS' => JText::_('HIKA_CUSTOMER_EMAIL').': '.$userInfos->user_email,
PS: when you do screenshots next time, please try to do them while being logged in in English so that we can easily understand them or not have to translated them.
Please Log in or Create an account to join the conversation.
But I still have a problem with the subtotal, so I will just delete it from my email, because it's the same as 'price with vat'. Do you know how I can remove the line subtotal? Thank you
Please Log in or Create an account to join the conversation.
Nicolas indicated you how to modify the email preload
www.hikashop.com/forum/checkout/889192-s...is-wrong.html#264464
There you can modify the way that the subtotal is process but you will also find the line which add the subtotal in the cart "footer".
By commenting the line, you won't add the subtotal in the footer which won't be display in the email afterwards.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
I think this is the part where I have to look? But exactly what part do I have to comment out?
Thank you very much!
Please Log in or Create an account to join the conversation.
You can always click on the "remove customization" bin icons of the email on the emails listing if you mess up the email. So don't worry.
Please understand that we provide user support, not custom development services. We already went beyond what we're supposed to do and gave you hints and code modifications. If you're not a developer and need such customization help by a professional, please contact someone to help you with it. For example, some of our partners can do such custom development:
www.hikashop.com/home/our-partners.html
Please Log in or Create an account to join the conversation.