Post by scracingshop » Wed Jan 04, 2017 5:35 pm

Hello all,
i'm Italian, sorry if my english isn't perfect.
I'm using Opencart 2.3.0.2 and i have near 300 Categories/subcategories in my store. When i create a Product that i call "universal" i have to Select in "LINK" all 300 Categories/subcategories manually and by autocomplete (very slowly and noisy).
There is a metod to select only "Main Category" (and automatically will show to all subcategories) or something module or modification of file that can me help (like select all.. etc) ?

Thanks a lot,
kind regards
Riccardo

Newbie

Posts

Joined
Wed Jan 04, 2017 5:30 pm

Post by paulfeakins » Wed Jan 04, 2017 5:38 pm

Hi Riccardo,

I don't think there is a way to do it without a module or something, but can I ask what are the categories and why do you want a product to appear in all?

Cheers,
Paul

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by scracingshop » Wed Jan 04, 2017 5:43 pm

paulfeakins wrote:Hi Riccardo,

I don't think there is a way to do it without a module or something, but can I ask what are the categories and why do you want a product to appear in all?

Cheers,
Paul
Hi Paul,
thanks for your fast reply.
I have 300 types of Moto sorted by Manufacter (like Honda) and in subcategory all models (like CBR1000R etc). So i have a lot of product to link to all Models of moto.

I have seen a Post in this forum but for 1x version.. they said to do:

Code: Select all

Go to catalog/controller/product/category.php

Find 'filter_category_id' => $category_id, and add this line 'filter_sub_category' => true, . Now it shows the all subcategory products when you access category name. I hope this answer will help anyone here..
But i tryed to do and this don't work in 2x i think :/

Newbie

Posts

Joined
Wed Jan 04, 2017 5:30 pm

Post by IP_CAM » Wed Jan 04, 2017 10:17 pm

are you looking for something like this ?
Disable Autocomplete
This mod disable the browser auto-complete function in the product form (add and edit).
https://www.opencart.com/index.php?rout ... n_id=20490
Ernie

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'450+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by scracingshop » Thu Jan 05, 2017 5:21 pm

IP_CAM wrote:are you looking for something like this ?
Disable Autocomplete
This mod disable the browser auto-complete function in the product form (add and edit).
https://www.opencart.com/index.php?rout ... n_id=20490
Ernie
Yes exactly! It works for my Version of oc? I have the last..

Thanks!

Newbie

Posts

Joined
Wed Jan 04, 2017 5:30 pm

Post by scracingshop » Tue Jan 17, 2017 8:22 am

up pls.. not solved

Newbie

Posts

Joined
Wed Jan 04, 2017 5:30 pm

Post by thekrotek » Tue Jan 17, 2017 5:48 pm

There's no simple solution for this and disabling autocomplete will not help you. One way or another you need to define categories you want to assign to product. If you want some custom behavior here, your only option is to do custom coding.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by chulcha » Tue Jan 17, 2017 7:16 pm

1 backup
2 backup

3.

Code: Select all

DELETE FROM oc_product_to_category WHERE product_id= 'YOUR uneversal_product_id';
INSERT INTO oc_product_to_category VALUES(prosuct_id,category_id) (SELECT 'YOUR uneversal_product_id', category_id FROM oc_category);

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm
Who is online

Users browsing this forum: No registered users and 35 guests