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

(PO-209)(Opencart 4.0.1.1 support) #171

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

(PO-209)(Opencart 4.0.1.1 support) #171

wants to merge 14 commits into from

Conversation

rohitcbr
Copy link
Contributor

@rohitcbr rohitcbr commented Jan 8, 2025

Note :- Please follow the below points while attaching test cases document link below:

- If label Tested is added then test cases document URL is mandatory.

- Link added should be a valid URL and accessible throughout the org.

- If the branch name contains hotfix / revert by default the BVT workflow check will pass.

Test Case Document URL
Please paste test case document link here....

@rohitcbr rohitcbr marked this pull request as ready for review January 27, 2025 11:33
@rohitcbr rohitcbr added the TestingNotRequired TestingNotRequired label for BVT label Jan 27, 2025
@rohitcbr rohitcbr changed the title Opencart 4.0.1.1 support (PO-209)(Opencart 4.0.1.1 support) Jan 27, 2025
@@ -328,7 +349,11 @@ public function recurringPayments()

public function createOCSubscription($subscriptionData)
{
$query = "INSERT INTO `" . DB_PREFIX . "order_subscription` SET `order_product_id` = :order_product_id,";
if (VERSION >= '4.0.2.0') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohitcbr are we supporting subscription

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -515,7 +529,7 @@ public function getSubscription()
'total' => $subscription_total,
'page' => $page,
'limit' => 10,
'url' => $this->url->link('extension/razorpay/payment/razorpay.getSubscription', 'user_token=' . $this->session->data['user_token'] . $url . '&page={page}', true)
'url' => $this->url->link('extension/razorpay/payment/razorpay' . $this->separator . 'getSubscription', 'user_token=' . $this->session->data['user_token'] . $url . '&page={page}', true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohitcbr separator not required here as we are not providing subscription

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -190,7 +190,11 @@ public function index(): string {
$data['phone'] = $order_info['telephone'];
$data['name'] = $this->config->get('config_name');
$data['lang'] = $this->config->get('language_code');
$data['return_url'] = $this->url->link('extension/razorpay/payment/razorpay.callback', '', 'true');
if (VERSION >= '4.0.2.0') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohitcbr add separator instead of condition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -142,6 +143,24 @@
</div>
</div>
</div>
{% else %}
<div class="form-group" style="display: none;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohitcbr are we loading subscription and hiding for version < 4.0.2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abdulwahidsharief removed the else part and handled with isset

@@ -190,7 +198,7 @@ public function index(): string {
$data['phone'] = $order_info['telephone'];
$data['name'] = $this->config->get('config_name');
$data['lang'] = $this->config->get('language_code');
$data['return_url'] = $this->url->link('extension/razorpay/payment/razorpay.callback', '', 'true');
$data['return_url'] = $this->url->link('extension/razorpay/payment/razorpay' . $this->separator . 'callback', '', 'true');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohitcbr fix indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TestingNotRequired TestingNotRequired label for BVT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants