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 61 to 71 of 71
This thread is locked. New replies are disabled.
14 May 2007, 4:10 PM
#61
meltdown avatar

meltdown

Totally Zenned

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

Removed Qty Box, now want it back for some

gjh42:

Did you get the latest bit of code at the top of my post? I was editing it probably while you were working.
If you didn't add that part properly, it would hide all adds.

Ahh, I see said the blind man. No, I jumped past it. One sec...

14 May 2007, 4:17 PM
#62
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

OK, there's the error:

Parse error: syntax error, unexpected T_IF in /home/pittecom/public_html/includes/templates/apple_zen/templates/tpl_product_info_display.php on line 38

Is there a good place for this bit? I just sort of threw it in there.

<?php 
$notGallery = 1
if (ereg("(^13$|^13_)",$cPath)) { /*no image in gallery*/
  $notGallery = 0
} ?> 
14 May 2007, 4:28 PM
#63
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

Ok, top of post 57, the second code box was showing where to put the code in the first box.

Oops, I forgot to end the PHP statements with ;

<?php 
$notGallery = 1;
if (ereg("(^13$|^13_)",$cPath)) { /*no image in gallery*/
  $notGallery = 0;
} ?> 
14 May 2007, 4:34 PM
#64
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

Nope - Still getting an error at the point where that snippet is:

Parse error: syntax error, unexpected T_IF in /home/pittecom/public_html/includes/templates/apple_zen/templates/tpl_product_info_display.php on line 32

14 May 2007, 4:52 PM
#65
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 the snippet in more than one place? It should only be added below the <div class="centerColumn" id="productGeneral"> line (around line 16).

I think I see your error: did you add it just after this ```php

<!--bof Category Icon --> <?php if ($module_show_categories != 0) {?> <?php ``` on line 26? Post the area around where you added the snippet - you will have to remove it without taking anything that was there.
14 May 2007, 4:58 PM
#66
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

Success!! Because we were jumping around a bit with different snippets on one page, I was a little concerned that maybe I screwed something up along the way. (Who... ME?!?) So I went back through and re-entered everything and it's a go!!

I still need to put the cart through the paces to make sure there haven't been any unexpected issues but I have confirmed that neither the "Add to cart" or the price appear in the Sold Gallery. Also, the "Add to cart" is indeed in place outside the Gallery.

Way to go! You should consider packaging this as a Module: Showcase Module. I know there are others out there who would be thrilled.

Thank you very much for your hard work. I appreciate it. I'll just make sure everything is as it seems in the cart...

Tim

14 May 2007, 5:08 PM
#67
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

Everything seems to be working great. If I was to be Very picky or if you were to package this as a mod, the only thing is that the "Add to cart" is still displayed in category view. (example) But I'm not sweating it.

14 May 2007, 5:11 PM
#68
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

Category Showcase... good idea. Since it's only one file that has to be modified, it shouldn't be hard to work up in presentable form.
Thanks for the suggestion.

Well, two files...
I'll look at applying this to the listings as well, and get back when I have something functional. I don't expect it to be difficult.

14 May 2007, 7:21 PM
#69
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:

Too cute! Congratulations!

Thanks ! These little guys are a amazing bunch considering their father was fixed the day BEFORE they were created:blush:. The vet said not to worry... so I didn't .... and well, here they are! We already had way more then enough, but now couldn't imagine life without any of them. They have a way of making you smile no matter how hectic things can get :smile: .

Glad you guys got the other issue fixed. I'm still trying to figure out the Gallery part.... since I'm not sure what all I will end up with in my store, I am always looking for other ways of showing things on the site. One thing that always surprises me is the difference in what the site looks like from one monitor to another. I have spent hours trying to "fix" what I thought looked horrible on my computer only to see it on my Mom's or a friends and see that it looks wonderful... I then have my eBay friends check it out and find that I'm the only one seeing it the horrible way, everyone else see's it the wonderful way, so I leave it alone :D.

Anyways, thanks for all of your help! And the offer still stands on the Neckcoolers. They really help keep ya cool in the hot months. I'd be happy to send you some....just let me know!

3 Jun 2007, 9:26 PM
#70
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 Gallery Category mod is now available in Downloads - Other Modules.

The support thread is here. Let me know how it works for you!

26 Nov 2008, 7:04 PM
#71
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

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

Glenn, I just want to say a big thank you! I've been trying to figure out for 2 days now how to not have the quantity in stock show up for one category, and your very good directions did the trick. I have tried other things I found in the forums, and they didn't work for me. So I'm very grateful. And what do you know, tomorrow is Thanksgiving!

THANKS!:clap:

Traci