News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Price format is displayed differently in list pages and detail pages

Started by fmlk4u, January 29, 2015, 19:50:52 PM

Previous topic - Next topic

fmlk4u

On the website www.keyboard-centrum.nl the display of the price is customized to "Verkoopprijs (incl 21% BTW)" in the language file But on the detail pages of the products show just "Verkoopprijs" I discussed it with Artisteer and on this forum:

Here is the thread with question: who knows the solution???

____________________________________________________
from Artisteer:
Maybe you can help to clarify the solution that is given via the forum.
I don't exactly know what they mean.
I made the folders and copied prices.php but nothing happens.
Do I have to modify the prices.php?? Thanks for help.
Here is the copied text from the Virtuemart forum:


Re: Virtuemart 3
« Reply #35 on: Yesterday at 23:45:40 »
QuoteModifyRemove
http://keyboard-centrum.nl is a joomla 3.3.6 website with virtuemart 3.0.0 and only one bug that seems to beunsolvable: the pric presentation/format is different on the list pages and detail pages.
Apparently nobody can solve this issue that was introduced with VM3 and not in VM2.6.10
Modify message
Report to moderator 5.104.127.57
Hutson
Global Moderator
Hero Member
*

Posts: 1793
View Profile Personal Message (Offline)
VirtueMart Version: 2.9.9g

Re: Virtuemart 3
« Reply #36 on: Today at 11:24:57 »
Quote
Check you overrides!

VM3 specifically supports a single presentation of prices using the new sublayouts rendering


This is then used in the category and product page views

components\com_virtuemart\views\productdetails\tmpl\default.php

Code: [Select]
echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency)); ?>

components\com_virtuemart\sublayouts\products_horizon.php

Code: [Select]
<?php echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency)); ?>

The prices display is in:-
components\com_virtuemart\sublayouts\prices.php

You can create your own override by placing a copy in:-

templates/yourtemplate/html/com_virtuemart/sublayouts/prices.php

Date    2014-12-18 5:42:26
Status    Waiting for Customer
Response    Hello Fred,
I'm not good in Virtuemart but as I understand support recommends you to edit .php files to change the price output format and layout.
I'm sorry but we cannot help with editing virtuemart files.



Best regards,

Helen Y.
Extensoft, Inc.
/ Artisteer
Artisteer - The Automated Web Designer
http://www.artisteer.com
Twitter: http://twitter.com/ArtisteerTeam

Date    2014-12-18 6:58:20
Status    Waiting for Support
Response    Hi Helen,

On the Virtuemart forum they state it is a css class issue:

ensure that you do not have any overrides for prices already in your template/com_virtuemart/subfolder/override.php

If you have no overrides already in your artiseer template folder, then you do not need to copy the prices sublayout.

This then would point to CSS differences between the two views - Check if you have any CSS overrides in place

The price format should be the same in terms of CSS classes being applied - you can check this using Firefox's Firebug plugin


Regards, Fred

Date    2014-12-19 3:21:53
Status    Waiting for Customer
Response    Hello Fred,
so as I understand the price format at page http://keyboard-centrum.nl/nl/winkel/digitale-piano/home-piano/nu1-detail is OK and you'd like to output the same data

NU1
NU1, De toetsaanslag, dat inspireert
Verkoopprijs (incl.
21% BTW) € 4560,00

at the product detail page
http://keyboard-centrum.nl/nl/winkel/digitale-piano/home-piano/nu1-detail
right?

The difference I see is percent note
"(incl.
21% BTW)"

However the fact that this note is not displayed at
http://keyboard-centrum.nl/nl/winkel/digitale-piano/home-piano/nu1-detail
is not related to the theme or CSS.
If you open the same page with default Joomla protostar template
http://keyboard-centrum.nl/nl/winkel/digitale-piano/home-piano/nu1-detail?template=protostar

You'll see the same info as with Artisteer theme:
NU1
NU1, De toetsaanslag, dat inspireert
<Image>
Verkoopprijs€ 4560,00
Stel een vraag over dit artikel
FabrikantYamaha
Beschrijving


That's why I believe that the issue is related to Virtuemart.

Derksce

Hello,

i don't know if you still found a solution?

I had exactly the same issue.  I found out that de product-details pane  and the category view are using different language files.
If you change the file:  /administrator/language/nl-NL/nl-NL.com_virtuemart.ini    the product detail wil change.