• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[MyAAC][Plugin] Gesior Shop System

I added a new category. It has a number of ids and extra items. Same as item But if I try to add something to it I get: Type of offer not supported. If I try to add in any other category it works normally.
How do I solve it? Did I probably do something wrong?

-------

Is it possible to change as place categories? Change their position? Thanks
 
I added a new category. It has a number of ids and extra items. Same as item But if I try to add something to it I get: Type of offer not supported. If I try to add in any other category it works normally.
How do I solve it? Did I probably do something wrong?

-------

Is it possible to change as place categories? Change their position? Thanks
It is possible to change yes, you need to access your database and in the table z_shop_categories you can change the name and description, or even add / remove a category. It is worth remembering that the value of the name column is what will refer to it by the z_shop_offers table in your database.
Example:1611318408288.png
 
It is possible to change yes, you need to access your database and in the table z_shop_categories you can change the name and description, or even add / remove a category. It is worth remembering that the value of the name column is what will refer to it by the z_shop_offers table in your database.
Example:View attachment 54043

Great. Thank you very much.


What about adding a new category? Does anyone know why I get: "Unsupported offer type" when I try to add an item to the newly created category?
 
Great. Thank you very much.


What about adding a new category? Does anyone know why I get: "Unsupported offer type" when I try to add an item to the newly created category?

Try using the admin-add.html.twig file located in the system / templates / gesior-shop-system / admin-add.html.twig directory

You will add a new <option> to the select tag in line 3:

1611367241110.png

And in the function updateFields you add the new category.

1611367319136.png

Then in your gifts.php file you should add the new category as well.

1611367389077.png
Remember that I did it using version 2.0 of the gesior-shop-system, I didn't get to test the latest version at 2.2. but I believe that even in the latest version, the way of adding it should look like this.
 

Attachments

I am using MyAAC. Anyway, I'm going to test in a little while, and I'll come back to tell you the results.
 
Try using the admin-add.html.twig file located in the system / templates / gesior-shop-system / admin-add.html.twig directory

You will add a new <option> to the select tag in line 3:

View attachment 54057

And in the function updateFields you add the new category.

View attachment 54058

Then in your gifts.php file you should add the new category as well.

View attachment 54060
Remember that I did it using version 2.0 of the gesior-shop-system, I didn't get to test the latest version at 2.2. but I believe that even in the latest version, the way of adding it should look like this.

Perfect man! Thanks!

@Edit

I can now add items in a new category. Perfect More because the images do not appear. Look for an old solution (previous page in this topic) that changes:
Lua:
if($item_type == "item" || $item_type == "container" || $item_type == "NEWCategory") {
                    $item_id = isset($item['item_id']) ? $item['item_id'] : null;
                    if ($item_id) {
                        $offers_fetch[$id]['item_img'] = getItemImage($item_id);
                    }

But I haven't been successful yet.


I also noticed that in www.MySITE / Admin, in the GIFTs part .. In INFORMATION it usually displays: "Item ID: 5258, count: 1". When I add a new item in the ITEM category. And in the new category, when I add it is empty.
 
Last edited:
Hi there! Buying points doesn't seem to work for me, I get redirected back to my webpage with an error and no points are added, would you have any idea on why that is? :( Haven't changed anything else than changing the paypal mail adress.

Using MyAAC 0.8.3, TFS 1.3.

Edit; Also when I try to buy something from my extra categories which I've added I get this error;

1611622792774.png
I've added the category/offer type into gifts.php and the .twig

Edit2; Reinstalled the entire MYAAC and Gesior shop system, now I get this error when paypal is redirecting me back to my page.

1611691474113.png
 

Attachments

Last edited:
Perfect man! Thanks!

@Edit

I can now add items in a new category. Perfect More because the images do not appear. Look for an old solution (previous page in this topic) that changes:
Lua:
if($item_type == "item" || $item_type == "container" || $item_type == "NEWCategory") {
                    $item_id = isset($item['item_id']) ? $item['item_id'] : null;
                    if ($item_id) {
                        $offers_fetch[$id]['item_img'] = getItemImage($item_id);
                    }

But I haven't been successful yet.


I also noticed that in www.MySITE / Admin, in the GIFTs part .. In INFORMATION it usually displays: "Item ID: 5258, count: 1". When I add a new item in the ITEM category. And in the new category, when I add it is empty.
To solve the items problem, you can use this tutorial to export your items in .png


After that go to config.php and go to 'item_images_url' there you define the folder directory that will contain your items in .png
 
To solve the items problem, you can use this tutorial to export your items in .png


After that go to config.php and go to 'item_images_url' there you define the folder directory that will contain your items in .png

My photos are PNG, I have selected the correct folder. So much so that the photos in the "Item" category appear. The new category does not.
 
This plugin requires php extension: curl to be installed.

I want helping just have a curl installed. But when try pluging that received this message.

Thanks for helping

1611766126462.png
 
Hi! Found a bug where the shop system won't work to add points if you use gmail, atleast it didn't work for me. - but it works when I use my old paypal which is an @outlook.com
 
It works, just this screen shows up.



In system/templates/gesior-shop-system/admin-offers-add.html.twig

Change:
Code:
if(value == 'item') {

To:
Code:
if(value == 'item' || value == 'armor') {

Where "armor" is your new category name.



Keeping trying to add new categories. I followed the steps mentioned here in this topic (a few ago) and even so, when I add, and try to buy, the site returns me:

"The following errors occurred: Offer type not supported. "
 
Hello Dear,

In my ITEM shop dont show the images:

1613094404270.png

How its solved?

Thanks
 
Keeping trying to add new categories. I followed the steps mentioned here in this topic (a few ago) and even so, when I add, and try to buy, the site returns me:

"The following errors occurred: Offer type not supported. "

Can anyone guide me to create new categories correctly? I want "Knight, Paladin, Sorcerer, Druid".

View attachment 55020
 
Hi All,

Please can you helm here, I'm trying to use paypal. Once I made the payment it's returning me to the main server page only and no coins are added to the account. When I look the error-paypal.log file I can see:

[Tue, 16 Feb 2021 01:33:20 -0300] PayPal is not correctly configured. Please edit the configuration file. Payment email is '', your email: [email protected]. It needs to be the same.

If I check config file in plugins/gesior-shop-system/config.php It looks like is configured properly:


/**
* paypal.com configuration
*/
$config['paypal'] = array(
'enabled' => true,
'email' => '[email protected]',
'contact_email' => '[email protected]', // if empty, email is used
'item_name' => 'xxxxxx donation.',
'payment_type' => '_xclick', // '_xclick' (Buy Now) or '_donations'
'currency_code' => 'USD', // https://developer.paypal.com/docs/integration/direct/rest/currency-codes/
'use_sandbox' => false, // set to true if you want to test IPN in sandbox mode
'terms' => true, // display terms?
'options' => array( // cost in EUR => points
'0.1' => 50,
'5.00' => 250,
'10.00' => 600,
'20.00' => 1400

My site its HTTPS. I've put everything in dev mode for cache cleaning but still have same issue. Tried to use Outlook/Gmail Paypal account and same issue.

Any suggestion? thanks in advance.
 
Hi All,

Please can you helm here, I'm trying to use paypal. Once I made the payment it's returning me to the main server page only and no coins are added to the account. When I look the error-paypal.log file I can see:

[Tue, 16 Feb 2021 01:33:20 -0300] PayPal is not correctly configured. Please edit the configuration file. Payment email is '', your email: [email protected]. It needs to be the same.

If I check config file in plugins/gesior-shop-system/config.php It looks like is configured properly:


/**
* paypal.com configuration
*/
$config['paypal'] = array(
'enabled' => true,
'email' => '[email protected]',
'contact_email' => '[email protected]', // if empty, email is used
'item_name' => 'xxxxxx donation.',
'payment_type' => '_xclick', // '_xclick' (Buy Now) or '_donations'
'currency_code' => 'USD', // https://developer.paypal.com/docs/integration/direct/rest/currency-codes/
'use_sandbox' => false, // set to true if you want to test IPN in sandbox mode
'terms' => true, // display terms?
'options' => array( // cost in EUR => points
'0.1' => 50,
'5.00' => 250,
'10.00' => 600,
'20.00' => 1400

My site its HTTPS. I've put everything in dev mode for cache cleaning but still have same issue. Tried to use Outlook/Gmail Paypal account and same issue.

Any suggestion? thanks in advance.

The same thing happened to me. It's Case Sensitive! That is, upper and lower case has a difference in this case. The creation email (from the website) must be the same email that is configured in your paypal.
 
The same thing happened to me. It's Case Sensitive! That is, upper and lower case has a difference in this case. The creation email (from the website) must be the same email that is configured in your paypal.
I've checked and even changed the config in config.php of my-acc adding same email of paypal account but still have the problem :( any other suggestion? I have same in config.php of my-acc and config.php in gesior-shop-system plugin.

thanks in advance.
 
I've checked and even changed the config in config.php of my-acc adding same email of paypal account but still have the problem :( any other suggestion? I have same in config.php of my-acc and config.php in gesior-shop-system plugin.

thanks in advance.

Config.local.php / $config['mail_admin'] = ''; ?
 
Back
Top