Jump to content

jalokin80

Members
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • First Name
    Nikolaj
  • Last Name
    Nielsen

jalokin80's Achievements

Newbie

Newbie (1/14)

4

Reputation

3

Community Answers

  1. Hello I am having a big issue after we have upgraded our store from version 1.6.1.13 to 1.6.1.14. In version 1.6.1.14 there is added the functionality to add an google maps api key in the general settings in the b.o. and when using the b.o. in non-ssl this also works great but as we use our b.o. with ssl the maps are not appearing on the order page. I cannot see if it is the same issue in the store front as we use no google maps here with our current template. Can someone help me modify the new API function so that it works with ssl. It doesn't have to work without ssl as we use ssl everywhere in the shop.
  2. Hello community. I have a problem in adding the cart_id to the order slip in our shop. I did this earlier in the order invoice and it worked like a charm. But I cannot find the cart:id in the database table for the order slip, so the mod that I have made on the order invoice pdf is not possible on the order slip. We use the order slip for credit notes at order returns. Does someone know if it is possible to pick up the cart_id from the order table and add it to the order slip summary-tab? Right now my code looks like this in /prestashop/themes/my_template/pdf/order-slip.summary-tab.tpl <table id="summary-tab" width="100%"> <tr> <th class="header small" valign="middle">{l s='Order Reference' pdf='true'}</th> <th class="header small" valign="middle">{l s='Betalings ID' pdf='true'}</th> <th class="header small" valign="middle">{l s='Order Date' pdf='true'}</th> {if $addresses.invoice->vat_number} <th class="header small" valign="middle">{l s='VAT Number' pdf='true'}</th> {/if} </tr> <tr> <td class="center small white">{$order->getUniqReference()}</td> <td class="center small white">{$cart_id}</td> <td class="center small white">{dateFormat date=$order->date_add full=0}</td> {if $addresses.invoice->vat_number} <td class="center small white"> {$addresses.invoice->vat_number} </td> {/if} </tr> </table> As you can see I have added the $cart_id but it picks up nothing probably because the cart_id is missing from the order_slip table in the db.
  3. Thank you for the trick. I know it has been a while since this thread was answered, but after adding the "display: block !important;" to global.css I cannot close the menu. Is it possible to make the menu expand as standard when entering the mobile site but let the user close the menu and have the menu to remember the users choise while he surfa around the mobile site?
  4. Hi. Thanks for the script. I cannot get it to work on Prestashop 1.6.1.11. Any suggestions appreciated! EDIT: Okay, I managed to get it to work. It was caused by virtual url addresses in a multistore inviroment. I was trying to execute the script from http://main-address.com/allgroups.php but I just needed to include the virtual domain like http://main-domain.com/virtual-domain/allgroups.php and it worked like a charm
  5. OK. I have solved it by replacing the theme/js/tools/statesManagement.js and the theme/address.tpl with the originals from the default-bootstrap theme.
  6. Hello community. I have a problem for which I cannot find a solution. I am working on a site, where the language selector on customers quick checkout extremely small. I have attached an image of the problem. I'll guess that it has something to do with the java script that draws the field and it also happened after I updated the "statesManagement.js" file in my theme/js/tools folder. I needed the update because the "post code" gave me a red box when typing the post code correct and also a red box when it was wrong. Very confusing for the customer. The error appeared after updating from prestashop v. 1.6.1.0 to 1.6.1.4. Anyway, after the update the "post code" lights green again on correct post code so it works very well. But now the problem with the language selector. Can someone help me in identifying and correcting the error that gives me this bad drop-down menu size? website is live at http://detled.dk (It's in Danish only!) NB. It also happened with the Date Of Birth drop-downs but I have removed the DOB options from the template as it was not needed. presta version is 1.6.1.4.
  7. I have the same problem. I have the "order reference changer" version 1.5.5.1 module installed. It changes the order reference "code letters" to the same number as the order ID. For me the "Parser error" also appers when I change the order status to Shipped (complete)! Would it be possible that the Order Reference Changer module would cause this error somehow? I am using Prestashop Version 1.6.1.4 but it also happened before updating from version 1.6.1.0.
  8. Thank you Prestashop Addict for the solution! Unfortunately I did not have the header.tpl in my themes/yourtheme/pdf/ directory so instead I added the code to: Prestashop installation directory/pdf/header.tpl It works for me and for the custom theme I use. Also you have a typo in the addition: {l s='DELEVERY' pdf='true'} I have changed that to: <!-- {l s='INVOICE' pdf='true'} {l s='DELIVERY' pdf='true'} {l s='DELIVERY SLIP' pdf='true'} {l s='ORDER RETURN' pdf='true'} {l s='CREDIT SLIP' pdf='true'} --> ... and translated the fields in BO. Now the hack works very well and also with special characters, which did not work with the previous solution Thumbs up!
  9. In your prestashop installation, locate the following file. in your_prestashop_installation/classes/pdf/HTMLTemplateInvoice.php edit line 64 'header' => $this->l('INVOICE'), to 'header' => $this->l('FAKTURA'), In the example above I use the danish word for Invoice which is Faktura. Change it to whatever language you want. Use for example notepad2 to edit the php file. It can be downloaded for free and you can find it in google. You can do the same in the rest of the PDF titles (HTMLTemplateDeliverySlip.php, HTMLTemplateOrderSlip.php, etc.) Just search for $this->l and change the title to whatever translation you want.
  10. Okay, then I know that. Thank you for the reply. Is there anything we can do to solve the issue temporary until an official fix is released? Etc. hard code the text into the files? We only use one language anyway.
  11. Hello folks. After update from 1.6.0.14 to 1.6.1.0 The PDF invoice has reset to English instead of Danish as we used in version 1.6.0.14. I can translate everything in the invoice except the invoice title where it says "Invoice". I need this to be translated to Danish so it writes "Faktura" instead. I have the same problem in delivery slip and probably other generated PDF files. Does anyone know how to translate this? I have changed all translations where it writes "Invoice" both in the english and the danish translations (module translations, field translations, back office translations and PDF translations) but still it writes "Invoice" and not "Faktura" in the invoice PDF title and "Delivery slip" in the delivery title PDF. I am unsure if it is a prestashop core issue or me, who has not found the right place of the translation.
  12. First of all - THANKS! for the fix. It works great! This is how it worked for me: Override the Cart.php with the modified one from this thread. Before loading the page, do the following: Delete the cache files manually in your template folder on the FTP. "/prestashop install/themes/default theme/cache/". Don't delete the index.php file if it exists in the folder! After that you will have to manually delete the cache files and folders in "/prestashop install/cache/cachefs/" except the index.php file. Finally delete the smarty cache in "/Prestashop install/cache/smarty/cache/" except the index.php file. Now hit CTRL+F5 in your browser and the issue is solved
  13. I have the exact same problem on a store I just updated from 1.6.0.14 to 1.6.1. Following this thread to see if someone finds a solution. I use a custom theme and not the default bootstrap.
×
×
  • Create New...