The New Arrivals part in the opencart website works perfectly in localhost when I enabled the "Latest" module in admin side. But when I uploaded it to a live server it is showing the products which I had already uploaded in localhost. When I add new products it is not showing in the arrivals, it is not updating. But it is listing in the product listing page. Can anyone please help.
You might not have added the 'Latest' to the home page.
Login to admin section.
Go to Extensions > Modules.
Install Latest Module, if it's not installed. Otherwise click on edit button of Latest.
Select Layout: Home, Position: Content Botton, Status: Enabled, Limit: 5.
I just mentioned the way to add in home page, similarly you can add in any page.
The problem is that the latest products are cached in a file system/cache/product.latest.<LANGUAGE_ID>.<STORE_ID>.<CUSTOMER_GROUP_ID>.<LIMIT>. If the file is not existing while the latest products are first loaded, the products are populated from DB and the cache file is created. Then every next time the products are loaded from this cache file until the cache file is deleted.
Now when You update, delete or add a product this cache file (as well as all other product cache files) should be deleted.
Your problem I believe lies in wrong file permissions on Your live server: make sure to check the file permissions for folder system/cache - it should be at least 775 so that the apache process has permission to delete the cache files...
Related
using Odoo 13. I can't edit any page on the website (or the menu). I can see that this files are getting a 404 error (not loading) and they for sure are the problem here:
/web/content/261-c2af7d4/web_editor.summernote.css
/web/content/262-c2af7d4/web_editor.summernote.js
I've tried regenerating the assets but still getting that. Any hint what to check for then?
PS: Not sure if related, that site domain was changed and its database renamed in order to allow dbfilter to catch it. Look this solved post: About dbfilter not catching the correct database on Odoo 13
This was effectively due a database name change.
Checking at Settings -> Technical -> Database structure -> Attachments I was able to confirm that there where no files associated with web_editor.summernote.css and web_editor.summernote.js, as a quick fix I've borrowed those files from another site and uploaded them.
So #CZoellner gives me another hint that could be a better solution if you already have a website with a lot of attachments, and is to rename the filestore directory from your old database name to the new database name.
If you didn't set data_dir on your odoo config file, it's likely possible that the folder is located at ~/.local/share/Odoo/filestore of the user that runs odoo. There you will find folders with the corresponding database name, just rename and restart odoo so you're files will be present again.
PS: Always do backups.
At moving from local to a server my prestashop web, appears all the text (I think it connects correctly to the database), but it doesn´t visualizing any images,CSS,etc... I´ve modified config/settings.inc.php file
and modified PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL and SHOP_URL from the database and also deleted the .htaccess file.
Thanks!
The same is with the backoffice:
you can do it by two ways:
navigate into backoffice to SEO&URL link, set correct values for Shop domain & SSL domain & Base URI fields. Save & update page.
or
in DB find tables:
ps_configuration, set correct values for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL
ps_shop_url set correct values for domain, domain_ssl, physical_uri
Some Prestashop installs, sometimes have SSL ON (don't know why).
If you are installing it on a server with no SSL certificate, all images and styles will not be loaded and the PHP scripts display barebones HTML pages.
To solve this:
In your Prestashop directory, delete all install directories and files to get the platform running.
Type your admin URL, example: http://yourstore.me/psadmin, log in with a registered valid admin user, and go to to PREFERENCES->CONFIGURATION and turn all SSL parameters to off.
How exactly I can make duplicate of existing shop on same domain in different subfolder.
Currently is example.com. I want to make duplicate in example.com/test/ for testing purpose. So I've made the folder and copied every file into it.. also I've create new database and export/import database. Then in table shop_url I've change `physical_url to /test/.
So now when I go to example.com/test/ it is loading full site and images but when I click on some product is go into example.com/product_name not in example.com/test/product_name. Also I've change in .htaccess this line RewriteRule . - [E=REWRITEBASE:/test/] from / to /test/.
What else I need to change? What I missing?
Everything is done good
1) Copy files
2) Copy MySQL database with change shop_url and shop_url_ssl (should be the same as shop_url)
3) Refresh .htaccess file to new url manualy or via SEO/URL Prestashop setting - first disable mod_rewrite and Save then enable mod_rewrite and Save - that will create new .htaccess file automaticly.
You should consider to delete cache folder and recreate it from clean install or purge cache/smarty/compile folder.
Change also shop_url_ssl (should be the same as shop_url)
Sometimes You need also clean browser cache memory. Bugs are everywhere :) or try other non used browser to open cloned store.
I'm sorry for such a complex subject. My problem is.
I tried to move my Drupal 7 site from one server to another.
I uploaded a fresh install to my new site.
I backed up my old database and imported to my new site.
I uploaded settings.php file to my new site.
When i entered to my new site's module part, All the 3rd party modules i installed in my old site, exist in my new site without any loss :)
But when i check the folders
/sites/all/modules
/sites/default
/modules
I couldn't find any file regarding to this modules.
Modules exist in my new site when i check my admin panel, I can create content by using this modules, But i can't see their files by using file manager etc.
Thank you
Because you didn't disable the modules before moving your deployment, I think they're still marked in your database, same for registration of content types. As the modules don't actually exist, you won't get their functionality.
Replacing the modules under /sites/all/modules or /sites/default/modules should leave them working as before.
Customers at my site upload private files using node checkout module which finally land in sites/default/files directory as part of their order.
Unfortunately I could never find a way till now to restrict those files to the owners only. I've even used User File module, but this module stopped my site.
Customer can upload files as their product order even as anonymous but to checkout they will need to login.
So if I add .htaccess in this directory disallowing everybody in the world read access, will this idea work?
I was thinking to write a hook so that as soon as a product is checked out, it's associated uploaded file can be moved to some private location, or have it's read permission removed( as hosting is on linux).
Any ideas?
I'm using Drupal-6