Skip to main content
added 89 characters in body
Source Link
DanCarlyon
  • 930
  • 1
  • 7
  • 15

In the addtocart.phtml you posted, the product is saved to $_product rather than $product

<?php $_product = $this->getProduct(); ?>

You should be able to do

$_product->getId();

<?php echo 'See <a href="/catalog/product/view/id/' . $_product->getId() . '">created simple product</a>' ?>

In the addtocart.phtml you posted, the product is saved to $_product rather than $product

<?php $_product = $this->getProduct(); ?>

You should be able to do

$_product->getId();

In the addtocart.phtml you posted, the product is saved to $_product rather than $product

<?php $_product = $this->getProduct(); ?>

You should be able to do

<?php echo 'See <a href="/catalog/product/view/id/' . $_product->getId() . '">created simple product</a>' ?>
Source Link
DanCarlyon
  • 930
  • 1
  • 7
  • 15

In the addtocart.phtml you posted, the product is saved to $_product rather than $product

<?php $_product = $this->getProduct(); ?>

You should be able to do

$_product->getId();