Skip to content

Releases: brainstreaminfo/bagistogiftcard

Giftcard version v2.2.3

28 Jan 09:40
Compare
Choose a tag to compare

This tag is compatible with the Bagisto version v2.2.3.

Using this tag, users will be able to use the gift card extension with the latest version of Bagisto which is v2.2.3.

Requirements:

  • Bagisto: v2.2.3
  • PHP: 8.1 or higher
  • Composer 2.6.3 or higher

Installation :

Unzip the below zip folder and move the extracted folder into the packages directory of your project.

  • Goto config/app.php file and add following line under 'providers'
Brainstream\Giftcard\Providers\GiftcardServiceProvider::class
  • Goto composer.json file and add following line under 'psr-4'
"Brainstream\\Giftcard\\": "packages/Brainstream/Giftcard/src"
  • Run these below commands to complete the setup:
composer dump-autoload
php artisan migrate
php artisan optimize:clear
  • Run the below command and select the Giftcard Service provider from the selection :
php artisan vendor:publish --force
  • Include the PayPal credentials in the loadPayPalScript method in index file of giftcard package. Additionally, ensure that the credentials are entered in the PayPal payment gateway section within the Bagisto admin panel.

  • Add the mail credentials in the .env file to receive the giftcard via email.

  • Add the below code in the CartResource File after the payment_method_title :

$this->mergeWhen($this->giftcard_number, [
    'giftcard_number'           => $this->giftcard_number,
    'giftcard_amount'           => $this->giftcard_amount,
    'remaining_giftcard_amount' => $this->remaining_giftcard_amount,
]),
  • Add the below code in the OrderResource file in Transformers folder
'giftcard_amount'          => $this->giftcard_amount,
'giftcard_number'          => $this->giftcard_number,

That's it, now just execute the project on your specified domain.

Giftcard version v2.2.2

07 Aug 10:25
eb9ddc8
Compare
Choose a tag to compare

This tag is compatible with the Bagisto version v2.2.2.

  • In this version, the process for adding items to the cart has been updated, as Bagisto removed the use of Traits.
  • Made changes to the menu items in the navigation file.

Requirements:

  • Bagisto: v2.2.2
  • PHP: 8.1 or higher
  • Composer 2.6.3 or higher

Installation :

Unzip the respective extension zip and then merge "packages" folder into project root directory

  • Goto config/app.php file and add following line under 'providers'
Webkul\Giftcard\Providers\GiftcardServiceProvider::class
  • Goto composer.json file and add following line under 'psr-4'
"Webkul\\Giftcard\\": "packages/Webkul/Giftcard/src"
  • Run these below commands to complete the setup:
composer dump-autoload
php artisan migrate
php artisan optimize:clear
  • Run the below command and select the Giftcard Service provider from the selection :
php artisan vendor:publish --force
  • Include the PayPal credentials in the loadPayPalScript method. Additionally, ensure that the credentials are entered in the PayPal payment gateway section within the Bagisto admin panel.

  • Add the mail credentials in the .env file to receive the giftcard via email.

  • Add the below code in the CartResource File after the payment_method_title :

$this->mergeWhen($this->giftcard_number, [
    'giftcard_number'           => $this->giftcard_number,
    'giftcard_amount'           => $this->giftcard_amount,
    'remaining_giftcard_amount' => $this->remaining_giftcard_amount,
]),
  • Add the below code in the OrderResource file in Transformers folder
'giftcard_amount'          => $this->giftcard_amount,
'giftcard_number'          => $this->giftcard_number,

That's it, now just execute the project on your specified domain.

Giftcard version v2.0.0

07 Aug 10:20
eb9ddc8
Compare
Choose a tag to compare

This tag is compatible with the Bagisto version v2.0.0

Requirements:

  • Bagisto: v2.0.0
  • PHP: 8.1 or higher
  • Composer 2.6.3 or higher

Installation :

Unzip the Brainstream.zip file and move the extracted folder to the bagisto/packages directory.

  • Goto config/app.php file and add following line under 'providers'
Brainstream\Giftcard\Providers\GiftcardServiceProvider::class
  • Goto composer.json file and add following line under 'psr-4'
"Brainstream\\Giftcard\\": "packages/Brainstream/Giftcard/src"
  • Run these below commands to complete the setup:
composer dump-autoload
php artisan migrate
php artisan optimize:clear
  • Run the below command and select the Giftcard Service provider from the selection :
php artisan vendor:publish --force
  • Include the PayPal credentials in the loadPayPalScript method. Additionally, ensure that the credentials are entered in the PayPal payment gateway section within the Bagisto admin panel.

  • Add the mail credentials in the .env file to receive the giftcard via email.

  • Add the below code in the CartResource File after the payment_method_title :

$this->mergeWhen($this->giftcard_number, [
    'giftcard_number'           => $this->giftcard_number,
    'giftcard_amount'           => $this->giftcard_amount,
    'remaining_giftcard_amount' => $this->remaining_giftcard_amount,
]),

That's it, now just execute the project on your specified domain.