Author Topic: Base price - discounted price  (Read 409 times)

fulopkrisztina

  • Beginner
  • *
  • Posts: 1
  • A beginner
  • Skype Name: afulopkriszta
Base price - discounted price
« on: March 01, 2018, 21:23:42 pm »
Hi there,

I have virtuemart 3.0 and Joomla 3.8. I want to show prices in the following format:

Base Price (line through)
Discounted Price (bigger size)
Amount of Discount

but by the product, without discount, I want to showin only the base price ...

How can I do this?


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26809
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.14.9808 on Joomla 3.8.8 PHP 7.0.30

Testing VM3.2.15.9840 on J3.8.8

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: Base price - discounted price
« Reply #2 on: April 30, 2018, 22:20:53 pm »
I too am looking for exactly this - the link provided was not very helpful

there should be a way of doing this out of the box?!

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26809
  • Always on vacation
    • Jenkin Hill Internet
Re: Base price - discounted price
« Reply #3 on: April 30, 2018, 23:36:54 pm »
This was not followed though as fulopkrisztina has not been back in the forum since making that one post.

It can, of course, be done using overrides.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.14.9808 on Joomla 3.8.8 PHP 7.0.30

Testing VM3.2.15.9840 on J3.8.8

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: Base price - discounted price
« Reply #4 on: April 30, 2018, 23:48:40 pm »
I guess there would be 2 pages to edit? (1 for the category and 1 for the product details?), and I`d have to add some sort if 'if' statement so that the base price only loads if there is a discount?

If you could point me in the right direction for the files I would need to overwrite it would be greatly appreciated

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: Base price - discounted price
« Reply #5 on: May 01, 2018, 06:23:04 am »
figured it out  sublayouts/prices.php

just had to move the salesPrice into the if ($product->prices['discountedPriceWithoutTax'] area!

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26809
  • Always on vacation
    • Jenkin Hill Internet
Re: Base price - discounted price
« Reply #6 on: May 01, 2018, 10:17:55 am »
That's it.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.14.9808 on Joomla 3.8.8 PHP 7.0.30

Testing VM3.2.15.9840 on J3.8.8