Phocacart beta75 -> 87 update

Phoca Cart - complex e-commerce extension
Webguy
Phoca Enthusiast
Phoca Enthusiast
Posts: 81
Joined: 16 May 2024, 15:59

Phocacart beta75 -> 87 update

Post by Webguy »

When I apply the update I get the following error:

1054
Unknown column 'change_tax' in 'field list'
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9957
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phocacart beta75 -> 87 update

Post by Benno »

Hi,
backup your Database first and then run this query:

Code: Select all

ALTER TABLE `#__phocacart_shipping_methods` ADD COLUMN `change_tax` tinyint(1) NOT NULL DEFAULT '0';
Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phocacart beta75 -> 87 update

Post by Jan »

Great, thank you Benno for this information. Unfortunately the database update does not work between different Beta versions.
If you find Phoca extensions useful, please support the project
User avatar
sulpher
Phoca Professional
Phoca Professional
Posts: 142
Joined: 28 Feb 2017, 09:45

Re: Phocacart beta75 -> 87 update

Post by sulpher »

Hello,
I am using beta79. And there were older beta versions earlier. I just installed the latest beta at that moment over existing ones.
I do not see the issue described in this topic or could not reproduce it.
Should the user performs this DB query after the update to beta 87 or keep it as is if no problem occurs?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9957
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phocacart beta75 -> 87 update

Post by Benno »

@sulpher,
Just check whether the column 'change_tax' already exists in the table '#__phocacart_shipping_methods'. If 'Yes' everything is fine, if 'No' create it with the above database query. Note that you first replace '#_' with your database prefix: Image

Kind regards,
Benno
User avatar
sulpher
Phoca Professional
Phoca Professional
Posts: 142
Joined: 28 Feb 2017, 09:45

Re: Phocacart beta75 -> 87 update

Post by sulpher »

Oh, yes... The dev site have had this column while another site had not...

Thank you so much for explanations, Benno!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9957
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phocacart beta75 -> 87 update

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply