VirtueMart

Product Information

| VirtueMart

VirtueMart Product Information

This image will show which VirtueMart fields are linked to the RO CSVI fields. This can be used to find out how to link the correct fields for your import or export.

VirtueMart Product information

VirtueMart RO CSVI Import RO CSVI Export
Published? published published
Product SKU product_sku product_sku
Product Name product_name product_name
Product Alias slug slug
URL product_url product_url
Manufacturer manufacturer_name manufacturer_name
Product Categories category_path category_path
Shopper Group shopper_group_name shopper_group_name
Product Details Page layout layout
On Featured product_special product_special

 

Read more ...

Google Sitemap

| VirtueMart

Requirements:
CSVI 7.0 version
VirtueMart 3.0 or higher

A Google sitemap can be created using VirtueMart product export operation with the following steps.

Step 1

Create a template by selecting Component as VirtueMart, Action as Export and Operation as Product in template Details tab.

Step 2

Under File tab set the following optins

  1. Set Export type to XML
  2. Set Website to Custom
  3. Set Export State to Published. This is needed because only published products should appear in the sitemap as unpublished products are not accessible.

Google Sitemap File tab settings

Step 3

To design the layout of the sitemap, under XML layout tab set the following

  1. Fill the header with the text:
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
            xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  2. Fill the body with the text:
    <url> 
        <loc>[product_url]</loc> 
        <image:image>
           <image:loc>[picture_url]</image:loc> 
        </image:image>
      </url>
  3. Fill the footer with the text:
    </urlset>
  4. Click on apply to save your changes

Google Sitemap XML layout

Step 4

Add the template fields needed for export on CSVI template fields page.

  1. Add the fields:
    • product_url
    • picture_url
    • product_sku
    as shown on the image.
  2. Fill in the column header for the product_url and picture_url fields
  3. Publish the fields product_url and picture_url and to unpublish product_sku field.

Google Sitemap template fields

Step 5 

Finally we are done with setting up the template. Go to CSVI Export page and select the Google sitemap template to download the sitemap file.

References:

Creating Sitemaps - Webmaster Tools Help

Read more ...

Delete out of stock products

| VirtueMart

The deletion of out of stock products is a three-step procedure.

  1. Export all products
  2. Clean up the list of products
  3. Import list of products to delete

Export all products

The first step is to export all products and their stock level.

  1. Create a new export template of the type Product export
  2. Add the fields
    product_sku
    product_in_stock
  3. Export the template
  4. Save the file on your computer

Clean up the list of products

Second step is to clean up the list of products by removing all products where the stock is more than 0

  1. Open the file in your favourite spreadsheet
  2. Sort the sheet on the product_in_stock field
  3. Delete all rows where the stock is greater than 0
  4. Add the column product_delete
  5. Set the column product_delete to Y for all rows
  6. Save the file

Import list of products to delete

Third step is to import the file to delete the products

  1. Create a new import template of the type Product import
  2. Set the template to use Column headers for configuration
  3. Import the file
  4. The products in the file will now have been removed

Read more ...

Export shows product without tax

| VirtueMart

Sometimes an export looks like it has no tax. This could actually be correct.

 

What is happening?

When a file is uploaded and there is no product tax included in the upload, the product gets a product_tax_id of 0. After checking the product in VirtueMart, it does show a tax rate.

However, the database still says 0. After saving the product, the database will still be 0. This happens because the tax rate has not been changed in anyway, so VirtueMart leaves it as it is. There are 2 ways to make this work:

  1. Change the tax on the product page to another value and then change it back. VirtueMart will then save the new tax value.
  2. Import a tax rate or tax id via CSV Improved

Now CSV Improved can export a product price with tax.

Read more ...

No product SKU found

| VirtueMart

The message "No product SKU found" is a very common one and the cause is almost always the same. Delimiters.

When importing a file, usually a CSV file in this case, the data is separated by delimiters. For CSV Improved to understand the file that is being imported it needs to be told what delimiters the file is using. Let me show you with an example.

 

The delimiter setting in CSV Improved:

CSV Improved field delimiters

 

The file:

~product_sku~^~product_name~^~category_path~
~Wb1~^~Product1~^~Home/New Products~
~Wb2~^~Product2~^~Home/Products~
~Wb3~^~Product3~^~Home/Products~

 

The ^ separates the fields and the ~ encloses the text. Now CSV Improved knows how to read the file. Make sure both delimiters always match.

Read more ...