Jump to content


Photo
- - - - -

JBZoo Price


  • This topic is locked This topic is locked
22 replies to this topic

#21 SmetDenis

SmetDenis
  • Administrators
  • User rate: 139.4
  • posts: 16232
  • topics: 200

Posted 15 November 2013 - 16:44

Hi

As i said earlier, you may call
JBModelSku::model()->updateItemSku($item);
where $item is instance of Item class. For example
$item = App::getInstance('zoo')->table->item->get('<ITEM_ID>');
How often price changes in your catalog?
  • 1
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#22 P.K

P.K
  • Topic Starter
  • JBZoo User
  • User rate: 0
  • posts: 155
  • topics: 35

Posted 16 November 2013 - 13:48

Hi

The price may change daily and i execute a loop to change the prices of each and every product. So calling this function may slow down the process when each item is updated. Isnt there any other fast way? What about database reindex?

 

For the function to call, can you tell me in which file is this function defined so i may include it in my script?

thanks


  • 0

#23 SmetDenis

SmetDenis
  • Administrators
  • User rate: 139.4
  • posts: 16232
  • topics: 200

Posted 17 November 2013 - 06:53

Hi

 

Earlier I offered to you SQL query for manual table update.

This is the fastest way.

 

For the function to call, can you tell me in which file is this function defined so i may include it in my script?

 

 

For index only one Item via JBZoo API

\media\zoo\applications\jbuniversal\framework\models\jbmodel.sku.php

// in any joomla code
require_once(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php');
$item = App::getInstance('zoo')->table->item->get('<ITEM_ID>');
JBModelSku::model()->updateItemSku($item);

For batch reindex (step by step)

\media\zoo\applications\jbuniversal\framework\models\jbmodel.searchindex.php

// in any joomla code
require_once(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php');
JBModelSearchindex::model()->reIndex($limit, $offset);

  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.





Click to return to top of page in style!