Jump to content

Sabelo Simelane

Members
  • Posts

    5
  • Joined

  • Last visited

1 Follower

Profile Information

  • First Name
    Sabelo
  • Last Name
    Simelane

Sabelo Simelane's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Thanks Bellini13, I have managed to implement and upgrade script and it's working like a charm. Thanks again.
  2. Thanks Bellini13 for the revelation there, I was not aware of that. So, what would typically go into the upgrade script? Could I instead, call the uninstall then call the install function in the upgrade script? Also, I have noted that with PS 1.7, when you uninstall a module, the module files are not deleted. I read in the documentation that the files are supposed to be deleted. Is that the correct behaviour? Regards, Sabelo
  3. I've found the problem why those hooks were not firing. It seems I needed to uninstall the module first. If you just change something in the module and install "on top" of the previous version, it doesn't create the hooks, for some reason. After uninstalling and installing the module the hookHeader worked for me it loaded my js file and made jquery available.
  4. Hi Bellini13, really appreciate your response. I have tried using the displayHeader hook, it doesn't even fire. Here's a bit of my code: if (!parent::install() || !$this->registerHook('displayHeader') || !$this->registerHook('paymentOptions') || !$this->registerHook('paymentReturn')) return false; public function hookDisplayHeader($params) { error_log("in hookDisplayHeader..."); return $this->getScriptPlugins($params); } Am I mising something? :-(
  5. I would appreciate some help on using jQuery in my payment module that I'm adapting from 1.6 to 1.7. I need to somehow hook on to the hookPaymentOptions so that I can handle some events when the customer selects the payment method. I have tried using registerJavascript() but even though it's being called the javascript file is not loaded on the DOM. Basically, my question is, how do I use javascript/jQuery in my payment module specifically a tpl file or a separate js file. Any help will be appreciated. Thanks
×
×
  • Create New...