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

При копировании товара, товар удаляется

Recommended Posts

Уважаемые гуру!

Очень нужна ваша помощь.

У меня магазин на ocStore  При копировании товара в админке, товар не копируется, а удаляется. Помогите, пожалуйста, решить проблему.

Link to comment
Share on other sites

Смотреть что происходит в методе copy при копировании товара


Link to comment
Share on other sites

  • 1 year later...

В моем файле такое:

public function copy() {



        if (isset($this->request->post['selected']) && $this->validateCopy()) {
            foreach ($this->request->post['selected'] as $product_id) {

            $this->session->data['success'] = $this->language->get('text_success');

            $url = '';

            if (isset($this->request->get['filter_name'])) {
                $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));

            if (isset($this->request->get['filter_model'])) {
                $url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8'));

            if (isset($this->request->get['filter_price'])) {
                $url .= '&filter_price=' . $this->request->get['filter_price'];

            if (isset($this->request->get['filter_quantity'])) {
                $url .= '&filter_quantity=' . $this->request->get['filter_quantity'];

      if (isset($this->request->get['filter_category'])) {
        $url .= '&filter_category=' . $this->request->get['filter_category'];

            if (isset($this->request->get['filter_status'])) {
                $url .= '&filter_status=' . $this->request->get['filter_status'];

            if (isset($this->request->get['sort'])) {
                $url .= '&sort=' . $this->request->get['sort'];

            if (isset($this->request->get['order'])) {
                $url .= '&order=' . $this->request->get['order'];

            if (isset($this->request->get['page'])) {
                $url .= '&page=' . $this->request->get['page'];

            $this->response->redirect($this->url->link('catalog/product', 'token=' . $this->session->data['token'] . $url, true));


Подвоха не вижу

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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.