News:

AbanteCart v1.4.3 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - shahiran12395

#31
How-to questions / Re: readonly input
July 17, 2019, 02:09:15 AM
is this the right way to set it? cause i still the same

$this->data['form']['fields']['general']['phonecode'] = $form->getFieldHtml(
            array (
                'type'  => 'input',
                'name'  => 'phonecode',
                'value' => $phonecode,
                'hidden' => true
            ));
#32
How-to questions / Re: readonly input
July 17, 2019, 01:26:05 AM
i have try it but i can still insert any value into the field. the value will be assign by js function that i have create so it doesn't need any customer input.
#33
How-to questions / readonly input
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

$this->data['form']['fields']['general']['phone_code'] = $form->getFieldHtml(
            array (
                'type'  => 'input',
                'name'  => 'phone_code',
                'value' => $phone_code,
                'readonly' => true
            ));
#34
Development Help Needed / Re: adding new input
July 16, 2019, 10:54:24 PM
I did try adding the language but still not showing the input label. am i missing something?

i have upload screenshot of the guest checkout form for other to refer below

$this->load->language('checkout/guest_step_1');

$form = new AForm();
$form->setForm(array ('form_name' => 'guestFrm'));
$this->data['form']['form_open'] = $form->getFieldHtml(
array (
                    'type'   => 'form',
                    'name'   => 'guestFrm',
                    'action' => $this->html->getSecureURL('checkout/guest_step_1'),
                    'csrf' => true
                )
        );

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

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


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

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

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


<definition>
<key>entry_firstname</key>
<value><![CDATA[First Name:]]></value>
</definition>
<definition>
<key>entry_lastname</key>
<value><![CDATA[Last Name:]]></value>
</definition>
<definition>
<key>entry_email</key>
<value><![CDATA[E-Mail:]]></value>
</definition>
<definition>
<key>entry_phone_code</key>
<value><![CDATA[Phone Code:]]></value>
</definition>
<definition>
<key>entry_telephone</key>
<value><![CDATA[Telephone:]]></value>
</definition>
#35
Development Help Needed / adding new input
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

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


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
));
#36
Customization help / send welcome email error
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.
#37
General Support / generate path
June 10, 2019, 11:34:06 PM
Hi, i want to ask
#38
Quote from: shahiran12395 on June 10, 2019, 03:36:41 AM
Quote from: shahiran12395 on June 10, 2019, 03:35:44 AM
i already look at the file you ask for but there is no "require_once(DIR_CORE.'engine/controller.php');" loaded in there

is there anything i need to add in the init.php file?

my bad. my editor not search right result. the file loaded once. then what is the next step?
#39
Quote from: shahiran12395 on June 10, 2019, 03:35:44 AM
i already look at the file you ask for but there is no "require_once(DIR_CORE.'engine/controller.php');" loaded in there

is there anything i need to add in the init.php file?
#40
i already look at the file you ask for but there is no "require_once(DIR_CORE.'engine/controller.php');" loaded in there
#41
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?
#42
okey. btw how can i fix this parameter in url
rt=checkout/success?paid=0&id=my19403_1558509080_478&puid=my19403_1558509085_50932&vt=3210C781069622E6547D2A25FE68BAF4

because the parameter will be sent by the payment provider using url_return in my previous post
#43
Development Help Needed / sending payment status
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.
#44
i just change from ie browser to google chrome and everything run just fine. but i get this message " Your server is unable to create a session necessary for AbanteCart functionality. Check logs for exact error details and contact your hosting support administrator to resolve this error. "

how can i fix session error. i have enable session.save_path in php.ini but the system keep showing the error.
#45
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

Forum Rules Code of conduct
AbanteCart.com 2010 -