Hide decimals from ajax-cart--????

GK User
Thu Jan 17, 2013 1:37 pm
Hi guys!

I attached a sreenshot to see what my problem.

We dont use ,00-decimals ...yeah hungary......but we use huge pricelike 14.000 or like 100.000 for 1 product so inthe cart if someone put a product with ceimal cant see the whole proce or looks bad--the redline is on the price

Canyouhelp me to swich of this feature in your cart?.....in VM done -- you van see onpicture --only your cart show decimals.

doublezero.jpg
User avatar
Junior Boarder

teitbite
Fri Jan 18, 2013 5:02 am
Hi

I think VM can be configured what format to use, but please show me Your site so maybe I'll think of some other solution if You cannot find this option.
User avatar
Moderator

GK User
Fri Jan 18, 2013 9:19 am
Hi!


The problem is, the page is now on localhost.
I set in VM all decimals to 0.

I attached a srceenshot.

If you need i can put on a test domain the page to see.
decimal.jpg
User avatar
Junior Boarder

teitbite
Fri Jan 18, 2013 11:30 am
Hi

I'm afraid that if this settings are not working than all I can do is to hide this ".00" with css. Unfortunately if this problem is visible in too many places than such solution may not be possible.

So what I suggest is to ask on VM forum first. If they will not be able to tell You how to configure it than ignore this problem and get back to me when site will be live.
User avatar
Moderator

GK User
Fri Jan 18, 2013 11:43 am
Hi


If you hide in CSS thats cool.

Anyway this decimals you can just see in your ajax cart nowhere else!
The whole page is ok--no decimals-only in your gkajax cart--look the screenshoot...just than pls help me to make the Ft visible and the total red circle bigger please in css
decimalsfrontpage.jpg



Here i pasted the problem vith Ft (currency and red cicle)
doublezero.jpg
User avatar
Junior Boarder

teitbite
Sat Jan 19, 2013 3:27 am
Hi

If it's like that than please just tell me Your site url and I'll check it.
User avatar
Moderator

GK User
Sun Jan 20, 2013 10:44 pm
Hi Teibite!

You can check the the problem:
www.szalonszoftver.hu

I sent you Pm the access so you can check it.

Please sendme the solution because i have 2 days to finish that project

Ty

king regards:)
lorand
User avatar
Junior Boarder

teitbite
Mon Jan 21, 2013 12:17 pm
Hi

Please edit /html/com_virtuemart_cart/default.php

in line 88 should be:

Code: Select all
<div class="gkPrice num<?php echo $iteration%3; ?>"><?php echo str_replace(array(' ',',00'), '', $product['prices']); ?></div>


instead of:

Code: Select all
<div class="gkPrice num<?php echo $iteration%3; ?>"><?php echo str_replace(' ', '', $product['prices']); ?></div>


and line 100

Code: Select all
<?php echo str_replace(array(JText::_('COM_VIRTUEMART_CART_TOTAL').' : <strong>', '</strong>', ' '), '', str_replace('.00','',$data->billTotal)); ?>


instead of

Code: Select all
<?php echo str_replace(array(JText::_('COM_VIRTUEMART_CART_TOTAL').' : <strong>', '</strong>', ' '), '', $data->billTotal); ?>
User avatar
Moderator

GK User
Mon Jan 21, 2013 1:07 pm
Hi!


Ty the reply...but...i made the changes but just half success....you wrote anyway.."Please edit /html/com_virtuemart_cart/default.php"...but i hope you mean /html/mod_virtuemart_cart/default.php because only here is that line 88 and 100, but the total still not ok...can you please check it :

http://www.szalonszoftver.hu/
User avatar
Junior Boarder

GK User
Mon Jan 21, 2013 1:15 pm
HIHIHIHIHI:)

I found the problem:
you wrote the code:

<?php echo str_replace(array(JText::_('COM_VIRTUEMART_CART_TOTAL').' : <strong>', '</strong>', ' '), '', str_replace('.00','',$data->billTotal)); ?>


The problem the : '.00'...is not ok but instead of point ',00'--is perfect

Thank you for exelent support
User avatar
Junior Boarder

teitbite
Tue Jan 22, 2013 2:17 am
Hi

Hehe. You are right. Looks like my eyes are not as good as I used to :) I'm glad it's working now.
User avatar
Moderator

GK User
Wed Jul 24, 2013 7:53 am
Hi

i have found the solution from VM forum, to hide decimal from VM Control Panel,
the link to VM forum Solution to remove the decimal number in the price of the product

hope can help.
User avatar
Junior Boarder

teitbite
Thu Jul 25, 2013 7:32 pm
Hi

Thanks for shearing Arthur. I've learned something new too, thanks to that.
User avatar
Moderator

GK User
Fri Jul 26, 2013 3:58 am
Hi

ur welcome Teitbite..
User avatar
Junior Boarder


cron