Subscription rates disappear from Subscription Type pull down menu

Hello, This is on OJS 3.3.0.10.

The subscription rate(price) details do not show up in the listing of the SUBSCRIPTION TYPE pull-down menu. The rates ARE in the subscription type setup page for each entry. Is there some switch that turns off this display?

Thank you!

image

Hi @radjr,

Do you have payments enabled and setup under Distribution - > Payments? I wonder if this might affect this?

-Roger
PKP Team

Thanks Roger,

Yes, we have payments enabled. See below.

image

A little more investigation reveals that Individual subscriptions DO have the price included. Institutional subscriptions do NOT. Can someone at OJS confirm this please and explain why the change from 2.4.x?

Thank you!

Individual Subscription below.
image

Institutional Subscriptione here:
image

Hi @radjr,

Thanks for investigating further. Not sure why this is the case, but I’ll see if a member of our team can follow-up about this when they are available.

Best regards,

Roger
PKP Team

A little more detail it it helps!

Institutional - No rates pulled in…

<div** class=“page-header”>

Purchase Institutional Subscription


		<form class="cmp_form purchase-subscription" method="post" id="subscriptionForm" action="https://ojs2.wmpllc.org/ojs/index.php/jom/user/payPurchaseSubscription/institutional">
	<input type="hidden" name="csrfToken" value="6f48eead7909bd5baf862e5b4af47a18">

	
	<div class="form-group">
		<label for="subscription-type">
			Subscription Type
		</label>
		<select name="typeId" id="typeId" class="form-control" required>
								<option value="3">US Corporate Print Only</option>
								<option value="20">US Corporate Print + Online 1-400 users</option>
								<option value="21">US Corporate Print + Online 401-1000 users</option>
								<option value="22">US Corporate Print + Online 1001-2500 users</option>
								<option value="23">US Corporate Print + Online 2501-4000 users</option>
								<option value="24">US Corporate Print + Online 4001-10,000 users</option>
								<option value="25">US Corporate Print + Online 10,001-15,000 users</option>
								<option value="26">US Corporate Print + Online 15,001-20,000 users</option>
								<option value="27">US Corporate Print + Online 20,001 + users</option>
								<option value="59">US LIBRARY Print Only</option>
								<option value="60">US LIBRARY Print + Online 1-400 FTE</option>
								<option value="61">US LIBRARY Print + Online 401-1000 FTE</option>
								<option value="62">US LIBRARY Print + Online 1001-2500 FTE</option>
								<option value="63">US LIBRARY Print + Online 2501-4000 FTE</option>
								<option value="64">US LIBRARY Print + Online 4001-10,000 FTE</option>
								<option value="65">US LIBRARY Print + Online 10,001-15,000 FTE</option>
								<option value="66">US LIBRARY Print + Online 15,001-20,000 FTE</option>
								<option value="67">US LIBRARY Print + Online 20,000+ FTE</option>
								<option value="303">LIBRARY Online Only 1-400 FTE</option>
								<option value="312">LIBRARY Online Only 401-1000 FTE</option>
								<option value="322">LIBRARY Online Only 1001-2500 FTE</option>
								<option value="323">LIBRARY Online Only 2501-4000 FTE</option>
								<option value="314">LIBRARY Online Only 4001-10,000 FTE</option>
								<option value="324">LIBRARY Online Only 10,001-15,000 FTE</option>
								<option value="325">LIBRARY Online Only 15,001-20,000 FTE</option>
								<option value="326">LIBRARY Online Only 20,001+ FTE</option>
								<option value="30">Canadian Corporate Print Only</option>
								<option value="31">Canadian Corporate Print + Online 1-400 users</option>
								<option value="32">Canadian Corporate Print + Online 401-1000</option>
								<option value="33">Canadian Corporate Print + Online 1001-2500</option>
								<option value="34">Canadian Corporate Print + Online 2501-4000</option>
								<option value="35">Canadian Corporate Print + Online 4001-10,000</option>
								<option value="36">Canadian Corporate Print + Online 10,001-15,000</option>
								<option value="37">Canadian Corporate Print + Online 15,001-20,000</option>
								<option value="38">Canadian Corporate Print + Online 20,001+</option>
								<option value="68">Canadian LIBRARY Print Only</option>
								<option value="69">Canadian LIBRARY Print + Online 1-400 FTE</option>
								<option value="70">Canadian LIBRARY Print + Online 401-1000 FTE</option>
								<option value="71">Canadian LIBRARY Print + Online 1001-2500 FTE</option>
								<option value="72">Canadian LIBRARY Print + Online 2501-4000 FTE</option>
								<option value="73">Canadian LIBRARY Print + Online 4001-10,000</option>
								<option value="74">Canadian LIBRARY Print + Online 10,001-15,000</option>
								<option value="75">Canadian LIBRARY Print + Online 15,001-20,000</option>
								<option value="76">Canadian LIBRARY Print + Online 20,000+</option>
								<option value="41">Foreign Corporate Print Only</option>
								<option value="42">Foreign Corporate Print + Online 1-400 users</option>
								<option value="43">Foreign Corporate Print + Online 401-1000</option>
								<option value="44">Foreign Corporate Print + Online 1001-2500</option>
								<option value="45">Foreign Corporate Print + Online 2501-4000</option>
								<option value="46">Foreign Corporate Print + Online 4001-10,000</option>
								<option value="47">Foreign Corporate Print + Online 10,001-15,000</option>
								<option value="48">Foreign Corporate Print + Online 15,001-20,000</option>
								<option value="49">Foreign Corporate Print + Online 20,000+</option>
								<option value="50">Foreign LIBRARY Print Only</option>
								<option value="51">Foreign LIBRARY Print + Online 1-400 FTE</option>
								<option value="52">Foreign LIBRARY Print + Online 401-1000</option>
								<option value="53">Foreign LIBRARY Print + Online 1001-2500</option>
								<option value="54">Foreign LIBRARY Print + Online 2501-4000</option>
								<option value="55">Foreign LIBRARY Print + Online 4001-10,000</option>
								<option value="56">Foreign LIBRARY Print + Online 10,001-15,000</option>
								<option value="57">Foreign LIBRARY Print + Online 15,001-20,000</option>
								<option value="58">Foreign LIBRARY Print + Online 20,000+</option>
								<option value="415">Test Corpo</option>

VERSUS the Individual…

Purchase Individual Subscription

<form class="cmp_form purchase-subscription" method="post" id="subscriptionForm" action="https://ojs2.wmpllc.org/ojs/index.php/jom/user/payPurchaseSubscription/individual/1">
	<input type="hidden" name="csrfToken" value="6f48eead7909bd5baf862e5b4af47a18">

	<div class="form-group">
		<label for="subscription-type">
			Subscription Type
		</label>
		<select name="typeId" id="typeId" class="form-control">
								<option value="307">US Corporate Print + Online 1-400 users (768 USD)</option>
								<option value="367">US Corporate Print Only (614 USD)</option>
								<option value="398">Corporate Online Only 1-400 users (738 USD)</option>
								<option value="1">US Individual Print Only - home address delivery only (402 USD)</option>
								<option value="2">US Individual Print + Online - home address delivery only (486 USD)</option>
								<option value="319">Individual Online Only (442 USD)</option>
								<option value="28">Canadian Individual Print Only - home address delivery only (408 USD)</option>
								<option value="29">Canadian Individual Print + Online - home address delivery only (493 USD)</option>
								<option value="394">Canadian Corporate Print Only (636 USD)</option>
								<option value="395">Canadian Corporate Online Only 1-400 FTE&#039;s (738 USD)</option>
								<option value="39">Foreign Individual Print Only - home address delivery only (458 USD)</option>
								<option value="40">Foreign Individual Print + Online - home address delivery only (555 USD)</option>
								<option value="392">Foreign Corporate Print Only (661 USD)</option>
								<option value="393">Foreign Corporate Online Only 1-400 FTE&#039;s (738 USD)</option>
								<option value="414">Test Sub Typoe (12345 USD)</option>
						</select>
	</div>

Hi @radjr,

Can someone at OJS confirm this please and explain why the change from 2.4.x?

A lot of things got rewritten from 2.x to 3.x, and this was probably an inadvertent change.

At a glance, you should be able to get more details to display by changing {$subscriptionType->getLocalizedName()|escape} to {$subscriptionType->getSummaryString()|escape} in templates/frontend/pages/purchaseInstitutionalSubscription.tpl. If you can confirm that, I can get it included for the next release.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

No Joy. I cleared the template cache too. No luck. I don;t see any change. Is there something else I should be doing go load the changed code? Thanks, radjr

image

Good Day Folks, Are there any additional thoughts or changes to the code that I can try for you?

Hi @radjr,

I’ve verified that the change proposed above works as expected. If you’re not seeing the change on your server it’s probably because of file permissions problems in cache/t_compile that are preventing OJS from recompiling the modified template.

Filed and fixed here: Indicate institutional subscription price on purchase form · Issue #8340 · pkp/pkp-lib · GitHub

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks Alec. I flipped the install switch and came up with this output below. Is there some other process that need access. Permissons for cache/t_compile/ are radjr1:apache. Maybe it should be radjr1:radjr1 with radjr1 being the owner? Thanks!

Pre-Installation Steps

  1. The following files and directories (and their contents) must be made writable:
  • config.inc.php is writable (optional): Yes
  • public/ is writable: Yes
  • cache/ is writable: Yes
  • cache/t_cache/ is writable: Yes
  • cache/t_compile/ is writable: Yes
  • cache/_db is writable: Yes

We are still NOT getting this change to propagate. We have the proper rights. When we clear data and template caches we can see the files vanish and get recreated as needed in the t_compile folder, etc.

Does this change for for OJS 3.3.0.10 which is what we are currently testing? Or is there some dependency to be running OJS 3.3.0-13?

I do not see a file containing purchaseInstitutionalSubscription.tpl being created in the t_compile folder. Is this going somewhere else?

OK. I can confirm that this works when VERSION 3.3.0-13 is installed. It would did NOT work with 3.3.0.10. To confirm, I upgraded to 3.3.0-13.

radjr

I can also confirm that if you select other themes like Health sciences or Pragma, the pricing vanishes. Switching back to the default theme and the prices reappear!

Hi @radjr,

If you’re using other themes, then you’ll need to apply the change above to the same file (templates/frontend/pages/purchaseInstitutionalSubscription.tpl) in that theme’s directory (e.g. templates/themes/pragma/templates/frontend/pages/purchaseInstitutionalSubscription.tpl) – until a new version of the theme is released including the change.

There is no difference between 3.3.0-10 and 3.3.0-13 in this regard; I suspect you were encountering the theme issue or file permissions problems, not differences between 3.3.0-10 and 3.3.0-13.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks Alec. So that proves that you are still the jedi master and that I am at least NOT crazy!

This topic was automatically closed after 13 days. New replies are no longer allowed.