Virtuemart's product's images rename - joomla

I have a quite large eshop built with Joomla 1.5.24 and Virtuemart
Is it possible to make all the pictures of categories and products have names like the categoriy's or product's name.
E.g
Category: Cars
Images: Cars.png
Thumb : Cars_thumb.png
Any suggestions?

I suggest you use phpMyAdmin to edit one product/category manually with the new image URL and copy the SQL statement replacing the WHERE someID = X..
Once you have prepared your SQL statements, execute them all in one go.
Of course, backup your database and test test test

Related

Amazon Seller Inventory File – Where to get main image URLs?

I'm trying to update the inventory with more information on clothing sizes, material composition etc. by uploading the appropriate inventory file. Now, the template table that I got from here has loads and loads of required columns such as country_of_origin and target_gender that I need to fill out, as well as main_image_url. I'm not sure what to enter there, as the existing images are just fine.
After researching (see below), I'd like to know if I need to go through the trouble of somehow downloading and uploading all of the product images just for the sake of the inventory table, or if there is any other way to create an inventory file that will not mess up the product information.
Or am I maybe misguided in the way that I am trying to do the product updates?
Thanks for any help!
My Research
Can I just leave the field blank even though it is a required field?
 
On this Amazon help page, it says to include every piece of information for existing products into the table even it might seem redundant. Whether that is a recommendation or an absolute requirement, I cannot tell.
Is there an efficient way to retrieve all of the main image URLs for existing products?
Apparently, it is not possible to download the main_image_url in a inventory report like I did with most other required product data columns.
As our products are imported to Amazon by a Shopify app, we do not have all of the product images saved on a server by product ID or anything like that.
According to this StackOverflow answer, there are API calls for retrieving product images by ASIN, but those are scaled down, I cannot use those.

Product Data Scraping Magento

The product uploading feature will be automated, so all you need to do is enter a product link through the back-end itself and that then add the product photo and description during the night preferably
Please let us know its possible in Magento
IMHO, the best way to achieve that is to create a csv uploader in the backend like you can find in Mage_ImportExport_Adminhtml_ImportController (the whole module can be source of inspiration). The csv feeds a special table that you create with during your module initialization. At the end, with a cron, at the desired time you check this table for the url and then retrieve the photo and description using curl or something similar.
Side considerations :
If you have a large amount of products to inject, you will prefer direct sql queries than the slow Magento ORM
Do not forget to deactivate the indexation during import process
If you need to update and references are different between your source and your Magento, create a special attribute to be sure to have a link between both
If you feel more confortable with other framework or language and you need to create a large amount of data, the importation process can be done with any language able to interact with mysql.

How to put categories from manufacturer csv file into already existing categories with Magmi

I have a webshop with some categories in my root folder.
Root categorie
- Home
- Toys
- Accessoires
- Bricks
etc
From my manufacturer i can download every night a csv file with categoryname1/categoryname2/categoryname3/categoryname4 etc.
What i want to do is the following:
If categoryname1 equals "toys" then Magmi must make the categoryname under my already existing category "Toys". Also al the products from the csv file in the categoryname1 column must be imported and assigned to the right category in Magento.
I also want to exclude some categorys from the csv file of my manufacturer. These excluded categorys must not be imported in my shop.
Is this possible with magmi?
My csv file from the manufacturer is realy big, with lotst of products and categories.
Hope you guys can help me out. I have already worked with magmi, but i was'nt be able to fix this one.
This is doable using the ValueReplacer plugin which has interesting mapping capabilities.
You can use the ValueRemapper Helper of this plugin to use a mapping file between your input csv value & the values that are to be ingested by magmi. It can also create a composite value from several input columns (here you may use it to create a "categories" column that would aggregate the several categories from your input file)
For excluding values to import, the Import Limiter plugin can do it too by selecting rows to exclude based on any column criteria.
A Last option would be to use magmi programmatic APIs:
Datapump API would let you create a script that will wrap magmi calls letting you perform any operation on input data (but this would also mean you'll have to read the input file)
Creating a dedicated ItemProcessor plugin that would do data transformation suiting your needs in its "processItemBeforeId" method.

How to join tables in HMVC?

I used MVC before. Now I am a learning HMVC.
I have product, product_category, product_description and product_images tables in my database.
I want to display list of products in my website with basic product information. Clicking on a product will redirect to a different page and will display all the product related information.
What is the best way to achieve this according to HMVC(Modular MVC) pattern?
Should I create different modules for each table like product module, product category module etc..?(In this case I will have one model class in each module/model. I found this idea when searching internet)
Should I create one module called products and put all the files related to this in that module? (In this case I will be having all the product, product_category, product_description product_images model classes under products/models)
Should I follow a completely different implementation from the techniques I've mentioned above? (Please provide specific details to build this module)
(I'm using codeignitor for my development)
Thanks a lot!
Lets simplify the things for you.
If you have category as menu (Same as magento), i will recommend you to create new module for cateogry
Coming back to product, you can manage all things with the 1 product controller.
In category, category will have its own model to interact with database.
In your product model, you can manage all kind of transactions in one model because they are part of product only.
If you want to move bit advance, you can have a sql folder in each module so that you can install the and create tables when you just drop folder to modules. For this you can create a small script where, in regular interval of time, it will check the new modules, and if that script found some new modules, it will install the .sql file in the sql folder, which will update the database schema.
Hope this will help you

Magento coupon entities in database

I'm trying to develop a Magento plugin which involves using coupons. Apparently after looking around I found a source that mentions use of a 'salesrule' table for coupons. However when I looked at my database i couldn't find it. However I did find 3 tables that had mention 'coupon' called 'coupon_aggregated', 'coupon_aggregated_order', and 'coupon_aggregated_updated'.
I just wanted to know what is the difference between the 3 tables so I can start using them? I am on the latest version of Magento.
The table you're looking for is indeed named
salesrule
There's also a table named salesrule_coupon, which contains specific coupon codes linked back to the main salesrule definition.
If your database is missing this table, something bad has happened to your system. Go to
Promotions -> Shopping Cart Price Rules
and create a new coupon code with a distinct title. Then dump your database content and search for the text of your distinct title. That will let you know which table your system is storing salesrules in.
The tables you mentioned above are aggregate data tables used for reporting only.

Resources