Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Rooner

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

Rooner's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter

Recent Badges

0

Reputation

  1. @spectre Точно, большое спасибо, выгрузка сработала.
  2. В интернет-магазине есть самописный модуль выгрузки каталога в XML файл /catalog/controller/product/export.php. Вроде бы всего 1 файл (ниже представлена часть кода). Судя по всему у данного модуля нет веб интерфейса в админке. <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); class ControllerProductExport extends Controller { public $handle; public $arCategory = []; public $arImages = []; public $arPrice = []; public $arRelated = []; public $arIdToFile = []; public $arRelatedIds = []; public function index() { $this->language->load('product/category'); $this->load->model('catalog/category'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $this->load->model('catalog/tags'); $this->load->model('catalog/manufacturer'); $this->load->model('extension/dream_filter'); $file = $_SERVER["DOCUMENT_ROOT"] . "/export.xml"; $image = "https://ДОМЕН.ru/image/"; $this->handle = @fopen($file, "wb"); $this->toFile('<?xml version="1.0" encoding="UTF-8"?>'); $this->toFile('<!DOCTYPE yml_catalog SYSTEM "shops.dtd">'); $this->toFile('<yml_catalog date="' . date("Y-m-d H:i") . '">'); Подскажите как можно запустить данный скрипт? Разумеется просто обратиться к файлу не получится, нужно чтобы перед этим, как минимум, был инициализирован модуль Controller.
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.