- Posts: 21
- Thank you received: 0
Submit button is not displaying on Checkout Page
6 years 2 months ago - 6 years 2 months ago #323524
by ajdev33
Submit button is not displaying on Checkout Page was created by ajdev33
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3
Hello,
I am not getting a "submit" button in the payment section of checkout for purchase order or any other custom payment method.
Here is my code for needCC function. The input field is displaying but to submit its value, I am not getting submit button.
So can you please let me know why this is not showing or is there any setting which needs to enable in admin panel ?
Also when I click on finish button on checkout page then page reloads and again I have to click again to complete order. I don't know if there is any setting to fix this. Please suggest me any solution to fix these issues.
As per my debugging, I found the there is code "$this->method->custom_html" to render custom html written in custom payment method but there is not code to submit values selected in custom fields.
So if there is any method to show Submit button here please let me know.
Thanks
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3
Hello,
I am not getting a "submit" button in the payment section of checkout for purchase order or any other custom payment method.
Here is my code for needCC function. The input field is displaying but to submit its value, I am not getting submit button.
Code:
public function needCC(&$method) {
$method->custom_html = '<span style="margin-left:10%">' . JText::_('PURCHASE_ORDER_NUMBER') .
'<input type="text" class="hikashop_purchase_order_number inputbox required" name="hikashop_purchase_order_number" value="'.@$_SESSION['hikashop_purchase_order_number'].'"/> *</span>';
}
So can you please let me know why this is not showing or is there any setting which needs to enable in admin panel ?
Also when I click on finish button on checkout page then page reloads and again I have to click again to complete order. I don't know if there is any setting to fix this. Please suggest me any solution to fix these issues.
As per my debugging, I found the there is code "$this->method->custom_html" to render custom html written in custom payment method but there is not code to submit values selected in custom fields.
So if there is any method to show Submit button here please let me know.
Thanks
Last edit: 6 years 2 months ago by ajdev33.
Please Log in or Create an account to join the conversation.
6 years 2 months ago #323542
by nicolas
Replied by nicolas on topic Submit button is not displaying on Checkout Page
Hi,
The checkout does display the submit button for the purchase order input field on my end.
I checked the code and the only reason the button wouldn't display would be if you removed it from the "show_block_payment" view file, or you hide it with CSS, or you added an attribute custom_html_no_btn to the $method object as to not display the button.
So I guess we would need to check the situation on your checkout to be able to see what's going on.
Do you have other payment methods ?
Could you provide a link to the shop and instructions to access the payment selection easily ?
The checkout does display the submit button for the purchase order input field on my end.
I checked the code and the only reason the button wouldn't display would be if you removed it from the "show_block_payment" view file, or you hide it with CSS, or you added an attribute custom_html_no_btn to the $method object as to not display the button.
So I guess we would need to check the situation on your checkout to be able to see what's going on.
Do you have other payment methods ?
Could you provide a link to the shop and instructions to access the payment selection easily ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds