I need to create a module in prestashop 1.7.3 to make available wholesale prices. The main idea: There are 3 types of prices in cart: retail price, small_wholesale price and BIG_wholesale price. I need to add small_wholesale price and big_wholesale price fields to my product and allow admin to add product and set them in prices tab(below retail price). Actually it's easy to create extra database fields in product table what i did, but still don't know what to override to create fields in product creation page, it should look like this.
I'm actually working on a import script to import products from a provider xml file on Magento CE 1.9.1.
Simple products are imported fine but i need to create configurable products programmatically aswell.
I would like create configurable product based on simple product Sku or a custom attribute.
For example in my provider xml i have a custom attribute called "modelcode" which is based on product sku :
SKU Modelcode
123456A 123456$
123456B 123456$
123456C 123456$
My provider said me products with the same modelcode finishing by "$" must be assign to the same configurable product.
How could i do a configurable product programmatically based on this where the configurable product sku is the modelcode without "$" and all other attribute are the same of his "children product" except color (which is the select option) ?
Thanks
I've tried to export products + category from X magento to Y magento with this https://www.siteground.com/tutorials/magento/import-products.htm
FYI, the exported files are correct, even XML or CSV type.
But, i found error when i importing it. it says i found 84 rows, but it's only Imported 1 records, when i check the Manage Products, none of products is imported. I tried on CSV and XML files, the result are same.
The magento version of both are similar, any possibilities to debug it?
In your import process 84 records means there is 84 lines in your csv file not 84 products!
I guess you're using just one sku for all of your products and that's why you have just one imported product. It's good to know that
magento uses sku as ID to identify products, so you need to assign an unique sku to every single product.
Update:
To insert new products by CSV Import check this columns in your csv file.
Required Product Attributes for New Products (written as they should appear in the CSV file column):
sku
Stock Keeping Unit - a unique value to identify the product. No two items can share the same SKU in Pixafy.
_attribute_set
Unless you have already set up Attribute Sets, set this to "Default"
_type
What type of product is this? Your options are: simple, configurable, virtual, and downloadable. Grouped or bundle products can not be imported at this time and must be created in the Control Panel.
name
The product's name- such as "Magic Wand". This should not be longer than 60 characters
description
The long description with detailed information regarding the product.
short_description
The shorter description that appears to the right of the Product Image on the Product page
price
The amount you are charging your customers for this product before sales or discounts.
status
Is the product Enabled or Disabled? Enabled is 1, Disabled, 2
visibility
How will the customer be able to view this item?
Visible in Catalog and Search = 4
Visible in Catalog =2
Visible in Search = 3
Not visible individually = 1
tax_class_id
Tax Class ID as set up under Set Up > Tax > Product Tax Classes. By default, Taxable Goods are 2
weight
Enter a numerical value for the weight of this product. This will be used by any calculated shipping methods.
_product_websites
At this time, your only option is base
Update 2:
To learn how to add product images to your csv file, read this post:
Update Magento products with multiple images
I'm creating a product feed for several client using my extension. For this specific client, they have different price setup compared to others. They have configurable products and under that simple products connected to configurable one. Their prices usually match but when they put a product under discount, they only set discounted price to configurable product. In their site, discount price getting read from configurable one. But in my extension, I'm reading products one by one and when I get the price of the simple product, it returns me non-discounted one. I'm using the following code:
$price = $product->getPrice();
$discount_price = $product->getFinalPrice();
Is there an easy way or anyway to retrieve configurable product's discounted price while processing simple product?
Edit: I'm also posting orders after I get the product by its SKU. I'm having the same price issue in there as well.
I have a WooCommerce with automatic products import from a source and I have 2 different files to import: first one is for products, second one for prices and stocks.
Sometimes I import products that are still not present in the second file, and I get a list of "blank" price products that goes online on my shop.
How can I tell WooCommerce to not show those products?