I am working on an android application to make some website available on mobile to browse.
The thing is Virtuemart tables are too many to read and i need this to be quick and quite east so i can take a JSON object to from the db.
what i need in specific is to read the categories, then each category products with details images etc...
i tried to read the tables and make select statements but still cant find what i need.
I can code the PHP and the SQL statements but the tables are too much i would appreciate any help.
thanks in advance.
Related
I've been trying to transfer the entire catalog from one Magento server to another and I've been experiencing some significant problems.
I can get most of the catalog data across, but I always end up missing something like product swatches, product categories or a product's custom options. To get these across I then end up building my own scripts that queries Magento, writes the data to a CSV file of my own design, and then write another script that will add this data to the other server.
Ive been asking the other developers in house, and apparently this is how they do every migration. They spend ages building lots of custom scripts just to transfer the catalog across, and apparently the different Magento sites are so different they have to build entirely new scripts when they transfer the next site.
Is this a common experience for everybody?
I feel like there must be a better way. Does anybody know of a better way to transfer the entire catalog (not just the products, but everything) to another server? Can we not just copy across the entire SQL Database?
You can export the products using Magento export wizard by going into System -> import/export ->export
Then from export settings select Entity type Products and Export File Format as CSV
After getting the CSV file you can import the whole catalog using the Magento same wizard or You can use data flow.
The other option around to import bigger catalogs in Magento is to Use Magmi.
http://wiki.magmi.org/index.php?title=Magmi_Wiki
I hope this will help
There are many ways you can migrate your magento store from one server to another.
If you want to transfer complete magento site, then you should try with database import/export. Its easy and fast process. You can follow Site Ground tutorial for this
If you want to transfer only data such as product, catalog, customers, orders etc, then you can try magmi importer its easy and fast for importing data. Also you can try magento data flow profiles as well.
I have started work in magento last week, i have never worked before in magento. Recently i imported more than 8,000 records in it using csv file. Now i can see all that records in magento admin panel so it's done successfully.
Problem: But it is not displaying at frontend.
I found problem in url identifiers, to solve this problem i need to go in each record category and save it then url identifier showing and also displaying in frontend. So i have to do it for each record.
I think it will take more time and also i have to add 31,000 records more.
Do you have any suggestion to do it quickly? any efficient way available for me? can i use any script to save all record at once?
This question may have duplicate but it will pleasure if you give answer or suggestion to me.
Thank you.
Why don't you just re-index all your indexes ?
I am adding regions of a country to the database in Magento so when a user selects their country a relevant list of regions will be available in a drop down menu. To do this I believe I need to add information to directory_country_region and directory_country_region_name.
The tutorial I've been looking at states that I should add them directly to the database using sql, however I remember reading that you should not place information directly into the database using raw sql when working with Magento.
My questions are:
1- to keep in line with best practices do I need to use some magento functions to add the required information to my database or can they be dropped in using raw sql?
2- if I need to use some Magento functions how do I work out which I need to use (I have heard off and noticed the lack of documentation) or is there some online reference, even if it is limited?
3- if I am not to use a sql query why is it considered bad practice to do so in Magento?
Hello, if you want to add the information just once, you can use raw sql (faster and no drawbacks), also you are right about the 2 tables (if the country is already in directory_country). If you want to make something that will be available for more Magento instalations you have to crate a new Magento module and add the sql using the installer you can read more here http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-6-magento-setup-resources
Magento wiki is a good place to start, also there are lots of blog posts.
It's considered a bad practice because Magento has its own ORM and most of the time for your new tables (entities) you only need to create models that extend magento core models and you will have access to CRUD without any development and everyone that uses your new module will understaind what's going on.
Example for a region you can use the class Mage_Directory_Model_Region or for a collection of regions Mage_Directory_Model_Resource_Region_Collection
I feel fed up with the Joomla K2 extension. This is the most crappy extension I've ever used and I am tired of correcting mistakes and bugs all the time. Even in the K2 forums, most of the threads suddenly and strangely disappeared, leading google results to 404 pages.
I did the most foolish thing on joomla: I installed their extension in joomla 1.6 because I wanted to set featured images in every article and joomla didn't have something like that (and then upgraded to 2.5) . So I created a news portal that publishes about 6 articles (or K2 items) every day for a year. So far there are 10 categories, 1000 articles and 200 tags (and 4 users only). There is nothing complicated on the website and all components are used "as they are". I haven't even used K2 extra fields etc.
I desperately want to transfer all items, categories, tags and images from K2 to Joomla articles. Then I will upgrade to the new Joomla 3.0. If I had a choice, I would transfer all data to wordpress. I have no money to hire an experienced developer and I have advanced programming knowledge but I am not an expert. I can try to copy data from one column to another but I would really appreciate the opinion of a developer with a "strong" knowledge.
On Joomla's forums it says that:
K2 articles are stored in the table jos_k2_items. Use a sql query to
copy them to jos_content.
INSERT INTO ###_content (title, alias, catid, published, introtext, fulltext)
SELECT title, alias, catid, published, introtext, fulltext
FROM ###_k2_items ;
This was posted about Joomla 1.5 Check the new table structure and make the necessary changes.
I'm not sure are you still looking for the answer, but maybe others do.
In case you want to move your K2 to WordPress, there's a plugin at the WordPress plugin directory for an automated migration. It supports the import of different type of content including categories, tags, menus and other, so it might answer your request.
The quick guide to the process includes the following steps -
You install the plugin on your WP website
Create the account at the service
Download the extension and install it at your K2 website
Choose the entities you want to migrate
Try the trial migration (it migrates 10 posts)
If you like it you can try the full migration (it's not free)
You may refer to this for more info, plus, this service is also represented in WordPress Codex.
Hope it helps.
Are there any type of extensions that let people post what they want with categories. So they need to sign-up and sign-in, and then create a new post, then select the relative category that the post will be shown in to other people.
I may need to show posts by geo-localisation restriction, for example, posts appears in just US or UK.
I'm a PHP developer. I can achieve this system, but I wondered if it does already exist some CMS like Joomla doing what I need, to save time. I may also be able to develop such Joomla modules if it's allowed. Please need a push around these requirements since I don't have too much experience with Joomla.
I would recommend you use the article section of joomla which is a built in one. I think the things available in joomla package will suit your category, post and signin and signup requirements.
For geo-localisation restrictions I think your php knowledge is more than enough to change or modify few parts of the code in the joomla. I think this way will help you save some time. I have done these before.They have worked fine for me. Hope this helps you.