-
Posts
34 -
Joined
-
Last visited
Profile Information
-
Location
Pakistan
-
Activity
Agency
Recent Profile Visitors
611 profile views
arslantabassum's Achievements
-
[SOLVED] New Page Not displaying..?
arslantabassum replied to arslantabassum's topic in OUT - 1.6.0.9 [30 Jul 2014]
Thanks Vekia and Nemo1 For Reading My Problem.. I missed initContent function in my controller that's why it's not displaying.... Now i add this function in my controller and Working fine..... File: ParcelmixController.php public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'parcelmix.tpl'); } -
[SOLVED] New Page Not displaying..?
arslantabassum replied to arslantabassum's topic in OUT - 1.6.0.9 [30 Jul 2014]
sorry it's where to die()? i'm getting blank page, instead i have page with form. -
What i have Done: Modification: Path: prestashop16/themes/default-bootstrap Find {$HOOK_CUSTOMER_ACCOUNT} Add After <li><a href="{$link->getPageLink('parcelmix', true)|escape:'html':'UTF-8'}" title="Parcelmix"><i class="icon-wrench "></i><span>Parcemix Configutrations</span></a></li> New Files File: Parcelmix.tpl Path: prestashop16/themes/default-bootstrap/ File: ParcelmixController.php Path: prestashop16/controllers/front/ Preferences->seo Ulrs ->add New Page: parcelmix Page Title: Parcelmix Configuration Rewrite Url: parcelmix-configuration Error occurs & solved: http://www.prestashop.com/forums/topic/340269-solved-error-when-adding-new-controller/?do=findComment&comment=1716543 Now i am not getting page display.... Which to die(); e.g controller or some other file for checking ?
-
[SOLVED] Error when adding new controller
arslantabassum replied to arslantabassum's topic in OUT - 1.6.0.9 [30 Jul 2014]
Thanks Vekia, For Quick Reply... It works like a Charm....... -
I Want to remove integer validation for customer addresses in fields first name and last name... I found this one In Controllers->admin->adminaddressescontroller.php $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('First Name'), 'name' => 'firstname', 'required' => true, 'col' => '4', 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:', 'default_value' => $default_value, ); Change this line.... 'hint' => $this->l('Invalid characters:').' !<>,;?=+()@#"�{}_$%:', but did'nt work...... Thanks in advance......
-
NemoPS started following arslantabassum
-
Thanks It works Great..... Now the Modified Working Example ...... $fileAttachment['content'] = file_get_contents(_PS_ROOT_DIR_.'/administration/file.pdf'); //File path $fileAttachment['name'] = 'WayBill'; //Attachment filename $fileAttachment['mime'] = 'application/pdf'; //mime file type $currency = $this->context->currency; $customer = new Customer((int)$order->id_customer); $params['{lastname}'] = $customer->lastname; $params['{firstname}'] = $customer->firstname; $params['{order_name}'] = $res_main["reference"]; $params['{pm_reference}'] = $xml->pm_reference; $params['{way_bill}'] = $xml->label_url; $params['{voucher_num}'] = $message; $customer = new Customer((int)$order->id_customer); @Mail::Send((int)$order->id_lang, 'payment_pm', sprintf(Mail::l('Way Bill is Attached%s', (int)$order->id_lang), $order->reference), $params, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, $fileAttachment, null, _PS_MAIL_DIR_, true, (int)$order->id_shop); Thanks Once Again.......