Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreEasy Method for Exchange RateEasy Method for Exchange Rate
Previous
 
Next
New Post
8/2/2011 2:45 AM
 
Hi
Okay i have changed the sp back to original and just made the change to unitprice in the table as computed again. Tried to update product through store admin and wont update then did the casting in the sp to see if that would do the trick and no updates happen. I really dont want to have to get a sources and make mods in the code itself just to have  this do a calc for us.

As far as the error goes its just a big round  red cross that appears at the bottom of the update products page and says the following next that
Error An error has occurred.
Error: is currently unavailable
 
New Post
8/2/2011 1:20 PM
 
Hi,

It's because you have not restored correctly the original Store! I tried with a fresh install of the Store module 3.0 and just modified the Store_Products_UpdateProduct sp and it works! When I enter 8.00 as the Purchase Price and 2.5 as Product Weight the Price become 20.00.

1) Restore the Store module as the original and verify than you can update a product without error!
2) Login to your website as host and go to Host > SQL
3) Copy and paste the following code in the text box, check 'Run As Script' and click on 'Execute'

Gilles

/************************ NEW Store_Products_UpdateProduct sp ***********************/

ALTER PROCEDURE {databaseOwner}{objectQualifier}Store_Products_UpdateProduct
  @ProductID int,
  @CategoryID int,
  @Manufacturer nvarchar(50),
  @ModelNumber nvarchar(50),
  @ModelName nvarchar(50),
  @SEOName nvarchar(50),
  @ProductImage nvarchar(500),
  @UnitCost money,
  @Keywords nvarchar(1000),
  @Summary nvarchar(1000),
  @Description ntext,
  @Featured bit,
  @Archived bit, 
  @Weight decimal(10,2),
  @Height decimal(10,2),
  @Length decimal(10,2),
  @Width decimal(10,2),
  @SaleStartDate datetime = null,
  @SaleEndDate datetime = null,
  @SalePrice money = null,
  @StockQuantity int,
  @LowThreshold int,
  @HighThreshold int,
  @DeliveryTime int,
  @PurchasePrice money,
  @RoleID int,
  @Virtual bit,
  @VirtualFileID int,
  @AllowedDownloads int

 AS
 SET NOCOUNT ON

 UPDATE {databaseOwner}{objectQualifier}Store_Products SET
  CategoryID = @CategoryID,
  Manufacturer = @Manufacturer,
  ModelNumber = @ModelNumber,
  ModelName = @ModelName,
  SEOName  = @SEOName,
  ProductImage = @ProductImage,
  UnitCost = CAST((@PurchasePrice * @Weight) AS MONEY),
  Keywords = @Keywords,
  Summary  = @Summary,
  [Description] = @Description,
  Featured = @Featured,
  Archived = @Archived,
  ProductWeight = @Weight,
  ProductHeight = @Height,
  ProductLength = @Length,
  ProductWidth = @Width,
  SaleStartDate = @SaleStartDate,
  SaleEndDate = @SaleEndDate,
  SalePrice = @SalePrice,
  StockQuantity = @StockQuantity,
  LowThreshold = @LowThreshold,
  HighThreshold = @HighThreshold,
  DeliveryTime = @DeliveryTime,
  PurchasePrice = @PurchasePrice,
  RoleID  = @RoleID,
  Virtual  = @Virtual,
  VirtualFileID = @VirtualFileID,
  AllowedDownloads = @AllowedDownloads
 WHERE
  ProductID = @ProductID
GO


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
8/3/2011 2:34 AM
 
Thank you so much for youur help, that did the trick and is working, much appreciated
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreEasy Method for Exchange RateEasy Method for Exchange Rate


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out