Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing in Columns v2.0


djmonkey1

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

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 456
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

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
Link to comment
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.

Link to comment
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
Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...