-
Posts
17 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by SakuraKitKats
-
Thank you, this will fix the index problem. As for Google Merchant Center, is there any module to export my catalog to it?
-
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?
-
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!
-
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.
-
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...
-
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?
-
@yaniv14 Do you know how I could get the product cover?
-
@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?
-
@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?
-
@yaniv14 Thank you! Silly question but where exactly do I add it inside of order-detail.tpl?
-
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!!
-
-
Setting the dummy message helped me and has stopped showing the error so I can continue, thanks for the solutions!
-
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?
-
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?
-
I am just using the normal Niara theme and TB 1.5.1 I edited the file "order-carrier.tpl"
-
So I don't know if this is a bug or a feature but I wanted to replace the Gift Wrapping option with a custom one, and for that I want the gift message text removed. Everything works and the gift message disappeared after I commented out the following part in the order-carrier.tlp file: <p id="gift_div"> <label for="gift_message">{l s='If you\'d like, you can add a note to the gift:'}</label> <textarea rows="2" cols="120" id="gift_message" class="form-control" name="gift_message">{$cart->gift_message|escape:'html':'UTF-8'}</textarea> </p> However, now I have the issue that it gives me the error "Invalid gift message" even though I removed the message field which is strange, because it shouldn't be a mandatory thing. Or at least it wasn't mandatory in PS 1.6. Does anyone know how to fix this?