Show Posts


Topics - shahiran12395

Pages: [1] 2
1
General Support / mixed content issue
« on: September 25, 2019, 11:23:17 PM »
hi, im having trouble with Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<URL>'. This request has been blocked; the content must be served over HTTPS.

how can i solve it?

2
Configuration / Chinese language
« on: September 23, 2019, 05:03:56 AM »
Hi, im trying to install Chinese language but the extension market shows the exclamation mark and when i click to install it only popup a modal with loading animation only. So how can i use the language extension?

Btw, im using version 1.2.15 right now

3
Support / shipping page
« on: September 09, 2019, 12:57:32 PM »
Hi. I want to ask, i have active self pickup extension but during checkout it skip the shipping pages. is there any requirement to select shipping option because i not set the the self pickup extension selected as default. this for logged user and guest checkout

4
Development Help Needed / price zero issue
« on: August 28, 2019, 10:59:39 PM »
i have issue on when item is put to 0.00 the button redirect me to payment gateway before this it just go to success checkout. it happen for logged in user checkout only. guest checkout work correctly. which part that i need to double check is it payment or confirm controller?

5
Support / disable multiple login
« on: August 26, 2019, 12:48:34 AM »
hi,i wanna ask is this site can disable multiple login for single account?  example if user has logged in to the system using pc web browser they will be auto logged out if he/she logged to other browser or device

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

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

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

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

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

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

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

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

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

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

Pages: [1] 2

Powered by SMFPacks Social Login Mod