Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • phildegruchy Friend
    #151106

    Hi Guys,

    On the product browse page of JA_Mesolite_II, the button that allows the user to sort products either by ascending or descending order is not working. On clicking it the ordering does not change. The button relates to a JavaScript:

    javascript: document.order.DescOrderBy.value=

    It isn’t just my site, I’ve checked this on the Joomlart demosite and it doesn’t work either. This can be seen on the following page:

    http://templates.joomlart.com/ja_mesolite_ii/index.php?orderby=product_price&DescOrderBy=ASC&Itemid=71&option=com_virtuemart&page=shop.browse&category_id=12&manufacturer_id=0&keyword=&keyword1=&keyword2=

    Any help on getting this fixed would be most appreciated.

    Thanks,
    Phil:)

    Saguaros Moderator
    #343911

    Dear Phil!

    Thanks for reporting

    i create a issue on this, our developers ‘ll check and resolve this issue

    Thanks

    phildegruchy Friend
    #344324

    Thanks tienhc. Is there a way I can trace the progress of this? I kind of need this fixed quite soon.

    Thanks,
    Phil

    Saguaros Moderator
    #344479

    Dear Phil!

    Here is the solution

    Pls open the file: components/com_virtuemart/themes/ja-mesolite/templates/browse/includes/browse_orderbyform.tpl.php and try to find codes at line 12:
    [PHP]echo mm_writeWithJS(‘ <input type=”hidden” name=”DescOrderBy” value=”‘.$asc_desc[0].'” /><a href=”javascript: document.order.DescOrderBy.value=”‘.$asc_desc[1].'”; document.order.submit()”><img src=”‘. $mosConfig_live_site.”/images/M_images/$icon” .'” border=”0″ alt=”‘. $VM_LANG->_(‘PHPSHOP_PARAMETER_SEARCH_’.$asc_desc[0].’ENDING_ORDER’) .'” title=”‘.$VM_LANG->_(‘PHPSHOP_PARAMETER_SEARCH_’.$asc_desc[0].’ENDING_ORDER’) .'” width=”12″ height=”12″ /></a>’,[/PHP]
    replace:
    [PHP]echo mm_writeWithJS(‘ <input type=”hidden” name=”DescOrderBy” value=”‘.$asc_desc[0].'” /><a href=’javascript: document.order.DescOrderBy.value=”‘.$asc_desc[1].'”; document.order.submit()’><img src=”‘. $mosConfig_live_site.”/images/M_images/$icon” .'” border=”0″ alt=”‘. $VM_LANG->_(‘PHPSHOP_PARAMETER_SEARCH_’.$asc_desc[0].’ENDING_ORDER’) .'” title=”‘.$VM_LANG->_(‘PHPSHOP_PARAMETER_SEARCH_’.$asc_desc[0].’ENDING_ORDER’) .'” width=”12″ height=”12″ /></a>’,[/PHP]

    Good luck

    phildegruchy Friend
    #344569

    Thanks tienhc! That has sorted me out! Thanks for looking at this.:)

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  phildegruchy 14 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum