Varkaf Posted June 4, 2019 Share Posted June 4, 2019 Hi, I'm developing a module for prestashop 1.7 to save custom data of products in a custom table. All works fine: can create new entries, update and delete old ones without problems. What i can't do is refresh the tpl with the new values, or the edited ones, without refreshing the URL and going back to firsts product tab (then had to modules tab and configure my module and get back to right section). Is there a way to refresh the TPL inside the hookDisplayAdminProductsExtra without forcing a url refresh? public function hookDisplayAdminProductsExtra($params) { $id_product = (int)$params['id_product']; $this->context->smarty->assign('product_id', $id_product); $this->context->smarty->assign('product_key', $this->key); $this->context->smarty->assign('product_values', mymodulevalues::loadByIdProduct((int)$params['id_product'])); $this->context->smarty->assign('product_attributes', mymoduleattributes::loadByIdProduct((int)$params['id_product'])); return $this->display(__FILE__, 'views/templates/admin/tabs.tpl'); } Thanks! Link to comment Share on other sites More sharing options...
design4VIP Posted September 30, 2020 Share Posted September 30, 2020 bump Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now