Post by dmbrownfield » Mon Jan 05, 2009 11:59 pm

Some changes to products are NOT being saved, some of them are., i.e., change in shipping cost.  Some of these changes I made a couple of weeks ago.  They were saved, now they are not.  Any ideas - this is a MAJOR problem.

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by dmbrownfield » Tue Jan 06, 2009 12:32 am

Now this is just freaky.  Seems about 1/2 of my products are defaulting to a weight of 5 ounces.  I am using weight based shipping for my entire store.  Is there a file somewhere that could possibly be causing this?

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by Qphoria » Tue Jan 06, 2009 12:58 am

Nope. Did you install anything else? run any sql commands?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by dmbrownfield » Tue Jan 06, 2009 2:31 am

nope

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by Qphoria » Tue Jan 06, 2009 3:19 am

Are you sure you didn't insert them that way? perhaps with the import/export contrib?
Can't think of anything that would change half the products to 5oz

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bthirsk » Tue Jan 06, 2009 4:42 am

I think these are incorrect in product.php  getform

        if ( $request->has('min_qty', 'post')) {
            $view->set('min_qty', $request->gethtml('min_qty', 'post'));
        } elseif (isset($product_info['min_qty'])) {
            $view->set('min_qty', $product_info['min_qty']);
        } else {
            $view->set('min_qty', 1);
        }

    if ($request->has('weight_class_id', 'post')) {
      $view->set('weight_class_id', $request->gethtml('weight_class_id', 'post'));
    } elseif (isset($product_info['weight_class_id'])) {
      $view->set('weight_class_id', $product_info['weight_class_id']);
    } else {
      $view->set('weight_class_id', '');
    }


@$product_info  ??

Brent


Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada

Post by Qphoria » Tue Jan 06, 2009 5:13 am

bthirsk wrote: I think these are incorrect in product.php  getform

        if ( $request->has('min_qty', 'post')) {
            $view->set('min_qty', $request->gethtml('min_qty', 'post'));
        } elseif (isset($product_info['min_qty'])) {
            $view->set('min_qty', $product_info['min_qty']);
        } else {
            $view->set('min_qty', 1);
        }

    if ($request->has('weight_class_id', 'post')) {
      $view->set('weight_class_id', $request->gethtml('weight_class_id', 'post'));
    } elseif (isset($product_info['weight_class_id'])) {
      $view->set('weight_class_id', $product_info['weight_class_id']);
    } else {
      $view->set('weight_class_id', '');
    }


@$product_info   ??
That would just suppress the error message. There really shouldn't be any errors messages anyway.
That wouldn't affect this problem tho.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by dmbrownfield » Tue Jan 06, 2009 9:39 am

I built my store from scratch using OpenCart so I have never used import/export for anything.  Weird huh?  I went thru every product today and fixed them all so I will get back to you if the changes don't stick this time.

New member

Posts

Joined
Fri May 09, 2008 12:37 am
Who is online

Users browsing this forum: No registered users and 2 guests