v1.6-v1.7 Gift Card - Advanced solution [latest version]

mnsb13600

Member
XNullUser
Joined
Jul 25, 2021
Messages
260
Reaction score
0
Points
16
NullCash
3
Thank you for this plugin!
Thank you for this plugin!
 

Angela B.

Member
XNullUser
Joined
May 15, 2019
Messages
303
Reaction score
1
Points
18
NullCash
5
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
));
}

}
Many thanks to share it.
It's ok for PS. 1.7.8.5
 

chripala

Member
XNullUser
Joined
Mar 21, 2022
Messages
133
Reaction score
0
Points
16
NullCash
2
nice mate thx a lot for this.............................
 

Cpala

Member
XNullUser
Joined
May 19, 2022
Messages
40
Reaction score
0
Points
6
NullCash
8
Nkce module mate you saved me a lot of work
 

borjanews

Member
XNullUser
Joined
Jun 15, 2021
Messages
167
Reaction score
0
Points
16
NullCash
6
Repeat module, please update your module or search before posting, but thanks for your effort
 

clubsys

New member
XNullUser
Joined
May 31, 2022
Messages
7
Reaction score
0
Points
1
NullCash
3
thx bro very usesful instrument I hope help me for UX
Post automatically merged:

thx bro very usesful instrument I hope help me for UX
 
Last edited:

antoinev

Well-known member
Master
Diamond
Elite
Joined
Dec 12, 2021
Messages
212
Reaction score
1,068
Points
93
NullCash
5,435
thx bro very usesful instrument I hope help me for UX
 

adesio

Member
XNullUser
Joined
Sep 9, 2021
Messages
141
Reaction score
1
Points
18
NullCash
3
thx bro very usesful instrument I hope help me for UX
 

ybd

Member
XNullUser
Joined
Nov 15, 2022
Messages
63
Reaction score
1
Points
8
Location
tesa
NullCash
2
thank you very much!! i was looking for this
 

mino

Member
XNullUser
Joined
Feb 24, 2022
Messages
51
Reaction score
22
Points
8
NullCash
5
Thank you for this module! :) Testing!!! :)
 

INDV

Well-known member
Diamond
Elite
XNullUser
Joined
Jul 26, 2021
Messages
542
Reaction score
293
Points
63
NullCash
927
thx for sharing
best module for gift cards
 
Top