Jump to content

arslantabassum

Members
  • Posts

    34
  • Joined

  • Last visited

3 Followers

Profile Information

  • Location
    Pakistan
  • Activity
    Agency

Recent Profile Visitors

611 profile views

arslantabassum's Achievements

Newbie

Newbie (1/14)

3

Reputation

8

Community Answers

  1. Hi, i want to add a new button in cart page. How to add that. snapshot is attached... Onclick on that button, An array should be returned with products list that are in the cart... $products = $params['cart']->getProducts(true); thanks in advance.
  2. I enabled payment module: e.g: Bank wire click enable then configure it... but when checking out in front side, only Cash on delivery appears...
  3. My enabled payments methods not appearing in front side. i enabled: 1. cash on delivery 2. bank wire 3. paypal working and displaying only: cash on delivery All suggestions are highly appreciated> thanks in advance
  4. I solved the issue by 2 ways: 1st : i disable force all urls to https: Solved but i need all urls with https 2nd: header.tpl change: issue solved with all urls https in files location: /public_html/v2/themes/default-bootstrap/header.tpl - changed do https
  5. When i am loading my page , the fancybox blocked as mixed content due to it's http url.. Both with css and js files... Fancybox didn't work, until it loads properly. All suggestions are highly appreciated.... I shall be very Thankful in advance...
  6. 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'); }
  7. sorry it's where to die()? i'm getting blank page, instead i have page with form.
  8. 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 ?
  9. Thanks Vekia, For Quick Reply... It works like a Charm.......
  10. Please suggest what deos this error mean.. Fatal error: Class 'ParcelmixController' not found in C:\wamp\www\ps_test\classes\controller\Controller.php on line 135
  11. Thanks Vekia , It works great for me.... i have changed object definition in Address class similar to customer. classes/Address.php 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'required' => true, 'size' => 32), Now integer validation is No More......
  12. 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!&lt;&gt;,;?=+()@#"�{}_$%:', 'default_value' => $default_value, ); Change this line.... 'hint' => $this->l('Invalid characters:').' !&lt;&gt;,;?=+()@#"�{}_$%:', but did'nt work...... Thanks in advance......
  13. Ok Thanks Nemo1!! I'll mind it.... Concept cleared Now...... I have to change theme's files every time , when installing module on a new Prestashop...
  14. 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.......
×
×
  • Create New...