error list

20.10.2011 12:49
#1
sirekko
Joomshopping forum user no avatar
Name: sirokko
20.10.2011
Posts: 1
Quote
error list and solution

1
When "send refferer" is disabled (Opera) after add product into a basket ampty page is showed.
solution: com_jshopping/controllers/cart.php
change

$this->setRedirect( $_SERVER['HTTP_REFERER'], $message);

to

if($_SERVER['HTTP_REFERER'] !=null)
$this->setRedirect( $_SERVER['HTTP_REFERER'], $message);
else
echo '<script type="text/javascript">
window.onload = function(){ window.history.back();}
</script>';

2
if you edit existing menu item indicates shop category you have to olvays select type "show"

<select id="jform_request_task" name="jform[request][task]">
<option value="">-</option>
<option value="view" selected="selected">Category / Category</option>
<option value="register">User / Registration</option>
<option value="login">User / Login</option>
<option value="logout">User / Logout</option>
<option value="editaccount">User / Edit account</option>
<option value="orders">User / Orders</option>
<option value="view" selected="selected">Manufacturer / Manufacturer</option>
<option value="tophits">Products / Top Hits</option>
<option value="toprating">Products / Top Rating</option>
<option value="label">Products / Label Products</option>
<option value="bestseller">Products / Bestseller</option>
<option value="random">Products / Random</option>
<option value="last">Products / Last Products</option>
<option value="info">Vendors / Vendor info</option>
<option value="view" selected="selected">StaticPage</option>

because there is 3 point with (value="view" selected="selected") and after saving "show" = "StaticPage"

3
when creating subkatehory them automatically assigned to links that point to different categories, but the same menu item, even in case the parent category show a completely different sort

http://domain.com/index.php?option=com_jshopping&controller=category&task=view&category_id=12&Itemid=125

http://domain.com/index.php?option=com_jshopping&controller=category&task=view&category_id=19&Itemid=125

http://domain.com/index.php?option=com_jshopping&controller=category&task=view&category_id=12&Itemid=125

http://domain.com/index.php?option=com_jshopping&controller=category&task=view&category_id=32&Itemid=125

solution:
file: com_jshopping/loadparams.php

was

line 10
$session =& JFactory::getSession();
$shop_default_itemid = $session->get('shop_default_itemid');
$ajax = JRequest::getInt('ajax');

if (JRequest::getInt('Itemid') && !$shop_default_itemid){
$session->set('shop_default_itemid', JRequest::getInt('Itemid'));
}

must be
$session =& JFactory::getSession();
if (JRequest::getInt('Itemid') && !$shop_default_itemid){
$session->set('shop_default_itemid', JRequest::getInt('Itemid'));
}
$shop_default_itemid = $session->get('shop_default_itemid');
$ajax = JRequest::getInt('ajax');


waiting for updates.
thank you


Joomla: 1.72
JoomShopping: 3.2.7
PHP: 5.3.1
MySQL: 5.1.41
Website Url: localhost

Letzte Ă„nderung: 21.10.2011 08:08
 
Copyrights MAXXmarketing GmbH. All Rights Reserved