Remove buy now button/more info and max:1
I want to remove the buy now button/more info and max:1 from my product listing pages.
http://gleefulthings.com/shop/index....ndex&cPath=2_3
I figured out how to turn off the buy now button. But then ...more info pops up in it's place and I don't want that either. I went to the english.php file and removed it. But that just left me with a blank line there that I don't want. I put everything back to how it was with the buy now button. But I'd like to know if there's a way to get rid of that and the max:1 thing without leaving big gaps (blank lines) where they used to be? And is there a way to move the price up so that there's no blank line between it and the product name?
Re: Remove buy now button/more info and max:1
You can close up the elements by adding this to your stylesheet
Quote:
#productListing br {line-height:0}
but to get rid of all traces of the button/more info and max:1 would require programming changes to the product_listing.php module.
Re: Remove buy now button/more info and max:1
Thanks! That fixed the spacing. :smile:
I'm looking at product_listing.php but I'm not really sure what to change.
Re: Remove buy now button/more info and max:1
I think I can live with the buy now button but I really do want to get rid of the max:1. I noticed that it appears in the shopping cart as well. Is there a way to turn that off throughout the site?
Re: Remove buy now button/more info and max:1
Looks like you've found the answer to the max:1 Did you edit the product_listing.php?
Re: Remove buy now button/more info and max:1
no, I just removed the max quantity from all my products. I didn't know what to edit in the php.
Re: Remove buy now button/more info and max:1
I had to put the max quantity back to 1 because I need it like that. I also added attributes to my products so now it's taken the buy now buttons away and says ... more info again. Does anyone know what I would edit to get rid of these?
Re: Remove buy now button/more info and max:1
I too had the "Max:1" issue. I edited the product_listing.php.
1. Copy the product_listing.php to /include/modules/YOUR_TEMPLATE/. before you edit.
2. Search for zen_get_products_quantity_min_units_display
3. You will need to delete the above searched text and add a semicolon. In my products_listing.php file, I found it on line 148.
original code:
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
modified code
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />';
At least this worked for me.
Re: Remove buy now button/more info and max:1
Quote:
Originally Posted by
stuville
I too had the "Max:1" issue. I edited the product_listing.php.
1. Copy the product_listing.php to /include/modules/YOUR_TEMPLATE/. before you edit.
2. Search for zen_get_products_quantity_min_units_display
3. You will need to delete the above searched text and add a semicolon. In my products_listing.php file, I found it on line 148.
original code:
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
modified code
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />';
At least this worked for me.
Worked great for me, too. Thanks stuville.
Re: Remove buy now button/more info and max:1
I'm using 1.3.8a + all recent patches.
I was trying to get rid of the Max: 1 in the product listing page.
I tried the solution mentioned here by stuville, and it caused my entire product listing page to appear blank.
Somehow, for my needs, I had to debug the code, and finally ended up with a blank statement instead of the products ID;
In other words, in my product_listing.php, on line 189:
Code:
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
had to become
Code:
$lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . ($listing->fields['']);
I had a heck of a time finding any info on the Max: 1, and how to excise ("exorcise"?) it. Does not seem to be the most useful of data field tags in the system...
Hope this helps someone else.