Small patch
-
After few hours of debugging next few lines are my suggestion(contribution).
/wp-content/plugins/orillacart/com_shop/shop.php on line 164
replace
session_start();
with
if ( !isset($_SESSION) ) {
session_start();
}/wp-content/plugins/orillacart/com_shop/front/models/product_list.php on line 160
replace
if ($term->slug) {
with
if ( !empty($term->slug) ) {/wp-content/plugins/orillacart/helpers/request.php on line 190
replacereturn (bool) ( $_SERVER[‘HTTP_X_REQUESTED_WITH’] == ‘XMLHttpRequest’);
with
$request = ( !empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && $_SERVER[‘HTTP_X_REQUESTED_WITH’] == ‘XMLHttpRequest’) ? true : false;
return $request;/wp-content/plugins/orillacart/com_shop/front/views/product_list/view.html.php on line 37
replace
$tpl = (string) $this->category->view_style;
with
$tpl = (string) empty($this->category->view_style) ? ” : $this->category->view_style;/wp-content/plugins/orillacart/com_shop/front/views/product_list/view.html.php on line 68
replace
} else if (in_array($obj->taxonomy, array(‘product_tags’, ‘product_brand’, ‘product_type’))) {
with
} else if (!empty( $obj->taxonomy ) && in_array($obj->taxonomy, array(‘product_tags’, ‘product_brand’, ‘product_type’))) {/wp-content/plugins/orillacart/com_shop/front/views/product_list/view.html.php on line 80
replace
$paths[] = dirname(__FILE__) . “/templates/” . $this->category->list_template;
with
$paths[] = dirname(__FILE__) . “/templates/” . empty($this->category->list_template) ? ‘list.tpl.php’: $this->category->list_template;/wp-content/plugins/orillacart/com_shop/front/views/product_list/templates/list.tpl.php on line 23
replace
<input type=”hidden” id=”list_type” name=”list_type” value=”<?php echo $this->listtype; ?>” />
with
<input type=”hidden” id=”list_type” name=”list_type” value=”<?php echo $this->list_type; ?>” />/wp-content/plugins/orillacart/com_shop/front/models/product.php on line 14
replace
$def = (array) $this->getProductAttributes($id)->def;
with
$atribs = $this->getProductAttributes($id);
$def = !empty($atribs->def) ? (array)$atribs->def : array() ;/public_html/wp-content/plugins/orillacart/com_shop/router.php on line 10
add before
switch ($seg[‘con’]) {
…..
- The topic ‘Small patch’ is closed to new replies.