InMotion Hosting Support Center

Unable to install override in Prestashop

Category: Prestashop 15

zeirys
Asked:
2014-01-31 11:26 am EST

Hits: 1,288
I have this issue installing a module which is stopping me from starting my store.
The following module(s) were not installed properly:
- avalaratax :
Unable to install override: The method getOrderShippingCost in the class Cart is already overriden.

I really need help getting this resolved, will you help me?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
11,186 Points
2014-01-31 11:45 am EST
It appears that a module that you are trying to override is already being overridden by another module. To override it with this new module, you will need to locate the module that is currently overriding the Cart class. Once that module is removed, you will be able to install your neew module.

You must login before you can post a comment about this answer.

Hi, Thank you for your response.
How do I go about doing that? I am not very computer bright.
zeirys
8 Points
2014-01-31 11:51 am EST
<div style="background-color: #FFF; padding-left: 10px;">Hello zeirys,

It sounds like you've already loaded a PrestaShop module that deals with the class <strong>Cart</strong>, and it's overriding the default value. Now when you're trying to install this new <strong>avalaratax</strong> module it's trying to also override that same <strong>Cart</strong> class but PrestaShop is letting you know that this value had already been modified, and can't be modified again.

I'd recommend simply removing any older modules you have installed prior to the <strong>avalaratax</strong> one if you really need that one to work instead, and that should free up the <strong>Cart</strong> class from being previously modified. This would be done in your PrestaShop admin by navigating to <strong>Modules &gt; Modules</strong> and then clicking on <strong>Uninstall</strong> beside the old module you'd like to remove.

You might also want to take a look at the official PrestaShop documentation for <a href="http://doc.prestashop.com/display/PS15/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingaclass" target="_blank">overriding a default class behavior</a> to see if you can simply remove the old <strong>Cart.php</strong> file to stop your original module causing the conflicts to stop overriding the default <strong>Cart</strong> class.

Please let us know if you had any further questions.

- Jacob</div>
JacobIMH
9,968 Points
2014-01-31 12:53 pm EST
Like this Question?

Support Center Login

Social Media Login

   
Social Login Joomla

Related Articles

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!