Version Notes
New features :
>Images generation for grouped children
Download this release
Release Info
| Developer | BeezUP |
| Extension | BeezUP_Module_feed_and_tracker |
| Version | 4.6.5 |
| Comparing to | |
| See all releases | |
Code changes from version 4.6.4 to 4.6.5
app/code/community/BeezUp/Block/Xml.php
CHANGED
|
@@ -474,453 +474,438 @@
|
|
| 474 |
foreach ($datos['media_gallery']['images'] as $img) {
|
| 475 |
|
| 476 |
if($img['disabled']==0 && $image !== $img['file']) {
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
}
|
| 481 |
}
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
|
|
|
| 491 |
$shipping_rate = $default_shipping_cost;
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
$inc++;
|
| 620 |
$xml .= $helper->tag($this->__('url_image')."_".$inc, $img->getUrl(), 1);
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
if ($this->needRefreshing('xml')){
|
| 913 |
-
if (file_exists('beezup/tmp/xml'))
|
| 914 |
-
$this->deleteFeed('xml');
|
| 915 |
-
$xmlData = $this->getXml($paginate);
|
| 916 |
-
$this->addText($xmlData);
|
| 917 |
-
if ($helper->getConfig('beezup/flux/cachedelay') != 0)
|
| 918 |
-
$this->createFile('xml', $xmlData);
|
| 919 |
-
}
|
| 920 |
-
else
|
| 921 |
-
echo file_get_contents('beezup/tmp/xml');
|
| 922 |
-
}
|
| 923 |
-
return parent::_toHtml();
|
| 924 |
-
}
|
| 925 |
-
}
|
| 926 |
-
|
| 474 |
foreach ($datos['media_gallery']['images'] as $img) {
|
| 475 |
|
| 476 |
if($img['disabled']==0 && $image !== $img['file']) {
|
| 477 |
+
$inc++;
|
| 478 |
+
$xml .= $helper->tag($this->__('url_image')."_".$inc, $helper->getImageDir() .$img['file'], 1);
|
| 479 |
+
|
|
|
|
| 480 |
}
|
| 481 |
+
}
|
| 482 |
+
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
$xml .= $helper->tag($this->__('b_availability'), $stock, 1);
|
| 486 |
+
$xml .= $helper->tag($this->__('b_qty'), $qty);
|
| 487 |
+
$xml .= $helper->tag($this->__('b_delivery'), $shipping, 1);
|
| 488 |
+
if($shipping_logic == 1) {
|
| 489 |
+
$shipping_rate = $beezup->_getShippingPrice($p, $shipping_carrier, $default_country);
|
| 490 |
+
if($shipping_rate == 0 && $default_shipping_cost > 0) {
|
| 491 |
$shipping_rate = $default_shipping_cost;
|
| 492 |
+
}
|
| 493 |
+
$xml .= $helper->tag($this->__('b_shipping'), $helper->currency($shipping_rate));
|
| 494 |
+
} else {
|
| 495 |
+
$xml .= $helper->tag($this->__('b_shipping'), $helper->currency($beezup->getShippingAmount($p->getWeight(), $_tablerates)));
|
| 496 |
+
}
|
| 497 |
+
$xml .= $helper->tag($this->__('b_weight'), $helper->currency($p->getWeight()));
|
| 498 |
+
$xml .= $helper->tag($this->__('b_price'), $helper->currency($final_price*$_vat));
|
| 499 |
+
if ($price != $final_price) $xml .= $helper->tag($this->__('b_regular_price'), $helper->currency($price*$_vat));
|
| 500 |
+
$i = 1;
|
| 501 |
+
foreach ($categories as $v) $xml .= $helper->tag($this->__('b_category_%s', $i++), $v, 1);
|
| 502 |
+
foreach ($_attributes as $a) {
|
| 503 |
+
$value = $p->getResource()->getAttribute($a)->getFrontend()->getValue($p);
|
| 504 |
+
$xml .= $helper->tag($a, is_float($value) ? $helper->currency($value) : $value, is_float($value) ? 0 : 1);
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
$xml .= '</product>' . PHP_EOL;
|
| 508 |
+
}
|
| 509 |
+
}
|
| 510 |
+
//}
|
| 511 |
+
}
|
| 512 |
+
if(isset($paginate['page'])) {
|
| 513 |
+
if($paginate['page'] == 1) {
|
| 514 |
+
$xml .= $this->getAssociatedProducto(true);
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
} else {
|
| 518 |
+
$xml .= $this->getAssociatedProducto(true);
|
| 519 |
+
}
|
| 520 |
+
$xml .= '</catalog>';
|
| 521 |
+
|
| 522 |
+
return $xml;
|
| 523 |
+
}
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
/**
|
| 527 |
+
Children permet de r�cup�rer tous les produits enfants
|
| 528 |
+
**/
|
| 529 |
+
public function getXmlChild($paginate = false)
|
| 530 |
+
{
|
| 531 |
+
/* Load Model and Helper */
|
| 532 |
+
$beezup = Mage::getModel('beezup/products');
|
| 533 |
+
$helper = Mage::helper('beezup');
|
| 534 |
+
$category_logic = $helper->getConfig('beezup/flux/category_logic');
|
| 535 |
+
/* Initially load the useful elements */
|
| 536 |
+
$shipping_logic = $helper->getConfig('beezup/flux/carrier_method');
|
| 537 |
+
if($shipping_logic == 1) {
|
| 538 |
+
$shipping_carrier = $helper->getConfig('beezup/flux/shipping_carrier');
|
| 539 |
+
$default_country = $helper->getConfig('beezup/flux/default_country');
|
| 540 |
+
}
|
| 541 |
+
$default_shipping_cost = (int)$helper->getConfig('beezup/flux/default_shipping_cost');
|
| 542 |
+
$many_images = $helper->getConfig('beezup/flux/images');
|
| 543 |
+
$_ht = $helper->getConfig('beezup/flux/ht');
|
| 544 |
+
$_description = $helper->getConfig('beezup/flux/description');
|
| 545 |
+
$_description = explode(",", $_description);
|
| 546 |
+
$enable_html = $helper->getConfig('beezup/flux/description_html');
|
| 547 |
+
$_tablerates = 0;
|
| 548 |
+
$cat_logic = false;
|
| 549 |
+
if($category_logic == 1) {
|
| 550 |
+
$_categories = $beezup->getCategoriesAsArray(Mage::helper('catalog/category')->getStoreCategories());
|
| 551 |
+
} else {
|
| 552 |
+
$cat_logic = true;
|
| 553 |
+
$categories = Mage::getModel('catalog/category')->getCollection()
|
| 554 |
+
->addAttributeToSelect('*')//or you can just add some attributes
|
| 555 |
+
->addAttributeToFilter('level', 2)
|
| 556 |
+
->addAttributeToFilter('is_active', 1);
|
| 557 |
+
$_categories = $beezup->getCategoriesAsArray( $categories, true);
|
| 558 |
+
|
| 559 |
+
}
|
| 560 |
+
$_attributes = $helper->getConfig('beezup/flux/attributes') ? explode(',', $helper->getConfig('beezup/flux/attributes')) : array();
|
| 561 |
+
$_vat = ($_ht && is_numeric($helper->getConfig('beezup/flux/vat'))) ? (preg_replace('(\,+)', '.', $helper->getConfig('beezup/flux/vat')) / 100) + 1 : 1;
|
| 562 |
+
// $_catalog_rules = $helper->getConfig('beezup/flux/catalog_rules');
|
| 563 |
+
|
| 564 |
+
/* Build file */
|
| 565 |
+
$xml = "\xEF\xBB\xBF";
|
| 566 |
+
$xml .= '<?xml version="1.0" encoding="utf-8"?>' . PHP_EOL . '<catalog>' . PHP_EOL;
|
| 567 |
+
|
| 568 |
+
$childs = $beezup->getConfigurableProducts(false, $paginate);
|
| 569 |
+
|
| 570 |
+
foreach ($childs as $c) {
|
| 571 |
+
|
| 572 |
+
//r�cup�rer l'image sur le p�re
|
| 573 |
+
$productParentIds=Mage::getResourceSingleton('catalog/product_type_configurable')->getParentIdsByChild($c->getId());
|
| 574 |
+
foreach($productParentIds as $productParentId){
|
| 575 |
+
$productParent = Mage::getModel('catalog/product')->load($productParentId);
|
| 576 |
+
$image=$productParent->getImage();
|
| 577 |
+
if($category_logic == 1) {
|
| 578 |
+
$categories = $beezup->getProductsCategories($p, $_categories);
|
| 579 |
+
} else {
|
| 580 |
+
|
| 581 |
+
$categories = $beezup->getProductsCategories2($p, $_categories);
|
| 582 |
+
}
|
| 583 |
+
$url = $productParent->getProductUrl();
|
| 584 |
+
$name = $productParent->getName();
|
| 585 |
+
$description_short = $productParent->getData("short_description");
|
| 586 |
+
$description = $productParent->getData("description");
|
| 587 |
+
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
if(count($categories)){
|
| 591 |
+
$qty = $beezup->getQty($c->getId());
|
| 592 |
+
$stock = $beezup->getIsInStock($qty);
|
| 593 |
+
$shipping = $beezup->getDelivery($qty);
|
| 594 |
+
$price = $c->getPrice();
|
| 595 |
+
$final_price = $c->getFinalPrice();
|
| 596 |
+
$image = $this->fillImageUrl($productParent, $c);
|
| 597 |
+
|
| 598 |
+
$xml .= '<product>';
|
| 599 |
+
$xml .= $helper->tag($this->__('b_unique_id'), $c->getId());
|
| 600 |
+
$xml .= $helper->tag($this->__('b_sku'), trim($c->getSku()), 1);
|
| 601 |
+
|
| 602 |
+
$xml .= $helper->tag($this->__('parent_or_child'), 'child', 1);
|
| 603 |
+
$xml .= $helper->tag($this->__('parent_id'), $c->getParentId());
|
| 604 |
+
|
| 605 |
+
$xml .= $helper->tag($this->__('b_title'), trim($name), 1);
|
| 606 |
+
//$xml .= $helper->tag($this->__('b_description'), preg_replace("/(\r\n|\n|\r)/", ' ', strip_tags($description)), 1);
|
| 607 |
+
$xml .= $helper->tag($this->__('b_description_short'), $description_short, 1);
|
| 608 |
+
$xml .= $helper->tag($this->__('b_description'), $description, 1);
|
| 609 |
+
$xml .= $helper->tag($this->__('b_product_url'), $url, 1);
|
| 610 |
+
|
| 611 |
+
|
| 612 |
+
$xml .= $helper->tag($this->__('url_image'), $helper->getImageDir() . $image, 1); //r�cup�re l'image sur le p�re
|
| 613 |
+
|
| 614 |
+
if($many_images == 1) {
|
| 615 |
+
$product = Mage::getModel('catalog/product')->load( $c->getId());
|
| 616 |
+
$inc = 1;
|
| 617 |
+
foreach ($product->getMediaGalleryImages() as $img) {
|
| 618 |
+
if($helper->getImageDir() . $image!== $img->getUrl()) {
|
| 619 |
$inc++;
|
| 620 |
$xml .= $helper->tag($this->__('url_image')."_".$inc, $img->getUrl(), 1);
|
| 621 |
+
}
|
| 622 |
+
}
|
| 623 |
+
|
| 624 |
+
|
| 625 |
+
|
| 626 |
+
}
|
| 627 |
+
|
| 628 |
+
$xml .= $helper->tag($this->__('b_availability'), $stock, 1);
|
| 629 |
+
$xml .= $helper->tag($this->__('b_qty'), $qty);
|
| 630 |
+
$xml .= $helper->tag($this->__('b_delivery'), $shipping, 1);
|
| 631 |
+
if($shipping_logic == 1) {
|
| 632 |
+
$shipping_rate = $beezup->_getShippingPrice($c, $shipping_carrier, $default_country);
|
| 633 |
+
if($shipping_rate == 0 && $default_shipping_cost > 0) {
|
| 634 |
+
$shipping_rate = $default_shipping_cost;
|
| 635 |
+
}
|
| 636 |
+
$xml .= $helper->tag($this->__('b_shipping'), $helper->currency($shipping_rate));
|
| 637 |
+
} else {
|
| 638 |
+
$xml .= $helper->tag($this->__('b_shipping'), $helper->currency($beezup->getShippingAmount($c->getWeight(), $_tablerates)));
|
| 639 |
+
}
|
| 640 |
+
|
| 641 |
+
$xml .= $helper->tag($this->__('b_weight'), $helper->currency($c->getWeight()));
|
| 642 |
+
$xml .= $helper->tag($this->__('b_price'), $helper->currency($final_price*$_vat));
|
| 643 |
+
if ($price != $final_price) $xml .= $helper->tag($this->__('b_regular_price'), $helper->currency($price*$_vat));
|
| 644 |
+
$i = 1;
|
| 645 |
+
foreach ($categories as $v) $xml .= $helper->tag($this->__('b_category_%s', $i++), $v, 1);
|
| 646 |
+
foreach ($_attributes as $a) {
|
| 647 |
+
$value = $c->getResource()->getAttribute($a)->getFrontend()->getValue($c);
|
| 648 |
+
$xml .= $helper->tag($a, is_float($value) ? $helper->currency($value) : $value, is_float($value) ? 0 : 1);
|
| 649 |
+
}
|
| 650 |
+
|
| 651 |
+
$xml .= '</product>' . PHP_EOL;
|
| 652 |
+
}
|
| 653 |
+
}
|
| 654 |
+
|
| 655 |
+
$xml .= '</catalog>';
|
| 656 |
+
|
| 657 |
+
return $xml;
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
/**
|
| 661 |
+
Produit groupes
|
| 662 |
+
**/
|
| 663 |
+
|
| 664 |
+
public function getAssociatedProducto($configurable )
|
| 665 |
+
{
|
| 666 |
+
|
| 667 |
+
/* Load Model and Helper */
|
| 668 |
+
$beezup = Mage::getModel('beezup/products');
|
| 669 |
+
$helper = Mage::helper('beezup');
|
| 670 |
+
$category_logic = $helper->getConfig('beezup/flux/category_logic');
|
| 671 |
+
/* Initially load the useful elements */
|
| 672 |
+
$shipping_logic = $helper->getConfig('beezup/flux/carrier_method');
|
| 673 |
+
if($shipping_logic == 1) {
|
| 674 |
+
$shipping_carrier = $helper->getConfig('beezup/flux/shipping_carrier');
|
| 675 |
+
$default_country = $helper->getConfig('beezup/flux/default_country');
|
| 676 |
+
}
|
| 677 |
+
|
| 678 |
+
$default_shipping_cost = (int)$helper->getConfig('beezup/flux/default_shipping_cost');
|
| 679 |
+
$many_images = $helper->getConfig('beezup/flux/images');
|
| 680 |
+
$_ht = $helper->getConfig('beezup/flux/ht');
|
| 681 |
+
$_description = $helper->getConfig('beezup/flux/description');
|
| 682 |
+
$_description = explode(",", $_description);
|
| 683 |
+
$enable_html = $helper->getConfig('beezup/flux/description_html');
|
| 684 |
+
$_tablerates = 0;
|
| 685 |
+
$cat_logic = false;
|
| 686 |
+
|
| 687 |
+
$_categories = $beezup->getCategoriesAsArray(Mage::helper('catalog/category')->getStoreCategories());
|
| 688 |
+
|
| 689 |
+
|
| 690 |
+
$_vat = ($_ht && is_numeric($helper->getConfig('beezup/flux/vat'))) ? (preg_replace('(\,+)', '.', $helper->getConfig('beezup/flux/vat')) / 100) + 1 : 1;
|
| 691 |
+
$_attributes = $helper->getConfig('beezup/flux/attributes') ? explode(',', $helper->getConfig('beezup/flux/attributes')) : array();
|
| 692 |
+
// $_catalog_rules = $helper->getConfig('beezup/flux/catalog_rules');
|
| 693 |
+
|
| 694 |
+
$products = $beezup->getGroupedProduct();
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
$buf = "\xEF\xBB\xBF";
|
| 698 |
+
foreach ($products as $product) {
|
| 699 |
+
$associatedProducts = $product->getTypeInstance(true)->getAssociatedProducts($product);
|
| 700 |
+
|
| 701 |
+
$parentCategories = $beezup->getProductsCategories($product, $_categories);
|
| 702 |
+
$parentDesc = $product->getData($_description);
|
| 703 |
+
$parentId = $product->getId();
|
| 704 |
+
$parentImage = $product->getImage();
|
| 705 |
+
$parentUrl = $product->getProductUrl();
|
| 706 |
+
|
| 707 |
+
foreach ($associatedProducts as $g) {
|
| 708 |
+
$qty = $beezup->getQty($g->getId());
|
| 709 |
+
$stock = $beezup->getIsInStock($qty);
|
| 710 |
+
$shipping = $beezup->getDelivery($qty);
|
| 711 |
+
$price = $g->getPrice();
|
| 712 |
+
$final_price = $g->getFinalPrice();
|
| 713 |
+
|
| 714 |
+
$image = $this->fillImageUrl($product, $g);
|
| 715 |
+
|
| 716 |
+
|
| 717 |
+
//if (($image = $g->getImage()) == "no_selection" || ($image = $g->getImage()) == "") // Si on ne trouve pas d'image avec getImage on r�cup�re la smallImage
|
| 718 |
+
// $image = $g->getSmallImage();
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
//DBG
|
| 722 |
+
if (0)
|
| 723 |
+
{
|
| 724 |
+
echo "----------------------------" ."<br/>";
|
| 725 |
+
echo "Name : " .$g->getName() ."<br/>";
|
| 726 |
+
echo "Description : ".$parentDesc ."<br/>";
|
| 727 |
+
echo "Id : " .$g->getId() ."<br/>";
|
| 728 |
+
echo "Parent Id : " .$parentId ."<br/>";
|
| 729 |
+
echo "Url : " .$parentUrl ."<br/>";
|
| 730 |
+
echo "Image : " .$helper->getImageDir().$image ."<br/>";
|
| 731 |
+
|
| 732 |
+
|
| 733 |
+
echo "SKU : " .$g->getSku() ."<br/>";
|
| 734 |
+
echo "Quantity : " .$qty ."<br/>";
|
| 735 |
+
echo "Stock : " .$stock ."<br/>";
|
| 736 |
+
echo "Shipping : " .$shipping ."<br/>";
|
| 737 |
+
echo "price : " .$price ."<br/>";
|
| 738 |
+
echo "finalprice : ".$final_price ."<br/>";
|
| 739 |
+
echo "weight : " .$g->getWeight() ."<br/>";
|
| 740 |
+
|
| 741 |
+
$i = 1;
|
| 742 |
+
foreach ($parentCategories as $v)
|
| 743 |
+
echo "Cat�gorie ".$i." : ".$v."<br/>";
|
| 744 |
+
}
|
| 745 |
+
|
| 746 |
+
|
| 747 |
+
$buf .= "<product>";
|
| 748 |
+
$buf .= $helper->tag($this->__('b_unique_id'), $g->getId());
|
| 749 |
+
$buf .= $helper->tag($this->__('b_sku'), trim($g->getSku()), 1);
|
| 750 |
+
if ($configurable){
|
| 751 |
+
$buf .= $helper->tag($this->__('parent_or_child'), 'grouped_child', 1);
|
| 752 |
+
$buf .= $helper->tag($this->__('parent_id'), $parentId);
|
| 753 |
+
}
|
| 754 |
+
$buf .= $helper->tag($this->__('b_title'), $g->getName()/*trim($name)*/, 1);
|
| 755 |
+
$buf .= $helper->tag($this->__('b_description'), preg_replace("/(\r\n|\n|\r)/", ' ', strip_tags($parentDesc)), 1);
|
| 756 |
+
$buf .= $helper->tag($this->__('b_product_url'), $parentUrl, 1);
|
| 757 |
+
$buf .= $helper->tag($this->__('b_product_image'), $helper->getImageDir() . $image, 1); //r�cup�re l'image sur le p�re
|
| 758 |
+
|
| 759 |
+
|
| 760 |
+
|
| 761 |
+
$buf .= $helper->tag($this->__('b_availability'), $stock, 1);
|
| 762 |
+
$buf .= $helper->tag($this->__('b_qty'), $qty);
|
| 763 |
+
$buf .= $helper->tag($this->__('b_delivery'), $shipping, 1);
|
| 764 |
+
if($shipping_logic == 1) {
|
| 765 |
+
if($shipping_rate == 0 && $default_shipping_cost > 0) {
|
| 766 |
+
$shipping_rate = $default_shipping_cost;
|
| 767 |
+
}
|
| 768 |
+
$shipping_rate = $beezup->_getShippingPrice($g, $shipping_carrier, $default_country);
|
| 769 |
+
$xml .= $helper->tag($this->__('b_shipping'), $helper->currency($shipping_rate));
|
| 770 |
+
} else {
|
| 771 |
+
$xml .= $helper->tag($this->__('b_shipping'), $helper->currency($beezup->getShippingAmount($g->getWeight(), $_tablerates)));
|
| 772 |
+
}
|
| 773 |
+
|
| 774 |
+
$buf .= $helper->tag($this->__('b_weight'), $helper->currency($g->getWeight()));
|
| 775 |
+
$buf .= $helper->tag($this->__('b_price'), $helper->currency($final_price * $_vat));
|
| 776 |
+
if ($price != $final_price) $buf .= $helper->tag($this->__('b_regular_price'), $helper->currency($price*$_vat));
|
| 777 |
+
$i = 1;
|
| 778 |
+
foreach ($parentCategories as $v) $buf .= $helper->tag($this->__('b_category_%s', $i++), $v, 1);
|
| 779 |
+
foreach ($_attributes as $a) {
|
| 780 |
+
$value = $g->getResource()->getAttribute($a)->getFrontend()->getValue($g);
|
| 781 |
+
$buf .= $helper->tag($a, is_float($value) ? $helper->currency($value) : $value, is_float($value) ? 0 : 1);
|
| 782 |
+
}
|
| 783 |
+
$buf .= "</product>".PHP_EOL;
|
| 784 |
+
}
|
| 785 |
+
}
|
| 786 |
+
return $buf;
|
| 787 |
+
}
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
protected function fillImageUrl($p, $c)
|
| 791 |
+
{
|
| 792 |
+
$image = $c->getImage();
|
| 793 |
+
if ($image == "no_selection" || $image == "") // Si on ne trouve pas d'image avec getImage on r�cup�re la smallImage
|
| 794 |
+
{
|
| 795 |
+
$image = $c->getSmallImage();
|
| 796 |
+
if ($image == "no_selection" || $image == "")
|
| 797 |
+
{
|
| 798 |
+
$image = $p->getImage();
|
| 799 |
+
if ($image == "no_selection" || $image == "")
|
| 800 |
+
$image = $p->getSmallImage();
|
| 801 |
+
}
|
| 802 |
+
}
|
| 803 |
+
return ($image);
|
| 804 |
+
}
|
| 805 |
+
|
| 806 |
+
protected function createFile($type, $xmlData)
|
| 807 |
+
{
|
| 808 |
+
$fp = fopen(Mage::getBaseDir('base').'/beezup/tmp/'.$type, 'w');
|
| 809 |
+
if ($fp == false)
|
| 810 |
+
{
|
| 811 |
+
echo 'Fail to create file';
|
| 812 |
+
}
|
| 813 |
+
fwrite($fp, $xmlData);
|
| 814 |
+
fclose($fp);
|
| 815 |
+
}
|
| 816 |
+
|
| 817 |
+
protected function deleteFeed($type)
|
| 818 |
+
{
|
| 819 |
+
unlink(Mage::getBaseDir('base').'/beezup/tmp/'.$type);
|
| 820 |
+
}
|
| 821 |
+
|
| 822 |
+
protected function needRefreshing($type)
|
| 823 |
+
{
|
| 824 |
+
$helper = Mage::helper('beezup');
|
| 825 |
+
|
| 826 |
+
$delay = $helper->getConfig('beezup/flux/cachedelay') * 60;
|
| 827 |
+
$nowtime = time();
|
| 828 |
+
$fileTime = filemtime(Mage::getBaseDir('base').'/beezup/tmp/'.$type);
|
| 829 |
+
if (($nowtime - $fileTime) >= $delay)
|
| 830 |
+
return (true);
|
| 831 |
+
else
|
| 832 |
+
return (false);
|
| 833 |
+
}
|
| 834 |
+
|
| 835 |
+
protected function createFolder()
|
| 836 |
+
{
|
| 837 |
+
$helper = Mage::helper('beezup');
|
| 838 |
+
if (!$helper->getConfig('beezup/flux/cachedelay')) // Si option cache desactiv�e, pas besoin du dossier
|
| 839 |
+
return (true);
|
| 840 |
+
if (file_exists('beezup/tmp')) // Si le dossier existe deja, pas besoin de le recr�er
|
| 841 |
+
return (true);
|
| 842 |
+
if (!mkdir('beezup/tmp', 0777, true))
|
| 843 |
+
{
|
| 844 |
+
echo "[ERROR] : Seems we can't create 'beezup' directory inside your root directory."."<br/>"
|
| 845 |
+
."You can try one of these solutions :"."<br/>"
|
| 846 |
+
."1 - Create by yourself the beezup/tmp inside your root directory with 777 permissions"."<br/>"
|
| 847 |
+
."2 - Change the permissions on your root directory (777)"."<br/>"
|
| 848 |
+
."3 - Change the 'cache delay' option to 'None' inside beezup plugin settings"."<br/>";
|
| 849 |
+
return (false);
|
| 850 |
+
}
|
| 851 |
+
return (true);
|
| 852 |
+
}
|
| 853 |
+
|
| 854 |
+
|
| 855 |
+
|
| 856 |
+
/**
|
| 857 |
+
C'est ici que tout commence ...
|
| 858 |
+
**/
|
| 859 |
+
|
| 860 |
+
protected function _toHtml()
|
| 861 |
+
{
|
| 862 |
+
set_time_limit(0);
|
| 863 |
+
$helper = Mage::helper('beezup');
|
| 864 |
+
$this->setCacheLifetime(null);
|
| 865 |
+
//dbg
|
| 866 |
+
/*
|
| 867 |
+
$this->getAssociatedProducto(true);
|
| 868 |
+
return;*/
|
| 869 |
+
$paginate = $this->getPagination();
|
| 870 |
+
if (!$this->createFolder()) // Si on rencontre des probl�mes de cr�ation de dossier on retourne rien
|
| 871 |
+
return;
|
| 872 |
+
if ($this->getConfigurable()){ // Appel de l'url http://site.com/beezup/catalog/configurable
|
| 873 |
+
if ($this->needRefreshing('configurable')){
|
| 874 |
+
if (file_exists('beezup/tmp/configurable'))
|
| 875 |
+
$this->deleteFeed('configurable');
|
| 876 |
+
$xmlData = $this->getXmlConfigurable($paginate);
|
| 877 |
+
$this->addText($xmlData);
|
| 878 |
+
if ($helper->getConfig('beezup/flux/cachedelay') != 0)
|
| 879 |
+
$this->createFile('configurable', $xmlData);
|
| 880 |
+
}
|
| 881 |
+
else
|
| 882 |
+
echo file_get_contents('beezup/tmp/configurable');
|
| 883 |
+
}
|
| 884 |
+
else if ($this->getChildXML()){ // Appel de l'url http://site.com/beezup/catalog/child
|
| 885 |
+
if ($this->needRefreshing('child')){
|
| 886 |
+
if (file_exists('beezup/tmp/child'))
|
| 887 |
+
$this->deleteFeed('child');
|
| 888 |
+
$xmlData = $this->getXmlChild($paginate);
|
| 889 |
+
$this->addText($xmlData);
|
| 890 |
+
if ($helper->getConfig('beezup/flux/cachedelay') != 0)
|
| 891 |
+
$this->createFile('child', $xmlData);
|
| 892 |
+
}
|
| 893 |
+
else
|
| 894 |
+
echo file_get_contents('beezup/tmp/child');
|
| 895 |
+
}
|
| 896 |
+
else { // Appel de l'url http://site.com/beezup/catalog/xml
|
| 897 |
+
if ($this->needRefreshing('xml')){
|
| 898 |
+
if (file_exists('beezup/tmp/xml'))
|
| 899 |
+
$this->deleteFeed('xml');
|
| 900 |
+
$xmlData = $this->getXml($paginate);
|
| 901 |
+
$this->addText($xmlData);
|
| 902 |
+
if ($helper->getConfig('beezup/flux/cachedelay') != 0)
|
| 903 |
+
$this->createFile('xml', $xmlData);
|
| 904 |
+
}
|
| 905 |
+
else
|
| 906 |
+
echo file_get_contents('beezup/tmp/xml');
|
| 907 |
+
}
|
| 908 |
+
return parent::_toHtml();
|
| 909 |
+
}
|
| 910 |
+
}
|
| 911 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/BeezUp/Model/Products.php
CHANGED
|
@@ -68,9 +68,9 @@
|
|
| 68 |
if (Mage::getStoreConfig('beezup/flux/debug_flux')) $products->setPageSize(10);
|
| 69 |
|
| 70 |
if($pagination) {
|
| 71 |
-
|
| 72 |
$products->setPageSize((int)$pagination['limit'])->setCurPage((int)$pagination['page']);
|
| 73 |
-
|
| 74 |
}
|
| 75 |
|
| 76 |
return $products;
|
|
@@ -81,6 +81,8 @@
|
|
| 81 |
$products = Mage::getModel('catalog/product')
|
| 82 |
->getCollection()
|
| 83 |
->addAttributeToSelect(Mage::getStoreConfig('beezup/flux/description'))
|
|
|
|
|
|
|
| 84 |
->addAttributeToFilter('type_id', array('eq' => 'grouped'));
|
| 85 |
|
| 86 |
return $products;
|
|
@@ -114,30 +116,30 @@
|
|
| 114 |
break;
|
| 115 |
case 2:
|
| 116 |
$products->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_SEARCH)));
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
}
|
| 133 |
|
| 134 |
|
| 135 |
$products->addAttributeToFilter('type_id', Mage_Catalog_Model_Product_Type::TYPE_SIMPLE);
|
| 136 |
|
| 137 |
if(Mage::getStoreConfig('beezup/flux/stock')){
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
}
|
| 142 |
|
| 143 |
$attributes = explode(',', Mage::getStoreConfig('beezup/flux/attributes'));
|
|
@@ -146,19 +148,19 @@
|
|
| 146 |
if (Mage::getStoreConfig('beezup/flux/debug_flux')) $products->setPageSize(10);
|
| 147 |
|
| 148 |
if($pagination) {
|
| 149 |
-
|
| 150 |
-
|
| 151 |
}
|
| 152 |
|
| 153 |
return $products;
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
* Retrieve configurable products collection
|
| 158 |
*
|
| 159 |
* @return Mage_Catalog_Model_Resource_Product_Collection?
|
| 160 |
-
|
| 161 |
-
|
| 162 |
$products = Mage::getResourceModel('catalog/product_type_configurable_product_collection')
|
| 163 |
->addAttributeToFilter('status', 1)
|
| 164 |
->addAttributeToFilter('price', array('neq' => 0))
|
|
@@ -179,209 +181,209 @@
|
|
| 179 |
->addStoreFilter();
|
| 180 |
|
| 181 |
if(Mage::getStoreConfig('beezup/flux/stock')){
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
}
|
| 186 |
|
| 187 |
$attributes = explode(',', Mage::getStoreConfig('beezup/flux/attributes'));
|
| 188 |
foreach ($attributes as $a) $products->addAttributeToSelect($a);
|
| 189 |
|
| 190 |
if($pagination) {
|
| 191 |
-
|
| 192 |
}
|
| 193 |
|
| 194 |
$productsArray = $products;
|
| 195 |
|
| 196 |
//si on est dans le cas o� on veut les p�res et les fils
|
| 197 |
if($config){
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
}
|
| 204 |
|
| 205 |
return $productsArray;
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
* Collect options applicable to the configurable product for Varation Theme
|
| 211 |
*
|
| 212 |
* @param Mage_Catalog_Model_Product $product
|
| 213 |
* @return String
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
$childs = $this->getConfigurableProducts();
|
| 218 |
|
| 219 |
//si c'est un parent
|
| 220 |
if(isset($childs[$product->getId()])) {
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
}
|
| 228 |
-
|
| 229 |
-
return implode('',$attributeOptions);
|
| 230 |
}
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
|
|
|
|
|
|
|
|
|
| 234 |
* Retrieve products stock
|
| 235 |
*
|
| 236 |
* @param int $id
|
| 237 |
* @param int $qty
|
| 238 |
* @return int
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($productId);
|
| 243 |
if ($stockItem->getManageStock()) {
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
}
|
| 251 |
return $qty;
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
* Retrieve product shipping amount
|
| 256 |
*
|
| 257 |
* @param float $weight
|
| 258 |
* @param Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection $tablerates
|
| 259 |
* @return float
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
$shipping_amount = 0;
|
| 264 |
|
| 265 |
if ($tablerates && $tablerates instanceof Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection) {
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
}
|
| 273 |
return $shipping_amount;
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
* Retrieve Tablerates
|
| 278 |
*
|
| 279 |
* @return Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
return Mage::getResourceModel('shipping/carrier_tablerate_collection')->setOrder('condition_value', 'desc');
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
* Retrieve product is in stock
|
| 288 |
*
|
| 289 |
* @param float $qty
|
| 290 |
* @return string
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
return ($qty > 0) ? Mage::helper('beezup')->__('In Stock') : Mage::helper('beezup')->__('Out of Stock');
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
* Retrieve product delivery
|
| 299 |
*
|
| 300 |
* @param float $qty
|
| 301 |
* @return string
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
return ($qty > 0) ? Mage::getStoreConfig('beezup/flux/days_in') : Mage::getStoreConfig('beezup/flux/days_out');
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
* Retrieve store categories as array (recursive)
|
| 310 |
*
|
| 311 |
* @param Varien_Data_Tree_Node_Collection $categories
|
| 312 |
* @param string $parent
|
| 313 |
* @param array $cats
|
| 314 |
* @return string
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
if($logic) {
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
}
|
| 343 |
-
return $cats;
|
| 344 |
-
|
| 345 |
-
} else {
|
| 346 |
-
foreach ($categories as $c) {
|
| 347 |
-
$cats[$c['entity_id']] = $parent . $c['name'];
|
| 348 |
-
|
| 349 |
-
if (!Mage::helper('catalog/category_flat')->isEnabled()) {
|
| 350 |
-
if ($childs = $c->getChildren()) {
|
| 351 |
-
$this->getCategoriesAsArray($childs, $logic, $parent . $c['name'] . '||', $cats);
|
| 352 |
-
}
|
| 353 |
-
} else {
|
| 354 |
-
if (isset($c['children_nodes'])) {
|
| 355 |
-
$this->getCategoriesAsArray($c['children_nodes'], $logic, $parent . $c['name'] . '||', $cats);
|
| 356 |
-
}
|
| 357 |
-
}
|
| 358 |
-
}
|
| 359 |
}
|
| 360 |
return $cats;
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
$categories = $categoryObject->getChildrenCategories();
|
| 367 |
foreach ($categories as $catgory){
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
}
|
| 373 |
return $this->_catIds;
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
* Retrieve product categories
|
| 378 |
*
|
| 379 |
* @param Mage_Catalog_Model_Product $product
|
| 380 |
* @param array $categories
|
| 381 |
* @return array
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
|
| 386 |
|
| 387 |
$_categories = $product->getCategoryIds();
|
|
@@ -389,28 +391,28 @@
|
|
| 389 |
sort($_categories);
|
| 390 |
$result = array();
|
| 391 |
if(count($_categories)) {
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
}
|
| 400 |
|
| 401 |
return $result;
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
* Retrieve product categories
|
| 407 |
*
|
| 408 |
* @param Mage_Catalog_Model_Product $product
|
| 409 |
* @param array $categories
|
| 410 |
* @return array
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
$result = array();
|
| 415 |
$_categories = $product->getCategoryIds();
|
| 416 |
$parent_id = 0;
|
|
@@ -419,41 +421,41 @@
|
|
| 419 |
sort($_categories);
|
| 420 |
|
| 421 |
if(count($_categories)) {
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
}
|
| 438 |
return $result;
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
* Retrieve current store
|
| 444 |
*
|
| 445 |
* @return Mage_Core_Model_Store
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
return Mage::app()->getStore();
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
* Get shipping price
|
| 458 |
*
|
| 459 |
* @param Mage_Catalog_Model_Product $product_instance
|
|
@@ -461,48 +463,48 @@
|
|
| 461 |
* @param string $countryCode
|
| 462 |
*
|
| 463 |
* @return mixed
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
$carrierTab = explode('_', $carrierValue);
|
| 468 |
list($carrierCode, $methodCode) = $carrierTab;
|
| 469 |
$shipping = Mage::getModel('shipping/shipping');
|
| 470 |
$methodModel = $shipping->getCarrierByCode($carrierCode);
|
| 471 |
if($methodModel) {
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
}
|
| 481 |
-
} else {
|
| 482 |
-
return 0;
|
| 483 |
-
}
|
| 484 |
}
|
|
|
|
| 485 |
return 0;
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
|
|
|
|
|
|
|
|
|
| 489 |
* Get Shipping rate request
|
| 490 |
*
|
| 491 |
* @param Mage_Catalog_Model_Product $product_instance
|
| 492 |
* @param string $countryCode
|
| 493 |
*
|
| 494 |
* @return Mage_Shipping_Model_Rate_Request
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
/** @var $request Mage_Shipping_Model_Rate_Request */
|
| 499 |
$request = Mage::getModel('shipping/rate_request');
|
| 500 |
$storeId = $request->getStoreId();
|
| 501 |
if (!$request->getOrig()) {
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
}
|
| 507 |
$item = Mage::getModel('sales/quote_item');
|
| 508 |
$item->setStoreId($storeId);
|
|
@@ -523,7 +525,7 @@
|
|
| 523 |
$request->setBaseCurrency(Mage::app()->getStore()->getBaseCurrency());
|
| 524 |
$request->setPackageCurrency(Mage::app()->getStore()->getCurrentCurrency());
|
| 525 |
return $request;
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 68 |
if (Mage::getStoreConfig('beezup/flux/debug_flux')) $products->setPageSize(10);
|
| 69 |
|
| 70 |
if($pagination) {
|
| 71 |
+
|
| 72 |
$products->setPageSize((int)$pagination['limit'])->setCurPage((int)$pagination['page']);
|
| 73 |
+
|
| 74 |
}
|
| 75 |
|
| 76 |
return $products;
|
| 81 |
$products = Mage::getModel('catalog/product')
|
| 82 |
->getCollection()
|
| 83 |
->addAttributeToSelect(Mage::getStoreConfig('beezup/flux/description'))
|
| 84 |
+
->addAttributeToSelect('small_image')
|
| 85 |
+
->addAttributeToSelect('image')
|
| 86 |
->addAttributeToFilter('type_id', array('eq' => 'grouped'));
|
| 87 |
|
| 88 |
return $products;
|
| 116 |
break;
|
| 117 |
case 2:
|
| 118 |
$products->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_SEARCH)));
|
| 119 |
+
break;
|
| 120 |
+
case 3:
|
| 121 |
+
$products->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)));
|
| 122 |
+
break;
|
| 123 |
+
case 4:
|
| 124 |
+
$products->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_SEARCH, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)));
|
| 125 |
+
break;
|
| 126 |
+
case 5:
|
| 127 |
+
$products->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)));
|
| 128 |
+
break;
|
| 129 |
+
case 6:
|
| 130 |
+
breaK;
|
| 131 |
+
case 7:
|
| 132 |
+
$products->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)));
|
| 133 |
+
break;
|
| 134 |
}
|
| 135 |
|
| 136 |
|
| 137 |
$products->addAttributeToFilter('type_id', Mage_Catalog_Model_Product_Type::TYPE_SIMPLE);
|
| 138 |
|
| 139 |
if(Mage::getStoreConfig('beezup/flux/stock')){
|
| 140 |
+
Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);
|
| 141 |
+
//$products= $products->joinField('inventory_in_stock', 'cataloginventory_stock_item', 'is_in_stock', 'product_id=entity_id','is_in_stock>=0', 'left')
|
| 142 |
+
//->addAttributeToFilter('inventory_in_stock', array('neq' => 0));
|
| 143 |
}
|
| 144 |
|
| 145 |
$attributes = explode(',', Mage::getStoreConfig('beezup/flux/attributes'));
|
| 148 |
if (Mage::getStoreConfig('beezup/flux/debug_flux')) $products->setPageSize(10);
|
| 149 |
|
| 150 |
if($pagination) {
|
| 151 |
+
$products->setPageSize($pagination['limit'])->setCurPage($pagination['page']);
|
| 152 |
+
|
| 153 |
}
|
| 154 |
|
| 155 |
return $products;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
/*
|
| 159 |
* Retrieve configurable products collection
|
| 160 |
*
|
| 161 |
* @return Mage_Catalog_Model_Resource_Product_Collection?
|
| 162 |
+
*/
|
| 163 |
+
public function getConfigurableProducts($config = true, $pagination= false) {
|
| 164 |
$products = Mage::getResourceModel('catalog/product_type_configurable_product_collection')
|
| 165 |
->addAttributeToFilter('status', 1)
|
| 166 |
->addAttributeToFilter('price', array('neq' => 0))
|
| 181 |
->addStoreFilter();
|
| 182 |
|
| 183 |
if(Mage::getStoreConfig('beezup/flux/stock')){
|
| 184 |
+
Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);
|
| 185 |
+
//$products= $products->joinField('inventory_in_stock', 'cataloginventory_stock_item', 'is_in_stock', 'product_id=entity_id','is_in_stock>=0', 'left')
|
| 186 |
+
//->addAttributeToFilter('inventory_in_stock', array('neq' => 0));
|
| 187 |
}
|
| 188 |
|
| 189 |
$attributes = explode(',', Mage::getStoreConfig('beezup/flux/attributes'));
|
| 190 |
foreach ($attributes as $a) $products->addAttributeToSelect($a);
|
| 191 |
|
| 192 |
if($pagination) {
|
| 193 |
+
$products->setPageSize($pagination['limit'])->setCurPage($pagination['page']);
|
| 194 |
}
|
| 195 |
|
| 196 |
$productsArray = $products;
|
| 197 |
|
| 198 |
//si on est dans le cas o� on veut les p�res et les fils
|
| 199 |
if($config){
|
| 200 |
+
$productsArray = array();
|
| 201 |
+
|
| 202 |
+
foreach($products as $p) {
|
| 203 |
+
$productsArray[$p->getParentId()][] = $p;
|
| 204 |
+
}
|
| 205 |
}
|
| 206 |
|
| 207 |
return $productsArray;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
/*
|
| 212 |
* Collect options applicable to the configurable product for Varation Theme
|
| 213 |
*
|
| 214 |
* @param Mage_Catalog_Model_Product $product
|
| 215 |
* @return String
|
| 216 |
+
*/
|
| 217 |
+
|
| 218 |
+
public function getOptions($product) {
|
| 219 |
$childs = $this->getConfigurableProducts();
|
| 220 |
|
| 221 |
//si c'est un parent
|
| 222 |
if(isset($childs[$product->getId()])) {
|
| 223 |
+
$productAttributeOptions = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product);
|
| 224 |
+
|
| 225 |
+
$attributeOptions = array();
|
| 226 |
+
|
| 227 |
+
foreach ($productAttributeOptions as $productAttribute) {
|
| 228 |
+
$attributeOptions[] = ucfirst($productAttribute['attribute_code']);
|
|
|
|
|
|
|
|
|
|
| 229 |
}
|
| 230 |
+
|
| 231 |
+
return implode('',$attributeOptions);
|
| 232 |
+
}
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
/*
|
| 236 |
* Retrieve products stock
|
| 237 |
*
|
| 238 |
* @param int $id
|
| 239 |
* @param int $qty
|
| 240 |
* @return int
|
| 241 |
+
*/
|
| 242 |
+
public function getQty($productId, $qty = 0)
|
| 243 |
+
{
|
| 244 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($productId);
|
| 245 |
if ($stockItem->getManageStock()) {
|
| 246 |
+
if ($stockItem->getIsInStock()) {
|
| 247 |
+
$qty = intval($stockItem->getQty());
|
| 248 |
+
$qty = ($qty <= 0) ? 0 : $qty;
|
| 249 |
+
}
|
| 250 |
+
} else {
|
| 251 |
+
$qty = 100;
|
| 252 |
}
|
| 253 |
return $qty;
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
/*
|
| 257 |
* Retrieve product shipping amount
|
| 258 |
*
|
| 259 |
* @param float $weight
|
| 260 |
* @param Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection $tablerates
|
| 261 |
* @return float
|
| 262 |
+
*/
|
| 263 |
+
public function getShippingAmount($weight, $tablerates)
|
| 264 |
+
{
|
| 265 |
$shipping_amount = 0;
|
| 266 |
|
| 267 |
if ($tablerates && $tablerates instanceof Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection) {
|
| 268 |
+
foreach ($tablerates as $t) {
|
| 269 |
+
if ($weight <= $t->getConditionValue()) $shipping_amount = $t->getPrice();
|
| 270 |
+
}
|
| 271 |
+
} else {
|
| 272 |
+
$shipping_amount = preg_replace('(\,+)', '.', trim(Mage::getStoreConfig('beezup/flux/ship')));
|
| 273 |
+
if (!is_numeric($shipping_amount)) $shipping_amount = 0;
|
| 274 |
}
|
| 275 |
return $shipping_amount;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
/*
|
| 279 |
* Retrieve Tablerates
|
| 280 |
*
|
| 281 |
* @return Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection
|
| 282 |
+
*/
|
| 283 |
+
public function getTablerates()
|
| 284 |
+
{
|
| 285 |
return Mage::getResourceModel('shipping/carrier_tablerate_collection')->setOrder('condition_value', 'desc');
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
/*
|
| 289 |
* Retrieve product is in stock
|
| 290 |
*
|
| 291 |
* @param float $qty
|
| 292 |
* @return string
|
| 293 |
+
*/
|
| 294 |
+
public function getIsInStock($qty)
|
| 295 |
+
{
|
| 296 |
return ($qty > 0) ? Mage::helper('beezup')->__('In Stock') : Mage::helper('beezup')->__('Out of Stock');
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
/*
|
| 300 |
* Retrieve product delivery
|
| 301 |
*
|
| 302 |
* @param float $qty
|
| 303 |
* @return string
|
| 304 |
+
*/
|
| 305 |
+
public function getDelivery($qty)
|
| 306 |
+
{
|
| 307 |
return ($qty > 0) ? Mage::getStoreConfig('beezup/flux/days_in') : Mage::getStoreConfig('beezup/flux/days_out');
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
/*
|
| 311 |
* Retrieve store categories as array (recursive)
|
| 312 |
*
|
| 313 |
* @param Varien_Data_Tree_Node_Collection $categories
|
| 314 |
* @param string $parent
|
| 315 |
* @param array $cats
|
| 316 |
* @return string
|
| 317 |
+
*/
|
| 318 |
+
public function getCategoriesAsArray($categories, $logic = false, $parent = '', &$cats = array())
|
| 319 |
+
{
|
| 320 |
if($logic) {
|
| 321 |
+
$parent = 0;
|
| 322 |
+
$i = 0;
|
| 323 |
+
$tl_name = '';
|
| 324 |
+
$_categories = $categories;
|
| 325 |
+
foreach($_categories as $_category){
|
| 326 |
+
|
| 327 |
+
if($i==0 ) {
|
| 328 |
+
$par_cat = Mage::getModel('catalog/category')->load($_category->getId())->getParentCategory();
|
| 329 |
+
|
| 330 |
+
$cats[$par_cat->getId()] = array("name" => $tl_name.$par_cat->getName(), "id" => $par_cat->getId(), "parent" => $par_cat->getParentId());
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
//$_category = Mage::getModel('catalog/category')->load($_category->getId());
|
| 335 |
+
$cats[$_category->getId()] = array("name" => $tl_name.$_category->getName(), "id" => $_category->getId(), "parent" => $_category->getParentId() ); //Toplevel auslesen
|
| 336 |
+
$i++;
|
| 337 |
+
$_category = Mage::getModel('catalog/category')->load($_category->getId());
|
| 338 |
+
$subcats = $this->getChildCategories($_category);
|
| 339 |
+
|
| 340 |
+
foreach($subcats as $c) {
|
| 341 |
+
|
| 342 |
+
$cats[$c['id']] = array("name" => $tl_name.$c['name'], "id" => $c['id'] , "parent" => $c['parent']);
|
| 343 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
}
|
| 345 |
return $cats;
|
| 346 |
+
|
| 347 |
+
} else {
|
| 348 |
+
foreach ($categories as $c) {
|
| 349 |
+
$cats[$c['entity_id']] = $parent . $c['name'];
|
| 350 |
+
|
| 351 |
+
if (!Mage::helper('catalog/category_flat')->isEnabled()) {
|
| 352 |
+
if ($childs = $c->getChildren()) {
|
| 353 |
+
$this->getCategoriesAsArray($childs, $logic, $parent . $c['name'] . '||', $cats);
|
| 354 |
+
}
|
| 355 |
+
} else {
|
| 356 |
+
if (isset($c['children_nodes'])) {
|
| 357 |
+
$this->getCategoriesAsArray($c['children_nodes'], $logic, $parent . $c['name'] . '||', $cats);
|
| 358 |
+
}
|
| 359 |
+
}
|
| 360 |
+
}
|
| 361 |
+
}
|
| 362 |
+
return $cats;
|
| 363 |
+
}
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
public $_catIds = array();
|
| 367 |
+
public function getChildCategories($categoryObject){
|
| 368 |
$categories = $categoryObject->getChildrenCategories();
|
| 369 |
foreach ($categories as $catgory){
|
| 370 |
+
if($catgory->hasChildren()){
|
| 371 |
+
$this->getChildCategories($catgory);
|
| 372 |
+
}
|
| 373 |
+
$this->_catIds[] = array("id" => $catgory->getId(), "name" => $catgory->getName(), "parent" => $catgory->getParentId());
|
| 374 |
}
|
| 375 |
return $this->_catIds;
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
/*
|
| 379 |
* Retrieve product categories
|
| 380 |
*
|
| 381 |
* @param Mage_Catalog_Model_Product $product
|
| 382 |
* @param array $categories
|
| 383 |
* @return array
|
| 384 |
+
*/
|
| 385 |
+
public function getProductsCategories($product,$categories)
|
| 386 |
+
{
|
| 387 |
|
| 388 |
|
| 389 |
$_categories = $product->getCategoryIds();
|
| 391 |
sort($_categories);
|
| 392 |
$result = array();
|
| 393 |
if(count($_categories)) {
|
| 394 |
+
$_count = 0;
|
| 395 |
+
foreach($_categories as $c) {
|
| 396 |
+
if(isset($categories[$c])) {
|
| 397 |
+
if(count(explode('||',$categories[$c])) > $_count) $result = explode('||',$categories[$c]);
|
| 398 |
+
$_count = count($result);
|
| 399 |
+
}
|
| 400 |
+
}
|
| 401 |
}
|
| 402 |
|
| 403 |
return $result;
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
/*
|
| 408 |
* Retrieve product categories
|
| 409 |
*
|
| 410 |
* @param Mage_Catalog_Model_Product $product
|
| 411 |
* @param array $categories
|
| 412 |
* @return array
|
| 413 |
+
*/
|
| 414 |
+
public function getProductsCategories2($product,$categories)
|
| 415 |
+
{
|
| 416 |
$result = array();
|
| 417 |
$_categories = $product->getCategoryIds();
|
| 418 |
$parent_id = 0;
|
| 421 |
sort($_categories);
|
| 422 |
|
| 423 |
if(count($_categories)) {
|
| 424 |
+
$_count = 0;
|
| 425 |
+
foreach($_categories as $c) {
|
| 426 |
+
if(isset($categories[$c])) {
|
| 427 |
+
if( $parent_id == $categories[$c]['parent'] || $i <= 1) {
|
| 428 |
+
$result[] = $categories[$c]['name'];
|
| 429 |
+
|
| 430 |
+
|
| 431 |
+
$parent_id = $categories[$c]['id'];
|
| 432 |
+
|
| 433 |
+
}
|
| 434 |
+
$i++;
|
| 435 |
+
// if(count(explode('||',$categories[$c])) > $_count) $result = explode('||',$categories[$c]);
|
| 436 |
+
$_count = count($result);
|
| 437 |
+
}
|
| 438 |
+
}
|
| 439 |
}
|
| 440 |
return $result;
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
/*
|
| 445 |
* Retrieve current store
|
| 446 |
*
|
| 447 |
* @return Mage_Core_Model_Store
|
| 448 |
+
*/
|
| 449 |
+
public function getStore()
|
| 450 |
+
{
|
| 451 |
return Mage::app()->getStore();
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
/**
|
| 459 |
* Get shipping price
|
| 460 |
*
|
| 461 |
* @param Mage_Catalog_Model_Product $product_instance
|
| 463 |
* @param string $countryCode
|
| 464 |
*
|
| 465 |
* @return mixed
|
| 466 |
+
*/
|
| 467 |
+
public function _getShippingPrice($product_instance, $carrierValue, $countryCode = 'FR')
|
| 468 |
+
{
|
| 469 |
$carrierTab = explode('_', $carrierValue);
|
| 470 |
list($carrierCode, $methodCode) = $carrierTab;
|
| 471 |
$shipping = Mage::getModel('shipping/shipping');
|
| 472 |
$methodModel = $shipping->getCarrierByCode($carrierCode);
|
| 473 |
if($methodModel) {
|
| 474 |
+
$result = $methodModel->collectRates($this->_getShippingRateRequest($product_instance, $countryCode));
|
| 475 |
+
if($result != NULL) {
|
| 476 |
+
if($result->getError()) {
|
| 477 |
+
return 0;
|
| 478 |
+
} else {
|
| 479 |
+
foreach($result->getAllRates() as $rate) {
|
| 480 |
+
return $rate->getPrice();
|
| 481 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 482 |
}
|
| 483 |
+
} else {
|
| 484 |
return 0;
|
| 485 |
+
}
|
| 486 |
+
}
|
| 487 |
+
return 0;
|
| 488 |
+
}
|
| 489 |
+
|
| 490 |
+
/**
|
| 491 |
* Get Shipping rate request
|
| 492 |
*
|
| 493 |
* @param Mage_Catalog_Model_Product $product_instance
|
| 494 |
* @param string $countryCode
|
| 495 |
*
|
| 496 |
* @return Mage_Shipping_Model_Rate_Request
|
| 497 |
+
*/
|
| 498 |
+
protected function _getShippingRateRequest($product_instance, $countryCode = 'FR')
|
| 499 |
+
{
|
| 500 |
/** @var $request Mage_Shipping_Model_Rate_Request */
|
| 501 |
$request = Mage::getModel('shipping/rate_request');
|
| 502 |
$storeId = $request->getStoreId();
|
| 503 |
if (!$request->getOrig()) {
|
| 504 |
+
$request->setCountryId($countryCode)
|
| 505 |
+
->setRegionId('')
|
| 506 |
+
->setCity('')
|
| 507 |
+
->setPostcode('');
|
| 508 |
}
|
| 509 |
$item = Mage::getModel('sales/quote_item');
|
| 510 |
$item->setStoreId($storeId);
|
| 525 |
$request->setBaseCurrency(Mage::app()->getStore()->getBaseCurrency());
|
| 526 |
$request->setPackageCurrency(Mage::app()->getStore()->getCurrentCurrency());
|
| 527 |
return $request;
|
| 528 |
+
}
|
| 529 |
+
|
| 530 |
+
|
| 531 |
+
}
|
app/code/community/BeezUp/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<BeezUp>
|
| 5 |
-
<version>4.6.
|
| 6 |
</BeezUp>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<BeezUp>
|
| 5 |
+
<version>4.6.5</version>
|
| 6 |
</BeezUp>
|
| 7 |
</modules>
|
| 8 |
<global>
|
app/code/community/BeezUp/etc/system.xml
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
<tracking translate="label">
|
| 14 |
<label>Tracking</label>
|
| 15 |
<frontend_type>text</frontend_type>
|
| 16 |
-
<comment><![CDATA[<div style="font-size:11px;padding:3px;margin-bottom:20px;background:#FFF9E9;border:1px solid #EEE2BE">Support BeezUP : <a href="mailto:help@beezup.com">help@beezup.com</a> (Magento BeezUP
|
| 17 |
<sort_order>1</sort_order>
|
| 18 |
<show_in_default>1</show_in_default>
|
| 19 |
<show_in_website>1</show_in_website>
|
|
@@ -77,7 +77,7 @@
|
|
| 77 |
<marketplace tanslate="label">
|
| 78 |
<label>Marketplace</label>
|
| 79 |
<frontend_type>text</frontend_type>
|
| 80 |
-
<comment><![CDATA[<div style="font-size:11px;padding:3px;margin-bottom:20px;background:#FFF9E9;border:1px solid #EEE2BE">Support BeezUP : <a href="mailto:help@beezup.com">help@beezup.com</a> (Magento BeezUP
|
| 81 |
<sort_order>2</sort_order>
|
| 82 |
<show_in_default>1</show_in_default>
|
| 83 |
<show_in_website>1</show_in_website>
|
|
@@ -409,7 +409,7 @@
|
|
| 409 |
<flux translate="label">
|
| 410 |
<label>Catalog Flow</label>
|
| 411 |
<frontend_type>text</frontend_type>
|
| 412 |
-
<comment><![CDATA[<div style="font-size:11px;padding:3px;margin-bottom:20px;background:#FFF9E9;border:1px solid #EEE2BE">Support BeezUP : <a href="mailto:help@beezup.com">help@beezup.com</a> (Magento BeezUP
|
| 413 |
<sort_order>2</sort_order>
|
| 414 |
<show_in_default>1</show_in_default>
|
| 415 |
<show_in_website>1</show_in_website>
|
| 13 |
<tracking translate="label">
|
| 14 |
<label>Tracking</label>
|
| 15 |
<frontend_type>text</frontend_type>
|
| 16 |
+
<comment><![CDATA[<div style="font-size:11px;padding:3px;margin-bottom:20px;background:#FFF9E9;border:1px solid #EEE2BE">Support BeezUP : <a href="mailto:help@beezup.com">help@beezup.com</a> (Magento BeezUP V4.6.5) - <a href="http://go.beezup.com" target="_blank">My BeezUP Account</a></div>]]></comment>
|
| 17 |
<sort_order>1</sort_order>
|
| 18 |
<show_in_default>1</show_in_default>
|
| 19 |
<show_in_website>1</show_in_website>
|
| 77 |
<marketplace tanslate="label">
|
| 78 |
<label>Marketplace</label>
|
| 79 |
<frontend_type>text</frontend_type>
|
| 80 |
+
<comment><![CDATA[<div style="font-size:11px;padding:3px;margin-bottom:20px;background:#FFF9E9;border:1px solid #EEE2BE">Support BeezUP : <a href="mailto:help@beezup.com">help@beezup.com</a> (Magento BeezUP V4.6.5) - <a href="http://go.beezup.com" target="_blank">My BeezUP Account</a></div>]]></comment>
|
| 81 |
<sort_order>2</sort_order>
|
| 82 |
<show_in_default>1</show_in_default>
|
| 83 |
<show_in_website>1</show_in_website>
|
| 409 |
<flux translate="label">
|
| 410 |
<label>Catalog Flow</label>
|
| 411 |
<frontend_type>text</frontend_type>
|
| 412 |
+
<comment><![CDATA[<div style="font-size:11px;padding:3px;margin-bottom:20px;background:#FFF9E9;border:1px solid #EEE2BE">Support BeezUP : <a href="mailto:help@beezup.com">help@beezup.com</a> (Magento BeezUP V4.6.5) - <a href="http://go.beezup.com" target="_blank">My BeezUP Account</a></div>]]></comment>
|
| 413 |
<sort_order>2</sort_order>
|
| 414 |
<show_in_default>1</show_in_default>
|
| 415 |
<show_in_website>1</show_in_website>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>BeezUP_Module_feed_and_tracker</name>
|
| 4 |
-
<version>4.6.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -42,11 +42,11 @@ After Set-up, the following files are added :</p>
|
|
| 42 |

|
| 43 |
<p>By BeezUP & Magentix</p></description>
|
| 44 |
<notes>New features :
|
| 45 |
-
>
|
| 46 |
<authors><author><name>BeezUP</name><user>BeezUP</user><email>charles@beezup.com</email></author></authors>
|
| 47 |
-
<date>2016-05-
|
| 48 |
-
<time>
|
| 49 |
-
<contents><target name="magecommunity"><dir name="BeezUp"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="e18c65bc83cab8795b4ffd0d46e04c8a"/><dir name="Invoice"><file name="Totals.php" hash="ac065cd586fd2534de7e12762ab9b335"/></dir><file name="Totals.php" hash="5972281aa467d63da56a297a8df3da55"/><dir name="View"><dir name="Tab"><file name="Custom.php" hash="a60f500d604038645b826fa74e9b6619"/></dir></dir></dir><file name="Order.php" hash="c038c302f2c86f79431b49c7282c3f5c"/></dir><dir name="System"><dir name="Config"><file name="Attributes.php" hash="a504265fe4dc2df69b311d8219c88fbf"/><file name="Button.php" hash="476b33034b0c7d36e1bbd85f38b841db"/><file name="Childgroup.php" hash="388d3dee8f9d66a56c43c2790a44b45a"/><file name="Credentials.php" hash="b86f361800bebfd6fcf3564d9fe87c95"/><file name="Cron.php" hash="e1d47b095623593beb7f166d2ad7fecc"/><file name="Filter.php" hash="ad7ba55e18c080e25a08309dc428402a"/><file name="Log.php" hash="86221765980c0aee2381d5efd740949d"/><file name="Manualcron.php" hash="cbac01f15d256a43f0388f58449bffd0"/><file name="Orderlink.php" hash="9b9242ea9ccc4cfa746036b72aed2cc1"/><file name="Stores.php" hash="4297f4c94f136bb9778c9ddcd0cb336c"/><file name="Syncstatus.php" hash="49164eb19331aadabc0581472cd3c567"/><file name="Time.php" hash="ac5c2e4a40e9c6ff68cea1097dfa1e7b"/></dir></dir></dir><file name="Omstatus.php" hash="a40f2918627077264132594cfe028290"/><file name="Order.php" hash="f911b2962639f9f96018237eb51b8892"/><file name="Tracking.php" hash="e6dcd6b89e782b2eb6cb83abfb1b7f56"/><file name="Xml.php" hash="ae72affa5895c8191b12724554c3bfb3"/></dir><dir name="Helper"><file name="Data.php" hash="867a2562b255beaf3faa047d4130304f"/></dir><dir name="Model"><file name="Flatrate.php" hash="27d078203781d9b923605f685bfe5c25"/><file name="Observer.php" hash="3bcb925df1965ef23ef1fb08ab64de08"/><file name="Products.php" hash="6d471745eddabe2bf75bdea600d239bf"/><dir name="Quote"><file name="Item.php" hash="13cef88e165932990fa032b57e8905a0"/></dir><dir name="Sales"><dir name="Order"><dir name="Pdf"><file name="Invoice.php" hash="9eaf28084db176b41c6007da3d529d18"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Attributes.php" hash="174aee475c6a6a8b0b4f2e8e076c6a25"/><file name="Credentials.php" hash="09ef9fab57f64eb6415d71ba8aec2412"/><file name="Time.php" hash="a70e4d748a9b300ec7b718168fa4d5f8"/><file name="Token.php" hash="60247c8b4d5889433ae1f92e998cc889"/></dir><dir name="Source"><file name="Attributes.php" hash="8f57313a41349c7a8132b8d8e2de275e"/><file name="Availableproducts.php" hash="d9d4b3705f5fbd98efbae0289a1b6d6d"/><file name="Cache.php" hash="0ca6ccc2fed56e2c602d76880d062053"/><file name="Carriers.php" hash="8d6a9940891902a0a8d5a99c366432ce"/><file name="Categories.php" hash="c4e9f0a54f1d9c688543f26f02f99142"/><file name="Countries.php" hash="b6f1a9a75d5368d6365f06b42524e002"/><file name="Customercreate.php" hash="ca5d2b2d1ad4e18f9a1135af21b10bc2"/><file name="Debug.php" hash="6538ebc0cd0d61c124e5adc806e71aff"/><file name="Description.php" hash="1746e688692fc99524f02fb18e707dcf"/><file name="Images.php" hash="78fb5e2054bbfaa2e76263b1aa9197cc"/><file name="Montant.php" hash="3a46b8d564f1c2f0ed3b62354ac8964f"/><file name="Payment.php" hash="4bebe8e6ab0f980c1ada872b46e86503"/><file name="Position.php" hash="f1d6f89f5db5bfeedc506c539e76e3a8"/><file name="Price.php" hash="71707a69106cdd4990767351ab78fc04"/><file name="Shipping.php" hash="3b38e6a923d98f2739b70c9960958dd6"/><file name="Status.php" hash="d32004ad97adac6de361703a403a6a97"/><file name="Userid.php" hash="3d028bc3bfcaf7541b57676c014c94db"/><file name="Visibility.php" hash="91c69e8f967c13162eb38306c0391080"/></dir></dir></dir></dir><dir name="controllers"><file name="CacheController.php" hash="512cc26abd39d556104d5e69c0ac8a0d"/><file name="CatalogController.php" hash="0b65f6951e26283ea8c60bffa397186d"/><file name="CronController.php" hash="026ddcd6df9a51a41037687ca8d53a0b"/><file name="LogController.php" hash="5eff0d0a2c5621456e580e214d05c745"/><file name="OmstatusController.php" hash="95ae171ef21f861a7eaf74931b62a9db"/><file name="OrderController.php" hash="a2b8df2fb01fb4df8e7f04bcd7689bb3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e50ed10cb5025ff3a6dd7c90a6f7e0a4"/><file name="config.xml" hash="b6e08cb67381277e63fec3a99e9562e2"/><file name="system.xml" hash="4682c8d1d3beda0355db6f40aabf4cfb"/></dir><dir name="img"><file name="ajax-loader.gif" hash="2a6692973429d7a74513bfa8bcb5be20"/></dir><dir name="lib"><file name="BeezupMageOrders.php" hash="cb62e5d5322912447cf829599013c17f"/><file name="BeezupOMDataHandler.php" hash="cf738987179f3125fc0f4626fd70f1a0"/><file name="BeezupOMOrderService.php" hash="47c09c14dce66f914023ff09374cd674"/><file name="BeezupOMOrderServiceInterface.php" hash="9b18485ae224c32f46ae5a2ec5966e5b"/><file name="BeezupOMRepositoryInterface.php" hash="c2a8267c01c3e5def25ed41f715fa4b4"/><file name="BeezupOMRequestData.php" hash="162196502ecc6078ac6b7dec6f068c80"/><file name="BeezupOMResponseData.php" hash="955ce5316129e837190f2ccf9962d74f"/><file name="BeezupOMServiceClientProxy.php" hash="82821826016c467657d56b568a42bd35"/><file name="BeezupOMStatus.php" hash="5ebcc05f1b763887e420c8f4f459bfdb"/><file name="BeezupRepository.php" hash="4a4eaabcd0a5d7427154e93757c3733d"/><dir name="Common"><file name="BeezupOMCredential.php" hash="7f45272d16860058af07005dda39672e"/><file name="BeezupOMErrorSummary.php" hash="418db7b85beb030b2d28aee6c8b35bf1"/><file name="BeezupOMExpectedOrderChangeMetaInfo.php" hash="be802f69a3474d6cc6a5899711c7018c"/><file name="BeezupOMInfoSummaries.php" hash="cdece780cf38e3f09ce2d5550b93a567"/><file name="BeezupOMInfoSummary.php" hash="3b0d49f22882e239c87060aa58beb643"/><file name="BeezupOMLink.php" hash="9fa99dce0b51e235e101259b2f0304f8"/><file name="BeezupOMOrderIdentifier.php" hash="334f410bf0794cb2ce02b4b1e6d3e0f4"/><file name="BeezupOMProcessingStatus.php" hash="b70c4c23a75360b5bee4d9ddec9e7915"/><file name="BeezupOMRequest.php" hash="2497b1ed30c12d179a5629479aee418d"/><file name="BeezupOMResponse.php" hash="690688115873ac9a3172bf67a0d62b50"/><file name="BeezupOMResult.php" hash="5cb890ce4ad4205114dd94cd1f28222d"/><file name="BeezupOMSuccessSummary.php" hash="791c6c186ed15ec1b872905b820cd03c"/><file name="BeezupOMSummary.php" hash="6cc3712480eff9f19b80b0ab887155f0"/><file name="BeezupOMWarningSummary.php" hash="03cfd6a98901b6b460b974b8e938a659"/></dir><dir name="Harvest"><file name="BeezupOMHarvestAbstractReporting.php" hash="3d499a69ea7b646eaeef5b80f0a919f3"/><file name="BeezupOMHarvestClientReporting.php" hash="1e40eca349352912e408718f3b218777"/><file name="BeezupOMHarvestOrderReporting.php" hash="778ba93a7673f35b2072003e3510ba6b"/></dir><file name="KLogger.php" hash="fe1d31bbfdf4d59a858ffd43453536c2"/><dir name="LOV"><file name="BeezupOMLOVRequest.php" hash="165c873b3fea4201a3b35596d24ffe36"/><file name="BeezupOMLOVResponse.php" hash="586749fb17b16d5ff9f07909e516b3c7"/><file name="BeezupOMLOVResult.php" hash="c0e3cc917a1d625ac6094917481a7b52"/><file name="BeezupOMLOVValue.php" hash="0dd13ae88e99c2537df8804f3af248b9"/></dir><dir name="Order"><file name="BeezupOMOrderItem.php" hash="a770b90ae4fcb6535563be6ff59f7528"/><file name="BeezupOMOrderRequest.php" hash="9afa0f18fc0aef344c3f71d054db23a0"/><file name="BeezupOMOrderResponse.php" hash="e8793a8754ec75a92ca6266357462307"/><file name="BeezupOMOrderResult.php" hash="b82fd5d86b578f2eb1d162a1169f3a9b"/></dir><dir name="OrderChange"><file name="BeezupOMOrderChangeMetaInfo.php" hash="abdbdfd6c3bf291fd38f9b3ddc419405"/><file name="BeezupOMOrderChangeRequest.php" hash="f43b9c0a052fe5346a1b309c6d96ae9c"/><file name="BeezupOMOrderChangeResponse.php" hash="bbb4e49e5ddb90991e763daa439a5642"/><file name="BeezupOMOrderChangeResult.php" hash="e7314addf6c2e51196577055d583f350"/></dir><dir name="OrderHistory"><file name="BeezupOMOrderChangeReporting.php" hash="fc7a7d7ee8bc53f8c5b7ed19793a911a"/><file name="BeezupOMOrderHarvestReporting.php" hash="e4cb500ef347d8e8543e0bf278d3d77c"/><file name="BeezupOMOrderHistoryRequest.php" hash="2e39c26d8d9dd4d5a92a2cde06c41353"/><file name="BeezupOMOrderHistoryResponse.php" hash="dc6a0c6dc89bf1f376d1ecfebd052a4b"/><file name="BeezupOMOrderHistoryResult.php" hash="d85d9b4ecf6c0456b5c8453cc3b9cfdd"/></dir><dir name="OrderList"><file name="BeezupOMOrderHeader.php" hash="af366bc39855f1315678f01b53859c1c"/><file name="BeezupOMOrderListRequest.php" hash="817c20c7c82fd5f05e0efb19ee19ec4b"/><file name="BeezupOMOrderListResponse.php" hash="b1b0ed33ba495f6e2c2f3a39ade2a5cd"/><file name="BeezupOMOrderListResult.php" hash="8befe82305a6c6fe3cacf113b3722585"/><file name="BeezupOMPaginationResult.php" hash="1e1ef534ddef8ac43d98839b4ed7f941"/></dir><dir name="SetOrderId"><file name="BeezupOMSetOrderIdRequest.php" hash="40b4a05023396115f582c2e907834e3b"/><file name="BeezupOMSetOrderIdResponse.php" hash="c4cb1f9013ae32dfdff8ca80e4725282"/><file name="BeezupOMSetOrderIdResult.php" hash="8b35abb55c52f6acdfd55bf20b370bf0"/><file name="BeezupOMSetOrderIdValues.php" hash="978b41465512c15bfe160463ca23d24f"/></dir><dir name="Stores"><file name="BeezupOMStore.php" hash="0882efcae2eff339d6cdcceee83135a7"/><file name="BeezupOMStoresRequest.php" hash="a6b1391e306f2ed21fd5e2fcdbcbbec5"/><file name="BeezupOMStoresResponse.php" hash="21535a8957506ef7da343a0526b57b02"/><file name="BeezupOMStoresResult.php" hash="d4ceed947e9e8086638497e75bbd20e8"/></dir><file name="bootstrap.php" hash="9e0e69bc9e9a932c7c80f8480c025bd2"/></dir><dir name="sql"><dir name="beezup_setup"><file name="mysql4-install-4.0.0.php" hash="75dacb26e3f96975a873c906eb37fbb0"/><file name="mysql4-upgrade-4.5.0-4.6.0.php" hash="34d1bc3a9b7658923a389fd6653ed4c9"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BeezUp.xml" hash="93df32f86c55b57363b9abc62cf68474"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="BeezUp.csv" hash="3ae5819ffc7157b01772a15a9b16d2a2"/></dir><dir name="en_US"><file name="BeezUp.csv" hash="05b26592c14245824173936807731db4"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="beezup_salestab.xml" hash="784925d72538a1eeb0ca695417147a7a"/></dir><dir name="template"><dir name="beezup"><file name="custom.phtml" hash="ea83d17a2e8814c3a9ae9e056c7926a8"/></dir></dir></dir></dir></dir></target></contents>
|
| 50 |
<compatible/>
|
| 51 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 52 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>BeezUP_Module_feed_and_tracker</name>
|
| 4 |
+
<version>4.6.5</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
|
| 7 |
<channel>community</channel>
|
| 42 |

|
| 43 |
<p>By BeezUP & Magentix</p></description>
|
| 44 |
<notes>New features :
|
| 45 |
+
>Images generation for grouped children</notes>
|
| 46 |
<authors><author><name>BeezUP</name><user>BeezUP</user><email>charles@beezup.com</email></author></authors>
|
| 47 |
+
<date>2016-05-19</date>
|
| 48 |
+
<time>11:56:59</time>
|
| 49 |
+
<contents><target name="magecommunity"><dir name="BeezUp"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="e18c65bc83cab8795b4ffd0d46e04c8a"/><dir name="Invoice"><file name="Totals.php" hash="ac065cd586fd2534de7e12762ab9b335"/></dir><file name="Totals.php" hash="5972281aa467d63da56a297a8df3da55"/><dir name="View"><dir name="Tab"><file name="Custom.php" hash="a60f500d604038645b826fa74e9b6619"/></dir></dir></dir><file name="Order.php" hash="c038c302f2c86f79431b49c7282c3f5c"/></dir><dir name="System"><dir name="Config"><file name="Attributes.php" hash="a504265fe4dc2df69b311d8219c88fbf"/><file name="Button.php" hash="476b33034b0c7d36e1bbd85f38b841db"/><file name="Childgroup.php" hash="388d3dee8f9d66a56c43c2790a44b45a"/><file name="Credentials.php" hash="b86f361800bebfd6fcf3564d9fe87c95"/><file name="Cron.php" hash="e1d47b095623593beb7f166d2ad7fecc"/><file name="Filter.php" hash="ad7ba55e18c080e25a08309dc428402a"/><file name="Log.php" hash="86221765980c0aee2381d5efd740949d"/><file name="Manualcron.php" hash="cbac01f15d256a43f0388f58449bffd0"/><file name="Orderlink.php" hash="9b9242ea9ccc4cfa746036b72aed2cc1"/><file name="Stores.php" hash="4297f4c94f136bb9778c9ddcd0cb336c"/><file name="Syncstatus.php" hash="49164eb19331aadabc0581472cd3c567"/><file name="Time.php" hash="ac5c2e4a40e9c6ff68cea1097dfa1e7b"/></dir></dir></dir><file name="Omstatus.php" hash="a40f2918627077264132594cfe028290"/><file name="Order.php" hash="f911b2962639f9f96018237eb51b8892"/><file name="Tracking.php" hash="e6dcd6b89e782b2eb6cb83abfb1b7f56"/><file name="Xml.php" hash="228c716e1f569e2a4c968134eca76ff5"/></dir><dir name="Helper"><file name="Data.php" hash="867a2562b255beaf3faa047d4130304f"/></dir><dir name="Model"><file name="Flatrate.php" hash="27d078203781d9b923605f685bfe5c25"/><file name="Observer.php" hash="3bcb925df1965ef23ef1fb08ab64de08"/><file name="Products.php" hash="61c2d49c312360e6a0a8d9ed6395b67c"/><dir name="Quote"><file name="Item.php" hash="13cef88e165932990fa032b57e8905a0"/></dir><dir name="Sales"><dir name="Order"><dir name="Pdf"><file name="Invoice.php" hash="9eaf28084db176b41c6007da3d529d18"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Attributes.php" hash="174aee475c6a6a8b0b4f2e8e076c6a25"/><file name="Credentials.php" hash="09ef9fab57f64eb6415d71ba8aec2412"/><file name="Time.php" hash="a70e4d748a9b300ec7b718168fa4d5f8"/><file name="Token.php" hash="60247c8b4d5889433ae1f92e998cc889"/></dir><dir name="Source"><file name="Attributes.php" hash="8f57313a41349c7a8132b8d8e2de275e"/><file name="Availableproducts.php" hash="d9d4b3705f5fbd98efbae0289a1b6d6d"/><file name="Cache.php" hash="0ca6ccc2fed56e2c602d76880d062053"/><file name="Carriers.php" hash="8d6a9940891902a0a8d5a99c366432ce"/><file name="Categories.php" hash="c4e9f0a54f1d9c688543f26f02f99142"/><file name="Countries.php" hash="b6f1a9a75d5368d6365f06b42524e002"/><file name="Customercreate.php" hash="ca5d2b2d1ad4e18f9a1135af21b10bc2"/><file name="Debug.php" hash="6538ebc0cd0d61c124e5adc806e71aff"/><file name="Description.php" hash="1746e688692fc99524f02fb18e707dcf"/><file name="Images.php" hash="78fb5e2054bbfaa2e76263b1aa9197cc"/><file name="Montant.php" hash="3a46b8d564f1c2f0ed3b62354ac8964f"/><file name="Payment.php" hash="4bebe8e6ab0f980c1ada872b46e86503"/><file name="Position.php" hash="f1d6f89f5db5bfeedc506c539e76e3a8"/><file name="Price.php" hash="71707a69106cdd4990767351ab78fc04"/><file name="Shipping.php" hash="3b38e6a923d98f2739b70c9960958dd6"/><file name="Status.php" hash="d32004ad97adac6de361703a403a6a97"/><file name="Userid.php" hash="3d028bc3bfcaf7541b57676c014c94db"/><file name="Visibility.php" hash="91c69e8f967c13162eb38306c0391080"/></dir></dir></dir></dir><dir name="controllers"><file name="CacheController.php" hash="512cc26abd39d556104d5e69c0ac8a0d"/><file name="CatalogController.php" hash="0b65f6951e26283ea8c60bffa397186d"/><file name="CronController.php" hash="026ddcd6df9a51a41037687ca8d53a0b"/><file name="LogController.php" hash="5eff0d0a2c5621456e580e214d05c745"/><file name="OmstatusController.php" hash="95ae171ef21f861a7eaf74931b62a9db"/><file name="OrderController.php" hash="a2b8df2fb01fb4df8e7f04bcd7689bb3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e50ed10cb5025ff3a6dd7c90a6f7e0a4"/><file name="config.xml" hash="df2a26138f350a721cfc4d7dbbd35999"/><file name="system.xml" hash="b35727352ac72b8a8c09cc49cbfb1c6a"/></dir><dir name="img"><file name="ajax-loader.gif" hash="2a6692973429d7a74513bfa8bcb5be20"/></dir><dir name="lib"><file name="BeezupMageOrders.php" hash="cb62e5d5322912447cf829599013c17f"/><file name="BeezupOMDataHandler.php" hash="cf738987179f3125fc0f4626fd70f1a0"/><file name="BeezupOMOrderService.php" hash="47c09c14dce66f914023ff09374cd674"/><file name="BeezupOMOrderServiceInterface.php" hash="9b18485ae224c32f46ae5a2ec5966e5b"/><file name="BeezupOMRepositoryInterface.php" hash="c2a8267c01c3e5def25ed41f715fa4b4"/><file name="BeezupOMRequestData.php" hash="162196502ecc6078ac6b7dec6f068c80"/><file name="BeezupOMResponseData.php" hash="955ce5316129e837190f2ccf9962d74f"/><file name="BeezupOMServiceClientProxy.php" hash="82821826016c467657d56b568a42bd35"/><file name="BeezupOMStatus.php" hash="5ebcc05f1b763887e420c8f4f459bfdb"/><file name="BeezupRepository.php" hash="4a4eaabcd0a5d7427154e93757c3733d"/><dir name="Common"><file name="BeezupOMCredential.php" hash="7f45272d16860058af07005dda39672e"/><file name="BeezupOMErrorSummary.php" hash="418db7b85beb030b2d28aee6c8b35bf1"/><file name="BeezupOMExpectedOrderChangeMetaInfo.php" hash="be802f69a3474d6cc6a5899711c7018c"/><file name="BeezupOMInfoSummaries.php" hash="cdece780cf38e3f09ce2d5550b93a567"/><file name="BeezupOMInfoSummary.php" hash="3b0d49f22882e239c87060aa58beb643"/><file name="BeezupOMLink.php" hash="9fa99dce0b51e235e101259b2f0304f8"/><file name="BeezupOMOrderIdentifier.php" hash="334f410bf0794cb2ce02b4b1e6d3e0f4"/><file name="BeezupOMProcessingStatus.php" hash="b70c4c23a75360b5bee4d9ddec9e7915"/><file name="BeezupOMRequest.php" hash="2497b1ed30c12d179a5629479aee418d"/><file name="BeezupOMResponse.php" hash="690688115873ac9a3172bf67a0d62b50"/><file name="BeezupOMResult.php" hash="5cb890ce4ad4205114dd94cd1f28222d"/><file name="BeezupOMSuccessSummary.php" hash="791c6c186ed15ec1b872905b820cd03c"/><file name="BeezupOMSummary.php" hash="6cc3712480eff9f19b80b0ab887155f0"/><file name="BeezupOMWarningSummary.php" hash="03cfd6a98901b6b460b974b8e938a659"/></dir><dir name="Harvest"><file name="BeezupOMHarvestAbstractReporting.php" hash="3d499a69ea7b646eaeef5b80f0a919f3"/><file name="BeezupOMHarvestClientReporting.php" hash="1e40eca349352912e408718f3b218777"/><file name="BeezupOMHarvestOrderReporting.php" hash="778ba93a7673f35b2072003e3510ba6b"/></dir><file name="KLogger.php" hash="fe1d31bbfdf4d59a858ffd43453536c2"/><dir name="LOV"><file name="BeezupOMLOVRequest.php" hash="165c873b3fea4201a3b35596d24ffe36"/><file name="BeezupOMLOVResponse.php" hash="586749fb17b16d5ff9f07909e516b3c7"/><file name="BeezupOMLOVResult.php" hash="c0e3cc917a1d625ac6094917481a7b52"/><file name="BeezupOMLOVValue.php" hash="0dd13ae88e99c2537df8804f3af248b9"/></dir><dir name="Order"><file name="BeezupOMOrderItem.php" hash="a770b90ae4fcb6535563be6ff59f7528"/><file name="BeezupOMOrderRequest.php" hash="9afa0f18fc0aef344c3f71d054db23a0"/><file name="BeezupOMOrderResponse.php" hash="e8793a8754ec75a92ca6266357462307"/><file name="BeezupOMOrderResult.php" hash="b82fd5d86b578f2eb1d162a1169f3a9b"/></dir><dir name="OrderChange"><file name="BeezupOMOrderChangeMetaInfo.php" hash="abdbdfd6c3bf291fd38f9b3ddc419405"/><file name="BeezupOMOrderChangeRequest.php" hash="f43b9c0a052fe5346a1b309c6d96ae9c"/><file name="BeezupOMOrderChangeResponse.php" hash="bbb4e49e5ddb90991e763daa439a5642"/><file name="BeezupOMOrderChangeResult.php" hash="e7314addf6c2e51196577055d583f350"/></dir><dir name="OrderHistory"><file name="BeezupOMOrderChangeReporting.php" hash="fc7a7d7ee8bc53f8c5b7ed19793a911a"/><file name="BeezupOMOrderHarvestReporting.php" hash="e4cb500ef347d8e8543e0bf278d3d77c"/><file name="BeezupOMOrderHistoryRequest.php" hash="2e39c26d8d9dd4d5a92a2cde06c41353"/><file name="BeezupOMOrderHistoryResponse.php" hash="dc6a0c6dc89bf1f376d1ecfebd052a4b"/><file name="BeezupOMOrderHistoryResult.php" hash="d85d9b4ecf6c0456b5c8453cc3b9cfdd"/></dir><dir name="OrderList"><file name="BeezupOMOrderHeader.php" hash="af366bc39855f1315678f01b53859c1c"/><file name="BeezupOMOrderListRequest.php" hash="817c20c7c82fd5f05e0efb19ee19ec4b"/><file name="BeezupOMOrderListResponse.php" hash="b1b0ed33ba495f6e2c2f3a39ade2a5cd"/><file name="BeezupOMOrderListResult.php" hash="8befe82305a6c6fe3cacf113b3722585"/><file name="BeezupOMPaginationResult.php" hash="1e1ef534ddef8ac43d98839b4ed7f941"/></dir><dir name="SetOrderId"><file name="BeezupOMSetOrderIdRequest.php" hash="40b4a05023396115f582c2e907834e3b"/><file name="BeezupOMSetOrderIdResponse.php" hash="c4cb1f9013ae32dfdff8ca80e4725282"/><file name="BeezupOMSetOrderIdResult.php" hash="8b35abb55c52f6acdfd55bf20b370bf0"/><file name="BeezupOMSetOrderIdValues.php" hash="978b41465512c15bfe160463ca23d24f"/></dir><dir name="Stores"><file name="BeezupOMStore.php" hash="0882efcae2eff339d6cdcceee83135a7"/><file name="BeezupOMStoresRequest.php" hash="a6b1391e306f2ed21fd5e2fcdbcbbec5"/><file name="BeezupOMStoresResponse.php" hash="21535a8957506ef7da343a0526b57b02"/><file name="BeezupOMStoresResult.php" hash="d4ceed947e9e8086638497e75bbd20e8"/></dir><file name="bootstrap.php" hash="9e0e69bc9e9a932c7c80f8480c025bd2"/></dir><dir name="sql"><dir name="beezup_setup"><file name="mysql4-install-4.0.0.php" hash="75dacb26e3f96975a873c906eb37fbb0"/><file name="mysql4-upgrade-4.5.0-4.6.0.php" hash="34d1bc3a9b7658923a389fd6653ed4c9"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BeezUp.xml" hash="93df32f86c55b57363b9abc62cf68474"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="BeezUp.csv" hash="3ae5819ffc7157b01772a15a9b16d2a2"/></dir><dir name="en_US"><file name="BeezUp.csv" hash="05b26592c14245824173936807731db4"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="beezup_salestab.xml" hash="784925d72538a1eeb0ca695417147a7a"/></dir><dir name="template"><dir name="beezup"><file name="custom.phtml" hash="ea83d17a2e8814c3a9ae9e056c7926a8"/></dir></dir></dir></dir></dir></target></contents>
|
| 50 |
<compatible/>
|
| 51 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 52 |
</package>
|
