Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ dhakazone.com/ catalog/ model/ extension/ openbay/

/home/bdapparelinfo/dhakazone.com/catalog/model/extension/openbay/amazon_listing.php

<?php
class ModelExtensionOpenBayAmazonListing extends Model {
	public function listingSuccessful($product_id, $marketplace) {
		$this->db->query("UPDATE `" . DB_PREFIX . "amazon_product` SET `status` = 'ok' WHERE product_id = " . (int)$product_id . " AND `marketplaces` = '" . $this->db->escape($marketplace) . "' AND `version` = 3
		");
	}

	public function listingFailed($product_id, $marketplace, $messages) {
		$this->db->query("UPDATE `" . DB_PREFIX . "amazon_product` SET `status` = 'error', `messages` = '" . $this->db->escape(json_encode($messages)) . "' WHERE product_id = " . (int)$product_id . " AND `marketplaces` = '" . $this->db->escape($marketplace) . "' AND `version` = 3");
	}
}