S
S
steklovatnik2019-06-09 14:56:33
opencart
steklovatnik, 2019-06-09 14:56:33

I'm parsing the code of the SKU generator module, I can't understand why we need an array with urls and what's going on there?

code from generator sku controller file
/* Set urls */
$data['urls'] = array();
$data['urls']['generateAllSku'] = $this->url->link('extension/module/sku_generator/generateallSku', 'token=' . $this->session->data['token'] , true);
$data['token'] = $this->session->data['token'];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2019-06-10
@zoozag

A link is created to generate Sku for all products.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question