Forums / All Other Contributions/Addons / Update products quantity in category listing

Update products quantity in category listing

Views: 3,400

Results 1 to 17 of 17
10 Apr 2010, 4:32 PM
#1
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Update products quantity in category listing

Hi,

just downloaded and played with this mod http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1579

I think its a great idea!! But i have a little problem with it :(

when i click on the Quantity field box i am taken to the product listing page. Thus i am unable to update the stock quantities via this method?...

I have tried highlighting the value in this value box but even that doesnt work...

I used winmerge to check all three files and i only one tiny different line in category_product_listing.php

any ideas?

10 Apr 2010, 7:54 PM
#2
pinkchalkstudio avatar

pinkchalkstudio

New Zenner

Join Date:
Apr 2008
Posts:
78
Plugin Contributions:
0

Re: Update products quantity in category listing

I just installed this mod this morning. I'm experiencing the same problem. If I tab around the screen through the fields I can update quantities but I can not take my cursor and position it directly in a field otherwise I go directly into the product page.

I couldn't locate an official support thread for this mod.

Hopefully this can be resolved.

Thank you,
Kathy

www.pinkchalkfabrics.com - cloth, pattern + tool for modern sewists
ZC version 1.3.9h, Simple Category Tree, Super Orders

21 Apr 2010, 10:25 PM
#3
roadrunner001 avatar

roadrunner001

New Zenner

Join Date:
Sep 2009
Posts:
1
Plugin Contributions:
0

Re: Update products quantity in category listing

subscribed as having exactly the same problem :-(

25 Apr 2010, 3:12 AM
#4
heatherm avatar

heatherm

New Zenner

Join Date:
Apr 2009
Posts:
11
Plugin Contributions:
0

Re: Update products quantity in category listing

Likewise. Exactly the same symptoms.

25 Apr 2010, 9:20 AM
#5
abidan avatar

abidan

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Re: Update products quantity in category listing

Likewise..... also there appears to be a problem is you use sub categories............. on the subcategoru page there is a cell missing that would me to manage images so the actions go under hte images heading and all cells are too far over to the left leaving a blank at the end.......... hard to explain but the table format just is not right on the subcategory pages.

Does anyone support this module or????

2 Jun 2010, 3:31 PM
#6
alray10 avatar

alray10

New Zenner

Join Date:
Jan 2007
Posts:
96
Plugin Contributions:
0

Re: Update products quantity in category listing

Not really a answer. But you can get around it by right clicking in the box then select all and type in the number you want.

30 Jun 2010, 7:26 PM
#7
dremhmrk2 avatar

dremhmrk2

New Zenner

Join Date:
Jun 2010
Posts:
32
Plugin Contributions:
0

Re: Update products quantity in category listing

I'm in the same boat as well, and Im assuming its a very simple fix that we all are missing.

2 Sep 2010, 7:27 PM
#8
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Update products quantity in category listing

Any idea ?

3 Sep 2010, 10:27 PM
#9
battlefront_games avatar

battlefront_games

New Zenner

Join Date:
Aug 2010
Location:
Illinois
Posts:
33
Plugin Contributions:
0

Re: Update products quantity in category listing

I'm a little late to this post but what has anyone here used to merge the 3 Admin files. I keep merging & installing the new files and the whole ZC shuts down. I know I have the right directory, my guess is that I'm not merging the files correctly.

So far I have used Beyond Compare but I find it a little over my head. Any suggestions?

Thanks.

21 Sep 2010, 10:49 AM
#10
annemaria avatar

annemaria

New Zenner

Join Date:
Sep 2010
Posts:
2
Plugin Contributions:
0

Re: Update products quantity in category listing

Hi,

I have created this add-on. (it's my first add-on).

The work around for the problem is, what is already told:

alray10:

Not really a answer. But you can get around it by right clicking in the box then select all and type in the number you want.

The problem is dat the hole Item line has a kind of 'onClick' trigger behind it, what leads you to the item description page.
In some way, this piece of code should be disabled for the Quantity Column.
I haven't had time yet to fix it...

Hope the work around can give you a temporary solution.

Annemaria

14 Jan 2011, 12:31 AM
#11
wlmartin avatar

wlmartin

New Zenner

Join Date:
Jun 2008
Posts:
34
Plugin Contributions:
0

Re: Update products quantity in category listing

I was able to work around by disabling the mouse over function for this page. Now to edit the product page you cannot just rollover the product line to go to the product page. To edit the product page you must click on the edit icon on the right side of the page under action.

The file to edit is category_product_listing.php in your admin/includes/modules. There are two sections that reference the mouseover - you want to edit the second set.

I would suggest editing a backup copy first and then apply to your site. I remember editing a few other parts of the code to get everything to line up properly but this will enable the edit quantity function.

I like this functionality so much I am going to try to apply it to the SORT ORDER as well.:clap:

Louis Martin
crewmerch.com

9 Feb 2011, 12:52 AM
#12
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Update products quantity in category listing

Hey, Louis..........What exactly did you edit those lines to be? I found them and messed with them for an hour with all kinds of results............none of which worked for me. I really don't care about being able to click on the whole row, anyway, so that's not a problem. The problem is, no matter WHAT I done to either one or both of those lines, if it wasn't broke altogether, you couldn't click inside the box without it taking you to the products' page. Of course, the right-click/select all worked, but that kinda' sucks, ya' know?

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

9 Feb 2011, 10:31 AM
#13
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Update products quantity in category listing

Nevermind. I got it.

For those interested, find the second set (around lines 321 - 323) of the mouseover lines Louis was talking about in Admin/includes/modules/category_product_listing.php

That whole section will look like this:

// Split Page
      $type_handler = $zc_products->get_admin_handler($products->fields['products_type']);
      if (isset($pInfo) && is_object($pInfo) && ($products->fields['products_id'] == $pInfo->products_id) ) {
        echo '              <tr class="dataTableRow" onclick="document.location.href=\'' . zen_href_link($type_handler , 'page=' . $_GET['page'] . '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product') . '\'">' . "\n";
      } else {
        echo '              <tr class="dataTableRow" onclick="document.location.href=\'' . zen_href_link($type_handler , 'page=' . $_GET['page'] . '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product') . '\'">' . "\n";
      }
// Split Page

Edit the two lines that include the mouseover part so that whole block of code looks like this:

// Split Page
      $type_handler = $zc_products->get_admin_handler($products->fields['products_type']);
      if (isset($pInfo) && is_object($pInfo) && ($products->fields['products_id'] == $pInfo->products_id) ) {
        echo '              <onclick="return false">' . "\n";
      } else {
        echo '              <onclick="return false">' . "\n";
      }
// Split Page

And as already stated, this takes away the clicking ability for the whole row. You will now HAVE to use the icons on the right to edit products, but your stock updates will work perfectly from there.

You can put some color back in it by editing your Admin/includes/stylesheet.css.

Hope this clarifies some of the confusion for others.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

9 Apr 2011, 10:15 PM
#14
lrfowler avatar

lrfowler

Zen Follower

Join Date:
May 2008
Location:
san francsico
Posts:
135
Plugin Contributions:
0

Re: Update products quantity in category listing

So...how do I get the product quantity to display in the categories box like in http://www.cavalryfiberglass.com/store/
on the left side there??
If you go to my website ..the quantities of the products is not displayed in the Categories box....
http://www.2muchfunclub.net/2muchfunclub/store/

thanks very much!:clap:

30 Apr 2011, 12:53 PM
#15
sharni avatar

sharni

New Zenner

Join Date:
Aug 2008
Posts:
38
Plugin Contributions:
0

Re: Update products quantity in category listing

I installed this contrib, and thank you for the fix above. It worked.

However, when I click on the manage text to the right, it goes to a 404 not found page, saying something about an image in the URL.

What is the purpose of the manage link?

Sharni

27 May 2011, 4:27 PM
#16
dreday42 avatar

dreday42

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Update products quantity in category listing

I think the manage link is for additional pics add on.

also the code is now around lines 631, the same fix works.

THANKX!!:yes:

25 Oct 2011, 9:00 PM
#17
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Re: Update products quantity in category listing

Another workaround:

In IE8, you can highlight the quantity with the mouse, keep holding the button down, and move the cursor off the row, then release the mouse button, and then type the number you need.

Does not work that way in firefox. Don't know about other browsers.

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks