Jump to content


Photo
- - - - -

Shopping cart mod


  • Please log in to reply
16 replies to this topic

#1 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 04 January 2008 - 02:59 PM

Hi

Hope someone can advise :)

Am using the special tax rate in the advanced section of the shopping cart for my products. Have a problem in that on the invoice at the end showing the totals etc.. it states "special tax" - need to alter this to read "VAT 21%".

Have found the following file that has this mentioned in it and am hoping it is the right one to modify but am not sure which part to alter as it has a few mentions of Special tax - anyone done this before or has any ideas of what to change.

sohoadmin/client_files/shopping_cart/prod_cust_invoice.inc

Many thanks in advance....
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#2 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 05 January 2008 - 09:03 PM

Anyone? Cant seem to find any reference to this in searching the forums.

HELP!
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#3 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 05 January 2008 - 10:19 PM

Whats the url i will take a look.
dresswell

#4 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 05 January 2008 - 11:03 PM

Thanks Dresswell
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#5 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 05 January 2008 - 11:09 PM

Viewing the source can see it as code:
<TD ALIGN=RIGHT VALIGN=MIDDLE class="text row-altbg" COLSPAN=2>
Special Tax 21%</B>:
</TD>

have tried UDT string replace but this doesn't seem to work within the shopping cart which I presume is because it is a php generated section and cannot get my head around php yet.
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#6 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 01:14 AM

Think I found the piece of code to edit:

$HTML .= "<TD ALIGN=RIGHT VALIGN=MIDDLE class=\"text ".$sep."\" COLSPAN=2>\n";
$HTML .= "Special Tax ".$getVat[SPECIAL_TAX]."%</B>: \n";
$HTML .= "</TD>\n";

in folder sohoadmin/client_files/shopping_cart/prod_cust_invoice.inc

So need to replace the special tax with VAT 21.

Only problem is I cannot directly edit code in cpanel....do I download the file/edit and upload. Is this the right file though? or does it also exist somewhere else.
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#7 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 06 January 2008 - 01:18 AM

You should be able to edit the code in cpanel.
dresswell

#8 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 06 January 2008 - 01:19 AM

I changed it on my site but i dont have a tax id so i dont know if it worked.
dresswell

#9 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 01:22 AM

Hmmmm interesting that and thanks Dresswell for trying it. Permission is set to 755 so should be able to - maybe I need to discuss with my host? At least I found the right place and well chuffed with that at least :) onwards and upwards.
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#10 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 06 January 2008 - 01:29 AM

Have you checked in your sohoadmin date base
table to see if it could be altered there.
dresswell

#11 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 01:33 AM

Tried the data base with the UDT_replace function but no joy - is this the section you are talking about?
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#12 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 06 January 2008 - 02:02 AM

The cart vat table.
Mine is empy so i can tell
what oppitions are there.
dresswell

#13 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 02:04 AM

Will have a look at that - thanks Dresswell.
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#14 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 02:12 AM

No - that ain't it I am afraid - am adding VAT via the special vat section in the advanced section of the shopping cart which I'm nearly sure is handled by the php.inc file I found. Good call though.

Will talk to my host and see why I can't edit the code directly in cpanel - once I get that sorted am sure it will be fixed. Will post when sorted in case anyone else runs into the same problem.

Thanks for having a look :)

Well it is quite late on my side of the globe so gonna sign off for the mo - have a good evening Dresswell.
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#15 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 06 January 2008 - 02:20 AM

Just rember what line you change,
it took my shopping cart off line for a bit.
Not sure if its because i dont use it and it is part of the running script.
Also if you change it there everytime you do a upgrade it probley will
reset it back the old way.
dresswell

#16 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 02:25 AM

Was thinking that may be the case, but as it is just one line of code I am not that worried if I have to change it when I upgrade. Strange that it knocked your cart offline as it is just $html I would be changing. What line did you change?

Am that tired now I am in danger of looking like you avatar :)
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store

#17 Blues

Blues

    If 6 was 9

  • Moderators
  • 771 posts

Posted 06 January 2008 - 02:28 AM

Well will pick up on it in the morning - its 2:27am over here and I am wrecked - gonna hit the hay - have a good evening Dresswell and thanks. zzzzzzzzzzz
:uh:
Life, n.:
A whim of several billion cells to be you for a while.
Our Lighting Store




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users