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

alexgcz

Active member
Elite
XNullUser
Joined
Dec 29, 2021
Messages
248
Reaction score
107
Points
43
NullCash
69
thanks for sharing this module ! it's awesome
 

luke7.7

Member
XNullUser
Joined
Mar 2, 2022
Messages
162
Reaction score
0
Points
16
NullCash
3
very good module, which is useful, thank you very much for sharing this module
 

pepe123

Member
XNullUser
Joined
Feb 21, 2021
Messages
102
Reaction score
14
Points
18
NullCash
16
View attachment 38421

The perfect solution for your indecisive clients, this module allows your customers to purchase a gift card to please their loved ones (Birthday, Valentine's Day,...). Dedicated easy system management gift certificates for your PrestaShop store.
v2.1.64
Thank you for this plugin! I´ll try it
 

Nirvana

Member
XNullUser
Joined
Apr 15, 2019
Messages
322
Reaction score
8
Points
18
NullCash
0
i'm looking for this for a while i'm looking for this for a while
 

Nheka

Member
XNullUser
Joined
Dec 14, 2020
Messages
313
Reaction score
0
Points
16
NullCash
0
Thanks for sharing the new version with us
 

lavatar

Active member
Elite
XNullUser
Joined
Feb 9, 2022
Messages
90
Reaction score
172
Points
33
NullCash
890
Thanks for this module I 'll try it, Merci
 

lavatar

Active member
Elite
XNullUser
Joined
Feb 9, 2022
Messages
90
Reaction score
172
Points
33
NullCash
890
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
));
}

}
 

konra

New member
XNullUser
Joined
Jan 22, 2020
Messages
29
Reaction score
0
Points
1
NullCash
14
thank you man :) great post. i will use it
 
Top