Show Posts


Topics - shahiran12395

Pages: [1] 2
1
General Support / cart empty when view
« on: August 19, 2019, 11:29:10 PM »
Hi guys im having trouble with the cart. I already add the item to the cart but when i want to check the checkout/cart page it return an empty cart on certain pc while other pc it run smoothly. there no error listed in my error log so i cant figure out what happen to the item. can anyone advice me on how to fix it?

2
How-to questions / gridunload
« on: August 15, 2019, 12:01:17 AM »
hi. im trying to generate new column to product list table for admin using gridunload but its not working. can advice me on how to do it

Code: [Select]
var text_choose_action = <?php js_echo($text_choose_action); ?>;
var text_select_items = <?php js_echo($text_select_items); ?>;
var _table_id = '<?php echo $data['table_id'?>';
var table_id = '#<?php echo $data['table_id'?>';
var jq_names = [<?php
foreach($data['colNames'] as $col_name){
js_echo($col_name);
echo ',';
}
//echo "'" . implode("','", $data['colNames']) . "'"
?>
];
var jq_model = [<?php
$i 1;
foreach ($data['colModel'] as $m) {
$col = array('resizable: false''title: false''searchoptions: { sopt:[\'cn\'] }');
foreach ($m as $k => $v) {
if (is_string($v)) {
$col[] = "$k: '" addslashes($v) . "'";
} else if (is_int($v)) {
$col[] = "$k: " . (int)($v);
} else if (is_bool($v)) {
$col[] = "$k: " . ($v 'true' 'false');
}
}
echo "{" implode(','$col) . "}";
if ($i count($data['colModel'])) {
echo ',';
$i++;
}
echo "\r\n";
}
?>
];

var gridFirstLoad = true;

var updatePerPage = function(records, limit) {
var html='',
rowList = [<?php echo implode(','$data['rowList']) ?>];
for (var i = 0; i < rowList.length; i++) {
if (records > rowList[i]) {
html += '<option '
+ (rowList[i] == limit ? ' selected="selected" ' : '')
+'value="' + rowList[i] + '">'
+ rowList[i] + '</option>';
}
}
if (records <= 100) {
html += '<option '+ (records == limit ? ' selected="selected" ' : '') +'value="' + records + '"><?php echo $text_all ?></option>';
}
$(table_id + '_pager_center .ui-pg-selbox').html(html);
}

    $(table_id).jqGrid('GridUnload');

3
Templates / product list add new collumn
« on: August 12, 2019, 10:50:05 PM »
hi. i want to know how can i create new column to admin product list view in "rt=catalog/product"?

4
How-to questions / insert error into error log
« on: August 09, 2019, 05:08:37 AM »
Hi. im currently having difficulty to check whether each function i created run successfully or not because not shown at the error log. so how can i add error text to the error log so i can review it. is there any sample that i can follow on how you guys generate the error log.

5
How-to questions / add new required form field
« on: August 08, 2019, 03:20:58 AM »
Hi, im trying to add new required form field for guest checkout. But the field still can be blank without value. how can i appear error message like email field?

here is my code

Code: [Select]
if (isset($_post['nric'])){
            $nric = $_post['nric'];
        } elseif (isset($_session['guest']['nric'])){
            $nric = $_session['guest']['nric'];
        } else{
            $nric = '';
        }
        $this->data['form']['fields']['general']['nric'] = $form->getFieldHtml(
            array (
                'type'  => 'input',
                'name'  => 'nric',
                'value' => $nric,
                'required' => true,
            ));

6
How-to questions / free item
« on: August 07, 2019, 12:38:31 AM »
Hi guys, im wondering how the system handle item with price 0.00. Where can i see the controller?

7
Development Help Needed / send post data to new view
« on: July 25, 2019, 06:12:58 AM »
hi there, im creating new condition where if user exist in system2 the login controller will fetch the data from the system2 and auto register the user. so how can i auto submit the fetch data to rt='account/create'?

below is my code. i just need to post the data to account/create

Code: [Select]
//execute the POST request
                $result = curl_exec($ch);

                //close cURL resource
                curl_close($ch);

                if($result=="false"){
                    header('Location: ' . url.'?rt=account/login&false_entry_login_detail=1');
                    die();

                }
                $user_data = json_decode($result);

8
How-to questions / readonly input
« on: July 17, 2019, 12:27:09 AM »
hi guys. i want to create readonly or disable input attribute. how can i set it? i try adding 'readonly'=>true in each form array but not working

Code: [Select]
$this->data['form']['fields']['general']['phone_code'] = $form->getFieldHtml(
            array (
                'type'  => 'input',
                'name'  => 'phone_code',
                'value' => $phone_code,
                'readonly' => true
            ));

9
Development Help Needed / adding new input
« on: July 16, 2019, 04:25:02 AM »
hi, im trying to add new input. but the label wont show. i have register definition using admin also add new definition in guest_step_1.xml but still no effect. below is my code. can advice me on how to do it. i need to insert phone code for different country

Code: [Select]
<definition>
<key>entry_extension</key>
<value><![CDATA[Extension:]]></value>
</definition>

Code: [Select]
if (isset($_post['extension'])){
            $extension = $_post['extension'];
        } elseif (isset($_session['guest']['extension'])){
            $extension = $_session['guest']['extension'];
        } else{
            $extension = '';
        }

        $this->data['form']['fields']['general']['extension'] = $form->getFieldHtml(
            array (
                'type'  => 'input',
                'name'  => 'extension',
                'value' => $extension
            ));

if (isset($_post['telephone'])){
$telephone = $_post['telephone'];
} elseif (isset($_session['guest']['telephone'])){
$telephone = $_session['guest']['telephone'];
} else{
$telephone = '';
}

$this->data['form']['fields']['general']['telephone'] = $form->getFieldHtml(
array (
'type'  => 'input',
'name'  => 'telephone',
'value' => $telephone
));

10
Customization help / send welcome email error
« on: July 15, 2019, 12:18:22 AM »
Hi guys. Im currently customizing success checkout function where it will create new login account for guest checkout after the guest user successful pay the product. When the account is created the welcome email not running and give white pages on "rt=checkout/success". I have attach image of my code.

11
General Support / generate path
« on: June 10, 2019, 11:34:06 PM »
Hi, i want to ask

12
Extension Support / Fatal error: Class 'AController' not found
« on: June 10, 2019, 02:48:52 AM »
Hi, Im trying to create new controller for my extension to redirect success payment to this controller before getting checkout/success page.

i got this error after i make a payment.

Fatal error: Class 'AController' not found in {path}\extensions\payment_gateway\storefront\controller\responses\extension\rsi_payment_callback.php

how to fix it this issue?

13
Development Help Needed / sending payment status
« on: May 21, 2019, 03:38:24 AM »
afternoon, i have problem with redirect back from payment gateway after success or fail. Can someone advice me on how to sent success payment or failed payment to the system.

FYI, im creating my own payment extension. below partial code on how parameter is sent to the payment gateway.

14
Fresh Installation / session error during fresh installation
« on: April 18, 2019, 10:57:35 PM »
hi guys. i got this error message during abantecart installation on my testing server
" Name Info 2::warning
 session_name(): Cannot change session name when session is active in C:\inetpub\wwwroot\{folder}\core\lib\session.php on line 121 "

how can i fix it?because im stuck at 1st step of installation

15
How-to questions / implement custom payment gateway
« on: April 04, 2019, 11:04:31 PM »
hi guys. need advice on how can i use other payment gateway API that are not listed in plugin option during checkout ?

Pages: [1] 2

Powered by SMFPacks Social Login Mod