gestavenir Posted August 7, 2018 Share Posted August 7, 2018 Hello, I have just updated cart to CubeCart-6.2.2. I'm using the skin Foundation with no customisation. Now, the print order form doesn't have the logo of the shop on. Any idea how to solve it? Thank you Link to comment Share on other sites More sharing options...
bsmither Posted August 7, 2018 Share Posted August 7, 2018 In admin, Store Settings, Logos tab, please verify that there is an image assigned to Invoices and that the status is checked. And please remind us what version you upgraded from. Link to comment Share on other sites More sharing options...
gestavenir Posted August 7, 2018 Author Share Posted August 7, 2018 Thank you for your prompt reply. Everything on the settings tab is as it should be, status is ticked and logo image is assigned to every template and invoice. The version I have upgraded from is 6.1.9. Link to comment Share on other sites More sharing options...
bsmither Posted August 7, 2018 Share Posted August 7, 2018 Is your store "live"? If so, then make this edit and then quickly undo it. Otherwise, there is no rush. Open the file /skins/foundation/templates/print.receipt.php for editing. Log in as a customer, go to the Account, Order History page. View a prior order. Now, at the end of the print.receipt.php file, add {debug}. Save the file. On the View Order page, click the "Print Invoice" link. There will be a new window (or tab) with the order details ready to print. Your browser will want to show a pop-up window. Let it. (You may need to close this window/tab and click the "Print Invoice" link again.) You will get a popup window. Now, remove {debug} and save the file. In the popup, scroll to $STORE_LOGO and verify the value. If the value looks correct, then we may need to determine if the browser is choosing to not show it. Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 Hello, Thank you for the valuable information. I managed to get the debug and the value is as follows: $STORE_LOGO Origin: "Smarty object" Value "https://www.URLof the shop/" I understand that it is not displaying the URL to the logo picture. Where can I correct it, please? Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 For $STORE_LOGO, you have only part of what should be: "http://www.store.com/images/logos/my_store_logo_for_invoices.png" And this is CC622 upgraded from CC619. CubeCart stores logo image information in two places (do not yet know why two separate places): the CubeCart_config table "logos" row, and CubeCart_logos table. The Config table is used for the storefront actions, and the Logos table is used for the administration actions. It is possible that the Config table does not have an updated "logos" row. If that is the case, try this: In admin, Store Settings, Logos tab, uncheck any of the checked Status checkboxes and Save. Go back to that same page and re-check that checkbox and Save. Now, at the top-right of your admin screen, you should see an illuminated "Clear Cache" button. Click that button. On the storefront, click the Print Invoice link and determine if the logo shows up. Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 Hello, I have followed your instructions with no success. I couldn't see the illuminated "clear cache" button at the top-right. Also, I can only see one option to select "all the styles or default". Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 "Default" is the one and only style for Foundation (until more are manually added). Not seeing the "Clear Cache" button? Please examine the files and folders on your hosted account. You may have more than one folder that is or starts with /admin/. Please let us know. Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 I have 2 admin folders and 2 admin files. Please see screenshot attached. Should I delete some? Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 Which ones are the newest? (I've not seen a directory listing that has something other than a full date.) I suppose it is the plain admin.php and /admin/ from Yesterday. Look at the contents of the file /includes/global.inc.php. The values for adminFolder and adminFile must match what they actually are: 'admin' and 'admin.php' if these are the latest - from Yesterday. If you have a desktop shortcut to your admin site, be sure it is using admin.php. You should also force your browser to reload page resources. The contents of the file admin.js has changed, but not the name. Your browser may still be using the older version. Forcing a reload is usually done with CTRL-F5. Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 What I have found in the global.inc.php are not those from yesterday. When I used admin.php I get page not found error. I have also emptied the cache of my browser and the issue remains. Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 For now, change the values in /includes/global.inc.php for adminFile and adminFolder to be exactly what the file and folder names actually are - from yesterday. Also, (if you are doing this) do not attempt to load the admin script from www.store.com/admin/admin.php. This will only get you a page not found error. Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 I have changed the values for adminFile and adminFolder. The issue still remains and also I can't access the admin anymore. When I enter my credentials, I get this message: Security Alert: Possible Cross-Site Request Forgery (CSRF). Please do not use multiple tabs/windows or the browser back button. Learn more. I don't have other windows open Security Alert: Possible Cross-Site Request Forgery (CSRF). Please do not use multiple tabs/windows or the browser back button. Learn more. Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 Please clear your cookies for your site. Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 I did clear everything. I can't access the admin. Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 Put global.inc.php back to what it was. Then use the admin_hash.php to access CubeCart's admin. (Hopefully, doing that will still work.) Link to comment Share on other sites More sharing options...
gestavenir Posted August 8, 2018 Author Share Posted August 8, 2018 Pwew! I have reverted it to how it was and now I can access the admin again. The logo is still not on my invoice printout. Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2018 Share Posted August 8, 2018 One final experiment before we take a different approach: Log out of admin. Log out of the storefront. Clear the cookies to your site (or use a different browser or computer). Change those values in global.inc.php to be the latest file and folder names. Save the file. Go to the page www.store.com/admin.php. Attempt to log in. Link to comment Share on other sites More sharing options...
gestavenir Posted August 9, 2018 Author Share Posted August 9, 2018 Hello, Sorry for yesterday, I had a connection issue. So, I have followed your instructions and managed this time to log in using /admin.php. The logo displays now correctly. Thank you very much for your 5 stars help. Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2018 Share Posted August 9, 2018 Just to follow up, you do now see the Clear Cache button in the upper-right? Link to comment Share on other sites More sharing options...
gestavenir Posted August 9, 2018 Author Share Posted August 9, 2018 Yes, I do. That is the first time I can see it. It was orange. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.