SHARE
TWEET

Untitled

a guest Jan 11th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $product = Mage::registry('current_product');?>
  2.                     <?php $id = $product->getId();?>
  3.                     <?php $name = $product->getName();?>
  4.                     <?php $qty = $product->getStockItem()->getQty();?>
  5.                     <?php if($qty==0):?>
  6.                     <?php $user = Mage::getSingleton("customer/session"); ?>
  7.                     <?php if(!($user->isLoggedIn())):?>
  8.                     <?php echo "<form><input style="."text"." placeholder="."email".">"?>
  9.                     <?php endif;?>
  10.                     <?php echo "<p><a href="."sub/product/subthis/id/".$id."/name/".$name.">Send e-mail Action</a></p>";?>
  11.                     <?php endif; ?>
RAW Paste Data
Top