Jump to content
thirty bees forum

SakuraKitKats

Trusted Members
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SakuraKitKats's Achievements

Apprentice

Apprentice (3/14)

  • Collaborator Rare
  • One Month Later
  • Week One Done
  • Dedicated Rare
  • Reacting Well Rare

Recent Badges

2

Reputation

  1. Thank you, this will fix the index problem. As for Google Merchant Center, is there any module to export my catalog to it?
  2. I am using the default Niara theme and have the problem that Google only takes the images from Niara_cart, therefore all images are 80x80 in size which leads to all my products being rejected in the Merchant Center. Even in search results the pictures are very tiny. I would want the pictures to be Niara_large (458x458) I have attached an example image of my problem. Anything I can do to fix this?
  3. Thanks for the link, I applied but they said I do not meet their requirements, so I am assuming this is not really a good choice for small business. Hopefully it'll come to Stripe some day in the future. Still thanks for your help!
  4. What Mollie version are you using? I tried the latest for PS1.6 but that just gives me an error because there doesn't seem to be a native Mollie module for TB... or at least I can't find one.
  5. Thanks for the suggestion! I will give it a try. 🙂 Really wish it would be possible with Stripe though, as I don't really want to rely on too many modules...
  6. Are there any plans for Klarna to be added as a payment method for the Stripe module? I think Klarna has gotten quite common and many online stores and services are using it. Until it got added by default.....is there a way to manually add Klarna to the Stripe module?
  7. @yaniv14 Do you know how I could get the product cover?
  8. @yaniv14 Sorry, now I properly understand. I thought this would already pull the image of the product automatically. I didn't notice it was only using the medium_default as example... Basically, I want it to show the image of the products from the order like this (attached picture) I have found this code for determinding the product photo by ID on a PrestaShop 1.6 forum thread, but it's for the HistoryController.php file: $cover = Image::getCover((int)$product['id_product']); // array image if (sizeof($cover['id_image']) > 0) { $folder = Image::getImgFolderStatic($cover['id_image']); // folders inside /img/p/ $image = '<img src="../img/p/'.$folder.$cover['id_image'].'-medium_default.jpg" alt="" width="125" height="125" class="imgm img-thumbnail" />'; } else { $image = '<img src="../img/p/en-default-medium_default.jpg" alt="" width="125" height="125" class="imgm img-thumbnail" />'; } How could I implement it in order-detail?
  9. @yaniv14 Everything works, thank you lots for your help!! But there is still one problem, it only gives me the default niara medium image and not the image of the product. Also, this only shows on order detail and not on order history or?
  10. @yaniv14 Thank you! Silly question but where exactly do I add it inside of order-detail.tpl?
  11. I am using the Community Theme and want to have my order history look like the attached picture, how can I add the product images to it? I have found some PS 1.6 related code, but it does not seem to work and does not display the pictures. This is what I used: In HistoryController.php: public function initContent() { parent::initContent(); if ($orders = Order::getCustomerOrders($this->context->customer->id)) { foreach ($orders as &$order) { $myOrder = new Order((int)$order['id_order']); if (Validate::isLoadedObject($myOrder)) { $order['virtual'] = $myOrder->isVirtual(false); } } } $myOrder = new Order((int)$order['id_order']); $products = $myOrder->getProducts(); $product_ids = array(); foreach ($products as $product){ $product_ids[] = (int)$product['id_product']; } $cover = Image::getCover((int)$product['id_product']); // array image if (sizeof($cover['id_image']) > 0) { $folder = Image::getImgFolderStatic($cover['id_image']); // folders inside /img/p/ $image = '<img src="../img/p/'.$folder.$cover['id_image'].'-medium_default.jpg" alt="" width="125" height="125" class="imgm img-thumbnail" />'; } else { $image = '<img src="../img/p/en-default-medium_default.jpg" alt="" width="125" height="125" class="imgm img-thumbnail" />'; } $this->context->smarty->assign(array( 'orders' => $orders, 'images' => $image, 'invoiceAllowed' => (int)Configuration::get('PS_INVOICE'), 'reorderingAllowed' => !(bool)Configuration::get('PS_DISALLOW_HISTORY_REORDERING'), 'slowValidation' => Tools::isSubmit('slowvalidation') )); $this->setTemplate(_PS_THEME_DIR_.'history.tpl'); } } And in OrderDetailController, initContent(), after $products = $order->getProducts(); foreach ($products as &$product) { $id_image = false; if (isset($product['image']->id_image)) { $id_image = $product['image']->id_image; } else { $cover = Product::getCover($product['id_product']); if ($cover) { $id_image = $cover['id_image']; } } if ($id_image) { $product_object = new Product($product['id_product'], false, $this->context->language->id); $image_url = $this->context->link->getImageLink($product_object->link_rewrite, $product['image']->id_image, 'home_default'); $product['image_url'] = $image_url; } } Any help would be kindly appreciated!!
  12. One more question, how do I disable the message in the order details and remove the gift icon?
  13. Setting the dummy message helped me and has stopped showing the error so I can continue, thanks for the solutions!
  14. Thank you kindly but unfortunately after trying out both solutions, clearing caches and trying different browsers it still ends up giving me the "Invalid gift message" error. Do you have any other solution or clue to why this error could still occur?
  15. Thank you for your advice, I am coming from PrestaShop and recently switched to TB and the gift message was not mandatory in PS8 (I used the same method to get rid of the message in PS8 and it did let me continue) But in TB it seems to be mandatory to have a gift message... I am sorry, but where do I put the hidden input field in?
×
×
  • Create New...