Forums / Setting Up Categories, Products, Attributes / Removed Qty Box, now want it back for some

Removed Qty Box, now want it back for some

Locked

Views: 12,371

Results 21 to 40 of 71
This thread is locked. New replies are disabled.
13 May 2007, 10:19 PM
#21
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Removed Qty Box, now want it back for some

gjh42:

The other categories besides Comics don't have subcats, so I will include the simplest form of the test.

(^1$|^1_|^2$|^3$|^22$)

<?php echo (((!ereg("(^1$|^1_|^2$|^3$|^22$)",$cPath)) and $flag_show_product_info_quantity == 1 and $products_quantity >0) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
> If you want to include another top cat which has subcats (say id 27), you would add it to the above list like this:
>  
> (^1$|^1_|^2$|^3$|^22$|^27_)
 
Oh my gosh, I think I even understand that :clap: !!!
This is all in the** tpl_product_info_display.php** file right?
 
Now for the supid question of the day .....
Can I ask you again (one more time, I promise) what **exactly **this will do from a Customer's point of view? and from Mine?
I just want to know what to look for so I know that I did it right.
Thanks so much again, Glenn :hug: ... 
       You're the greatest Zenner ever!
13 May 2007, 10:27 PM
#22
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

When you or a customer go to a product from the Categories menu, you will not see the "x units in stock" line in Comics etc, but you will see it in the other categories. That's all this does.

You have to have the switches set correctly in admin, as discussed above, for the add to cart ability to function properly.

13 May 2007, 10:30 PM
#23
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

Ok, so as you metioned before, the way I have it, it shows the max qty, but that doesn't change when someone buys 1 or 2 ... with this, when a item is purchased from a cat that shows the qty, it will deduct and they won't be able to over-buy?
Do I need to change the way I set up the item, the turn on box, Max qty, all of that info?

13 May 2007, 10:36 PM
#24
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

As long as you have (in Configuration > Stock)

Check stock level: true
Subtract stock: true
Allow Checkout: false

and you set the inventory correctly when you create the product, it will not let customers overbuy.

13 May 2007, 10:44 PM
#25
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

oh my gosh, I thought I had already asked the stupid question for the day.....

I'm in the file, but now I don't know if I'm supposed to add the PHP code that you had posted in the previous post .... the paragraph of code with (?php echo) ? or just the line and where, exactly, do I add it?

13 May 2007, 10:50 PM
#26
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

In this section ```php

<!--bof Product details list --> <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?> <ul id="productDetailsList" class="floatingBox back"> <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?> ``` replace the last line shown with this ```php <?php echo (((!ereg("(^1$|^1_|^2$|^3$|^22$)",$cPath)) and $flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?> ``` Note: I just removed the test for qty > 0 from this code - it was an addition for my own site.
13 May 2007, 11:10 PM
#27
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

I notice that you also removed the Manufactuer code, can I just delete it from mine as well? I don't plan on using that because of the wide variety of items we sell. Mixing in DC Comics with Enesco Figurines and Noritake China would be too much I think! LOL
Btw, since the Manufactuer code was my "last line shown" I left it alone for now and edited the line for Qty which was your last line.
I do have my moments of clarity:blush: .

So, are you guys hot there in NY yet?
I'd be happy to send you some neckcookers for your help:smile:

13 May 2007, 11:25 PM
#28
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

I seem to still be having a problem. The only way it will show the customer how many are available to buy is if I set the Max number, but then it doesn't deduct if they don't buy them all.
For example,
Pin # 11, I have 7.
I set the Max to 7 because otherwise there isn't anything telling them how many are in stock. I bought 5 and the Max still shows 7. I know I'm trying to use these in the wrong manner then what was intended, but how can I show the customer how many of a item is in stock?

14 May 2007, 12:15 AM
#29
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

Do you have it set to show qty in stock in Catalog > Product Types > Product-General > edit layout? (from post #2 above)

I didn't remove the mfr code; I just stopped the display at the quantity line for clarity.

"neckcookers" LOL... yes, it just got cool & damp again today ;)

14 May 2007, 12:19 AM
#30
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

gjh42:

Do you have it set to show qty in stock in Catalog > Product Types > Product-General > edit layout? (from post #2 above)

I didn't remove the mfr code; I just stopped the display at the quantity line for clarity.

Ahhhh.... that's where the problem was. Now at the bottom it shows **5 Units in Stock **, not a big deal, but can that be edited to just say 5 in Stock? You start adding Units and they think its a set or something.

14 May 2007, 12:34 AM
#31
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

/includes/languages/english/your_template/product_info.php, about line 19:

define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');

14 May 2007, 1:24 AM
#32
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

:jump: THANK YOU THANK YOU!!!!

14 May 2007, 5:33 AM
#34
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

Glenn - I'm anxious to be as enthusiastic as LilleyPadGifts however the PHP you pasted in quotes is nothing but a blank box on my end. :blink: I've checked in IE and FF but there is no PHP code, just a big, blank square where the code should be.

Could either of you please repost the following posts:
#16
#20
#26

Sorry to be a hassle - Thanks!!

Tim

14 May 2007, 5:56 AM
#36
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

The first code box in post 8 is showing (although the color coding is incorrect), but the second code box is blank.

14 May 2007, 6:01 AM
#37
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

Technology is eroding around us! The sky is falling!! :smartalec:

It's an odd one. I've not seen that occur before. I hope it's not some kind of attack. Ever since the last time Zen was targeted I've been uneasy. Who would target this bunch?!? Makes me lose faith in our species.

14 May 2007, 6:04 AM
#38
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

It transfers, as well. in post #21, where your post was quoted, only the blank php box is visible in the quote.

14 May 2007, 6:07 AM
#39
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removed Qty Box, now want it back for some

But it is holding the space for the original size of the code text, so (I hope) it still exists somewhere in there...

14 May 2007, 6:36 AM
#40
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Re: Removed Qty Box, now want it back for some

MeltDown:

Glenn - I'm anxious to be as enthusiastic as LilleyPadGifts however the PHP you pasted in quotes is nothing but a blank box on my end. :blink: I've checked in IE and FF but there is no PHP code, just a big, blank square where the code should be.

Could either of you please repost the following posts:
#16
#20
#26

Sorry to be a hassle - Thanks!!

Tim

I see all 3 of those just fine. Is it working for your guys now?