Multiple "Paid" packages not visible on upgrade page?

jeybird966368

New Member
YetiShare User
Dec 29, 2016
20
1
1
Greetings,

Just bought Yetishare and it's really great. So far nearly everything has been very easy to configure.
However I have run into a small issue, when configuring the "Paid" plans only one is visible on the upgrade page and I cannot seem to figure out why.



Is this not supported? The result is the same for both the Flow and Blue V2 themes.
 

henrikpontusjohansson4609

New Member
YetiShare User
Jan 3, 2015
5
0
0
Hello there.

I have been experiencing the same issues myself, only 1 paid account-package is possible.

I believe the problem lies within':
Code:
/themes/YOUR_THEME/templates/partial/_upgrade_boxes.inc.php

YOUR__THEME = e.g. flow
I will try to update if I come around a solution.

UPDATE:

I have solved it in a functional way, nothing fancy.
For the record I use Version 4.3.

I copied the code in:
Code:
/themes/YOUR_THEME/templates/partial/_upgrade_boxes.inc.php

YOUR__THEME = e.g. flow
And duplicated the entire code right below the first part. Make sure you don't miss or replace any characters!
This was the easy way since it's like a printing "do while" function.

Just make sure afterwards to change the following code to get it to work correctly.
Code:
// Original part
$package_level_id = $db->getValue('SELECT id FROM user_level WHERE on_upgrade_page = 1 AND level_type = \'paid\' LIMIT 1');

// Replace first part to get pricing info from (tier one)
$package_level_id = $db->getValue('SELECT id FROM user_level WHERE on_upgrade_page = 1 AND label = \'tier one\' LIMIT 1');

// Secondly replace the other part of the code the same way, notice (tier two)
$package_level_id = $db->getValue('SELECT id FROM user_level WHERE on_upgrade_page = 1 AND label = \'tier two\' LIMIT 1');

// Change (tier one) and (tier two) respectively to your pricing label(s)
Need any help just ask, for the record I'm terrible at, PHP, MySQL and just about any other languages there are.

Good luck!

Proof of concept:
 

muploadrosal

New Member
YetiShare User
Aug 8, 2017
13
0
1
Same problem here, this is a bug not show the 2nd packages after enable
On Upgrade Page: YES

This work for 4.4.1 ?
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

This isn't a bug, you need to use the upgrade_by_package.html page instead for multiple packages. You can rename this to upgrade.html if you want to use it instead.

Thanks,
Adam.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
muploadrosal said:
Where do you set this?
upgrade_by_package.html
On your url, example

http://fhscript.com/upgrade_by_package.html

If there's more than 1 paid package it'll show them. You'll need to re-style this as you want it.