VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: remeedella on October 07, 2012, 07:03:29 AM

Title: [SOLVED] Problems with tax calculation view on front-end
Post by: remeedella on October 07, 2012, 07:03:29 AM
Hello,

I'm trying to migrate over and I'm getting near completion... I need help with this website http://submissionfc.com/clone/jupgrade

Whats happening is a problem with how taxes are displayed. I can get the right tax amount calculated on my products now and I can select which pricing options are shown however, all products are showing price with the taxes on it if your logged in. The prices show neatly as they should when you aren't logged in looking in categories, product details, etc you will see your products price listed with the calculated tax... I dont know how to turn this off and only show tax calculation pricing on checkout page?

Thank you,

jeremy
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 08, 2012, 00:48:20 AM
I seriously  cannot get this setup properly.

I very simply want to show register to checkout in the cart. Then this text 'PHPSHOP_USER_FORM_BILLTO_LBL' shows up in registration process instead of 'Bill to Information' or just being blank would be prefer.

I need to have regular prices shown throughout website whether you are logged in or not, not prices adjusted by tax. I only have 1 tax in the tax and calculations settings for californian customers, the moment you are logged in, if you are in product details, categories or anywhere it will show taxed prices even if you are not from california.. ?? I only want tax prices to show in the actual checkout cart. I don't know what i'm missing I seriously need this website up and ready IMMEDIATELY. Please support me
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 08, 2012, 01:11:20 AM
Hello,

Before someone can help you please tell us your joomla and vm versions you are using. A little bit strange is PHPSHOP_USER_FORM_BILLTO_LBL, this is refereed to virtuemart 1, not 2! Did you make your upgrade sucesfully?

btw, when you login, are you able to see the taxes? if yes then edit your calculation rule and remove state/country/shoppergroups, so everyone will able to see them.

Regards
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 09, 2012, 05:26:00 AM
I don't have a clue what I did but after trying different combinations of settings for 20 hours I seem to have it working as requested. I had to hack a lot of files to to the best of my ability that will be non-upgradeable, there is one concern I have now..

http://www.submissionfc.com/clone/jupgrade/

Still, in the account details page. If you try to edit account details or you are registering anew you will see here for example ;

http://www.submissionfc.com/clone/jupgrade/component/virtuemart/user/editaddresscartBT?Itemid=0

Instead of saying "bill to" or whatever it's supposed to say, it will say "PHPSHOP_USER_FORM_BILLTO_LBL"

that doesn't get commented out and I've looked for similar articles describing how to remove that or override the text or alter it and it doesn't seem to apply. Any help please?

Jeremy
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 09, 2012, 10:52:34 AM
Hello,

For me is working fine, have you corrected? May be you had old layout files or translate those ones.

Regards
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 09, 2012, 22:41:22 PM
No sir, no fix for this one problem still. Can't find where it is being referenced from. I had multiple people take a look, it shows up in any browser,

Please try and visit this link or go to website and try and register, http://submissionfc.com/clone/jupgrade/component/virtuemart/user/editaddresscheckoutBT?Itemid=0

on the form you will see right after your e-mail address "PHPSHOP_USER_FORM_BILLTO_LBL " ,
how to completely remove this or change text? Might I have to go into the database?
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 09, 2012, 23:18:41 PM
Hello,

Yes is saw it now, could you please take a look under shopper fields? It should be there a field that comes forms the previous installation, delete it.

Regards
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 09, 2012, 23:35:35 PM
shopperfields?

In Database, a file?
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 09, 2012, 23:39:22 PM
Hi,

From the vm backend go to configuration left menu -> Shopper fields and there for that label (image).

Regards

[attachment cleanup by admin]
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 10, 2012, 01:16:23 AM
You're the best!

vm_delimiter_billto    PHPSHOP_USER_FORM_BILLTO_LBL    delimiter    Disabled      Disabled      Disabled      Disabled      Enabled

I thought disabling this would not let something else function. I would have never guessed this. THANK YOU!
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 10, 2012, 01:20:19 AM
Hello,

Glad you resolve it!
It was from the migrate, some shopper fields may be come with.
The new one on vm 2 called delimiter_billto and have as description COM_VIRTUEMART_USER_FORM_BILLTO_LBL
So, you can safety delete vm_delimiter_billto  from the shopper fields.
Regards
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 10, 2012, 21:49:29 PM
That is excellent.

This is hopefully the last thing I request of you, you've been great.

I had to submit a picture that someone sent me to show you this.

http://tinypic.com/view.php?pic=1079puu&s=6 (http://tinypic.com/view.php?pic=1079puu&s=6)

When shipment is selected (ups/usps) the text is assigned to it, "USPS PRIORITY MAIL" for example but that text should be aligned up all the way to the right where the 'price' is. It looks empty and not aligned. I tried looking in firebug and css files or even in the views/ folder of .php files for an answer on aligning that.
It is a commercial shipment module, both of them bought from the same company because it was required and I don't know if their styling is affected or the problem. Any ideas?
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 10, 2012, 23:01:19 PM
Hello,

Not sure, with the default vm template with no overrides it is aligned?

Regards
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 10, 2012, 23:05:48 PM
I tested with core templates and no that does not fix. I need whichever shipment that is selected to have the 'type of shipment' text aligned to the right where the price is calculated. They are not in sync, If I chose UPS mail, UPS mail is on the left hand side where the logo is, instead it should align up next to the price. Doesn't seem to be the template and I doubt going and asking the company that made the module will be much help
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 10, 2012, 23:38:27 PM
Hello,

You could use firebug to examine it. Probably have any css or tr/td and build a table ... not sure. can you send a shopper account for the front end to see it?

Regards
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 10, 2012, 23:51:48 PM
PM'd
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 11, 2012, 00:32:49 AM
Because uses td/tr is a little bit messy...

So the only i can do is the following as attached.

You will place the following style inside you css code attributes

.cart-view .vmshipment_ups {
   float: right;
    line-height: 100px;
    text-align: center;
    vertical-align: middle;
}

inside your custom template edit the file your_joomla_folder/templates/your_joomla_template/com_virtuemart/cart/default_pricelist.php, around line 316 (i dont know the line in your custom template)
remove the line that have only the code
<br/> 

That <br/> changes line ... so we want the "change shipment link" be is the same align so price be also in the same align

I am using "line height" at CSS as a trick to to align vertical the UPS Standard. The other payment i couldn't selected instead i change country to US.

Regards

Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 11, 2012, 00:34:46 AM
Image...


[attachment cleanup by admin]
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 11, 2012, 02:09:12 AM
Hello, thank you for showing me you are able to get it working!

I applied the css changes you mentioned in my main joomla css template file. I do not quite understand step 2 "inside your custom template edit the file your_joomla_folder/templates/your_joomla_template/com_virtuemart/cart/default_pricelist.php, around line 316 (i dont know the line in your custom template)
remove the line that have only the code
<br/>

That <br/> changes line ... so we want the "change shipment link" be is the same align so price be also in the same align"

Can you better explain this to me, or, I attached my default_pricelist.php file for you.

Thank you so much for your help thus far, you've been excellent!

[attachment cleanup by admin]
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 11, 2012, 02:32:28 AM
yes,

if you take a look on the attached photo the "change shipment link" is in the same align with the rest of the title of the shipment name.

So, i comment that line i didn't delete it, is the line 247.

Regards



[attachment cleanup by admin]
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 11, 2012, 03:22:15 AM
which default pricelist file did you attach this time? Is that mine after editted? I tried it and while it did fix my alignment as I liked, it removed the change shipment link and now if you go back to cart normally a lot is missing. Checkout Now is missing so it breaks this way
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 11, 2012, 03:28:30 AM
Yours, but i had a mistake o the commented line so the layouts breaks

here is the right one, same change, just forgot a "-"
:)


[attachment cleanup by admin]
Title: Re: Problems with tax calculation view on front-end
Post by: remeedella on October 11, 2012, 03:32:02 AM
that was it!
Love you bytelord
Title: Re: Problems with tax calculation view on front-end
Post by: bytelord on October 11, 2012, 03:41:05 AM
Nice :)