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...MiscellaneousMiscellaneousProduct documents and out of stockProduct documents and out of stock
Previous
 
Next
New Post
6/7/2019 12:18 PM
 
Hi,

1. We want to add a “label” for each product documents uploaded thru Product Data Sheets. And we want to display that label together with that pdf icon on product detail screen. How we can do that? We do not see any option.
2. We want to upload documents like Word, Excel etc in addition to Pdf on Product Data Sheets. We want to download that from product detail screen too. How we can do that? 
3. How we can prevent checkout if a product is out of stock? As of now, we can do checkout even if product is out of stock (-ve). 

Thanks,
Ajmal

 
New Post
6/7/2019 4:24 PM
 
Hi,

1) We don't currently support adding a custom label against an uploaded datasheet, you could however write a Razor script that replaced our standard token and displayed your own image and label. I can share the code to get a products datasheets if you want?

2) If you go to store admin -> store info -> general settings in the field "Allowed Product Datasheet Extensions" you can enter a comma separated list of allowed extensions.

e.g

pdf,docx,xlsx

3) if you go to store admin -> store info -> store settings and for the setting "Product's Behavior" change the setting to "hide quantity links and button", then we should start to validate the stock quantities when you try to add to cart / checkout.

Regards
 
New Post
6/10/2019 1:12 PM
 
Thank you Nigel! Please share that code to get a product datasheets with label and image. 

Thanks,
Ajmal
 
New Post
6/10/2019 5:29 PM
 
The below is how we determine if a product has datasheets and if the current user has permission to view them. The code is returning web controls, however it could be moved to a Razor script and be modified to return the html "a" and "img" tags that you want:

if (productInfo.HasDataSheet)
{
Panel pnlDataSheet = new Panel();

        if (productInfo.ProductDataSheets != null)
        {
        foreach (var dataSheet in productInfo.ProductDataSheets)
                {
                if (dataSheet.UserHasPermissionToView(this.UserInfo))
                        {
                        Image pdfImage = new Image();
                                pdfImage.ImageUrl = ResolveTemplateUrl("Images/pdficon.png");
                                pdfImage.AlternateText = Localization.GetString("PdfDataSheetAlt.Text", LocalResourceFile);

                                var fileInfo = dataSheet.GetFileInfo(PortalId);
                                if (fileInfo != null)
                                {
                                        HyperLink hyperlink = new HyperLink();
                                        hyperlink.NavigateUrl = PortalSettings.HomeDirectory + fileInfo.Folder + fileInfo.FileName;
                                        hyperlink.ToolTip = string.Format(Localization.GetString("lblDataSheetDownload", this.LocalResourceFile), fileInfo.FileName);
                                        hyperlink.Controls.Add(pdfImage);

                                        pnlDataSheet.Controls.Add(hyperlink);
                                  }
                             }
                         } 
                    }
                   return pnlDataSheet;
          }
 
Previous
 
Next
HomeHomeIssues and Supp...Issues and Supp...MiscellaneousMiscellaneousProduct documents and out of stockProduct documents and out of stock


 

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