How to delete table database of Hide Price/Call for Price for Magento 2?

Created by Nicole Le, Modified on Mon, 31 Jul 2017 at 09:32 AM by Robin Hoang

Question: 

The first error showed that a block could not be found, but that was due to the wrong directory name (no camel notation). 

I've change the directory name and voila got the config page

Followed the manual trying to configure but when saving I've got an error again

 

Re-run the install procedure on the server, but now hitting the button "Advanced Hide Price" gives the following error:


SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tamsonacc_preinstalled_magento.bss_callforprice_form_fields' doesn't exist, query was: SELECT `main_table`.* FROM `bss_callforprice_form_fields` AS `main_table`
#0 /data/web/magento2/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(95): Zend_Db_Statement_Pdo->_execute(Array)
#1 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array)
#2 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)

etc etc.

Can you advice what to do to repair? 

 

Answer: 


Please refer this suggestion:

In this case, you need to uninstall the module:

- Go to database (phpadmin or adminer), find table setup_module

- find row Bss_AdvancedHidePrice, then remove it

- use ssh to run again: 

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy


For more information about product, please refer Magento 2 Hide Price/Call For Price page.

If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article