Jump to content
php.lv forumi

Foreach + xml


Pieduriens

Recommended Posts

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Šajos gadījumos lietotājam/servisam būs jāgaida tās pašas 25 sekundes, ja notiek ģenerēšana :) Neredzu ieguvumu salīdzinājumā ar crontab.

 

Es teicu Izmaiņas... Kāpēc Tu uzreiz padomāji exportu no DB?.

 

 

Nu tak viņš kodu ielika.

http://pastebin.com/7KvLDKdP

 

foreach ($product->getCategoryIds() as $category_id)                             {
$category = Mage::getModel('catalog/category')->load($category_id);

Iterators? ...

 

Bet nu var jau būt, ka kāds lāme rakstījis... 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...