Jump to content

wiiiteek

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Activity
    Other

wiiiteek's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I have a little problem. So I have created part of script which add new product, but I have problem with adding images to product. I would like to add product using url. So far I found in AdminImportController : /** * copyImg copy an image located in $url and save it in a path * according to $entity->$id_entity . * $id_image is used if we need to add a watermark * * @param int $id_entity id of product or category (set in entity) * @param int $id_image (default null) id of the image if watermark enabled. * @param string $url path or url to use * @param string entity 'products' or 'categories' * @return void */ protected static function copyImg($id_entity, $id_image = null, $url, $entity = 'products', $regenerate = true) { ... } but I have no idea what to do next. I was looking in few admin controllers and nothing... If anyone have some suggestion, please let me know. Any kind of informations are very welcome.
×
×
  • Create New...