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

alexgcz

Active member
XNullUser
Joined
Dec 29, 2021
Messages
215
Reaction score
89
Points
28
NullCash
7
thanks for sharing this module ! it's awesome
 

luke7.7

Member
XNullUser
Joined
Mar 2, 2022
Messages
111
Reaction score
0
Points
16
NullCash
0
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
13
Points
18
NullCash
9
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
314
Reaction score
8
Points
18
NullCash
4
i'm looking for this for a while i'm looking for this for a while
 

Nheka

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

lavatar

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

lavatar

Active member
Elite
XNullUser
Joined
Feb 9, 2022
Messages
89
Reaction score
110
Points
33
NullCash
600
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
15
Reaction score
0
Points
1
NullCash
2
thank you man :) great post. i will use it
 
Top