VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: eddie1201 on April 30, 2020, 17:24:32 PM

Title: Sales Price and discounted price
Post by: eddie1201 on April 30, 2020, 17:24:32 PM
Hi,

I am running:

Joomla 3.9.18
VP 3.6.10
PHP 7.4

I have gone through the forum and also followed the process from 3 vidoes.

I configured an overide rule.
I applied the overide rule against Final Price in my product
But what I woluld like is to see the strike through price and the discounted price - see attachments

But I dont see that on my site - I only see one price.

I will keep on chekcing but any steer or guideline or ref links much appreciated. 

This is the last hurdle before we go live

Eddie

Title: Re: Sales Price and discounted price
Post by: AH on April 30, 2020, 18:09:03 PM
Looks like you are using a non base template to show details.
Try:

"Baseprice with Tax, but without discounts"

If that does not work then look further below:

See the file components\com_virtuemart\sublayouts\prices.php or look in your override to compare

You can create the display you require in any overrides


Then try to see what the product looks like on the base protostar without any template overrides

When you have the default base template and vm template working then look here:

http://docs.virtuemart.net/manual/configuration-menu/configuration.html#pricing (http://docs.virtuemart.net/manual/configuration-menu/configuration.html#pricing)

If the pricing does not display as you require:

Then follow the guideline:

"Price elements

The are many prices that VirtueMart can show.  The best way to understand the options is to test in a non-live store."



Title: Re: Sales Price and discounted price
Post by: eddie1201 on April 30, 2020, 18:41:50 PM
Thank you for information.

I will work through it.

Just set the template default in the backend to Protostar and what i get is in the attachment.

I will follow the other steps later today.

Eddie
Title: Re: Sales Price and discounted price
Post by: AH on April 30, 2020, 18:50:00 PM
did you enable


"Baseprice with Tax, but without discounts"

It might be just this setting in price configuration - before you bother setting the default template? 
Title: Re: Sales Price and discounted price
Post by: eddie1201 on April 30, 2020, 19:18:43 PM
Hi,

Yes I did enable.

Thank you for the suggestions, I will start working through them.

Eddie
Title: Re: Sales Price and discounted price
Post by: eddie1201 on April 30, 2020, 20:13:12 PM
Hi,

Tried the suggestions, but no success.

As I am using a Joomlart template, could the issues be witin my template itself - I dont know how it fits all together between joomla and VM

Might have to go back to the template developers  :-(

Eddie
Title: Re: Sales Price and discounted price
Post by: AH on May 01, 2020, 10:12:53 AM
check to see if they are overriding the prices display

template/html/com-virtuemart/sublayouts
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 03, 2020, 21:18:23 PM
Thank you for that information.

I will speak to the deveopers of the template.

Thanks

Eddie
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 04, 2020, 18:56:42 PM
Hi,

Just an update.  It did not work with Protostar either  :-(

Eddie
Title: Re: Sales Price and discounted price
Post by: Jörgen on May 04, 2020, 20:26:07 PM
Quote from: eddie1201 on April 30, 2020, 18:41:50 PM
Thank you for information.

I will work through it.

Just set the template default in the backend to Protostar and what i get is in the attachment.

I will follow the other steps later today.

Eddie

Sorry Eddie, but this message is from the Joomlart template, I still think this problem  is a mix of Joomlart issue and perhaps trying to show the wrong prices. But this is not a Protostar page, belongs clearly to Your Joomlart template.

Jörgen @ Kreativ Fotografi
Title: Re: Sales Price and discounted price
Post by: AH on May 05, 2020, 09:46:00 AM
Eddie

"Baseprice with Tax, but without discounts"

Did that change any display of the product prices in protostar

Show your config

If this does not give you what you want you can always custom override the prices display - but I would not think that was necessary
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 05, 2020, 20:45:33 PM
Hi,

Thanks for coming back to me.

I have 3 images, one as it appears in Protostar, one in my template and one of the pricing settings.

Anything else I need to add to the forum that might highlight where Im going wrong.

----------------------------------------------
Response from the template developers also stated its in VM now:

You can see how the price displays by us testing it with default Joomla template like Protostar. For example, I just assigned Protostar to the 'Safety Equipment' menu item and the price looks the same as in our template

----------------------------------------------

Thanks for all the help

Eddie
Title: Re: Sales Price and discounted price
Post by: Jörgen on May 06, 2020, 00:32:35 AM
I the same as Andrew pointed out : "Base price with tax but without discount" it should get the CSS class "price crossed"

Jörgen @ Kreativ Fotografi
Title: Re: Sales Price and discounted price
Post by: GJC Web Design on May 06, 2020, 12:11:38 PM
check your source code to see if any classes are applied..

quite possible you have no css for the applied class
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 06, 2020, 15:32:25 PM
Hi Jörgen,

Tried the suggestion and that did not work.

Andrew,  talking about the css does not mean much to me and the class.

Where should I be looking?

Eddie
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 06, 2020, 15:54:29 PM
Hi Guys,

I have followed post on this forum related to my issues, but they are arounf 2015 - 2018 and says what Jorgen suggested.

I have added 2 screenshots, one of the configuration for pricing and one off what I see on the fronted.  I i only tick 'Base price with tax but without discount'  I dont see any price at all.

Will give it a day or two reading and testing then I will admit defeat.

You guys on the forum were very helpfull with this.  Just a pitty it does not work in protostar either

Eddie
Title: Re: Sales Price and discounted price
Post by: jenkinhill on May 06, 2020, 16:25:02 PM
For the display here I use "Baseprice with Tax, but without discounts"  and  "Final salesprice"

It works fine for me, so it sure looks like you have a template problem.  The top image is with a Hera template and the lower is the same page using Protostar.

Hera template:

(https://i.ibb.co/dJJFDZS/reg.png)

Protostar

(https://i.ibb.co/frWPZC5/prot.png)
Title: Re: Sales Price and discounted price
Post by: Jörgen on May 06, 2020, 16:45:53 PM
We all know that this works for the protostar template, I would try to assign the Protostar template to the whole Joomla install just to make sure. I would also check the html output and see if the price is created but hidden by css.

Jörgen @ Kreativ Fotografi
Title: Re: Sales Price and discounted price
Post by: pinochico on May 06, 2020, 18:53:18 PM
I think better is write to Joomlart support.
If you bought template for Joomlart (we bought developer subscription plus primary VIP support), then support send you info how can you change.
And if you have knowlidge about php and css, the change is about 10 seconds.
If not, in admin VM you can't setup right.

Definitelly is not problem Virtuemart but issues with template.

What so you mean about this?
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 07, 2020, 22:34:44 PM
Hi Every one,

Thank you for all the support to this thread..

So many information and ideas.

So the problem is with the Joomlart template install.

This is what I did and it works:

1.  I install Joomla on its own. 
2.  I then Install VM. 

That all works. 

3.  I then install the joomlart template and defaulting it, that worked as well.

But when I install full Joomlart template auto install, something breaks.

Thanks again for all your ideas, support and help.

Eddie

Title: Re: Sales Price and discounted price
Post by: Jörgen on May 08, 2020, 06:36:25 AM
Sorry but we are not herr to give support fort Joomlart's software. I think we have given the support that would be considered more than reasonable.
Talk to Joomlart about this.

Jörgen @ Kreativ Fotografi
Title: Re: Sales Price and discounted price
Post by: AH on May 08, 2020, 10:06:02 AM
Quote
Looks like you are using a non base template to show details.
Try:

"Baseprice with Tax, but without discounts"

If that does not work then look further below:

See the file components\com_virtuemart\sublayouts\prices.php or look in your override to compare

You can create the display you require in any overrides


Then try to see what the product looks like on the base protostar without any template overrides

When you have the default base template and vm template working then look here:

http://docs.virtuemart.net/manual/configuration-menu/configuration.html#pricing

If the pricing does not display as you require:

Then follow the guideline:

"Price elements

The are many prices that VirtueMart can show.  The best way to understand the options is to test in a non-live store."


Days ago - and now you have finally done what I suggested!!

Ok - please talk to your template provider now
Title: Re: Sales Price and discounted price
Post by: jenkinhill on May 08, 2020, 12:29:07 PM
Quote from: eddie1201 on May 07, 2020, 22:34:44 PM

3.  I then install the joomlart template and defaulting it, that worked as well.

But when I install full Joomlart template auto install, something breaks.


So as indicated by 3. the Joomlart template works OK for you when you follow what we would consider to be the correct and safest way to install Joomla/VM/ - so WTF then install what appears to be a badly configured quickstart template package?

You followed what we consider to be the correct (and professional) way to install - first Joomla. followed by VirtueMart and if that works OK then install your chosen template to get the layout that you require.  I don't know how many times we have advised against using quickstart install packages.
Title: Re: Sales Price and discounted price
Post by: pinochico on May 08, 2020, 14:06:46 PM
JoomlArt template is 2 option for instalation:

- joomla + template + css for VirtueMart (vithout instalation VM and VM AIO)
- template + css for VirtueMart

I recommend and use this process for new eshop:

1. Install full instalation Joomla + setup
2. Install VM without sample data, next VM AIO, next VM TCPDF + setup
3. Install JoomlArt template + T3 plugin + any next modules and plugins from JoomlArt + setup template form documentation + setup as basic

I recommend and use this process for testing new version VM (DEV eshop):

1. Install full instalation Joomla + setup
2. Install VM with sample data, next VM AIO, next VM TCPDF + setup + setup basic template Protostar + check
3. Install JoomlArt template + T3 plugin + any next modules and plugins from JoomlArt + setup template form documentation + setup basic template JoomlArt + check
4. Connect to gitlab, create master branch and devel branch
5. Check all function
6. Repost to VM forum and JoomlArt forum
7. Fix all error in branch devel
8. Merge to branch master
9. Pull to production eshop

Process for upgrade eshop from old VM to new VM is my secret :D
Title: Re: Sales Price and discounted price
Post by: eddie1201 on May 09, 2020, 10:58:59 AM
Hi All,

Thank you all for the help - its really much appreciated :-)

Eddie