News:

Support the VirtueMart project and become a member

Main Menu

Virtuemart 3 price presentation/format

Started by fmlk4u, December 13, 2014, 23:45:40 PM

Previous topic - Next topic

fmlk4u

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

AH

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

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

components\com_virtuemart\sublayouts\products_horizon.php

<?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
Regards
A

Joomla 4.4.5
php 8.1

fmlk4u

Can you please clarify your solution. I created the subfolders com_virtuemart in the html folder of my (Artisteer) template and the folder sublayouts and then I copied in the prices.php. But nothing happens. I have almost no knowledge about php. So please can you explain a bit further.

Kind regards, Fred

AH

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
A

Joomla 4.4.5
php 8.1

fmlk4u

The only override w.r.t. the pricing is in the language ini file: in nl_NL.com_virtuemart.ini

COM_VIRTUEMART_PRODUCT_SALESPRICE="Verkoopprijs (incl. 21% BTW) "

css is about style and not about adding a string. Again I am sorry but you speak another language and I cannot fully understand what you mean. I can zip css files, component directories, or template, whatever.
Or I can give login account 

Thanks for your help,

Regards, Fred


fmlk4u

See comment from Artisteer support people:

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.

jenkinhill

I cannot replicate the problem. Using default VM3.0.2 with J3.3.6 and no template overrides, just the default view.  I set a language override for COM_VIRTUEMART_PRODUCT_SALESPRICE  ( = Sales price (including all taxes) ) and the only price set to display in Config/Pricing is Final salesprice.   In category list and in details view the full language string is shown.  See the pics.

From your display it appears that you are using template overrides for VM, and the test url that crapisteer support used to invoke the Protostar template still uses a non-default VM template - I checked and the code shown is different from the default productdetails template.  To test properly you must disable all template overrides.

[attachment cleanup by admin]
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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