By RIYAS on Thursday, 28 December 2017
Posted in General Issues
Replies 13
Likes 0
Views 1.2K
Votes 0
Hi, I set some Additional fields while subscribe a plan. After activate a plan. when i try to upgrade a plan. My additional fields values are not carry now.

But when i do earlier its worked... can you Pls help me to fix.
Perhaps you update your Joomla backend and FTP access at http://stackideas.com/dashboard/site so we can better have a check?
·
Thursday, 28 December 2017 21:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry we are working with some other components so we con't share our FTP are any site back-end. Any other solution.
·
Thursday, 28 December 2017 21:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, that was very difficult for us to know what is the issue caused this issue without access FTP and backend.

We will see if you provide us following these details whether will better understand your issue currently.

- Do you have make any changes from your subscription details?

- Do you have done any customisation in previously regarding this part?

- Can you share some of the screenshot how you add those additional fields from your existing subscription plan?

- Can you share some of the screenshot or provide us some of the instruction how to replicate this issue so we can try into our locally and see if we can replicate this issue or not.
·
Friday, 29 December 2017 11:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
We misunderstood User Details and Subscription Details now it is clear but we need some more info.
There is Plan A and Plan B

Plan A has Name, Age, Message (Subscription Details) when I upgrade to Plan B Plan A subscription details not carry forward it asking to enter the fields. But we want Plan A's Subscription Details fields should automatically apply in Plan B Only upgrade from Plan A to Plan B. If User select Plan B directly then it should ask to enter the value.

Is it possible?
·
Thursday, 04 January 2018 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Riyas,

Subscription Details are belong to subscription only, every subscription have different subscription details. If you want to carry forward plan1 subscription details to Plan 2 then you need to customize the code.n.

User details will be same for all plans but subscription details will be different for each subscription.
Let me know if you have any confusion
·
Thursday, 04 January 2018 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
Thank you for the detail is there any way I can get any information while upgrading for eg: If I upgrade from Plan A to Plan B can I get any information from Plan A such as Subscription Id, Plan ID or anything so that I can differentiate whether user upgrading or newly subscribe of that Plan B.
·
Friday, 05 January 2018 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Riyas,

When upgrading plan we save older subscription id into upgrade subscription. You can see in params field.
We save the fields with name upgrading_from and upgrading_to.

You can find this details from these params. Let me know if you need any assistance.
·
Friday, 05 January 2018 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
Can you help me to get upgrading_from value in Plan Subscription Page so that we will get the Previous Plan's detail and auto fill the upgrading plans or can you give better solution for filling details from previous plan because we are passing Subscription Details information through HTTP Query.
·
Friday, 05 January 2018 21:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Riyas,

To get Upgrading from value in subscription , you need to work on subscription detail app.
Do the changes in following file : rootplugins//payplans/subscriptiondetail/subscriptiondetail/app/subscriptiondetail/subscriptiondetail.php (see attached screen shot.)

To get previous subscription detail use below mentioned code

$order = $subscription->getOrder(PAYPLANS_INSTANCE_REQUIRE);
$upgrading_from = $order->getParam('upgrading_from',0);
if ($upgrading_from) {
$oldSubscription = PayplansSubscription::getInstance($upgrading_from);
$subDetails = $oldSubscription->getParams();
}


You need to work on this to assign previous values to new subscription.
·
Saturday, 06 January 2018 01:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
Thank you for the solutions we utilizes that code in the Plugin and one more thing we are using custom field type we are struggle to get the value in drop down can you help us to retrieve the value kindly check the code.


jimport('joomla.form.formfield');

class JFormFieldSubparams extends JFormField
{
protected $type = 'Subparams';

// getLabel() left out

public function getInput()
{

$jinput = JFactory::getApplication()->input;

$user = & JFactory::getUser();
$usr_id = $user->get('id');
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query
->select(array('param_name'))
->from($db->quoteName('#__zparam'))
->where($db->quoteName('user_id')." = $usr_id");
$db->setQuery($query);
$result = $db->loadObjectList();

$opt = '<select id="subscription_detail_addi_subparam_name" name="subscription_detail[addi_subparam_name]" class="required form-control">';
foreach ($result as $value) {
if($value->param_name == $selected){
$opt .= "<option value='$value->param_name' selected='selected'>$value->param_name</option>";
}else{
$opt .= "<option value='$value->param_name'>$value->param_name</option>";
}
}
$opt .= "</select>";
return $opt;
}
}
·
Friday, 12 January 2018 21:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Riyas,

Can you please tell me what error is coming, so i can check it better.
Also tell me where you added this custom field file.
·
Friday, 12 January 2018 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post