Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can someone please help? Quantity Issues - Please

Can someone please help? Quantity Issues - Please

Views: 1,317

Results 1 to 5 of 5
9 Jul 2011, 9:02 AM
#1
snakecharmer avatar

snakecharmer

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

Can someone please help? Quantity Issues - Please

:cry: I have tried to find this solution but so far unable. :cry:

Ok. I have the newest version of zen cart and multiple products.

One product in particular is critical to the site.
I would like to either pull how many are remaining or bought to a different part of the site that is not ran on zen cart.

How could I do this using PHP?
Does anyone have any ideas or suggestions.

Just to make things completely clear.
All I want to pull is the number remaining or bought. Nothing else, just the number.

If I could pull both that would be best.

:clap: Any help is much appreciated. :clap:

9 Jul 2011, 11:57 AM
#2
snakecharmer avatar

snakecharmer

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

Re: Can someone please help? Quantity Issues - Please

No takers yet...

9 Jul 2011, 3:04 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,699
Plugin Contributions:
56

Re: Can someone please help? Quantity Issues - Please

You're going to have to write some custom logic that connects to your database and queries the products table for the products_qty field for the product_id in question. Without the Zen Cart framework you're going to have to use native PHP MySQL calls. It's not a huge deal, it's just outside the framework of the customizations most people reading this site would do; that's why you aren't getting a lot of responses.

9 Jul 2011, 3:46 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Can someone please help? Quantity Issues - Please

Do you need to have the information elsewhere on the site so others can see it? Or would it be sufficient to just view it within your Admin? If the latter, maybe one of the admin mods -- perhaps Apsona or Super orders -- will do what you want.

Rob

11 Jul 2011, 4:56 AM
#5
snakecharmer avatar

snakecharmer

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

Re: Can someone please help? Quantity Issues - Please

I need this to be shown on the site itself not in the admin area.

Does anyone know how to do this.
I tried a few different ways but always end in error when trying to do this.

PLEASE HELP!!!!