Search the Community
Showing results for tags 'attach'.
-
I would like to attach a static returnote to my confirmation emails. And no, a link within the email will no be good enough - I wish it would, but the law in Denmark states otherwise. Googling and searching this forum has given me this code: // Attach returnote if ($template == 'da/order_conf') $message->attach(new Swift_Message_Attachment(file_get_contents("/mail/da/standardfortrydelsesformular.pdf"), "standardfortrydelsesformular.pdf", "application/pdf")); It's a step in the right direction, but this only results in an empty pdf file being attached. Has anybody solved this and are willing to enlighten me on the secret? I would be grateful!
-
hi, i'm trying to reduce the size of my website storge . how can i attach one picture to a series of products ? thanks
-
Hi everybody. I have used override in my shop to load some css and javascript on my custom theme. on wamp server everything work's as well ( exept some pages that javascript does'nt load there ) . but since i moved my shop from local to live server "FrontController.php" that i have made on >> override/controllers/front, cause white screen and so long as FrontController.php is Exist on server this problem persist. i tried to attach javascript files to header.tpl but they doesn't load by this way too. here is my FrontController.php content : <?php class FrontController extends FrontControllerCore { public function setMedia() { parent::setMedia(); // JS and CSS files $this->context->controller->addJS(_THEME_JS_DIR_.'jquery.easydropdown.js','all'); $this->context->controller->addJS(_THEME_JS_DIR_.'mychanges.js','all'); $this->context->controller->addJS(_THEME_JS_DIR_.'icheck.min.js','all'); $this->context->controller->addCSS(_THEME_CSS_DIR_.'skins/square/red.css','all'); $this->context->controller->addCSS(_THEME_CSS_DIR_.'easydropdown.flat.css','all'); $this->context->controller->addJS(_THEME_JS_DIR_.'jquery.tipsy.js','all'); $this->context->controller->addCSS(_THEME_CSS_DIR_.'tipsy.css','all'); } } please help me solve this problem. appreciate any suggestion thank you
-
Download files only after buy product
MSS77 posted a topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Hello, I have a problem with product files. I attach files to my products (pdf or .doc), every product with different file/s, and some products without files. But I would like users are able to download only after buy the product, not before. Now you can download files even without login. How can I do ? Thanks -
Hello, I want to auto-attach every invoice on Emails of accepted-paid orders of customers. Is this possible to happen ? I cant make it work till now ! any solution? I m using latest version of prestashop!
-
Hello, I want to ask which method should I use to work with the following criteria. I designed my own html and CSS files. Therefore I already have the the styling and structure. I want to apply this design and structure so it can work with prestashop CMS. Therefore I duplicated the standard theme and already inserted the html code of header into header.tpl and the footer in footer.tpl. I overrided FrontController.php so the css files and Jquery files will be always linked. This part already works. My next step, is to insert the rest of my html (As you can sse in the picture uploaded). Therefore I think I have to use a module for the middle part. This is my great question... How can I add the html code for the product boxes I created and make it work with the module??? This way I could use the CMS and whenever I created a new product it would apply with the CSS. Is there also any hint in which should be my method of working to gain this control with prestashop??? Thanks Dani I'm using prestashop 1.4.8