Jump to content

ps_742

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Location
    India
  • Activity
    Developer

ps_742's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Put following piece of code under front/controllers/OrderDetailsController.php /*************************************************/ just After following peice of code $this->context->smarty->assign(array( /*************************************************/ foreach($products as $k=>$v) { $id_product = $v['id_product']; $image = Image::getCover($id_product); $product = new Product($id_product, false, Context::getContext()->language->id); $link = new Link; //because getImageLInk is not static function $imagePath = $link->getImageLink($product->link_rewrite, $image['id_image'], 'small_default'); $path = explode('/',$imagePath) ; $path_i =array_reverse($path); $p_img[$id_product]= $path_i[1].'/'.$path_i[0]; } Then put 'p_img' => $p_img, at smarty i.e $this->context->smarty->assign(array( 'shop_name' => strval(Configuration::get('PS_SHOP_NAME')), 'order' => $order, 'p_img' => $p_img, 'return_allowed' => (int)$order->isReturnable(), 'currency' => new Currency($order->id_currency), 'order_state' => (int)$id_order_state, 'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')), 'invoice' => (OrderState::invoiceAvailable($id_order_state) && count($order->getInvoicesCollection())), 'order_history' => $order->getHistory($this->context->language->id, false, true), 'products' => $products, 'discounts' => $order->getCartRules(), 'carrier' => $carrier, 'address_invoice' => $addressInvoice, 'invoiceState' => (Validate::isLoadedObject($addressInvoice) && $addressInvoice->id_state) ? new State($addressInvoice->id_state) : false, 'address_delivery' => $addressDelivery, 'inv_adr_fields' => $inv_adr_fields, 'dlv_adr_fields' => $dlv_adr_fields, 'invoiceAddressFormatedValues' => $invoiceAddressFormatedValues, 'deliveryAddressFormatedValues' => $deliveryAddressFormatedValues, 'deliveryState' => (Validate::isLoadedObject($addressDelivery) && $addressDelivery->id_state) ? new State($addressDelivery->id_state) : false, 'is_guest' => false, 'messages' => CustomerMessage::getMessagesByOrderId((int)($order->id), false), 'CUSTOMIZE_FILE' => Product::CUSTOMIZE_FILE, 'CUSTOMIZE_TEXTFIELD' => Product::CUSTOMIZE_TEXTFIELD, 'isRecyclable' => Configuration::get('PS_RECYCLABLE_PACK'), 'use_tax' => Configuration::get('PS_TAX'), 'group_use_tax' => (Group::getPriceDisplayMethod($customer->id_default_group) == PS_TAX_INC), /* DEPRECATED: customizedDatas @since 1.5 */ 'customizedDatas' => $customizedDatas, /* DEPRECATED: customizedDatas @since 1.5 */ 'reorderingAllowed' => !(int)(Configuration::get('PS_DISALLOW_HISTORY_REORDERING')) )); then use that variable at order-detail.tpl after 293 LOC (<!-- Classic products -->) <td> <!--{$product|@print_r}--> <img src="{$p_img.$productId}" /> </td> let me know if you have any query
  2. Hello All prestashop experts... I am not having issue with registration . i want to set link at error message. please have look at attached screenshot . so i need way through which we can insert anchor tag at error message . Its working fine at my local end but when i try to apply same method then it not working at live site. is any setting need to be done for working it. i simply add anchor tag at admin translating section or i also set anchor tag at controller too but not help at my live site. Hope you get my query... reply me as soon as possible..
×
×
  • Create New...