View Single Post
  #5  
Old 09-03-2006, 08:16 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: X-Cart 4.1.3 released

Quote:
Originally Posted by Xidos
Upon each fresh install of 4.1.3 the product_modify interface returns to section 'wholesale' when posting updates for a product, this happens in product modify sections upselling links, product options and customer reviews.

So when for example adding an upseeling link to an existing product, one submits the form with the link and the page refreshes to section wholesale while no link has been added to the section upselling links.

Anyone else encountered this? I've installed 4.1.3 several time son multiple servers, same story each time...
Yep! In modules/Wholesale_Trading/product_wholesale.php you probably have something like this towards the bottom:
PHP Code:
if (!empty($pids))
        
func_build_quick_prices(array_unique($pids));

    
func_refresh("wholesale"); 
It should look like this:
PHP Code:
if (in_array($mode, array("wholesales_modify""wholesales_delete"))) {
        if (!empty(
$pids))
            
func_build_quick_prices(array_unique($pids));

        
func_refresh("wholesale");
    } 
It's the func_refresh part that is causing this. It should only occur inside one of those two modes.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote