I'm trying to export the image gallery field called "gallery", which ideally should have a comma separated list of images in the gallery. This field is standard field in magento.
The field is always blank when I export out of the Magento admin site. It works great on one of my sites, but 2 others are completely blank.
The only difference between the site that works and the other sites is that there are two stores on the site that works.
I checked the database and noticed there were some missing records in "catalog_product_entity_media_gallery_value" so I added these based on the records in catalog_product_entity_media_gallery. After doing that, still nothing is exports in this field.
Is there anything special that is needed to get this field to export?
Problem solved. It turns out that the custom export module wasn't enabled.
(4 hours of my life i won't get back.)
Related
I would like to know if there is a way to change text in the code instead of using the admin panel? I have Filezilla installed and can access my site/files from there.
If I use the inspect element in any browser, I can see an HTML structure, but as I have understood there is no HTML document in Magento, right? So where do I go if I want to make a change to a text element on my site and I don't want to use the admin panel?
Most of the text elements are handled by Magento's language translation system.
Quite often, you don't have to mess around hacking templates, just simply add a line to the translation CSV with the text string exactly as it appears, add a comma and then the new text string you want Magento to display.
For example, if you're working with US English, you can use the following file in your own custom template package as follows:
app/design/frontend/default/your_package/locale/en_US/translate.csv
Let's for example, change one of the window shade bar titles in the One Page Shopping Cart. Add a line to translate.csv as follows:
"Billing Information","Billing Address Information"
How this works, in the template the following line normally displays the title:
<?php echo $this->__('Billing Address') ?>
This code snippet $this->__('Billing Address') is a call to Magento's language translation system. It reads the translate.csv file finds Billing Address and changes it to Billing Address Information when it assembles the page html.
Lotta people out there have made changing text like this far harder than it has to be.
Hunting down the proper template, changing the text, finding the template got messed up, or trying to remember after the fact what was changed.
VS.
Changing a simple central file that contains all the text string translations... Often only by adding a new line to the file
Magento actually makes this very simple.
Thank you! So magento stores all text in .csv? or just the stuff that needs to be translated? I'm making a search for .csv via Filezilla but I only get two languages (the site is translated to multiple languages). Should I be looking somewhere else?
I am trying to add products by duplicating them in a CSV file. It seems to work fine but when I update the product image path with the same path to multiple products it doesn't seem to update. When I export again and look at the data it has reverted to it original state. What is the problem here...?
Please review the following: http://www.magentocommerce.com/knowledge-base/entry/importing-product-images
Typical Problems:
Path
Name of File (Name does not match file name. ie: Name.jpg vs /name.jpg)
Image file does not exist on server for processing. (file is not at store/media/upload/file.jpg)
Permissions (store/media/* store/media/upload not accessible)
Reminder: When dealing with Image Modification/Upload etc, please flush (disable during trouble shooting) the cache, then re-enable after.
Uploading via Dataflow:
Assuming you have the correct basic required fields, there are two main behaviors.
If the SKU is unique, the product ID will be created in the system.
If the SKU exists, information will be replaced/updated or Appended in the system.
When you copy and paste, you will want to make sure each SKU is unique, and that there will be a correlating image that will 'live' on the server during the upload dataflow process.
In the case of Images, the Path is going to be looking for yourstoreroot/media/import/ for the images you reference in your image / small / thumbnail, if the image doesn't exist with the path described, or doesn't match exactly the name, then the data will not be added/appended in the cart as it is invalid to the import files and would not show on new exports.
To solve this problem I learned how to create an attribute, an attribute set, then a configurable product. With the configurable product I can apply the image once. Each product listing with a different size or color is listed as an associated product with all duplicate content but is not visible individually.
Here is a tutorial that got me started:
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product
Found this question via Google looking for something similar and thought I'd chime in.
The most common problem I've encountered (and its poorly documented) is that when importing using the built-in import tool, the "image" path must be relative to /media/import/. Note that by default there is no 'import' folder in /media, you'll need to make it.
That means that in your CSV under the "images" column, you should have '/somepicture.jpg', this corresponds to /media/import/somepicture.jpg during the actual import. If this is incorrect, while the import is going on you'll see a bunch of "image not found" errors scroll by, and the existing image data will not be updated.
Unfortunately it does not look like there is a way to simply update the stored image path (such as pointing a bunch of products to the same image) using the built-in importer, as it expects to be importing new images, and will dupe them up just like editing images manually does.
I am stuck working on a gallery, which uses 3 columns and 1 row multiplied alot of times to show a simple and clear gallery.
The problem comes when after publishing, the max-length of articles cut the content, but I can't find the config where I can change it.
This is problem with your template style(or gallery plugin/module gallery style), you have to edit your css file.
Best way is to check gallery with Firebug (mozzila add-in), make necessary changes and then overwrite default style.
Be careful with your updates, that do not overwrite your style.
It was a problem with MySQL.
I just changed "Text" value for "LongText" (on MySQL), so that way I can use a large amount of characters on the same script.
Followed by my last question: Automatically create pages in phpfox
Now I'm trying to assign a list of pre-uploaded images to some pages as their profile picture in phpfox.
After checking data changes in the database, I only realized changes in these two fields:
image_path in table of phpfox_pages (which take a an address to the image file)
user_image in table of phpfox_user (which take a string of "user_id+%s".file_extension)
But by inserting data in these two fields in records for a page that has a default profile pic, it's profile pic would not change.
Is there any other fields or options that I should change?
Look at the file /module/pages/include/service/process.class.php In there look for the function update and around line 442 find this
if ($this->_bHasImage)
This piece of code handles setting an image for the page, notice how it creates three thumbnails, maybe the problem you're having is that you didn't create all the needed thumbs. You also need to update the column image_server_id.
Hope it helps
look phpfox_photo table in that you will find is_profile_photo attribute that is always 1 for the profile picture
These are the steps i followed :
I created a category and added product to it in the backend of
magento
System->Import/Export-> "export" the csv file .
Removed the current values of the product already added then added
values new values to it.
Copied that csv file to media/import directory where images to be
uploaded were also present. (value = /image001.Jpg)
Went on to import and it says import successfully.
Output :
Products with the data uploaded successfully
BUT
No relevant images found, while i can see images uploaded in media/catalog/product..... folder
I have visited many many blogs forums, spent alot of hours for it but in vain. So in last i am posting it over here.
I would greatly appreciate if someone can post in the whole process in steps with sample Csv file and also tell us required fields and values for fields ib brief.
In my experience you have to make sure you put the image information in all the right places in the import CSV file. The three sets of image columns (image, image_label; small_image, small_image_label; thumbnail, thumbnail_label) are what set which image will be used for what purpose. And, they are one image per product.
However, it is the media images columns (_media_attribute, _media_image, _media_lable (yep, misspelled in Magento), _media_position, and _media_is_disabled) that actually define the image(s) for the product. These media image columns have to be completed on a one row per image basis. The _media_attribute is the id of that attribute (77 in my experience). The _media_image is that actual name of the image file in your media/import directory (case sensitive). The _media_lable is the title you want on the image. _media_position is the relative order of the images for this product. _media_is_disabled is the flag for each image that identifies whether the image is shown in the product media group or not.
I try this also pcproffitt: https://stackoverflow.com/users/1202982/pcproffitt
I have noticed that in my .csv file the columns were only (image, image_label; small_image, small_image_label; thumbnail, thumbnail_label) - that was from my Magento1.3 export but when I try to import it there is no error in importing but the Images were not seen on the site.
Then I found your Answer that in new version of Magento1.6 the column name is defferent it is (_media_attribute, _media_image, _media_lable (yep, misspelled in Magento), _media_position, and _media_is_disabled)
Whoops! I'm badly solving this. What would your suggestion though since I have 7000 plus products and images on my old site to transfer :( Is there a way to make this things gonna work out?
Thank you Sir!