Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin subscription module #73

Open
wants to merge 3 commits into
base: openCart_subscription
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions install.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Razorpay Payment Extension</name>
<code>razorpay_payment_extension</code>
<version>4.0.2</version>
<author>Razorpay Team</author>
<link>https://github.com/razorpay/razorpay-opencart</link>
<description>Razorpay Subscription Module menu</description>

<file path="admin/controller/common/column_left.php">
<operation error="skip">
<search><![CDATA[// System]]></search>
<add position="before"><![CDATA[
/* Admin Side menu */
$adminmenus = array();

if ($this->user->hasPermission('access', 'extension/payment/razorpay')) {
$adminmenus[] = array(
'name' => 'Plans',
'href' => $this->url->link('extension/payment/razorpay/getPlan', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);

}
if ($this->user->hasPermission('access', 'extension/payment/razorpay')) {
$adminmenus[] = array(
'name' => 'Subscriptions',
'href' => $this->url->link('extension/payment/razorpay/getSubscription', 'user_token=' . $this->session->data['user_token'], true),
'children' => array()
);

}

if ($adminmenus) {
$data['menus'][] = array(
'id' => 'menu-megafooter',
'icon' => 'fa fa-share-alt fa-fw',
'name' => 'Razorpay Subscription',
'href' => '',
'children' => $adminmenus
);
}

/* Admin menu */ ]]></add>
</operation>
</file>

</modification>
Binary file added razorpay-opencart_4.0.2.ocmod.zip
Binary file not shown.
Loading