nsarsalan Posted January 12, 2014 Share Posted January 12, 2014 Hi i have module, product discount countdown which makes separate block which loads discount price products and shows timer module is using following code to display countdown timer <div id="defaultCountdownc{$countdown.id_product}"></div> i wana load it in featured deals section can i use it? Link to comment Share on other sites More sharing options...
NemoPS Posted January 15, 2014 Share Posted January 15, 2014 It depends. You must edit this 'featured deals' module's core php file. In the hook function where you want to display the timer, you must include the php file of the countdown module. Instantiate it, then run all the functions and assign the same variable. OR if you launch both modules, you can try running Module::getInstanceByName(''countdownmodulename') instead of having to include the other one. But again, the required steps change depending on the module's configuration. Not easy at all Link to comment Share on other sites More sharing options...
nsarsalan Posted January 15, 2014 Author Share Posted January 15, 2014 yes not easy i worked very hard but no use let me try your suggestion than i will share my experience Link to comment Share on other sites More sharing options...
NemoPS Posted January 15, 2014 Share Posted January 15, 2014 Note that, if you are on 1.4, you might want to have a go with $smarty->getTemplateVars('countdown'); Link to comment Share on other sites More sharing options...
nsarsalan Posted January 15, 2014 Author Share Posted January 15, 2014 i am using 1.5 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