Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"SOLD" instead of a special price?


agiftcodotcom

Recommended Posts

Posted

i asked how to remove the Line through and this where it's at:

In includes/boxes/specials, remove the <s> and </s> around line 29. Not sure if there is more to it or not. There are <s></s> tags in catalog/specials, but I haven't looked at the code close enough to see where they come in.
You can probably edit the code to show "SOLD" instead of "$currencies->display_price($random_product['products_price']"
Posted

I'm 'trying' to design it for Real Estate purposes (removing commerce aspects), so they would still need the option of marking houses 'down', but it would be nice if it could recognize text for "sold" as well as mark downs. The only reason being that customers who have bought a house tend to like to see that house as 'sold' for a few days after the sell. Or, I could probably use it for 'Pending' as well.

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Posted

While still displaying the price you can replace the add to cart button with a soldout button. This soldout button is not clickable, so they can not add the item to the cart.

In /product_info replace this section of code:

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

with

<td align="right" class="main"><?php If ($product_info['products_quantity']<>0){
   echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); 
}else{
   echo tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . 'button_out_of_stock_cart.gif', IMAGE_BUTTON_OUT_OF_STOCK); 
   
} ?></td>

You must upload a button named: IMAGE_BUTTON_OUT_OF_STOCK to:

/includes/languages/LANGUAGE/images/buttons/

Hope this helps.

PS

Item must be active (green) with a quantity of '0' for this to work.

Archived

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

×
×
  • Create New...