I have OpenCart 1.5.6.4 installed on a server, and I have imported a database with over 64,000 products. They are all being displayed on the admin pannel, I can edit them, but on the front there apper to be none. If I add a new product it will be displayed. I have already checked the database an all the values of the new products are similar to the old one but. I have also changed the theme. Nothing happend
So they are displayed on the admin pannel, but not on the front, what am I missing?
Check your product_to_store table. If it's empty, you just need to write a small script to add the product IDs to the correct store (usually ID 0)
Related
Django Admin change "history" logs
As you know Django Admin's sidebar shows a list of APP > MODELS. When you click on a MODEL, the focus area displays a list of RECORDS. Click on a RECORD, then the focus area shows a single RECORD as a form which you can change.
Here, in the upper right hand corner of the change form, is a gray pill-shaped button labeled "HISTORY" with entries like:
Dec. 9, 2021, 4:38 p.m. me Changed Table price headers.
Feb. 26, 2022, 2:06 p.m. me Changed Table date headers.
What I need is a copy of the record data before each change. Later, I need to query the Django database and--in this example--get the version of the record prior to the Feb 26 change.
How can Django Admin change "history" logs be used to also store copy of data?
Not for every Django Model
The rest of the Models & Records in Django Admin should behave normally. I only have a few Models where I need history log and data.
Not to be confused with model history
When discussing this with other Django developers I have to explain the history I need is for the record's data, and not the model. There is a third-party Django packages which does the other thing which I don't need.
Why do I need this?
In my Django site I run a script which requires settings. I'm querying a non-Django-related MongoDB database where I keep a copy of reports generated by several third-party vendors. To help me manage and utilize this data I need a record of each report's headers or schema.
There is a tight coupling between the data I'm storing in Mongo and the data's schema. For this reason I'm storing these headers as "settings" in Django's database. It's been really convient for me to use the Django Administration page to update these schema settings.
However, once in a blue moon a third-party will rename a header or add a new column to their report. When this happens I have to update the settings record in the Django Admin. Currently I don't have access to the historical schemas in my Django project, and have to write custom scripts to access historical data.
My wish is store each version of these records, so I can check the settings change history log. When the requested records needs a historical schema, I can then query the Django database to recall the valid headers for the date range.
Have you tried django-simple-history? Works fine for me.
I am unable to fill data into the Sitecore/Content Field items through GatherContent module in Sitecore for content gathering mapping to Sitecore items.
I am unable to migrate the Home data items from Gathercontent to the sitecore/Content/Home data items.
I mean to field to field level data mapping or sharing.
Kindly prefer the below images.
I want to migrtate GC(Gathercontent)home item title and text data into
Sitecore fields Home items title and text.
Thanks in Advance.
I got the solutions.
In content migration from Gather content to sitecore items , doesn't
directly map with the already created Sitecore items,it create new
items to the Sitecore with new GC Content Id:,GCPath
[shared]:,MappingId: and Last syn date.
kindly prefer the below image
just update this all same data with the already created sitecore items field.
suppose want to add in the home item field ..
Now click the Update from Sitecore ribbon gathercontent update button to update the content and select the appropriate project and template.
next
Now confirm the locations items and click update , this update already created all Sitecore items.
comment below if you find best solutions, for this.
Working to show SKU column and SKU filter option in admin view of Opencart 2.0.2.0 Version. I am updating /admin/controller/catalog/product.php but its not showing any updates. The product list comes even after commenting total code of /admin/controller/catalog/product.php file. Some one tell me whether I'm working on the right file or not.
OpenCart make cache or modification files in system/modification if you're doing changes directally on files then you've to go extension->modification and then press refresh button to load your changes on frontend.
I'm building a products table to show all the products attributes. However I need to allow users to add/edit/remove those attributes from the products later on in production without any dev work. I thought about branch templates but when I edit the branch template, existing products are not getting updated. Maybe I'm looking in the wrong direction? Any suggestions?
In an older project we have a similar setup with product and attributes and used a custom database to help us out:
products are stored as items in Sitecore
attributes are stored as items in Sitecore
a custom database stores the values of all attributes for all products
publish events are used to keep the custom database in sync when deleting products
on a product template we added an extra tab in the content editor including an aspx page that offers an editor on our custom database for that product. We use the products Sitecore ID and display all possible attributes in an editable way.
Most attributes have simple string values but that is extendable. Our attributes have a type (string, bool, (multi-)list, ..) and we use that to create the editor. The lists refer back to Sitecore items (a parent is selected on the attribute item).
Adding an extra tab in the editor can be done by creating a new item in the core database (/sitecore/content/Applications/Content Editor/Editors) that point towards your aspx file. In the standard values of your product template, you select the created "editor" in the Appearance section. (note that this is in Sitecore 6 - might have been changed although the path to the editors is still valid)
This solution does mean that the values of your attributes are stored outside Sitecore, but it worked for our requirements.
I updated my OsCommerce shop to 2.3.3.4:
I replaced all files with the new default files from the package.
I Updated the old database with the script here: https://stackoverflow.com/a/19806818/1069083
Compared an sql-dump of the old database with the dump of an empty new database, It looked all OK.
Now the new version works with all products in it, but although I activated the "Categories" box in the admin interface it is not shown on the left.
Did I forget a Detail?
I found out why:
there are two different configure.php files, one is in
catalog/includes/configure.php
and one is in
catalog/admin/includes/configure.php
I didn't set the database to the new database in the admin config file, so all changes in admin didn't affect the real shop