Zen Cart Logo
Forums / Features Wish List / Filter of items returned when duplicating items to make new ones

Filter of items returned when duplicating items to make new ones

Views: 96

Results 1 to 15 of 15
06 Jun 2019, 18:25
#1
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Filter of items returned when duplicating items to make new ones

It would be great if when you duplicate a product to make a new product from that instead of being brought back to a page that does not include the new product that you want to work on .... that it just comes back with the model number(s) that was just duplicated so that the item can be modified as desired.

06 Jun 2019, 19:43
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Filter of items returned when duplicating items to make new ones

While the code is modifiable to get what is desired from it, if this "feature" were incorporated, I think that it would have to be something "selected" along the path. Either as an initial checkbox or as an option at the point of "accepting" the duplication. I say this because there are also those individuals that would rather stay in the current category so that they may copy more items over. Considering that the copied product are added in an inactive state, there at least is no issue with the new product existing.

06 Jun 2019, 21:54
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Filter of items returned when duplicating items to make new ones

being brought back to a page that does not include the new product that you want to work on
I don't get that behaviour.
When I Copy->Duplicate a product from a product listing, the page is redirected to the category that was selected in the Copy infobox...which is where the new product resides, disabled and ready to modify.

07 Jun 2019, 07:26
#4
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Filter of items returned when duplicating items to make new ones

When you have a store that has been around a few years.... and have 100+ active and inactive items in that category then you have to reenter the search filter to find it easily else your manually searching.... and if it only had a small handful... typically 2 then it would be a no brainer.

Step 1: Enter a search filter to find sku that you want to use to make a new one
Step 2: Duplicate sku, at this point the page is looking at all items in the category no matter what size.
Step 3: Reenter search filter to find it or look manually.

If the "?search=sc-1b" could just be included in the duplicate process and then creation that would be very helpful.

Thank you!

07 Jun 2019, 08:49
#5
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Filter of items returned when duplicating items to make new ones

I thought that was a good idea and since the copy files are still open in my IDE from a recent PR...how about this:

Attachment 18481

08 Jun 2019, 01:29
#6
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Filter of items returned when duplicating items to make new ones

Like it!

10 Jun 2019, 01:20
#7
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Filter of items returned when duplicating items to make new ones

Yes, Excellent!

10 Jun 2019, 06:22
#8
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Filter of items returned when duplicating items to make new ones

(The extra copy options are already in 157
https://github.com/torvista/zencart/commit/d139166b2f210ae416fea2337d5b9f32b9c3a51e)

but not the tick box to edit the duplicate.

These should be all the files you need to compare and merge:

Attachment #18495

As always, Caveat Emptor....

16 Jun 2019, 18:13
#9
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Filter of items returned when duplicating items to make new ones

These should be all the files you need to compare and merge:
No news is good news??

17 Jun 2019, 15:12
#10
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Filter of items returned when duplicating items to make new ones

Will try to test this soon for you

17 Jun 2019, 15:21
#11
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Filter of items returned when duplicating items to make new ones

Admin doesn't work after putting in code:

[17-Jun-2019 10:22:51 America/Chicago] Request URI: /admin/index.php, IP address: 111.111.111.111#1  require() called at [/home/bigwigcorp/public_html/admin/includes/languages/english.php:82]
#2  require(/home/bigwigcorp/public_html/admin/includes/languages/english.php) called at [/home/bigwigcorp/public_html/admin/includes/init_includes/init_languages.php:49]
#3  require(/home/bigwigcorp/public_html/admin/includes/init_includes/init_languages.php) called at [/home/bigwigcorp/public_html/includes/autoload_func.php:48]
#4  require(/home/bigwigcorp/public_html/includes/autoload_func.php) called at [/home/bigwigcorp/public_html/admin/includes/application_top.php:171]
#5  require(/home/bigwigcorp/public_html/admin/includes/application_top.php) called at [/home/bigwigcorp/public_html/admin/index.php:10]
--> PHP Warning: require(includes/languages/english/gv_name.php): failed to open stream: No such file or directory in /home/bigwigcorp/public_html/admin/includes/languages/english.php on line 82.


[17-Jun-2019 10:22:51 America/Chicago] Request URI: /admin/index.php, IP address: 111.111.111.111
#1  require() called at [/home/bigwigcorp/public_html/admin/includes/languages/english.php:82]
#2  require(/home/bigwigcorp/public_html/admin/includes/languages/english.php) called at [/home/bigwigcorp/public_html/admin/includes/init_includes/init_languages.php:49]
#3  require(/home/bigwigcorp/public_html/admin/includes/init_includes/init_languages.php) called at [/home/bigwigcorp/public_html/includes/autoload_func.php:48]
#4  require(/home/bigwigcorp/public_html/includes/autoload_func.php) called at [/home/bigwigcorp/public_html/admin/includes/application_top.php:171]
#5  require(/home/bigwigcorp/public_html/admin/includes/application_top.php) called at [/home/bigwigcorp/public_html/admin/index.php:10]
--> PHP Warning: require(includes/languages/english/gv_name.php): failed to open stream: No such file or directory in /home/bigwigcorp/public_html/admin/includes/languages/english.php on line 82.


[17-Jun-2019 10:22:51 America/Chicago] PHP Fatal error:  require(): Failed opening required 'includes/languages/english/gv_name.php' (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/bigwigcorp/public_html/admin/includes/languages/english.php on line 82
17 Jun 2019, 15:23
#12
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Filter of items returned when duplicating items to make new ones

Is gv_name a new file?

17 Jun 2019, 15:34
#14
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Filter of items returned when duplicating items to make new ones

in the english.php file which you should have merged to yours, is this

// TEXT_GV_NAME, TEXT_GV_NAMES moved to gv_name.php
if (!defined('TEXT_GV_NAME')) {
require DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . 'gv_name.php';

There is a chicken-egg issue with this particular constant, so you can comment this out for now to get it going.

17 Jun 2019, 16:09
#15
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Filter of items returned when duplicating items to make new ones

Seems to be working okay.... Mondays not good testing days.