Author Topic: Hide ordertotal on view "order done"  (Read 496 times)

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Hide ordertotal on view "order done"
« on: January 03, 2020, 12:36:35 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2747
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Hide ordertotal on view "order done"
« Reply #1 on: January 03, 2020, 13:08:43 pm »
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)

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Re: Hide ordertotal on view "order done"
« Reply #2 on: January 03, 2020, 13:27:18 pm »
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

  • Jr. Member
  • **
  • Posts: 64
Re: Hide ordertotal on view "order done"
« Reply #3 on: January 03, 2020, 14:00:48 pm »
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

  • Jr. Member
  • **
  • Posts: 64
Re: Hide ordertotal on view "order done"
« Reply #4 on: January 03, 2020, 15:05:52 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Hide ordertotal on view "order done"
« Reply #5 on: January 03, 2020, 20:14:25 pm »
it is sent in the returned $html from the payment plugin normally

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

Code: [Select]
$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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Re: Hide ordertotal on view "order done"
« Reply #6 on: January 06, 2020, 11:54:07 am »
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!