Thx brother
I will try this module.
I will try this module.
Many thanks to share it.For version 1.7.8.5 you hav to change modules/gift..../override/classes/Link.php
public function getProductLink(
$product,
$alias = null,
$category = null,
$ean13 = null,
$id_lang = null,
$id_shop = null,
$idProductAttribute = 0,
$force_routes = false,
$relativeProtocol = false,
$withIdInAnchor = false,
$extraParams = array(),
$addAnchor = false
) {
$giftcard = Module::getInstanceByName('giftcard');
if ($giftcard && $giftcard->active) {
if (! is_object($product)) {
if (is_array($product) && isset($product['id_product'])) {
$id_product = $product['id_product'];
} elseif ((int) $product) {
$id_product = (int) $product;
}
} else {
$id_product = $product->id;
}
if ((int) $id_product > 0 && $giftcard->isGiftCard($id_product)) {
$params = array();
$params['id_product'] = $id_product;
return ($this->getModuleLink('giftcard', 'choicegiftcard', $params));
}
}
return (parent::getProductLink(
$product,
$alias,
$category,
$ean13,
$id_lang,
$id_shop,
$idProductAttribute,
$force_routes,
$relativeProtocol,
$withIdInAnchor,
$extraParams,
$addAnchor
));
}
}