Jump to content
Sign in to follow this  
djmonkey1

Product Listing in Columns v2.0

Recommended Posts

Hi

 

I'm trying to remove the buy button when stock is less then 0.

 

In product_listing_col I have tried changing this code:

 

case 'PRODUCT_LIST_BUY_NOW':

// this button will be in a separate table row for better aligning

$buy_now_button_array[] = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action','sort','products_id')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW, 'style="padding-top: 5px;"') . '</a> ';

$lc_text = ''; // otherwise the previous $lc_text will be outputted again

break;

 

to:

 

case 'PRODUCT_LIST_BUY_NOW':

// this button will be in a separate table row for better aligning

if ($listing[$x]['products_quantity'] > 0)

{

$buy_now_button_array[] = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action','sort','products_id')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW, 'style="padding-top: 5px;"') . '</a> ';

$lc_text = ''; // otherwise the previous $lc_text will be outputted again

}

else

{

$lc_text = ' ' ;

}

break;

 

But it is not quit working, any idea to where the problem is?

 

/Jesper

Share this post


Link to post
Share on other sites

Hello,

I have installed this add-on and have only a few small issues. I am trying to make the product listing background totally transparent but get a white bar in the middle. I also need to make the listings in 5 columns. Thanks for any advice.

-Ben

Share this post


Link to post
Share on other sites

How to be with sorting of the products?

Sorting according to the Name, Model, the Price etc. was gone

Hi have you found some solution on this? I am also searching to sort the way you want to.

Or just maybe to sort in price, starting from cheapest.

It sorts alphabeticaly now for me sorting in price would be better.

Edited by abdelatif

Share this post


Link to post
Share on other sites

Hi have you found some solution on this? I am also searching to sort the way you want to.

Or just maybe to sort in price, starting from cheapest.

It sorts alphabeticaly now for me sorting in price would be better.

I found one other contribution (on this forum) and it is working together with this contrib.

Sort Products By Dropdown

 

I didn't use al the extra's this contrib also includes, like sort on bestsellers, (works with cronjob) so left out most of it.

Best thing it sorts the way I want, with a nice dropdown on top of the page.

Don't forget to add the "Fix Next Page Problem" from version 1.2 otherwise you lose your sorting on every other page in the categorie.

Share this post


Link to post
Share on other sites

Hi is their an addon i can download to change the product content page from 1 colum to 2 colums.so the products show up as 2 products per line.

or can i make any changes to the setup to do this. i am using v2.3

paddyk

allaaniclothing.com

Edited by paddyK

Share this post


Link to post
Share on other sites

Well, Listing is the best way to get some productive results. I want my website looks great, rank well and have high traffic... So, what is the easiest way for that?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×