diff --git a/framework/datatypes/shippingcalculator.php b/framework/datatypes/shippingcalculator.php
index 3f831dcf7e..ef7148b81c 100755
--- a/framework/datatypes/shippingcalculator.php
+++ b/framework/datatypes/shippingcalculator.php
@@ -32,7 +32,7 @@ public function __construct($params=null, $get_assoc=true, $get_attached=true) {
if (file_exists(BASE.'framework/modules/ecommerce/shippingcalculators/icons/'.$this->classname.'.gif')) {
$this->icon = PATH_RELATIVE.'framework/modules/ecommerce/shippingcalculators/icons/'.$this->classname.'.gif';
} else {
- $this->icon = PATH_RELATIVE.'framework/modules/ecommerce/shippingcalculators/icons/default.gif';
+ $this->icon = PATH_RELATIVE.'framework/modules/ecommerce/shippingcalculators/icons/default.png';
}
}
diff --git a/framework/modules/ecommerce/shippingcalculators/icons/default.gif b/framework/modules/ecommerce/shippingcalculators/icons/default.gif
deleted file mode 100755
index 5e2a3c2aca..0000000000
Binary files a/framework/modules/ecommerce/shippingcalculators/icons/default.gif and /dev/null differ
diff --git a/framework/modules/ecommerce/shippingcalculators/icons/default.png b/framework/modules/ecommerce/shippingcalculators/icons/default.png
new file mode 100644
index 0000000000..dcf58ecc3f
Binary files /dev/null and b/framework/modules/ecommerce/shippingcalculators/icons/default.png differ
diff --git a/framework/modules/ecommerce/shippingcalculators/tablebasedcalculator.php b/framework/modules/ecommerce/shippingcalculators/tablebasedcalculator.php
index 83954a686d..c9638cb170 100755
--- a/framework/modules/ecommerce/shippingcalculators/tablebasedcalculator.php
+++ b/framework/modules/ecommerce/shippingcalculators/tablebasedcalculator.php
@@ -60,18 +60,20 @@ public function getRates($order) {
//52 - PuertoRico
$stateUpcharge = array('2','21','52');
- if(!empty($c)) {
+ $rates = array();
+ if(!empty($c)) {
for($i = 0; $i < count($c); $i++) {
if (in_array($currentMethod->state, $stateUpcharge)) {
$c[$i] += 1.50; $c[$i] += 1.50;
}
- $rates[0 . ($i+1)] = array('id' => 0 . ($i+1), 'title' => $this->shippingspeeds[$i]->speed, 'cost' => $c[$i]);
+ if($i <= 9) $rates[($i+1)] = array('id' => 0 . ($i+1), 'title' => $this->shippingspeeds[$i]->speed, 'cost' => $c[$i]);
+ else $rates[0 . ($i+1)] = array('id' => 0 . ($i+1), 'title' => $this->shippingspeeds[$i]->speed, 'cost' => $c[$i]);
}
}
-
+ if(!count($rates)) $rates[01] = array('id' => 01, 'title' => "Table Based Shipping is Currently NOT Configured", 'cost' => 0);
return $rates;
}
diff --git a/framework/modules/ecommerce/views/store/showall.tpl b/framework/modules/ecommerce/views/store/showall.tpl
index 3c8f039047..e2b8be2faf 100755
--- a/framework/modules/ecommerce/views/store/showall.tpl
+++ b/framework/modules/ecommerce/views/store/showall.tpl
@@ -1,169 +1,170 @@
-{*
- * Copyright (c) 2007-2008 OIC Group, Inc.
- * Written and Designed by Adam Kessler
- *
- * This file is part of Exponent
- *
- * Exponent is free software; you can redistribute
- * it and/or modify it under the terms of the GNU
- * General Public License as published by the Free
- * Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * GPL: http://www.gnu.org/licenses/gpl.txt
- *
- *}
-
-{css unique="storeListing" link="`$asset_path`css/storeListing.css"}
-
-{/css}
-
-
-
-
-
- {if $moduletitle}
{$moduletitle}
{/if}
-
- {$current_category->title}
- {if $current_category->expFile[0]->id}
- {img file_id=$current_category->expFile[0]->id w=600 h=100 zc=1}
- {/if}
-
- {if $current_category->id}
- {permissions}
- {if $permissions.edit == 1}
- {icon action=edit module=storeCategory record=$current_category title="Edit `$current_category->title`" text="Edit this Store Category"}{br}
- {/if}
- {*if $permissions.manage == 1}
- {icon action=configure module=storeCategory record=$current_category title="Configure `$current_category->title`" text="Configure this Store Category"}{br}
- {/if*}
- {*if $permissions.manage == 1}
- {icon action=configure module=ecomconfig hash="#tab2" title="Configure Categories Globally" text="Configure Categories Globally"}{br}
- {/if*}
- {if $permissions.manage == 1 && $config.orderby=="rank"}
- {ddrerank label="Products" sql=$rerankSQL model="product" controller="storeCategory" id=$current_category->id}
- {/if}
- {if $permissions.edit == 1}
- {icon class=add action=create title="Add a new product" text="Add a New Product"}
- {/if}
- {/permissions}
- {/if}
-
-
{$current_category->body}
-
- {if $categories|@count > 0}
-
-
-
Categories Under {$current_category->title}
- {foreach name="cats" from=$categories item="cat"}
- {if $cat->is_active==1 || $user->isAdmin()}
- {counter assign=iteration}
- {if $iteration%2==0}
- {assign var="positioninfo" value=" last-in-row"}
- {else}
- {assign var="positioninfo" value=""}
- {/if}
-
-
- {/if}
- {/foreach}
-
-
- {/if}
-
-
All Products Under {$current_category->title}
- {pagelinks paginate=$page top=1}
- {*control type="dropdown" name="sortme" items=$page->sort_dropdown default=$defaultSort*}
-
- {*script unique="sort-submit"}
- {literal}
- YUI({ base:EXPONENT.URL_FULL+'external/yui3/build/',loadOptional: true}).use('node', function(Y) {
- Y.all('select[name="sortme"]').on('change',function(e){
- window.location = e.target.get('value');
- });
-
- });
- {/literal}
- {/script*}
-
-
- {foreach from=$page->records item=listing name=listings}
-
- {if $smarty.foreach.listings.iteration%3==0}
- {assign var="positioninfo" value=" last-in-row"}
- {else}
- {assign var="positioninfo" value=""}
- {/if}
-
-
- {include file=$listing->getForm('storeListing')}
-
-
- {if $positioninfo!="" || $smarty.foreach.listings.last==true}
-
- {/if}
-
- {/foreach}
-
- {*control type="dropdown" name="sortme" items=$page->sort_dropdown default=$defaultSort*}
- {pagelinks paginate=$page bottom=1}
-
-
-
-{script unique="expanding-text" yui3mods="yui"}
-{literal}
-YUI().use("anim-easing","node","anim", function(Y) {
-
- var modules = Y.all('.showall.store .bodycopy');
-
- modules.each(function(n,k){
- // add fx plugin to module body
- var content = n.one('.more-text');
- if (!Y.Lang.isNull(content)) {
- content.plug(Y.Plugin.NodeFX, {
- to: { height: 0 },
- from: {
- height: function(node) { // dynamic in case of change
- return node.get('scrollHeight'); // get expanded height (offsetHeight may be zero)
- }
- },
-
- easing: Y.Easing.easeOut,
- duration: 0.5
- });
-
- var onClick = function(e) {
- e.halt();
- n.toggleClass('yui-closed');
- content.fx.set('reverse', !content.fx.get('reverse')); // toggle reverse
- content.fx.run();
- };
-
- var control = n.one('.toggle');
- control.on('click', onClick);
- //n.one('.more-text .close').on('click', onClick);
- };
- });
-
-});
-{/literal}
-{/script}
+{*
+ * Copyright (c) 2007-2008 OIC Group, Inc.
+ * Written and Designed by Adam Kessler
+ *
+ * This file is part of Exponent
+ *
+ * Exponent is free software; you can redistribute
+ * it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free
+ * Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * GPL: http://www.gnu.org/licenses/gpl.txt
+ *
+ *}
+
+{css unique="storeListing" link="`$asset_path`css/storeListing.css"}
+
+{/css}
+
+
+
+
+
+ {if $moduletitle}
{$moduletitle}
{/if}
+
+ {$current_category->title}
+ {if $current_category->expFile[0]->id}
+ {img file_id=$current_category->expFile[0]->id w=600 h=100 zc=1}
+ {/if}
+
+ {if $current_category->id}
+ {permissions}
+ {if $permissions.edit == 1}
+ {icon action=edit module=storeCategory record=$current_category title="Edit `$current_category->title`" text="Edit this Store Category"}{br}
+ {/if}
+ {*if $permissions.manage == 1}
+ {icon action=configure module=storeCategory record=$current_category title="Configure `$current_category->title`" text="Configure this Store Category"}{br}
+ {/if*}
+ {*if $permissions.manage == 1}
+ {icon action=configure module=ecomconfig hash="#tab2" title="Configure Categories Globally" text="Configure Categories Globally"}{br}
+ {/if*}
+ {if $permissions.manage == 1 && $config.orderby=="rank"}
+ {ddrerank label="Products" sql=$rerankSQL model="product" controller="storeCategory" id=$current_category->id}
+ {/if}
+ {if $permissions.edit == 1}
+ {icon class=add action=create title="Add a new product" text="Add a New Product"}
+ {/if}
+ {/permissions}
+ {/if}
+
+
{$current_category->body}
+
+ {if $categories|@count > 0}
+
+
+
Categories Under {$current_category->title}
+ {foreach name="cats" from=$categories item="cat"}
+ {if $cat->is_active==1 || $user->isAdmin()}
+ {counter assign=iteration}
+ {if $iteration%2==0}
+ {assign var="positioninfo" value=" last-in-row"}
+ {else}
+ {assign var="positioninfo" value=""}
+ {/if}
+
+
+ {/if}
+ {/foreach}
+
+
+ {else}
+
+
All Products Under {$current_category->title}
+ {pagelinks paginate=$page top=1}
+ {*control type="dropdown" name="sortme" items=$page->sort_dropdown default=$defaultSort*}
+
+ {*script unique="sort-submit"}
+ {literal}
+ YUI({ base:EXPONENT.URL_FULL+'external/yui3/build/',loadOptional: true}).use('node', function(Y) {
+ Y.all('select[name="sortme"]').on('change',function(e){
+ window.location = e.target.get('value');
+ });
+
+ });
+ {/literal}
+ {/script*}
+
+
+ {foreach from=$page->records item=listing name=listings}
+
+ {if $smarty.foreach.listings.iteration%3==0}
+ {assign var="positioninfo" value=" last-in-row"}
+ {else}
+ {assign var="positioninfo" value=""}
+ {/if}
+
+
+ {include file=$listing->getForm('storeListing')}
+
+
+ {if $positioninfo!="" || $smarty.foreach.listings.last==true}
+
+ {/if}
+
+ {/foreach}
+
+ {*control type="dropdown" name="sortme" items=$page->sort_dropdown default=$defaultSort*}
+ {pagelinks paginate=$page bottom=1}
+ {/if}
+
+
+
+{script unique="expanding-text" yui3mods="yui"}
+{literal}
+YUI().use("anim-easing","node","anim", function(Y) {
+
+ var modules = Y.all('.showall.store .bodycopy');
+
+ modules.each(function(n,k){
+ // add fx plugin to module body
+ var content = n.one('.more-text');
+ if (!Y.Lang.isNull(content)) {
+ content.plug(Y.Plugin.NodeFX, {
+ to: { height: 0 },
+ from: {
+ height: function(node) { // dynamic in case of change
+ return node.get('scrollHeight'); // get expanded height (offsetHeight may be zero)
+ }
+ },
+
+ easing: Y.Easing.easeOut,
+ duration: 0.5
+ });
+
+ var onClick = function(e) {
+ e.halt();
+ n.toggleClass('yui-closed');
+ content.fx.set('reverse', !content.fx.get('reverse')); // toggle reverse
+ content.fx.run();
+ };
+
+ var control = n.one('.toggle');
+ control.on('click', onClick);
+ //n.one('.more-text .close').on('click', onClick);
+ };
+ });
+
+});
+{/literal}
+{/script}