Show Posts


Messages - shahiran12395

Pages: 1 [2] 3 4
16
General Support / Re: cart empty when view
« on: August 23, 2019, 03:12:46 AM »
btw is there any chance my php setting is wrong?

17
General Support / Re: cart empty when view
« on: August 23, 2019, 02:55:11 AM »
Hi.
You can find AbanteCart version in your admin footer right

i cant see on my version  :'(

18
General Support / Re: cart empty when view
« on: August 22, 2019, 08:00:13 PM »
hi!

What is your abantecart version and what is your recently php version??

Regards

php version is 7.1 and how to check the abantecart version?

19
General Support / Re: cart empty when view
« on: August 20, 2019, 03:50:39 AM »
this situation happen if someone using Microsoft edge to access the website. for other web browser works just fine. where can i refer this issues?

20
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?

21
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');

22
Templates / Re: product list add new collumn
« on: August 13, 2019, 02:42:30 AM »
sorry. do you have example on how to do it. this is from my product.php

Code: [Select]
$grid_settings['colModel'] = array(
array(
'name' => 'image',
'index' => 'image',
'align' => 'center',
'width' => 65,
'sortable' => false,
'search' => false,
),
array(
'name' => 'name',
'index' => 'name',
'align' => 'center',
'width' => 200,
),
array(
'name' => 'new_column',
'index' => 'new_column',
'align' => 'center',
'width' => 120,
),

23
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"?

24
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.

25
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,
            ));

26
How-to questions / Re: free item
« on: August 08, 2019, 01:12:56 AM »
okey. so how can i make the page redirect if customer has made 3 transaction per day if it is free item?because currently im using payment gateway to check whether the customer have reach certain transaction limit for one day sales. so for free item it will not through payment gateway but just straight away success.

27
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?

28
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);

29
Customization help / Re: send welcome email error
« on: July 25, 2019, 05:49:48 AM »
its okey..i already found the error..the one dot <.> after closing the quotes that i overlooked. so right now the mail run like before.. thanks for responding

30
How-to questions / Re: readonly input
« on: July 17, 2019, 02:37:02 AM »
thanks..it help.. i just figure out how to make the input readonly. btw how can i display the label for the input? i cant display the label for my new input

Pages: 1 [2] 3 4

Powered by SMFPacks Social Login Mod