Forums / Addon Admin Tools / Multiple Products (Copy, Move, Delete)

Multiple Products (Copy, Move, Delete)

Views: 40,238

Results 61 to 80 of 166
5 Dec 2011, 1:17 PM
#61
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
426
Plugin Contributions:
0

Multiple Products (Copy, Move, Delete)

Very nice add-on.
When attempting a move, and selecting 'Confirm', I get the following error:

PHP Fatal error: Cannot use object of type queryFactoryResult as array in "(path edited)..Admin\multi_product_copy.php on line 145

Any ideas? I have already re-installed several times.

PHP =v 5.3.8

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

5 Dec 2011, 1:45 PM
#62
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
426
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

To resolve the 'queryFactoryResult as array in' error I amended lines 145 and 146 in 'Admin\multi_product_copy.php' to read

if (zen_childs_in_category_count($_POST->fields['category_id']) > 0 || $_POST->fields['category_id'] == 0) {
$current_category_id = $product_multi**->fields**['master_categories_id'];

A very nice mod currently being tested heavily:smile:

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

5 Dec 2011, 3:42 PM
#63
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

The two POST would not use the ->fields ...

But the change:

              if (zen_childs_in_category_count($_POST['category_id']) > 0 || $_POST['category_id'] == 0) {
                $current_category_id = $product_multi->fields['master_categories_id'];
              } else {
                $current_category_id = $category_id;
              }

should be made ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Dec 2011, 10:22 PM
#64
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
426
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Ajeh
Once the products are selected and moved should the next screen, 'Products that were copied to the destination Category' list all products moved? My install lists zero for a move but lists all products for a link change. Products are to the new target category.
Any clues on what I have missed with the install?

Included screen capture:

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

6 Dec 2011, 11:28 PM
#65
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

Currently, it does just say they were moved but does not list them ...

I will have to see what's up with that ... :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Dec 2011, 11:25 AM
#66
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
426
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Ajeh
Coffee is on its way.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

7 Dec 2011, 5:04 PM
#67
torvista avatar

torvista

Totally Zenned

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

Re: Multiple Products (Copy, Move, Delete)

Move Products to another Category
When Moving Products, if you do not pick the Search From Category,
then the Products will be moved from their current Master Category ID
to the New Category which will then be set as the new Master Category ID:I was wondering the reasoning why it doesn't change the master category when you select a source category. Just to give the option?

When I move a product I always want it to adopt the destination as its master category.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

8 Dec 2011, 3:54 AM
#68
roscar67 avatar

roscar67

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Love this mod I was also wondering why you can actually move products seems everything else works copy delete etc just not that part any help would be much appreciated Thank you so much for your work!

8 Dec 2011, 5:45 AM
#69
roscar67 avatar

roscar67

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

:oops: I ment why you can't move products :blink:

8 Dec 2011, 1:59 PM
#70
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

Could you give an example of a Move you are trying to do that is not working for you? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Dec 2011, 8:27 PM
#71
roscar67 avatar

roscar67

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

I guess the easy way to do this is include some screen shots.
A walk through of what i am doing is
-Select the move radio button
-Select destination category
-Search categories with terms
-Select products
-Press Confirm

But after that nothing moves? I'm stumped everything else works
Attachment #9936

Attachment #9937

Attachment #9938

8 Dec 2011, 11:44 PM
#72
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

Now regardless of what the screen says ... if you look in the Category that you moved the Products to ... did they get moved?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Dec 2011, 1:32 AM
#73
roscar67 avatar

roscar67

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

No it does not move the products
Posted via Mobile Device

14 Dec 2011, 12:56 AM
#74
roscar67 avatar

roscar67

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Could this work to remove multiple manufacturers also?

14 Dec 2011, 1:14 AM
#75
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

Zen Cart is designed with 1 Manufacturer per Product ...

What are Multiple Manufacturers? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Dec 2011, 8:32 PM
#76
roscar67 avatar

roscar67

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Somehow I ended up with over 500 manufacturers 300 plus are the same when I loaded the csv file instead of the one manufacturer it created them all as new. So i was just wondering if there was a function to remove multiple manufacturers at the same time with this mod.

14 Dec 2011, 9:31 PM
#77
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

No there isn't ... sorry ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Dec 2011, 4:22 PM
#78
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Great tool. Saves me alot of work, thank you.
Is there by chance a way of adding a sort feature to this so we can find items easier in the list. Currently it sorts only by iyem product number and I add duplicate items and only want to move one of the so I have to hunt down all of them in the list and uncheck.
Thanks again.
Stampsville
hhtp: // s t a m p commune . com

16 Dec 2011, 4:55 PM
#79
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple Products (Copy, Move, Delete)

You can customize the SELECT for the list and add an order by to it around line 344:

        $query = $db->Execute($raw_query . $where_str . ' group by p.products_id');

such as to sort by products_name:

        $query = $db->Execute($raw_query . $where_str . ' group by p.products_id' . ' order by pd.products_name');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Jan 2012, 2:29 PM
#80
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Multiple Products (Copy, Move, Delete)

Linda,

We have an issue. When I move 6 or 7 products from one category to another it just moved 1 istead all 6 or 7.