- Posts: 6
- Thank you received: 0
SOLVED - Hot VM Scroller discounted price with tax
-
tecnocoppe
Inactive member - Topic Author
- New Member
Less
More
11 years 9 months ago - 11 years 9 months ago #27530
by tecnocoppe
SOLVED - Hot VM Scroller discounted price with tax was created 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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 9 months ago - 11 years 9 months ago #27549
by ivan.milic
Replied by ivan.milic on topic Hot VM Scroller discounted price with tax
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:
//$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.
-
tecnocoppe
Inactive member - Topic Author
- New Member
Less
More
- Posts: 6
- Thank you received: 0
11 years 9 months ago #27578
by tecnocoppe
Replied by tecnocoppe on topic Hot VM Scroller discounted price with tax
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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 9 months ago #27586
by ivan.milic
Replied by ivan.milic on topic Hot VM Scroller discounted price with tax
try this:
$currency = CurrencyDisplay::getInstance();
$price = $currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $pr->prices );
$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.
-
tecnocoppe
Inactive member - Topic Author
- New Member
Less
More
- Posts: 6
- Thank you received: 0
11 years 9 months ago #27600
by tecnocoppe
Replied by tecnocoppe on topic Hot VM Scroller discounted price with tax
Great!!!
Thanks so much
Thanks so much
Please Log in to join the conversation.
-
Stryjewski
Inactive member - New Member
Less
More
- Posts: 7
- Thank you received: 0
11 years 7 months ago - 11 years 7 months ago #29907
by Stryjewski
Replied by Stryjewski on topic SOLVED - Hot VM Scroller discounted price with tax
Hi
Sorry for my English
I have one question:
I want to be with TAX money, so I changed the helper.php
to:
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
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>';
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.080 seconds