Version Notes
Code refactoring and bug fixing.
Download this release
Release Info
Developer | ZincPlatform |
Extension | zinc |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.1.0
- app/code/local/Zinc/Carebyzinc/Helper/Data.php +28 -1
- app/code/local/Zinc/Carebyzinc/Model/Carebyzinc.php +3 -2
- app/code/local/Zinc/Carebyzinc/Model/Checkout/Cart.php +8 -7
- app/code/local/Zinc/Carebyzinc/Model/Order.php +24 -0
- app/code/local/Zinc/Carebyzinc/controllers/CartController.php +61 -52
- app/code/local/Zinc/Carebyzinc/controllers/Checkout/OnepageController.php +9 -6
- app/code/local/Zinc/Carebyzinc/etc/config.xml +1 -1
- app/code/local/Zinc/Carebyzinc/etc/system.xml +18 -0
- app/code/local/Zinc/Carebyzinc/sql/carebyzinc_setup/mysql4-upgrade-1.0.7-1.0.8.php +0 -4
- app/design/frontend/base/default/template/carebyzinc/carebyzinc.phtml +11 -2
- app/design/frontend/base/default/template/carebyzinc/checkout/success.phtml +5 -1
- package.xml +6 -6
app/code/local/Zinc/Carebyzinc/Helper/Data.php
CHANGED
@@ -71,5 +71,32 @@ class Zinc_Carebyzinc_Helper_Data extends Mage_Core_Helper_Abstract
|
|
71 |
|
72 |
return $result;
|
73 |
}
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
71 |
|
72 |
return $result;
|
73 |
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Check interstital visability on frontend (product details page)
|
77 |
+
*
|
78 |
+
* @return boolean $result
|
79 |
+
*/
|
80 |
+
public function checkInterstitalVisibility()
|
81 |
+
{
|
82 |
+
$result = false;
|
83 |
+
|
84 |
+
$result = Mage::getStoreConfig('carebyzinc/display/interstitial');
|
85 |
+
|
86 |
+
return $result;
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Check thank you popup visability on frontend (after successful order)
|
91 |
+
*
|
92 |
+
* @return boolean $result
|
93 |
+
*/
|
94 |
+
public function checkThankYouVisibility()
|
95 |
+
{
|
96 |
+
$result = false;
|
97 |
+
|
98 |
+
$result = Mage::getStoreConfig('carebyzinc/display/thankyou');
|
99 |
+
|
100 |
+
return $result;
|
101 |
+
}
|
102 |
}
|
app/code/local/Zinc/Carebyzinc/Model/Carebyzinc.php
CHANGED
@@ -40,10 +40,11 @@ class Zinc_Carebyzinc_Model_Carebyzinc extends Mage_Core_Model_Abstract
|
|
40 |
* @param object $product
|
41 |
* @param string $zip
|
42 |
* @param string $optionPrice
|
|
|
43 |
*
|
44 |
* @return mixed $result - price quoite / error message
|
45 |
*/
|
46 |
-
public function getPriceQuote($product, $zip, $optionPrice)
|
47 |
{
|
48 |
$result = false;
|
49 |
|
@@ -68,7 +69,7 @@ class Zinc_Carebyzinc_Model_Carebyzinc extends Mage_Core_Model_Abstract
|
|
68 |
);
|
69 |
|
70 |
$data['additional_params'] = array(
|
71 |
-
'source' =>
|
72 |
);
|
73 |
|
74 |
$catArray = array('bicycle', 'electronics');
|
40 |
* @param object $product
|
41 |
* @param string $zip
|
42 |
* @param string $optionPrice
|
43 |
+
* @param string $source
|
44 |
*
|
45 |
* @return mixed $result - price quoite / error message
|
46 |
*/
|
47 |
+
public function getPriceQuote($product, $zip, $optionPrice, $source = self::QUOTE_ADDITIONAL_PARAMS_SOURCE_PRODUCT)
|
48 |
{
|
49 |
$result = false;
|
50 |
|
69 |
);
|
70 |
|
71 |
$data['additional_params'] = array(
|
72 |
+
'source' => $source
|
73 |
);
|
74 |
|
75 |
$catArray = array('bicycle', 'electronics');
|
app/code/local/Zinc/Carebyzinc/Model/Checkout/Cart.php
CHANGED
@@ -23,12 +23,13 @@ class Zinc_Carebyzinc_Model_Checkout_Cart extends Mage_Checkout_Model_Cart {
|
|
23 |
$flag = 0;
|
24 |
$qty = 0;
|
25 |
$productType = $product->getTypeId();
|
26 |
-
|
27 |
if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1)) {
|
28 |
$flag = 1;
|
29 |
$qty = $request->getQty() ? $request->getQty() : 1;
|
30 |
$request['qty'] = 1;
|
31 |
}
|
|
|
32 |
if ($product->getStockItem()) {
|
33 |
$minimumQty = $product->getStockItem()->getMinSaleQty();
|
34 |
//If product was not found in cart and there is set minimal qty for it
|
@@ -37,12 +38,11 @@ class Zinc_Carebyzinc_Model_Checkout_Cart extends Mage_Checkout_Model_Cart {
|
|
37 |
$request->setQty($minimumQty);
|
38 |
}
|
39 |
}
|
|
|
40 |
if ($flag) {
|
41 |
-
|
42 |
if ($productId) {
|
43 |
try {
|
44 |
-
for ($i
|
45 |
-
|
46 |
$additionalOptions = array();
|
47 |
$product = Mage::getModel('catalog/product')
|
48 |
->setStoreId(Mage::app()->getStore()->getId())
|
@@ -55,8 +55,8 @@ class Zinc_Carebyzinc_Model_Checkout_Cart extends Mage_Checkout_Model_Cart {
|
|
55 |
$carebyzincId = $request->getCarebyzincOption();
|
56 |
$priceQuote = Mage::getSingleton('core/session')->getCareQuote();
|
57 |
$carebyzincAry = $priceQuote[$carebyzincId];
|
|
|
58 |
if (!empty($carebyzincAry)) {
|
59 |
-
|
60 |
$productPrice = $result->getProduct()->getFinalPrice();
|
61 |
if ($carebyzincId) {
|
62 |
$result->setCarebyzincVariantid($carebyzincId);
|
@@ -66,11 +66,12 @@ class Zinc_Carebyzinc_Model_Checkout_Cart extends Mage_Checkout_Model_Cart {
|
|
66 |
|
67 |
$this->getQuote()->save();
|
68 |
$careParentId = $result->getId();
|
69 |
-
|
70 |
$warrantyProduct = Mage::getModel('catalog/product')->load($warrantPrdctId);
|
71 |
$productPrice = $warrantyProduct->getPrice();
|
72 |
-
if ($price = $carebyzincAry['price_per_year'])
|
73 |
$newPrice = $productPrice + $price;
|
|
|
74 |
$resultItem = $this->getQuote()->addProduct($warrantyProduct, $req);
|
75 |
$resultItem->setCustomPrice($newPrice);
|
76 |
$resultItem->setOriginalCustomPrice($newPrice);
|
23 |
$flag = 0;
|
24 |
$qty = 0;
|
25 |
$productType = $product->getTypeId();
|
26 |
+
|
27 |
if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1)) {
|
28 |
$flag = 1;
|
29 |
$qty = $request->getQty() ? $request->getQty() : 1;
|
30 |
$request['qty'] = 1;
|
31 |
}
|
32 |
+
|
33 |
if ($product->getStockItem()) {
|
34 |
$minimumQty = $product->getStockItem()->getMinSaleQty();
|
35 |
//If product was not found in cart and there is set minimal qty for it
|
38 |
$request->setQty($minimumQty);
|
39 |
}
|
40 |
}
|
41 |
+
|
42 |
if ($flag) {
|
|
|
43 |
if ($productId) {
|
44 |
try {
|
45 |
+
for ($i=0; $i<$qty; $i++) {
|
|
|
46 |
$additionalOptions = array();
|
47 |
$product = Mage::getModel('catalog/product')
|
48 |
->setStoreId(Mage::app()->getStore()->getId())
|
55 |
$carebyzincId = $request->getCarebyzincOption();
|
56 |
$priceQuote = Mage::getSingleton('core/session')->getCareQuote();
|
57 |
$carebyzincAry = $priceQuote[$carebyzincId];
|
58 |
+
|
59 |
if (!empty($carebyzincAry)) {
|
|
|
60 |
$productPrice = $result->getProduct()->getFinalPrice();
|
61 |
if ($carebyzincId) {
|
62 |
$result->setCarebyzincVariantid($carebyzincId);
|
66 |
|
67 |
$this->getQuote()->save();
|
68 |
$careParentId = $result->getId();
|
69 |
+
|
70 |
$warrantyProduct = Mage::getModel('catalog/product')->load($warrantPrdctId);
|
71 |
$productPrice = $warrantyProduct->getPrice();
|
72 |
+
if ($price = $carebyzincAry['price_per_year']) {
|
73 |
$newPrice = $productPrice + $price;
|
74 |
+
}
|
75 |
$resultItem = $this->getQuote()->addProduct($warrantyProduct, $req);
|
76 |
$resultItem->setCustomPrice($newPrice);
|
77 |
$resultItem->setOriginalCustomPrice($newPrice);
|
app/code/local/Zinc/Carebyzinc/Model/Order.php
CHANGED
@@ -262,6 +262,30 @@ class Zinc_Carebyzinc_Model_Order extends Mage_Core_Model_Abstract
|
|
262 |
return $result;
|
263 |
}
|
264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
/**
|
266 |
* Import historical orders from admin panel
|
267 |
*
|
262 |
return $result;
|
263 |
}
|
264 |
|
265 |
+
/**
|
266 |
+
*
|
267 |
+
* @param object $product - product object
|
268 |
+
* @return string $result - interstital price
|
269 |
+
*/
|
270 |
+
public function getInterstitalPrice($product)
|
271 |
+
{
|
272 |
+
$result = false;
|
273 |
+
|
274 |
+
$model = Mage::getModel('carebyzinc/carebyzinc');
|
275 |
+
|
276 |
+
$helper = Mage::helper('carebyzinc');
|
277 |
+
$zip = $helper->getZipCode();
|
278 |
+
|
279 |
+
$price = $model->getPriceQuote($product, $zip, false, 'INTERSTICIAL');
|
280 |
+
if(is_array($price) && $price['code'] == '200') {
|
281 |
+
foreach($price['price'] as $val) {
|
282 |
+
$result = '$' . $val['price_per_year'];
|
283 |
+
}
|
284 |
+
}
|
285 |
+
|
286 |
+
return $result;
|
287 |
+
}
|
288 |
+
|
289 |
/**
|
290 |
* Import historical orders from admin panel
|
291 |
*
|
app/code/local/Zinc/Carebyzinc/controllers/CartController.php
CHANGED
@@ -50,13 +50,18 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
50 |
$carebyzinc = $product->getCarebyzinc();
|
51 |
$isProduct = isset($params['isProduct']) && (int)$params['isProduct'] == 1 ? true : false;
|
52 |
|
53 |
-
|
|
|
|
|
54 |
if(!isset($params['carebyzinc_option'])) {
|
55 |
$cbzCategory = $product->getCarebyzincCategory();
|
56 |
|
57 |
if($carebyzinc == '1' && !empty($cbzCategory)) {
|
58 |
$model = Mage::getModel('carebyzinc/order');
|
|
|
59 |
$result = $model->prepareInterstitials($cbzCategory);
|
|
|
|
|
60 |
$sess = Mage::getSingleton("core/session", array("name"=>"frontend"));
|
61 |
$sess->setData('interstitials', $result);
|
62 |
|
@@ -166,6 +171,7 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
166 |
if($response) {
|
167 |
switch($response['action']) {
|
168 |
case 'cancel':
|
|
|
169 |
$cart->addProduct($product, $params);
|
170 |
if (!empty($related)) {
|
171 |
$cart->addProductsByIds(explode(',', $related));
|
@@ -218,11 +224,11 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
218 |
$product = Mage::getModel('catalog/product')->load($quoteItem->getProductId());
|
219 |
$productType = $product->getTypeId();
|
220 |
$flag = 0;
|
221 |
-
if(($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1))
|
222 |
-
{
|
223 |
$qty = 1;
|
224 |
$flag = 1;
|
225 |
}
|
|
|
226 |
if($product->getId() == Mage::getStoreConfig('carebyzinc/general/warranty_product')){
|
227 |
$flag = 0;
|
228 |
if($qty >1){
|
@@ -230,10 +236,11 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
230 |
$qty = 1;
|
231 |
}
|
232 |
}
|
|
|
233 |
if (isset($params['qty'])) {
|
234 |
-
if($flag){
|
235 |
$qty = $params['qty'];
|
236 |
-
if($qty >1)
|
237 |
$params['qty'] = 1;
|
238 |
}
|
239 |
$filter = new Zend_Filter_LocalizedToNormalized(
|
@@ -244,15 +251,15 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
244 |
|
245 |
$item = $cart->updateItem($id, new Varien_Object($params));
|
246 |
|
247 |
-
if($flag){
|
248 |
-
if($qty >1){
|
249 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
250 |
-
for($i
|
251 |
-
$result = $quote->addProduct($product, $item->getBuyRequest());
|
252 |
-
$result = (
|
|
|
253 |
}
|
254 |
-
}
|
255 |
-
|
256 |
}
|
257 |
|
258 |
if (is_string($item)) {
|
@@ -312,6 +319,7 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
312 |
{
|
313 |
try {
|
314 |
$cartData = $this->getRequest()->getParam('cart');
|
|
|
315 |
if (is_array($cartData)) {
|
316 |
$filter = new Zend_Filter_LocalizedToNormalized(
|
317 |
array('locale' => Mage::app()->getLocale()->getLocaleCode())
|
@@ -320,52 +328,53 @@ class Zinc_Carebyzinc_CartController extends Mage_Checkout_CartController
|
|
320 |
foreach ($cartData as $index => $data) {
|
321 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
322 |
$oldQuoteItem = $quote->getItemById($index);
|
|
|
323 |
$flag = 0;
|
324 |
-
if($oldQuoteItem){
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
}
|
350 |
-
|
351 |
-
if($flag){
|
352 |
-
if($qty >1){
|
353 |
-
for($i = 1;$i<=($qty-1);$i++){
|
354 |
-
|
355 |
-
$result = $quote->addProduct($product, $oldQuoteItem->getBuyRequest());
|
356 |
-
$result = ( $result->getParentItem() ? $result->getParentItem() : $result );
|
357 |
-
}
|
358 |
-
}
|
359 |
-
}
|
360 |
-
}}
|
361 |
|
362 |
-
if (
|
363 |
$cart->getQuote()->setCustomerId(null);
|
364 |
}
|
365 |
-
|
366 |
$cartData = $cart->suggestItemsQty($cartData);
|
367 |
-
$cart->updateItems($cartData)
|
368 |
-
->save();
|
369 |
}
|
370 |
$this->_getSession()->setCartWasUpdated(true);
|
371 |
} catch (Mage_Core_Exception $e) {
|
50 |
$carebyzinc = $product->getCarebyzinc();
|
51 |
$isProduct = isset($params['isProduct']) && (int)$params['isProduct'] == 1 ? true : false;
|
52 |
|
53 |
+
$interstitial = Mage::getStoreConfig('carebyzinc/display/interstitial');
|
54 |
+
|
55 |
+
if($carebyzinc == '1' && $isProduct && $interstitial == '1') {
|
56 |
if(!isset($params['carebyzinc_option'])) {
|
57 |
$cbzCategory = $product->getCarebyzincCategory();
|
58 |
|
59 |
if($carebyzinc == '1' && !empty($cbzCategory)) {
|
60 |
$model = Mage::getModel('carebyzinc/order');
|
61 |
+
$price = $model->getInterstitalPrice($product);
|
62 |
$result = $model->prepareInterstitials($cbzCategory);
|
63 |
+
$result['real_price'] = $price;
|
64 |
+
$result['qty'] = $params['qty'];
|
65 |
$sess = Mage::getSingleton("core/session", array("name"=>"frontend"));
|
66 |
$sess->setData('interstitials', $result);
|
67 |
|
171 |
if($response) {
|
172 |
switch($response['action']) {
|
173 |
case 'cancel':
|
174 |
+
$params['qty'] = (int)$post['qty'];
|
175 |
$cart->addProduct($product, $params);
|
176 |
if (!empty($related)) {
|
177 |
$cart->addProductsByIds(explode(',', $related));
|
224 |
$product = Mage::getModel('catalog/product')->load($quoteItem->getProductId());
|
225 |
$productType = $product->getTypeId();
|
226 |
$flag = 0;
|
227 |
+
if(($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1)) {
|
|
|
228 |
$qty = 1;
|
229 |
$flag = 1;
|
230 |
}
|
231 |
+
|
232 |
if($product->getId() == Mage::getStoreConfig('carebyzinc/general/warranty_product')){
|
233 |
$flag = 0;
|
234 |
if($qty >1){
|
236 |
$qty = 1;
|
237 |
}
|
238 |
}
|
239 |
+
|
240 |
if (isset($params['qty'])) {
|
241 |
+
if($flag) {
|
242 |
$qty = $params['qty'];
|
243 |
+
if($qty > 1)
|
244 |
$params['qty'] = 1;
|
245 |
}
|
246 |
$filter = new Zend_Filter_LocalizedToNormalized(
|
251 |
|
252 |
$item = $cart->updateItem($id, new Varien_Object($params));
|
253 |
|
254 |
+
if($flag) {
|
255 |
+
if($qty >1) {
|
256 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
257 |
+
for($i=0; $i<($qty-1); $i++) {
|
258 |
+
$result = $quote->addProduct($product, $item->getBuyRequest());
|
259 |
+
$result = ($result->getParentItem() ? $result->getParentItem() : $result);
|
260 |
+
$quote->save();
|
261 |
}
|
262 |
+
}
|
|
|
263 |
}
|
264 |
|
265 |
if (is_string($item)) {
|
319 |
{
|
320 |
try {
|
321 |
$cartData = $this->getRequest()->getParam('cart');
|
322 |
+
|
323 |
if (is_array($cartData)) {
|
324 |
$filter = new Zend_Filter_LocalizedToNormalized(
|
325 |
array('locale' => Mage::app()->getLocale()->getLocaleCode())
|
328 |
foreach ($cartData as $index => $data) {
|
329 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
330 |
$oldQuoteItem = $quote->getItemById($index);
|
331 |
+
|
332 |
$flag = 0;
|
333 |
+
if($oldQuoteItem) {
|
334 |
+
$product = Mage::getModel('catalog/product')
|
335 |
+
->setStoreId(Mage::app()->getStore()->getId())
|
336 |
+
->load($oldQuoteItem->getProductId());
|
337 |
+
$productType = $product->getTypeId();
|
338 |
+
|
339 |
+
if(($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1)) {
|
340 |
+
$qty = 1;
|
341 |
+
$flag = 1;
|
342 |
+
}
|
343 |
+
|
344 |
+
if (isset($data['qty'])) {
|
345 |
+
if($flag){
|
346 |
+
$qty = $data['qty'];
|
347 |
+
if($qty >1)
|
348 |
+
$data['qty'] = 1;
|
349 |
+
}
|
350 |
+
if($product->getId() == Mage::getStoreConfig('carebyzinc/general/warranty_product')){
|
351 |
+
$flag = 0;
|
352 |
+
if($data['qty'] >1){
|
353 |
+
$data['qty'] = 1;
|
354 |
+
$qty = 1;
|
355 |
+
}
|
356 |
+
}
|
357 |
+
$cartData[$index]['qty'] = $filter->filter(trim($data['qty']));
|
358 |
+
}
|
359 |
+
|
360 |
+
if($flag) {
|
361 |
+
if($qty > 1) {
|
362 |
+
for($i=0; $i<($qty-1); $i++) {
|
363 |
+
$result = $quote->addProduct($product, $oldQuoteItem->getBuyRequest());
|
364 |
+
$result = ($result->getParentItem() ? $result->getParentItem() : $result);
|
365 |
+
$quote->save();
|
366 |
+
}
|
367 |
+
}
|
368 |
+
}
|
369 |
}
|
370 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
|
372 |
+
if (!$cart->getCustomerSession()->getCustomer()->getId() && $cart->getQuote()->getCustomerId()) {
|
373 |
$cart->getQuote()->setCustomerId(null);
|
374 |
}
|
375 |
+
|
376 |
$cartData = $cart->suggestItemsQty($cartData);
|
377 |
+
$cart->updateItems($cartData)->save();
|
|
|
378 |
}
|
379 |
$this->_getSession()->setCartWasUpdated(true);
|
380 |
} catch (Mage_Core_Exception $e) {
|
app/code/local/Zinc/Carebyzinc/controllers/Checkout/OnepageController.php
CHANGED
@@ -30,12 +30,15 @@ class Zinc_Carebyzinc_Checkout_OnepageController extends Mage_Checkout_OnepageCo
|
|
30 |
return;
|
31 |
}
|
32 |
|
33 |
-
$
|
34 |
-
$
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
39 |
|
40 |
$session->clear();
|
41 |
$this->loadLayout();
|
30 |
return;
|
31 |
}
|
32 |
|
33 |
+
$thankyou = Mage::getStoreConfig('carebyzinc/display/thankyou');
|
34 |
+
if($thankyou == '1') {
|
35 |
+
$model = Mage::getModel('carebyzinc/order');
|
36 |
+
$quote = Mage::getModel('sales/quote')->load($lastQuoteId);
|
37 |
+
$order = Mage::getModel('sales/order')->load($lastOrderId);
|
38 |
+
|
39 |
+
$success = $model->prepareSuccessPage($quote, $order);
|
40 |
+
Mage::register('zincSuccess', $success);
|
41 |
+
}
|
42 |
|
43 |
$session->clear();
|
44 |
$this->loadLayout();
|
app/code/local/Zinc/Carebyzinc/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Zinc_Carebyzinc>
|
13 |
-
<version>1.0
|
14 |
</Zinc_Carebyzinc>
|
15 |
</modules>
|
16 |
<frontend>
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Zinc_Carebyzinc>
|
13 |
+
<version>1.1.0</version>
|
14 |
</Zinc_Carebyzinc>
|
15 |
</modules>
|
16 |
<frontend>
|
app/code/local/Zinc/Carebyzinc/etc/system.xml
CHANGED
@@ -222,6 +222,24 @@
|
|
222 |
<frontend_type>select</frontend_type>
|
223 |
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
224 |
</quotecart>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
</fields>
|
226 |
</display>
|
227 |
<!--
|
222 |
<frontend_type>select</frontend_type>
|
223 |
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
224 |
</quotecart>
|
225 |
+
<interstitial>
|
226 |
+
<label>Interstitial Popup</label>
|
227 |
+
<sort_order>30</sort_order>
|
228 |
+
<show_in_default>1</show_in_default>
|
229 |
+
<show_in_website>1</show_in_website>
|
230 |
+
<show_in_store>1</show_in_store>
|
231 |
+
<frontend_type>select</frontend_type>
|
232 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
233 |
+
</interstitial>
|
234 |
+
<thankyou>
|
235 |
+
<label>Thank You Page</label>
|
236 |
+
<sort_order>40</sort_order>
|
237 |
+
<show_in_default>1</show_in_default>
|
238 |
+
<show_in_website>1</show_in_website>
|
239 |
+
<show_in_store>1</show_in_store>
|
240 |
+
<frontend_type>select</frontend_type>
|
241 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
242 |
+
</thankyou>
|
243 |
</fields>
|
244 |
</display>
|
245 |
<!--
|
app/code/local/Zinc/Carebyzinc/sql/carebyzinc_setup/mysql4-upgrade-1.0.7-1.0.8.php
CHANGED
@@ -17,7 +17,3 @@ $productId = $product->getId();
|
|
17 |
Mage::getConfig()->saveConfig('carebyzinc/general/warranty_product', $product->getId(), 'default', 0);
|
18 |
|
19 |
$installer->endSetup();
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
17 |
Mage::getConfig()->saveConfig('carebyzinc/general/warranty_product', $product->getId(), 'default', 0);
|
18 |
|
19 |
$installer->endSetup();
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/carebyzinc/carebyzinc.phtml
CHANGED
@@ -12,6 +12,7 @@ $helper = Mage::helper('carebyzinc');
|
|
12 |
|
13 |
$session = Mage::getSingleton("core/session", array("name"=>"frontend"));
|
14 |
$interstitials = $session->getData('interstitials');
|
|
|
15 |
|
16 |
if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1) && ($helper->checkQuoteVisibility('product'))):
|
17 |
$zip = $helper->getZipCode();
|
@@ -22,11 +23,13 @@ if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productTyp
|
|
22 |
<div id="carebyzincCnt"></div>
|
23 |
<input type="hidden" name="isProduct" value="1" />
|
24 |
</div>
|
|
|
25 |
<?php if($interstitials && isset($interstitials['html'])) : ?>
|
26 |
<div id="interstitials" style="display: none;">
|
27 |
<link rel="stylesheet" type="text/css" href="<?php echo $interstitials['stylesheet']; ?>" />
|
28 |
<?php echo $interstitials['html']; ?>
|
29 |
</div>
|
|
|
30 |
<?php endif; ?>
|
31 |
<script>
|
32 |
//<![CDATA[
|
@@ -108,7 +111,8 @@ if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productTyp
|
|
108 |
|
109 |
//]]>
|
110 |
</script>
|
111 |
-
|
|
|
112 |
<?php if($interstitials && isset($interstitials['html'])) : ?>
|
113 |
<script>
|
114 |
//<![CDATA[
|
@@ -132,6 +136,10 @@ if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productTyp
|
|
132 |
jQuery('#interstitials').show();
|
133 |
}
|
134 |
});
|
|
|
|
|
|
|
|
|
135 |
});
|
136 |
|
137 |
jQuery('#ZincInterstitial-cancel').click(function() {
|
@@ -139,7 +147,7 @@ if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productTyp
|
|
139 |
var url = '<?php echo $this->getUrl("checkout/cart/ajaxprocessitem") ?>';
|
140 |
new Ajax.Request(url, {
|
141 |
method: 'post',
|
142 |
-
parameters: {pId: <?php echo Mage::registry('current_product')->getId(); ?>, action: 'cancel'},
|
143 |
onComplete: function (transport) {
|
144 |
var content = JSON.parse(transport.responseText);
|
145 |
if(content != false) {
|
@@ -164,4 +172,5 @@ if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productTyp
|
|
164 |
//]]>
|
165 |
</script>
|
166 |
<?php endif; ?>
|
|
|
167 |
<?php endif; ?>
|
12 |
|
13 |
$session = Mage::getSingleton("core/session", array("name"=>"frontend"));
|
14 |
$interstitials = $session->getData('interstitials');
|
15 |
+
$iVisability = $helper->checkInterstitalVisibility();
|
16 |
|
17 |
if (($productType == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE || $productType == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) && ($product->getCarebyzinc() == 1) && ($helper->checkQuoteVisibility('product'))):
|
18 |
$zip = $helper->getZipCode();
|
23 |
<div id="carebyzincCnt"></div>
|
24 |
<input type="hidden" name="isProduct" value="1" />
|
25 |
</div>
|
26 |
+
<?php if($iVisability) : ?>
|
27 |
<?php if($interstitials && isset($interstitials['html'])) : ?>
|
28 |
<div id="interstitials" style="display: none;">
|
29 |
<link rel="stylesheet" type="text/css" href="<?php echo $interstitials['stylesheet']; ?>" />
|
30 |
<?php echo $interstitials['html']; ?>
|
31 |
</div>
|
32 |
+
<?php endif; ?>
|
33 |
<?php endif; ?>
|
34 |
<script>
|
35 |
//<![CDATA[
|
111 |
|
112 |
//]]>
|
113 |
</script>
|
114 |
+
|
115 |
+
<?php if($iVisability) : ?>
|
116 |
<?php if($interstitials && isset($interstitials['html'])) : ?>
|
117 |
<script>
|
118 |
//<![CDATA[
|
136 |
jQuery('#interstitials').show();
|
137 |
}
|
138 |
});
|
139 |
+
|
140 |
+
jQuery('span.ZincInterstitial-productInfoPrice').html('<?php echo $interstitials['real_price']; ?>');
|
141 |
+
jQuery('input#qty').attr('value', '<?php echo $interstitials['qty'] ?>');
|
142 |
+
qty
|
143 |
});
|
144 |
|
145 |
jQuery('#ZincInterstitial-cancel').click(function() {
|
147 |
var url = '<?php echo $this->getUrl("checkout/cart/ajaxprocessitem") ?>';
|
148 |
new Ajax.Request(url, {
|
149 |
method: 'post',
|
150 |
+
parameters: {pId: <?php echo Mage::registry('current_product')->getId(); ?>, action: 'cancel', qty: <?php echo $interstitials['qty']; ?>},
|
151 |
onComplete: function (transport) {
|
152 |
var content = JSON.parse(transport.responseText);
|
153 |
if(content != false) {
|
172 |
//]]>
|
173 |
</script>
|
174 |
<?php endif; ?>
|
175 |
+
<?php endif; ?>
|
176 |
<?php endif; ?>
|
app/design/frontend/base/default/template/carebyzinc/checkout/success.phtml
CHANGED
@@ -24,7 +24,9 @@
|
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
|
27 |
-
$
|
|
|
|
|
28 |
|
29 |
?>
|
30 |
<div class="page-title">
|
@@ -66,6 +68,7 @@ $zincSuccess = Mage::registry('zincSuccess');
|
|
66 |
<button type="button" class="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue Shopping')) ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
67 |
</div>
|
68 |
|
|
|
69 |
<?php if($zincSuccess['code'] == '200' && isset($zincSuccess['url']) && $zincSuccess['url'] != '') : ?>
|
70 |
<script>
|
71 |
//<![CDATA[
|
@@ -82,4 +85,5 @@ $zincSuccess = Mage::registry('zincSuccess');
|
|
82 |
//]]>
|
83 |
</script>
|
84 |
<?php endif; ?>
|
|
|
85 |
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
|
27 |
+
$helper = Mage::helper('carebyzinc');
|
28 |
+
$thankYou = $helper->checkThankYouVisibility();
|
29 |
+
$zincSuccess = $thankYou == '1' ? Mage::registry('zincSuccess') : false;
|
30 |
|
31 |
?>
|
32 |
<div class="page-title">
|
68 |
<button type="button" class="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue Shopping')) ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
69 |
</div>
|
70 |
|
71 |
+
<?php if($thankYou == '1') : ?>
|
72 |
<?php if($zincSuccess['code'] == '200' && isset($zincSuccess['url']) && $zincSuccess['url'] != '') : ?>
|
73 |
<script>
|
74 |
//<![CDATA[
|
85 |
//]]>
|
86 |
</script>
|
87 |
<?php endif; ?>
|
88 |
+
<?php endif; ?>
|
89 |
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>zinc</name>
|
4 |
-
<version>1.0
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Zinc is an application to allow merchants cross sell warranties and
|
10 |
-
<description>Zinc enables online merchants to seamlessly offer product protection insurance and warranty plans for their products. </description>
|
11 |
<notes>Code refactoring and bug fixing.</notes>
|
12 |
<authors><author><name>ZincPlatform</name><user>ZincPlatform</user><email>support@zincplatform.com</email></author></authors>
|
13 |
-
<date>2017-07-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Zinc"><dir name="Carebyzinc"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="7f3434e6f26bc7f4a539bf9071a8359c"/><dir name="Renderer"><file name="Category.php" hash="61226784107fb456d937264d785c33c8"/><file name="List.php" hash="821b28248cb94a64b38189bbfe4fe42d"/><file name="Manufacturer.php" hash="1161494098478dc016bce23869806c05"/><file name="Model.php" hash="8c59d310ea275521c30a41c0269683c2"/><file name="Subcategory.php" hash="5b72ca48d2f4a50646fe799448f6ccd0"/></dir></dir></dir><dir name="Order"><file name="Grid.php" hash="f3686d6d5eb5084fb6a6ff52d10e2700"/></dir><file name="Order.php" hash="8ad16b270a3d721125f598582d59065b"/><dir name="Product"><dir name="Edit"><file name="Form.php" hash="63baec7aeefac643a7da6b48ab98d713"/><dir name="Tab"><file name="Form.php" hash="420703c8c9e7a157e651082f1b10596d"/></dir><file name="Tabs.php" hash="db637798104873a38241fe683f511e27"/></dir><file name="Edit.php" hash="504cc82857251201ff83bd10544d5927"/><file name="Grid.php" hash="2f0427086965a89dcbcef0469e0a4ffc"/></dir><file name="Product.php" hash="e603838ed67849456c5230395d081e1b"/><dir name="System"><dir name="Config"><file name="Importorders.php" hash="55dca9cb946d63358606f96857300803"/><file name="Tokenvalidate.php" hash="24e6f31db4da9d1bbb1b8380b42d1f05"/></dir></dir></dir><file name="Carebyzinc.php" hash="dddf72e64c21b3bc6fd02e5c0685a715"/></dir><dir name="Helper"><file name="Data.php" hash="62848eb499a0a070ff9171b447e95519"/></dir><dir name="Model"><file name="Carebyzinc.php" hash="ce423c42201c4d9822550ead47a56f35"/><dir name="Checkout"><file name="Cart.php" hash="0fb7f345a2669c078a94c02c6d905b1b"/><file name="Multishipping.php" hash="0dda682d23bf5b96c8d11c3da3d9bfa4"/></dir><dir name="Entity"><file name="Category.php" hash="cfca0b90e178b2f695236925d4318df1"/><file name="Subcategory.php" hash="41ba25ee7a4d07a95c27f30ac0bf69dc"/></dir><dir name="Mysql4"><dir name="Order"><file name="Collection.php" hash="73eb61cc74cfdd568f1644c664a25ed6"/></dir><file name="Order.php" hash="fdc62f0551b1714f7c0e7fec8e87495c"/></dir><file name="Observer.php" hash="7a771afa6d9a4f12fe196cea9ed76602"/><file name="Order.php" hash="6a45642f112578422c596463a39acc99"/><dir name="Sales"><file name="Quote.php" hash="65cb7a95b7c01e1ee259e9ab38e73ece"/></dir><dir name="System"><dir name="Config"><file name="Source.php" hash="2ebef08a6a336cb0fe45e18ddbb06d54"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CarebyzincController.php" hash="d49146b8c84e891d327800d1e61d0cb8"/><file name="OrderController.php" hash="abb2466958fa6f7b9ed13b5675e06f5c"/><file name="ProductController.php" hash="f98c11da8bc62983db16712408b4b162"/><dir name="Sales"><dir name="Order"><file name="CreditmemoController.php" hash="81f7bcad7606cb1a3fe808259cd47173"/></dir></dir></dir><file name="CartController.php" hash="d6f865c2e0223aaab1c84d5d79c3114c"/><dir name="Checkout"><file name="OnepageController.php" hash="4aebfc721c0593239e54987a6336fa14"/></dir><file name="IndexController.php" hash="b202ce337ce5d206f73b00c06ba3a510"/><dir name="Sales"><file name="OrderController.php" hash="0339596d5830e8c1de7f47b86331a47a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dc2bd98908b138920fcd9d5a27280fd2"/><file name="config.xml" hash="7ae480c644b90b4a90aaeef090aa8e92"/><file name="system.xml" hash="cf02a01fde15b2920826c834610a0af0"/></dir><dir name="sql"><dir name="carebyzinc_setup"><file name="mysql4-install-0.1.0.php" hash="c342593327c1d0428217b315dcdced1c"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="108da13421767fab0083f7c4cc9b16e2"/><file name="mysql4-upgrade-0.2.0-1.0.0.php" hash="10ebb8695adeba50e281b39ad0cf20ed"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="46ca427c76ee07d4916df7990671beb8"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="fd29cdd9a47b882ecea7de944d8e4d38"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="ac78f6811e781b4a03233188918658d3"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="b661111a5ded4c7604932caa6467ecb7"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="0a5c1d77cfa3660f8976c4dec907e338"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="21528eaf2e8d493488fdfe1073292073"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="3fb3b72336a3642422d97df4123f12a2"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="199a4328202004a26e120672fa1b096f"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="zinc_carebyzinc.xml" hash="857f96af2d497873f6749f53734cec92"/></dir><dir name="template"><dir name="carebyzinc"><file name="carebyzinc.phtml" hash="f6be62b5ebec72302b4d663e42612190"/><dir name="checkout"><dir name="cart"><dir name="item"><file name="default.phtml" hash="aac8aaa67b58880a246d4dc2e19e8e6f"/></dir><dir name="minicart"><file name="default.phtml" hash="5dc0a620ef214809901418354cb1a92d"/></dir></dir><file name="cart.phtml" hash="e724bf79c886b8696da549816a8020d2"/><dir name="multishipping"><dir name="item"><file name="default.phtml" hash="5584c3659e9351ce473ec3cacfe949d0"/></dir></dir><dir name="onepage"><dir name="review"><file name="info.phtml" hash="af3945f40e8846ed50f7ea100cb5988d"/><file name="item.phtml" hash="c25cf5accf1bd2f439485540ce64e39a"/></dir></dir><file name="success.phtml" hash="9a2427648f11548cd3889e466364e880"/></dir><dir name="email"><dir name="order"><dir name="items"><dir name="creditmemo"><file name="default.phtml" hash="8a2ac27dd9b6c8dc8b4bae6a7e5ddda8"/></dir><dir name="invoice"><file name="default.phtml" hash="e12be1097a1f18c0db7882c11f7a6641"/></dir><dir name="order"><file name="default.phtml" hash="793605d82ba878ccbdf42dd12f28c03d"/></dir><dir name="shipment"><file name="default.phtml" hash="f6402f09d846768acb7ce2deee933f2e"/></dir></dir></dir></dir><dir name="options"><file name="cart.phtml" hash="fdb73ae2f515fb1f897a850bcb20125f"/><file name="default.phtml" hash="c22ddd6b332c74d99cc24424e6e14115"/></dir><dir name="sales"><dir name="order"><dir name="creditmemo"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="9453ba266319722eb98d8623e7d2b430"/></dir></dir></dir><dir name="invoice"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="bc9aa0720ab66aac609def09cb1a9b34"/></dir></dir></dir><dir name="items"><dir name="renderer"><file name="default.phtml" hash="40e189989f63b6bb40fdc284c75a66ee"/></dir></dir><dir name="shipment"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="e8ac8a72cb4a4e9b5d5fc75b4d542225"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="zinc_carebyzinc.xml" hash="9e98d75239efecef07c87293d753307a"/></dir><dir name="template"><dir name="carebyzinc"><file name="carebyzinc_massaction.phtml" hash="15553da17d9dc7e3866765c34e9323f8"/><dir name="order"><dir name="creditmemo"><dir name="create"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="81b8edfa17f0baec00a2d1fb5f9afe03"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="be2417354e4035669c7722856ea7beea"/></dir></dir></dir></dir><dir name="invoice"><dir name="create"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="ec89a299e6cf7068a24580c7cbaa1c64"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="068e7689e80cc4f3ddef5e34731f1407"/></dir></dir></dir></dir><dir name="shipment"><dir name="create"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="1f6dc82e72dff2a2f89df63eb04adfb3"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="57d8d0365b5a8521094dd972f0afd91f"/></dir></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="2ee24c3069f693e28e6b82710b4d5f79"/></dir></dir></dir></dir><dir name="system"><file name="importorders.phtml" hash="cc9053d6df5c152512998a088c698289"/><file name="tokenvalidate.phtml" hash="c8f6847678e6327cc168d19bb1f889f9"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zinc_Carebyzinc.xml" hash="4d2b3b715ff40beadbf897a373561e85"/></dir></target><target name="mage"><dir name="js"><dir name="carebyzinc"><file name="functions.js" hash="ec1d2b5ffe59046ecb3bda26a0b4d2ab"/><file name="jquery.colorbox.js" hash="931988f42363a4824812885ffc27d99e"/><file name="jquery.min.js" hash="219073097031d9c1a95a1291d66f3a10"/><file name="noConflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="product.js" hash="007f9365ae78449497daa03e83169fd3"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="carebyzinc"><file name="carebyzinc.css" hash="2de28b23400c973dbe9b7150283d01d6"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="carebyzinc"><dir name="css"><file name="carebyzinc.css" hash="1a15002fb7ff3d42fa67e9090c97627d"/><file name="colorbox.css" hash="4b7379294ea68f88b0bba06cd803a646"/><dir name="images"><file name="border.png" hash="b593eef877678cd14706323d199e047d"/><file name="cancel.png" hash="7d54d20abee3ff4e694a98798f261d09"/><file name="care-preloader.gif" hash="eba7ca3ef216ece9ab9974f0cc524536"/><file name="controls.png" hash="05ad6ec2cbc17a7f3d1b1aac6dbe770d"/><file name="loading.gif" hash="f1d7268ba36b264f8b33b5b2bf0f108c"/><file name="loading_background.png" hash="7649e6a7c32b6d29ce63255a30b7405a"/><file name="overlay.png" hash="8918e1f6fbaae9e65880f3eff6fa3713"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="carebyzinc"><dir name="css"><file name="carebyzinc.css" hash="1a15002fb7ff3d42fa67e9090c97627d"/><file name="colorbox.css" hash="1cac861e234b26a286df11e645891fa7"/><dir name="images"><file name="border.png" hash="b593eef877678cd14706323d199e047d"/><file name="cancel.png" hash="7d54d20abee3ff4e694a98798f261d09"/><file name="care-preloader.gif" hash="eba7ca3ef216ece9ab9974f0cc524536"/><file name="controls.png" hash="05ad6ec2cbc17a7f3d1b1aac6dbe770d"/><file name="loading.gif" hash="f1d7268ba36b264f8b33b5b2bf0f108c"/><file name="loading_background.png" hash="7649e6a7c32b6d29ce63255a30b7405a"/><file name="overlay.png" hash="8918e1f6fbaae9e65880f3eff6fa3713"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.6.0</min><max>7.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>zinc</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Care by Zinc is an application to allow merchants cross sell warranties and insurance products online.</summary>
|
10 |
+
<description>Care by Zinc enables online merchants to seamlessly offer product protection insurance and warranty plans for their products. The Magento plugin interacts with Zinc Platform server to display real time quotes on merchant website and allows customers to submit insurance applications based on their purchases</description>
|
11 |
<notes>Code refactoring and bug fixing.</notes>
|
12 |
<authors><author><name>ZincPlatform</name><user>ZincPlatform</user><email>support@zincplatform.com</email></author></authors>
|
13 |
+
<date>2017-07-26</date>
|
14 |
+
<time>07:18:53</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Zinc"><dir name="Carebyzinc"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="7f3434e6f26bc7f4a539bf9071a8359c"/><dir name="Renderer"><file name="Category.php" hash="61226784107fb456d937264d785c33c8"/><file name="List.php" hash="821b28248cb94a64b38189bbfe4fe42d"/><file name="Manufacturer.php" hash="1161494098478dc016bce23869806c05"/><file name="Model.php" hash="8c59d310ea275521c30a41c0269683c2"/><file name="Subcategory.php" hash="5b72ca48d2f4a50646fe799448f6ccd0"/></dir></dir></dir><dir name="Order"><file name="Grid.php" hash="f3686d6d5eb5084fb6a6ff52d10e2700"/></dir><file name="Order.php" hash="8ad16b270a3d721125f598582d59065b"/><dir name="Product"><dir name="Edit"><file name="Form.php" hash="63baec7aeefac643a7da6b48ab98d713"/><dir name="Tab"><file name="Form.php" hash="420703c8c9e7a157e651082f1b10596d"/></dir><file name="Tabs.php" hash="db637798104873a38241fe683f511e27"/></dir><file name="Edit.php" hash="504cc82857251201ff83bd10544d5927"/><file name="Grid.php" hash="2f0427086965a89dcbcef0469e0a4ffc"/></dir><file name="Product.php" hash="e603838ed67849456c5230395d081e1b"/><dir name="System"><dir name="Config"><file name="Importorders.php" hash="55dca9cb946d63358606f96857300803"/><file name="Tokenvalidate.php" hash="24e6f31db4da9d1bbb1b8380b42d1f05"/></dir></dir></dir><file name="Carebyzinc.php" hash="dddf72e64c21b3bc6fd02e5c0685a715"/></dir><dir name="Helper"><file name="Data.php" hash="6bd5e8d5b5884c2c49e41e80b420ca1b"/></dir><dir name="Model"><file name="Carebyzinc.php" hash="2f47645195120525e11d14e7165ec636"/><dir name="Checkout"><file name="Cart.php" hash="72ad1b67dc312ed03c68f18c61779771"/><file name="Multishipping.php" hash="0dda682d23bf5b96c8d11c3da3d9bfa4"/></dir><dir name="Entity"><file name="Category.php" hash="cfca0b90e178b2f695236925d4318df1"/><file name="Subcategory.php" hash="41ba25ee7a4d07a95c27f30ac0bf69dc"/></dir><dir name="Mysql4"><dir name="Order"><file name="Collection.php" hash="73eb61cc74cfdd568f1644c664a25ed6"/></dir><file name="Order.php" hash="fdc62f0551b1714f7c0e7fec8e87495c"/></dir><file name="Observer.php" hash="7a771afa6d9a4f12fe196cea9ed76602"/><file name="Order.php" hash="b2b9f001a970491ed61df5f57910d9ae"/><dir name="Sales"><file name="Quote.php" hash="65cb7a95b7c01e1ee259e9ab38e73ece"/></dir><dir name="System"><dir name="Config"><file name="Source.php" hash="2ebef08a6a336cb0fe45e18ddbb06d54"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CarebyzincController.php" hash="d49146b8c84e891d327800d1e61d0cb8"/><file name="OrderController.php" hash="abb2466958fa6f7b9ed13b5675e06f5c"/><file name="ProductController.php" hash="f98c11da8bc62983db16712408b4b162"/><dir name="Sales"><dir name="Order"><file name="CreditmemoController.php" hash="81f7bcad7606cb1a3fe808259cd47173"/></dir></dir></dir><file name="CartController.php" hash="af02dce223d9f7bc9e340c90759088ad"/><dir name="Checkout"><file name="OnepageController.php" hash="a6e183178a6b9ad6e5bd6cec5d5f66a2"/></dir><file name="IndexController.php" hash="b202ce337ce5d206f73b00c06ba3a510"/><dir name="Sales"><file name="OrderController.php" hash="0339596d5830e8c1de7f47b86331a47a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dc2bd98908b138920fcd9d5a27280fd2"/><file name="config.xml" hash="71aa3ec402d98d667ff44e58a91e8efb"/><file name="system.xml" hash="1ad11543c0f446dbc44a2555998932e6"/></dir><dir name="sql"><dir name="carebyzinc_setup"><file name="mysql4-install-0.1.0.php" hash="c342593327c1d0428217b315dcdced1c"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="108da13421767fab0083f7c4cc9b16e2"/><file name="mysql4-upgrade-0.2.0-1.0.0.php" hash="10ebb8695adeba50e281b39ad0cf20ed"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="46ca427c76ee07d4916df7990671beb8"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="fd29cdd9a47b882ecea7de944d8e4d38"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="ac78f6811e781b4a03233188918658d3"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="b661111a5ded4c7604932caa6467ecb7"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="0a5c1d77cfa3660f8976c4dec907e338"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="21528eaf2e8d493488fdfe1073292073"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="3fb3b72336a3642422d97df4123f12a2"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="0e582a9c68fd5d1ab9bdd82b018fe2bb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="zinc_carebyzinc.xml" hash="857f96af2d497873f6749f53734cec92"/></dir><dir name="template"><dir name="carebyzinc"><file name="carebyzinc.phtml" hash="0d098e88daffbd8c7c5e97beda65248c"/><dir name="checkout"><dir name="cart"><dir name="item"><file name="default.phtml" hash="aac8aaa67b58880a246d4dc2e19e8e6f"/></dir><dir name="minicart"><file name="default.phtml" hash="5dc0a620ef214809901418354cb1a92d"/></dir></dir><file name="cart.phtml" hash="e724bf79c886b8696da549816a8020d2"/><dir name="multishipping"><dir name="item"><file name="default.phtml" hash="5584c3659e9351ce473ec3cacfe949d0"/></dir></dir><dir name="onepage"><dir name="review"><file name="info.phtml" hash="af3945f40e8846ed50f7ea100cb5988d"/><file name="item.phtml" hash="c25cf5accf1bd2f439485540ce64e39a"/></dir></dir><file name="success.phtml" hash="9a12341cb70075f59569366a39c6e5c9"/></dir><dir name="email"><dir name="order"><dir name="items"><dir name="creditmemo"><file name="default.phtml" hash="8a2ac27dd9b6c8dc8b4bae6a7e5ddda8"/></dir><dir name="invoice"><file name="default.phtml" hash="e12be1097a1f18c0db7882c11f7a6641"/></dir><dir name="order"><file name="default.phtml" hash="793605d82ba878ccbdf42dd12f28c03d"/></dir><dir name="shipment"><file name="default.phtml" hash="f6402f09d846768acb7ce2deee933f2e"/></dir></dir></dir></dir><dir name="options"><file name="cart.phtml" hash="fdb73ae2f515fb1f897a850bcb20125f"/><file name="default.phtml" hash="c22ddd6b332c74d99cc24424e6e14115"/></dir><dir name="sales"><dir name="order"><dir name="creditmemo"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="9453ba266319722eb98d8623e7d2b430"/></dir></dir></dir><dir name="invoice"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="bc9aa0720ab66aac609def09cb1a9b34"/></dir></dir></dir><dir name="items"><dir name="renderer"><file name="default.phtml" hash="40e189989f63b6bb40fdc284c75a66ee"/></dir></dir><dir name="shipment"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="e8ac8a72cb4a4e9b5d5fc75b4d542225"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="zinc_carebyzinc.xml" hash="9e98d75239efecef07c87293d753307a"/></dir><dir name="template"><dir name="carebyzinc"><file name="carebyzinc_massaction.phtml" hash="15553da17d9dc7e3866765c34e9323f8"/><dir name="order"><dir name="creditmemo"><dir name="create"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="81b8edfa17f0baec00a2d1fb5f9afe03"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="be2417354e4035669c7722856ea7beea"/></dir></dir></dir></dir><dir name="invoice"><dir name="create"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="ec89a299e6cf7068a24580c7cbaa1c64"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="068e7689e80cc4f3ddef5e34731f1407"/></dir></dir></dir></dir><dir name="shipment"><dir name="create"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="1f6dc82e72dff2a2f89df63eb04adfb3"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="57d8d0365b5a8521094dd972f0afd91f"/></dir></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="2ee24c3069f693e28e6b82710b4d5f79"/></dir></dir></dir></dir><dir name="system"><file name="importorders.phtml" hash="cc9053d6df5c152512998a088c698289"/><file name="tokenvalidate.phtml" hash="c8f6847678e6327cc168d19bb1f889f9"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zinc_Carebyzinc.xml" hash="4d2b3b715ff40beadbf897a373561e85"/></dir></target><target name="mage"><dir name="js"><dir name="carebyzinc"><file name="functions.js" hash="ec1d2b5ffe59046ecb3bda26a0b4d2ab"/><file name="jquery.colorbox.js" hash="931988f42363a4824812885ffc27d99e"/><file name="jquery.min.js" hash="219073097031d9c1a95a1291d66f3a10"/><file name="noConflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="product.js" hash="007f9365ae78449497daa03e83169fd3"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="carebyzinc"><file name="carebyzinc.css" hash="2de28b23400c973dbe9b7150283d01d6"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="carebyzinc"><dir name="css"><file name="carebyzinc.css" hash="1a15002fb7ff3d42fa67e9090c97627d"/><file name="colorbox.css" hash="4b7379294ea68f88b0bba06cd803a646"/><dir name="images"><file name="border.png" hash="b593eef877678cd14706323d199e047d"/><file name="cancel.png" hash="7d54d20abee3ff4e694a98798f261d09"/><file name="care-preloader.gif" hash="eba7ca3ef216ece9ab9974f0cc524536"/><file name="controls.png" hash="05ad6ec2cbc17a7f3d1b1aac6dbe770d"/><file name="loading.gif" hash="f1d7268ba36b264f8b33b5b2bf0f108c"/><file name="loading_background.png" hash="7649e6a7c32b6d29ce63255a30b7405a"/><file name="overlay.png" hash="8918e1f6fbaae9e65880f3eff6fa3713"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="carebyzinc"><dir name="css"><file name="carebyzinc.css" hash="1a15002fb7ff3d42fa67e9090c97627d"/><file name="colorbox.css" hash="1cac861e234b26a286df11e645891fa7"/><dir name="images"><file name="border.png" hash="b593eef877678cd14706323d199e047d"/><file name="cancel.png" hash="7d54d20abee3ff4e694a98798f261d09"/><file name="care-preloader.gif" hash="eba7ca3ef216ece9ab9974f0cc524536"/><file name="controls.png" hash="05ad6ec2cbc17a7f3d1b1aac6dbe770d"/><file name="loading.gif" hash="f1d7268ba36b264f8b33b5b2bf0f108c"/><file name="loading_background.png" hash="7649e6a7c32b6d29ce63255a30b7405a"/><file name="overlay.png" hash="8918e1f6fbaae9e65880f3eff6fa3713"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.6.0</min><max>7.0.0</max></php></required></dependencies>
|
18 |
</package>
|