nBill Community nBill Home Page
21/May/2012, 11:48:38 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for the nBill home page, or take a tour.  
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Can't set price for any new products added since latest upgrade (1.2.9)  (Read 847 times)
Antoine
Full Member
***
Offline Offline

Posts: 154


View Profile
« on: 13/July/2010, 11:29:01 AM »

I can't set a price (any type) to new products, while I can update products that were set before lastest upgrade.
That's kind of weird !
Any info about that ?
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #1 on: 13/July/2010, 11:34:11 AM »

Sounds like there is something wrong with your database - please submit a support ticket giving me access to the site so I can look into it.
Logged
Antoine
Full Member
***
Offline Offline

Posts: 154


View Profile
« Reply #2 on: 13/July/2010, 12:04:11 PM »

Actually the issue only happens for newly created vendors.
I can set new products and price for older vendors, but not for newly created ones.
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #3 on: 13/July/2010, 12:55:09 PM »

Ah, I just noticed you said 1.2.9. Is there any reason why you are not using version 1.2_10?

I just created a new product on your site ('test') and was able to modify the price ok...
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #4 on: 13/July/2010, 12:59:27 PM »

This problem might be caused by having changed the vendor for a product, in which case, running the following SQL query on your database (eg. using phpMyAdmin) may solve the problem:

DELETE jos_inv_product_price.* FROM jos_inv_product_price LEFT JOIN jos_inv_product ON jos_inv_product_price.product_id = jos_inv_product.id AND jos_inv_product_price.vendor_id = jos_inv_product.vendor_id WHERE jos_inv_product.vendor_id is NULL
Logged
Antoine
Full Member
***
Offline Offline

Posts: 154


View Profile
« Reply #5 on: 15/July/2010, 01:14:00 PM »

Can you confirm that this sql request will no harm the product database ?
Indeed I have 19 rows returned.
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #6 on: 15/July/2010, 03:10:59 PM »

It is safe - it only deletes 'orphan' records where a price was entered while the product was assigned to a different vendor. The most you would need to do is re-enter some of your prices, but even that should not be necessary.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!