SOLVED - Hot VM Scroller discounted price with tax

More
11 years 9 months ago - 11 years 9 months ago #27530 by tecnocoppe
hello

first, I apologize for my English

use your module and I find it very functional
for me it would be more convenient to publish the discounted price with taxes as well as I do in detail page:

www.tecnocoppe.it/prodotti/coppe/coppe-c...287-c-dettaglio.html

I tried the solution proposed in the post open toad78, but after doing this

find this line:
/ / $ price = $ pr-> prices ;

and a comment it
$ price = $ pr-> prices ;

I did not understand what else I must do to show you only the discounted price with taxes

hello and thank you
Last edit: 11 years 9 months ago by tecnocoppe.

Please Log in to join the conversation.

More
11 years 9 months ago - 11 years 9 months ago #27549 by ivan.milic
Ok that lines:

//$price = $pr->prices;

$price = '<div class="productPrice">'.$price_object->pricetext.'</div>';

add this line:

var_dump($pr->prices);

save an s site , you will see ugly bunch of that ob that place but you will see which prive identifikator you want to use.

then by knowing that price identification change line:
Code:
$price = '<div class="productPrice">'.$price_object->pricetext.'</div>'; to $price = '<div class="productPrice">'.$pr->prices['that price identification'].'</div>';
Last edit: 11 years 9 months ago by ivan.milic.
The following user(s) said Thank You: tecnocoppe

Please Log in to join the conversation.

More
11 years 9 months ago #27578 by tecnocoppe
thanks

after a few attempts I managed to get what I needed

if possible, I would like the price, which now looks like this 85.7
I appeared in this way € 85.70

thanks again for your interest and for the speed of response

Adriano

Please Log in to join the conversation.

More
11 years 9 months ago #27586 by ivan.milic
try this:

$currency = CurrencyDisplay::getInstance();
$price = $currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $pr->prices );
The following user(s) said Thank You: tecnocoppe

Please Log in to join the conversation.

More
11 years 9 months ago #27600 by tecnocoppe
Great!!!

Thanks so much

Please Log in to join the conversation.

More
11 years 7 months ago - 11 years 7 months ago #29907 by Stryjewski
Hi
Sorry for my English

I have one question:

I want to be with TAX money, so I changed the helper.php
Code:
// $ price = $ pr-> prices ['salesPrice']; $ price = '<div class="productPrice">'. $ price_object-> pricetext. '</ div>';
to:
Code:
$ price = $ pr-> prices ['salesPrice']; $price = '<div class="productPrice">'.round($pr->prices['salesPrice'],2).'</div>';

and everything is OK, but the prices are, for example, xxx.xx , xxx.x and xxx and I want them to all be xxx.xx (with two decimal places).

How to do it?

Thank you for your help
Last edit: 11 years 7 months ago by Stryjewski.

Please Log in to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum