[Skip to main content](#vessel-content)

#   Link to Akeeba Subscriptions malformed

##

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 8 months ago [\#91075](#91075) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#91075 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")* was created by *[ricm](/forum/user/13668-ricm "View ricm's Profile")*

When the Akeeba subscriptions plugin is installed a new block is created in the "Customer Account" screen. The standard three blocks are:
**Customer Account** (essentially a re-display of data from the Users table):
http://my-domain/index.php/component/users/profile?layout=edit
**Addresses:**
http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address
**Orders:**
http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order
The new block is:
**Subscriptions:**
http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#

The last entry is going nowhere. It ought to point to Akeeba's subscription page:
http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions
... where the meu type is: Akeeba Subscriptions » All of my subscriptions

PS: If Akeeba is installed *AFTER* Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.

One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item "Customer Account" confusingly repeats the main page heading "Customer Account" and would be better described along the lines of "Manage Username/Password"? or simply "Edit User Account".

Where can I hack these strings and repair link #4?

Ric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#91132](#91132) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#91132 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

Hi,

I just installed Akeeba Subs after HikaShop and installed the plugin.
On my end the link is working fine.

Are the subscriptions working ? Is the plugin between Akeeba and HikaShop well activated ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 8 months ago [\#91168](#91168) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  Replied by *[ricm](/forum/user/13668-ricm "View ricm's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#91168 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

Hello Xavier, yes. The plugin is installed and Hikashop passes data through to Akeeba as expected. On confirmation of order the subscription period is initiated. If I cancel an order the subscription period ends (highlighted pink in Akeeba Subs. If I re-enable the order, once again the subscription period is reinstated.

In fact the two components are working very well together in this respect - though with a lot of transactions, matching Hikashop orders to Akeeba subscriptions can be challenging.

This is the 2nd installation of the two components. Later this evening I'll try resinstalling akeeba subs and the plugin just to see if that has any effect.

THanks for helping,
Ric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#91183](#91183) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#91183 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

You can try to edit the view "user / cpanel" and in the foreach add a if like: Code:

if($oneButton['text'] == 'Subscriptions'){ $url = JURI::base().'/index.php?option=com_akeebasubs&amp;view=subscriptions'; }else { // original url }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 8 months ago [\#91398](#91398) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  Replied by *[ricm](/forum/user/13668-ricm "View ricm's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#91398 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

Hello again,

First, I probably did not edit the file correctly, but I have had no success in getting the control panel to work. Your suggestion may be correct - but I found myself spending too long editing and testing a file that will be overwritten at upgrade. In the end I took a workaround solution by not using cpanel but using individual menu items to achieve the same goals.

Thanks Xavier for your input.

Regards,
Ric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

13 years 8 months ago [\#91510](#91510) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#91510 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

Hi,

I'm glad you found a solution which works for you.

Please note that if you edit the file user/cpanel (or any other one) via the menu Display-&gt;Views you don't loose your changes when updating as the modifications are stored as template overrides.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 7 months ago -  13 years 7 months ago [\#92674](#92674) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  Replied by *[ricm](/forum/user/13668-ricm "View ricm's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#92674 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

Hello again,

I have kinda painted myself into a corner here.

Up till now registration has been through the process of adding products to a cart and forcing the new user to enter name, address etc. So far so good. I now find there are certain documents I do not want to be visible to non-registered users. I do not want to register users using the default Joomla interface otherwise new users can bypass name, address, etc that Hikashop neatly requests.

To make this work I activated the plugin to redirect Joomla Registration to Hikashop registration and that works fine. However, when I click "the "registration" menu option and the user is already logged in that user is returned to the cpanel (something I had carefully avaioded using separate menu items).

I have finally found the correct syntax for the mod Xavier suggested:
Code:

&lt;div class="hikashopcpanel" id="hikashopcpanel"&gt; &lt;?php foreach($this-&gt;buttons as $oneButton){ if($oneButton['text'] == 'Subscriptions'){ $url = JURI::base().'/index.php?option=com_akeebasubs&amp;view=subscriptions'; }else { $url = hikashop_level($oneButton['level']) ? 'onclick="document.location.href=\''.$oneButton['link'].'\';"' : ''; } ?&gt; &lt;div &lt;?php echo $url; ?&gt; class="icon hikashop_cpanel_icon_div"&gt;

I even changed the path to match exactly the URL obtained through a direct menu link:

Code:

&lt;div class="hikashopcpanel" id="hikashopcpanel"&gt; &lt;?php foreach($this-&gt;buttons as $oneButton){ if($oneButton['text'] == 'Subscriptions'){ $url = JURI::base().'/my-account/my-subscriptions/subscriptions'; &lt;&lt;=== this line changed }else { $url = hikashop_level($oneButton['level']) ? 'onclick="document.location.href=\''.$oneButton['link'].'\';"' : ''; } ?&gt; &lt;div &lt;?php echo $url; ?&gt; class="icon hikashop_cpanel_icon_div"&gt;

Irrespective of which URL completion string is used the result in the cpanel link is always:

> http://&lt;some-domain&gt;/index.php/component/hikashop/user/cpanel#

Is there a reason why the override is not being picked up (or rather a reason why the default is overriding the changes above?)

Or alternatively, redirect the logged-in user away from cpanel to some innocent page after choosing registration?

Thanks,
Ric

Last edit: 13 years 7 months ago by [ricm](/forum/user/13668-ricm "View ricm's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#92820](#92820) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#92820 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

Hi,

It should work with this code: Code:

if($oneButton['text'] == 'Subscriptions') $oneButton['link'] = JURI::base().'/index.php?option=com_akeebasubs&amp;view=subscriptions';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ricm](/forum/user/13668-ricm "View ricm's Profile")**
- [![ricm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13668-ricm "View ricm's Profile") Topic Author
- [ Offline](/forum/user/13668-ricm)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 7 months ago [\#92847](#92847) by [ricm](/forum/user/13668-ricm "View ricm's Profile")  Replied by *[ricm](/forum/user/13668-ricm "View ricm's Profile")* on topic *[Link to Akeeba Subscriptions malformed](/forum/3-bug-report/78563-link-to-akeeba-subscriptions-malformed#92847 "When the Akeeba subscriptions plugin is installed a new block is created in the &quot;Customer Account&quot; screen. The standard three blocks are: Customer Account (essentially a re-display of data from the Users table): http://my-domain/index.php/component/users/profile?layout=edit Addresses: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/address Orders: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2/order The new block is: Subscriptions: http://my-domain/index.php/my-area/hikashop-menu-for-user-control-panel-2#  The last entry is going nowhere. It ought to point to Akeeba's subscription page: http://my-domain/index.php/some-menu-item/some-sub-menu-item/subscriptions ... where the meu type is: Akeeba Subscriptions » All of my subscriptions  PS: If Akeeba is installed AFTER Hikashop I don't see how this link can ever be instantiated; the order has to be install Akeeba Subs --&gt; Install Hikashop --&gt; install Akeeba Plugin for Hikashop. The last one has somehow to write the link correctly.  One wonders also if the first two items could be better combined into a single edit screen like the Registration screen? If not then the default wording for the first item &quot;Customer Account&quot; confusingly repeats the main page heading &quot;Customer Account&quot; and would be better described along the lines of &quot;Manage Username/Password&quot;? or simply &quot;Edit User Account&quot;.  Where can I hack these strings and repair link #4?  Ric")*

I'm afraid it doesn't work - the results are as before:

> http://some-domain/index.php/component/hikashop/user/cpanel#

The change of URL does not affect the &lt;a&gt; link within the outer div:
Code:

&lt;div onclick="document.location.href='/some-domain/index.php/component/hikashop/order';" class="icon hikashop_cpanel_icon_div"&gt;

The link is here on the next line: Code:

&lt;a href="#"&gt; &lt;table class="hikashop_cpanel_icon_table"&gt; &lt;tr&gt;

As you can see, this is the source of the null ending on the URL. It also looks as though the javascript onclick event isn't triggered.
My workaround (whilst keeping the cpanel) has been to hard-code the table so that the 4th entry (for subscriptions) looks like this: Code:

&lt;div class="icon hikashop_cpanel_icon_div"&gt; &lt;a href="/some-domain/index.php?option=com_akeebasubs&amp;view=subscriptions"&gt; &lt;table class="hikashop_cpanel_icon_table"&gt; &lt;tr&gt; &lt;td class="hikashop_cpanel_icon_image"&gt; &lt;span class="hikashop_cpanel_icon_image_span icon-48-subscription" title="Subscriptions"&gt; &lt;/span&gt; &lt;span class="hikashop_cpanel_button_text"&gt;Subscriptions&lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;div class="hikashop_cpanel_button_description"&gt; &lt;ul&gt;&lt;li&gt;Show my subscriptions&lt;/li&gt;&lt;/ul&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/a&gt; &lt;/div&gt;

Not very versatile I know (it breaks with akeeba backup when transferring to a different site) but it does the job.

Ric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODU2My1saW5rLXRvLWFrZWViYS1zdWJzY3JpcHRpb25zLW1hbGZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.374 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
