Hi everyone. I am after some help if you could assist me.

I have an online store using Drupal 6.x and Ubercart 2.x

What I want to do is the following:

I get new product details (price, SKU ect.), now what I would like to do is then put the product into the site (easy enough, already done this), but I have had a call from supplier saying the product cannot be delivered to the UK at the moment (earliest is May'ish).

So instead of removing the product, I'd like to have TBC or POA in the price field, and disable the add to cart button.

Has anyone done this before? Can anyone help me with this?

The reason i'd like to do it this way, is so i can show customers I can get the product, you just have to wait a little.

Please help

Comments

GavinC’s picture

Pretty Please

GavinC’s picture

Pretty Please with a cherry on top

GavinC’s picture

no one at all?

Barry Ramage’s picture

if your product sell price is set to 0.000 and the following snippet is included in your node-product.tpl.php, the sell price would be over-ridden

<div class="sell-price">
<?php
if (intval($node->sell_price) > 0) {
print $node->content['sell_price']['#value'];
} else {
  print "Price: other information here";
}
?>
</div>

also, to remove add to cart button

<div class="add-to-cart">
<?php if (intval($node->sell_price) > 0) {print $node->content['add_to_cart']['#value'];
} else {
  print " ";
} ?>
</div>

this might not be the best way to do this!
see http://www.ubercart.org/forum/support/5281/change_display_0_price_where_... for other ideas. hope this gets you started.