News:

Support the VirtueMart project and become a member

Main Menu

Hide ordertotal on view "order done"

Started by melsonmarketing, January 03, 2020, 12:36:35 PM

Previous topic - Next topic

melsonmarketing

Hi all!

a customer is using VM 3.6.10 to handle inquiries for spareparts.

as these are sent around the world and the price varies depending on the state (new, used...) of the parts, no prices shall be shown. The stock will be synched with/by Orgamax.

It was absolutely no problem to adjust the languagefiles by override and to hide the prices in the cart, ordermails and order-detailsview.

But there is one view I can't find out how to hide the sum:

The "Orde done" after submitting the cart (here: inquiry).

I can't find any info within the orderdone.php or order_done.php.

Tried with css:

div.post_payment_order_total {
  display: none !important;
}

Unfortunately doesn't work.

Can you point me to the right file or help with a working solution?

Thanks in advance

Michael

Jörgen

IF THE CSS is correct then you have put THE Rule in THE wrong File. It has to be loaded last.
Any live url ?
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

melsonmarketing

Hello Jörgen,

I took the inspected class which I can't find within the vm css files.

So I've put it into the custom.css of my template which also is the template within the VM config.

Sorry, no Live URL yet.

melsonmarketing

Update

Seems, that this effect was related to caching.

I cleared all browser- and sitecaches befor i posted here, but obviously the servercache caused this behaviour.

It's okay now and the css is working.

Thank you

melsonmarketing

Update #2

It worked exactly 2 times for testing:

english, german

Now the price shows up again.

Does anyone have an idea which file to edit to hide / delete the line with the price?

GJC Web Design

it is sent in the returned $html from the payment plugin normally

e.g. 'displayTotalInPaymentCurrency' => $totalInPaymentCurrency['display'],

$html = $this->renderByLayout('post_payment', array(
'order_number' =>$order['details']['BT']->order_number,
'order_pass' =>$order['details']['BT']->order_pass,
'payment_name' => $dbValues['payment_name'],
'displayTotalInPaymentCurrency' => $totalInPaymentCurrency['display'],
'orderlink' =>$orderlink
));
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

melsonmarketing

Thank you - exactly the information I needed.

I commented line 215 and 216 in standard.php an now it works as it should.

Thanks again and have a nice week!