Post by coldrex » Sun Nov 24, 2024 9:01 pm

We started filling the store and forgot to set "show prices with tax".

As a result, we have all prices and options more expensive by the VAT rate (21%).

That is, for example, we set the price to 100, and now the output is 121.

Is it possible to return everything back? Maybe there is a module, or is it possible through a query in the DB, etc.?

Thanks in advance.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by OSWorX » Sun Nov 24, 2024 10:37 pm

Something like that:

Code: Select all

UPDATE `oc_product` SET `price` = (price / 121) * 100
where oc_ is your table prefix !

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by coldrex » Sun Nov 24, 2024 11:11 pm

How do I do that?

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by OSWorX » Mon Nov 25, 2024 12:20 am

coldrex wrote:
Sun Nov 24, 2024 11:11 pm
How do I do that?
Sorry, but who are you?
The "admin" of this site - then you should know how to work with phpMyAdmin, you have set up also the database - or not?
If not, ask the admin.
And if, learn yow to use such tools.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Mon Nov 25, 2024 8:23 pm

OSWorX wrote:
Sun Nov 24, 2024 10:37 pm

Code: Select all

`price` = (price / 121) * 100
Clearly it's simpler to have:

Code: Select all

`price` = price / 1.21

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by OSWorX » Mon Nov 25, 2024 9:16 pm

The simpliest solution would be to store the correct price .. :joker:

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Tue Nov 26, 2024 8:09 pm

coldrex wrote:
Sun Nov 24, 2024 11:11 pm
How do I do that?
If you don't know how to run an SQL command you could export all your products, use a spreadsheet formula to change them, and then import them:
https://www.opencart.com/index.php?rout ... sion_id=17

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 16 guests