We understand that your ecommerce site is crucial to the success of your business, from time to time issues and questions can arise and you need to have the assurance there will be someone on hand to help resolve these in a timely fashion so you can spend your time driving your own business forward.

So if you are looking for faster responses to your questions or would like the assurance there is someone on hand for you to contact, fear not we have a number of paid support options that are available to you that can give your organisation the peace of mind knowing a member from the Cart Viper team will always be available to assist!

Purchase a Support Plan

Community Support

HomeHomeIssues and Supp...Issues and Supp...Templates & UITemplates & UIProduct copy error reportProduct copy error report
Previous
 
Next
New Post
8/31/2017 2:14 PM
 
Hello
When I make a copy of the product, the creation date is also copied, so the product does not appear among the latest additions. I understand that being a copy even the date is created, but at least I would like to have the option to change it otherwise I can not take advantage of copy functionality because it creates an anomaly
 
New Post
8/31/2017 4:21 PM
 
Hi,

If you execute the below SQL it should correct the issue:

ALTER procedure {databaseOwner}[{objectQualifier}CVStore_Products_Duplicate]
(
 @productId int
)

as

declare @newProductId int

--variants need to be copied in c# code since the identity of
--variant is needed to determine the options for a given
--variant

--cvstore_products
insert into {databaseOwner}[{objectQualifier}CVStore_Products]
(PortalID, Manufacturer, ModelNumber, ModelName, ProductImage, UnitCost, Keywords, Summary, [Description],
Featured, Archived, CreatedByUser, CreatedDate, ProductWeight, ProductHeight, ProductLength, ProductWidth, 
SaleStartDate, SaleEndDate, SalePrice, StockQuantity, LowThreshold, HighThreshold, DeliveryTime, 
PurchasePrice, RoleID, isEvent, viewRoleId) 
select PortalID, Manufacturer, ModelNumber, ModelName, ProductImage, UnitCost, Keywords, Summary, [Description],
Featured, Archived, CreatedByUser, getDate(), ProductWeight, ProductHeight, ProductLength, ProductWidth, 
SaleStartDate, SaleEndDate, SalePrice, StockQuantity, LowThreshold, HighThreshold, DeliveryTime, 
PurchasePrice, RoleID, isEvent, viewRoleId from {databaseOwner}[{objectQualifier}CVStore_Products] where productId=@productId

set @newProductId = @@identity

--CVStore_ProductAttributes
insert into {databaseOwner}[{objectQualifier}CVStore_ProductAttributes]
(parentId, [name], [value])
 select @newProductId, [name], [value] from {databaseOwner}[{objectQualifier}CVStore_ProductAttributes]
where parentId = @productId

--cvstore_productimages
  insert into {databaseOwner}[{objectQualifier}cvstore_productimages]
(productId, imageUrl, caption, displayOrder)
 select @newProductId, imageUrl, caption, displayOrder from {databaseOwner}[{objectQualifier}cvstore_productimages]
where productId = @productId

--cvstore_categoryproduct
insert into {databaseOwner}[{objectQualifier}cvstore_categoryproduct]
(productId, CategoryId)
select @newProductId, CategoryId from {databaseOwner}[{objectQualifier}cvstore_categoryproduct]
where productId = @productId

-- cvstore_productuserpricing
insert into {databaseOwner}[{objectQualifier}cvstore_productuserpricing]
(productId, price, roleId, userId)
select @newProductId, price, roleId, userId from {databaseOwner}[{objectQualifier}cvstore_productuserpricing]
where productId = @productId

-- cvstore_producttabs
insert into {databaseOwner}[{objectQualifier}cvstore_producttabs]
(productId, tabName, tabContent, sortOrder, TabImageUrl, DisplayImageBeforeTitleText, dnnRoleId)
select @newProductId, tabName, tabContent, sortOrder, TabImageUrl, DisplayImageBeforeTitleText, dnnRoleId from {databaseOwner}[{objectQualifier}cvstore_producttabs]
where productId = @productId

-- cvstore_productyoutubes
insert into {databaseOwner}[{objectQualifier}cvstore_productYouTubeVideos]
(productId, videoId, description)
select @newProductId, videoId, description from {databaseOwner}[{objectQualifier}cvstore_productYouTubeVideos]
where productId = @productId

-- CVStore_ProductDigitalDownload
insert into {databaseOwner}[{objectQualifier}CVStore_ProductDigitalDownload]
(productId, fileName, downloadLimit, expiryDate)
select @newProductId, fileName, downloadLimit, expiryDate from {databaseOwner}[{objectQualifier}CVStore_ProductDigitalDownload]
where productId = @productId

-- CVStore_ProductAccordionLeaf
insert into {databaseOwner}[{objectQualifier}CVStore_ProductAccordionLeaf]
(productId,sortOrder,accordionId,accordionLeafName,AccordionLeafContent)
select @newProductId, sortOrder,accordionId,accordionLeafName,AccordionLeafContent from {databaseOwner}[{objectQualifier}CVStore_ProductAccordionLeaf]
where productId = @productId

-- cvstore_productDNNRoles
insert into {databaseOwner}[{objectQualifier}CVStore_ProductDnnRoles]
(productId, roleId, expiryDate)
select @newProductId, roleId, expiryDate from {databaseOwner}[{objectQualifier}CVStore_ProductDnnRoles]
where productId = @productId

-- CVStore_QtyDiscountBand
insert into {databaseOwner}[{objectQualifier}CVStore_QtyDiscountBand]
(productId, lowerBandLimit, upperBandLimit, discountAmount,
discountAsPercent, dnnRoleId)
select @newProductId, lowerBandLimit, upperBandLimit, discountAmount,
discountAsPercent, dnnRoleId from {databaseOwner}[{objectQualifier}CVStore_QtyDiscountBand]
where productId = @productId


select @newProductId

return

GO

 
Previous
 
Next
HomeHomeIssues and Supp...Issues and Supp...Templates & UITemplates & UIProduct copy error reportProduct copy error report


 

We use cookies on our website to improve our service to you, by continuing you agree to our use of cookies. However you are able to update your settings at any time.

Cookie Policy

A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is a piece of data stored by a website within a browser, and then subsequently sent back to the same website by the browser. Cookies were designed to be a reliable mechanism for websites to remember things that a browser had done there in the past, which can include having clicked particular buttons, logging in, or having read pages on that site months or years ago.

Strictly Necessary Cookies

These cookies cannot be disabled

These cookies are necessary for the website to function and cannot be switched off. They are normally set in response to your interactions on the website e.g. logging in etc.

Cookies:
  • .ASPXANONYMOUS
  • .DOTNETNUKE
  • __RequestVerificationToken
  • authentication
  • CV_Portal
  • CV_Store_Portal_Cart_0
  • CV_USER
  • dnn_IsMobile
  • language
  • LastPageId
  • NADevGDPRCookieConsent_portal_0
  • userBrowsingCookie

Performance Cookies

These cookies allow us to monitor traffic to our website so we can improve the performance and content of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited or how you navigated around our website.

Cookies:
  • _ga
  • _gat
  • _gid

Functional Cookies

These cookies enable the website to provide enhanced functionality and content. They may be set by the website or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.

Cookies:

Currently we are not utilizing these types of cookies on our site.

Targeting Cookies

These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Cookies:

Currently we are not utilizing these types of cookies on our site.

Feedback