Adjust price by category / import element
-
Hi Dear,
Idea is to get ajusting price by import element, in my case category.
Here is the examplefunction saleprices($element) { $x = 'Monitor LED'; $y = 'PC Notebook Consumer'; $z = 'TV LED'; if ($element == $x) { echo number_format("120")."<br>";} if (stripos($element, $z) !== false) { echo number_format("125")."<br>";} if (stripos($element, $y) !== false) { echo number_format("130")."<br>";; } else { return; } }
Those echos: 120, 125, 130 I want to place in field REGULAR PRICE.
But when I try to import like this I get 0.00 prices.Could you maybe help me, because this is very practical idea for e-commerce to get pricing by some filter.
Thank you
Sejkan
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Adjust price by category / import element’ is closed to new replies.