Hi,
I've found out the solution for the issue mentioned in my earlier post.
Now I just need to check whether I'm able to retrieve the data from the two fields in the tally serial plugin, that is, Tally Serial from the frontend and Module Key from the backend.
I've changed the class name to the following:
class plgHikaserialTallysergen extends hikaserialPlugin {
then I've set populate to false:
protected $type = 'generator';
protected $multiple = true;
protected $populate = false;
protected $doc_form = 'tallysergen-';
then I've deleted the quantity;
public function __construct(&$subject, $config) {
parent::__construct($subject, $config);
}
public function generate(&$pack, &$order, &$serials) {
then included the pack name plus retrieved the data from the tally serial and module key:
if(!isset($pack->tallysergen))
return;
parent::pluginParams($pack->tallysergen);
if(empty($this->plugin_params->mkey)) {
$this->plugin_params->mkey = 97531;
}
at last I've concatenated both the fields value into serial;
$serial = $this->plugin_params->mkey.$order->tallyserial;
}
public function configurationHead() {
return array();
}
public function configurationLine($id = 0) {
return null;
}
public function onPackGeneratorTypeDisplay(&$values) {
parent::listPlugins('tallysergen', $values);
}
public function onDisplaySerials(&$data, $viewName) {
return;
}
}
But I'm unable to get any data in the serial that the serial field is blank in the mail as well as in the backend serial's section.
what/where could be the problem?
Regards,
Manjesh.