public function installFixtures() { $return = true; $tab_texts = array(array('text' => $this->trans('Security policy (edit with module Customer reassurance)', array(), 'Modules.BlockReassurance'), 'file_name' => 'ic_verified_user_black_36dp_1x.png'), array('text' => $this->trans('Delivery policy (edit with module Customer reassurance)', array(), 'Modules.BlockReassurance'), 'file_name' => 'ic_local_shipping_black_36dp_1x.png'), array('text' => $this->trans('Return policy (edit with module Customer reassurance)', array(), 'Modules.BlockReassurance'), 'file_name' => 'ic_swap_horiz_black_36dp_1x.png')); foreach ($tab_texts as $tab) { $reassurance = new reassuranceClass(); foreach (Language::getLanguages(false) as $lang) { $reassurance->text[$lang['id_lang']] = $tab['text']; } $reassurance->file_name = $tab['file_name']; $reassurance->id_shop = $this->context->shop->id; $return &= $reassurance->save(); } return $return; }
public function installFixtures() { $return = true; $tab_texts = array(array('text' => $this->l('Money back guarantee.'), 'file_name' => 'reassurance-1-1.jpg'), array('text' => $this->l('In-store exchange.'), 'file_name' => 'reassurance-2-1.jpg'), array('text' => $this->l('Payment upon shipment.'), 'file_name' => 'reassurance-3-1.jpg'), array('text' => $this->l('Free Shipping.'), 'file_name' => 'reassurance-4-1.jpg'), array('text' => $this->l('100% secure payment processing.'), 'file_name' => 'reassurance-5-1.jpg')); foreach ($tab_texts as $tab) { $reassurance = new reassuranceClass(); foreach (Language::getLanguages(false) as $lang) { $reassurance->text[$lang['id_lang']] = $tab['text']; } $reassurance->file_name = $tab['file_name']; $reassurance->id_shop = $this->context->shop->id; $return &= $reassurance->save(); } return $return; }