Skip to main content

Getting an error when trying to pay affiliates

More
8 years 1 month ago #297212 by rufusr
-- HikaShop version -- : 5.5.1
-- Joomla version -- : 3.8.11
-- PHP version -- : 5.6.37
-- Browser(s) name and version -- : Chrome 68.0.3440.106
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Class 'Text' not found in /administrator/components/com_hikashop/views/user/tmpl/pay.php on line 19

When I click on the pay now button, I get this error - Fatal error: Class 'Text' not found in /administrator/components/com_hikashop/views/user/tmpl/pay.php on line 19

The affiliate payment process worked fine until we updated to HikaShop 3.5.1...

Thanks in advance for your assistance...

Blessings,
Rufus

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297214 by Jerome
Hello,

Thank you for the report.
You can re-download HikaShop 3.5.1 package (not 5.5.1) to get the fix.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297223 by rufusr
Sorry, for the type-o and confusion... We are using HikaShop version 3.5.1, not 5.5.1.

Thanks,

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297237 by nicolas
Hi,

Note that there was a mis communication on our end and the package was only updated now on our end. So if you downloaded it before, you need to download it again and install it again to get the patch.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297274 by rufusr
Hello Nicolas,

Downloaded and installed the latest version (3.5.1) of HikaShop as of yesterday and still getting the same error...

Rufus

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago - 8 years 1 month ago #297285 by Philip
Hello,

the best way to progress on the subject, you have to go directly to the file (\YourWebSite\administrator\components\com_hikashop\views\user\tmpl\pay.php) and check that you have this around line 2 to 12 :

<form action="index.php?option=com_hikashop&amp;ctrl=user" method="post" name="adminForm" id="adminForm">
<?php
echo JText::sprintf('PAY_X_TO_X', $this->currencyHelper->format($this->user->accumulated, $this->user->user_currency_id), @$this->user->name.' ('.$this->user->user_partner_email.')') .
'<br/>';
echo JText::sprintf('REDIRECTION_FOR_PAYMENT', $this->method) .
'<br/>';
echo JHTML::_('hikaselect.booleanlist', "pay", '', 0) .
'<br/>';
echo JText::_('AFFILIATE_PAYMENT_WARNING') .
'<br/>';
?>


And if not, and especially the red part, correct it to have the same code and see if that solve your issue.

Regards
Last edit: 8 years 1 month ago by Philip.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297324 by rufusr
Hello Philip,
I changed the part of the code which was different:
from echo Text::_('AFFILIATE_PAYMENT_WARNING') . to echo JText::_('AFFILIATE_PAYMENT_WARNING') .
This edit cleared the error, however the process does not continue once the proceed button is clicked. Displays a message - WARNING ! Turning on this option will disable HikaShop pages on your website frontend !
When I click ok it does nothing...
Please advise...

Rufus

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago - 8 years 1 month ago #297337 by Philip
Hello,

Can you provide elements to be able to reproduce your issue on your website ?
Like affiliate account references and a step by step process.

Note : Use our Contact us form to provide secret references and don't forget to add in your message an Url link to this topic.

Awaiting news from you.

Regards
Last edit: 8 years 1 month ago by Philip.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297375 by nicolas
Hi,

We were able to reproduce that new issue and made a patch again.
Download again the install package on our website and install it on yours and you'll get that patch too.
Alternatively, in that same file, you can change the line:
Code:
<input type="button" name="pay_confirm" class="btn" value="<?php echo JText::_('PROCEED');?>" onclick="if(alert('<?php echo JText::_('STORE_OFFLINE_WARNING',true); ?>')){ document.adminForm.submit(); } else { return fase; }" />
to:
Code:
<input type="button" name="pay_confirm" class="btn" value="<?php echo JText::_('PROCEED');?>" onclick="if(confirm('<?php echo JText::_('PROCESS_CONFIRMATION',true); ?>')){ document.adminForm.submit(); } else { return false; }" />

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #297382 by rufusr
Thanks Nicolas,
Problem solved...
You guys are the greatest!!!

Blessings!
Rufus

Please Log in or Create an account to join the conversation.

Time to create page: 0.410 seconds
Powered by Kunena Forum