Magmi Price Change for Magento - magento

I am using UnderstandingE's version of Magmi.
I use Magmi to automatically import a CSV file from our supplier. The supplier's CSV has a column that says the price that we will pay to our supplier - "wholesale_price."
But that is not the price that we want to display on our site. So we want Magmi to create a column for "price." The value should be something like (wholesale_price * 130%). Is this something we can do with Magmi?

Of course there is
use value replacer plugin , advanced syntax , there is a sample that calculates price for cost column.
Of course, you can use any column , so in your case:
for attribute to replace , enter : price <= this is the value you want to set
the formula to use would be:
{{ {item.wholesale_price}*1.30 }}
above is a formula for calculating the price according to your need.

Related

Sum with filter based on string Power BI

I have this Table.
I want to create a measure that will only work with the Products containing "HDD" in their name (first, second and fifth product in that case).
It's working with that formula : HDDProduct= CALCULATE(COUNT([Product]),FILTER(ALL([Product]),SEARCH("HDD",[Product],1,0)))
It only count the number of product with HDD in their name. But if I want a sum of the prices of those products for example, it won't work. I can only use COUNT.
Any idea ?
for sum you have to create another measure, below are my resolution to your question
for count
HDDProduct_count = CALCULATE(COUNT([Product]),FILTER(Product_table,SEARCH("HDD",[Product],1,0)))
for price sum
HDDProduct_Price_sum = CALCULATE(SUM(Product_table[Price]),FILTER(Product_table,SEARCH("HDD",[Product],1,0)))
note: please check the data type of price column to integer data type
download pbix file

Magento update with csv and unset special price

I'm trying to update a product in Magento through Import/Export -> Import, using a .csv file. I'm passing just _sku, _type, _attribute_set, _store, price and special_price columns. I want to unset the current special price of the product, but when I pass an empty string it sets the special price to 0. I tried with null, "NULL" and "<NULL>" but the result is the same. When the value is 0 it is still shown as special price on the front end, which is really confusing. That's why I want to set it to null, as this is the value it receives when it's being removed from the admin.
My goal is the equivalent of this:
$product = Mage::getModel('catalog/product')->load(some_id);
$product->setSpecialPrice('');
$product->save();
Any ideas?
I just realized that setting the special price a value that is equal to the value of the regular price will do the job. Then the template for the special price will not be used on the front end. I hope it will not bring some other issues, but for now it works for me.
You cant remove it with a regular csv import. Your best bet would be to add coloumn;
special_to_date
and set a date in the past in this format;
31/10/2014 00:00
This will expire your special price.

importing csv (magento)

I have a certain attribute dealer_country in my website, which is a dropdown attribute containing a list of all countries. However, in my csv file, the dealer_country attribute will be containing country codes(in 2-letter format). Would it be possible to import with this condition?
Yes. There is an easy way and a hard way.
If programming is your bag then you can get your attribute hooked up to the Magento country codes and have it return country names on the front end.
It would take a while to write such an ideal solution. However you can use a 3rd party import tool like 'Magmi' to get your products in without having to define your attribute values first.
Once in you can edit your attribute entries for country and, in the second column put the country names to be shown on the front end. e.g. for 'GB' in column one you have 'United Kingdom of Great Britain and Northern Ireland' in column two. Or for 'LY' you can add 'The Great Socialist People's Libyan Arab Jamahiriya' for column two... Oops!
http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Main_Page

Validate zip code using just first 4 digits

I'm using table rates to assign shipping costs in Magento.
Our zip codes are in the following format: XXXX-XXX. Is there any "easy" way I can change the validation so that 1234-234 is assigned the same shipping cost as 1234-678 without doing it explicitly?
I would like to fill the tablerates.csv file like this:
Country,Region/State,"Zip/Postal Code","Order Subtotal (and above)","Shipping Price"
US,*,1234,20,5
and the system would assign 5 as the shipping cost to 1234-234, since 1234 is contained within 1234-234.
I'm imagining a simple change from "if clientzip = csvzip" to "if clientzip like 'csvzip%" somewhere in Magento's files...
I found a workaround. My country didn't have regions set in the database, so I added the three relevant regions to my country (in terms of shipping costs).
INSERT INTO db_magento.directory_country_region (
region_id ,
country_id ,
code ,
default_name
)
VALUES (
NULL , 'CountryCode', 'RegionCode', 'Region Name')
Now the system automatically forces filling out the "State/Province" field.

Magmi multi-store import

first of all, thank you for providing Magmi, it really helps us keeping our products up to date on daily basis.
I would like to ask you one question - We want to sell our products in Hungary and I want to ask you, how should we configure .csv files in order to have product names in different language? So far we havent done anything particular, I just set up some store management settings, so our .hu version is reachable using url.
Additional info:
Magento Store management setting:
Website Name
Store Name
Store View Name
ourshop.hu
Hu
Magyar
ourshop.sk
Sk
Slovenčina
We fill up these attributes in mamgi csv files:
sku,
_attribute_set,
_type,
magmi:delete,
_product_websites,
status,
visibility,
name,
url_key,
description,
short_description,
enable_googlecheckout,
category_ids,
weight,
price,
special_price,
special_from_date,
tax_class_id,
manage_stock,
use_config_manage_stock,
VeÄľkost:drop_down:1,
size,
brand,
spinview,
labeldiscount,
thumbnail,
small_image,
image,
media_gallery,
media_gallery_reset
Thank you very much.
Have you looked at using the "store" column?
The documentation is not bad: http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Magmi_Behaviour_-_store_column
The store column in magmi accepts store view codes , one or several.
And also an example:
store,sku,attribute1,attribute2
"admin","0001","value1","value2" <= sets default values for attributes attribute1 & attribute2 for sku 0001
"sv1","0001","value1","value2" <= sets values for attributes attribute1 & attribute2 for store view sv1 for sku 0001
"sv1,sv2","0002","value1","value2" <= sets values for attributes attribute1 & attribute2 for store view sv1 & sv2 for sku 0002
Is that what you were looking for?

Resources