Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product List Buy Now Alternatives


dariawylde

Recommended Posts

From product_listing.php

 

case 'PRODUCT_LIST_BUY_NOW':

            $lc_align = 'center';

            $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';

            break;

        }

 

I need to add a statement that tells the cart

 

If products status = 3 then display special order image (instead of IMAGE_BUTTON_BUY_NOW)

 

or

 

If Products status= 4 then display back order image (instead of IMAGE_BUTTON_BUY_NOW

 

otherwise do what is expected

 

It doesn't even have to be products status, it could be a field I add to the products table, I just need the PHP syntax

 

Mostly this is driving me mental, it seems like it should be a small thing and I am sure it is if you are experienced with PHP sysntax, but I am desperate for help, so please if anybody could put this into a working statement for me I would really appreciate it.

 

Thanks for any speedy responses.

 

Daria

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...