My Stuff
Comments
-
Yes that's true. In most cases of "special access" I've encountered the special access should only happen after human verification of the supplied information. If this needs to be automated then the role based solution can work. You just need to update the customer's access role via a user event script after they've…
-
Right! I'd forgotten about this. What they are saying is that the item will only show in the store if it has a defined price level for the current customer. Base and online price are defined for everyone but a customer's assigned price level will override those. I have seen this work but it was a long time since I've used…
-
There's nothing to stop you from adding the HTML5 doctype and using HTML5 elements. See this page http://diveintohtml5.org/semantics.html The big issue, as usual, is IE in versions less than IE9 (well it has some issues too) but the link above gives a bunch of advice about how to ameliorate IE issues. HTH
-
I don't know if this will help anyone but I thought I'd post it. The templates used for the KB appear to be the default templates associated with the site theme you first select when creating your web site. So if you are able to make the choice from among the built in themes then pick the plainest one. I worked on the KB…
-
Note to Netsuite: I believe this appears when the transitional doctype is entered and the site is a centered site. The problem is that the dropdownDiv element is attached directly to the body rather than to the parent of the drop down element. This is not very refined yet but with jQuery you can achieve a fix with…
-
Your use of getRecordAttribute looks correct. Are you sure you are actually referencing the right record type and id?
-
Hi Chris, The important question here is does your added content need to be findable via Google? i.e. are you planning on an SEO affect? If so you need to find a way to make the information available via tags that you can add to your templates. If there is a one-one correspondence between a single custom record and the…
-
Just saw this thread. I've been working on kNetShop at https://www.knightsofthenet.com/shopify.html for some time now. It's live on a number of sites with sku counts ranging from the teens to over 50k. It can translate non-standard item parent child relationships to create products and variants.
-
John, Do you mean a completely separate site or some hosted pages as a adjunct to an existing Netsuite site? If the latter then you don't need an external cart. You just need to manipulate the url to which you post the item to be added. You also need a "continue" element in the form if you show the customer the cart after…
-
Actually I've had at least one customer using both. The trick is to style the cart/checkout pages based on the originating site. Qicnet has a multi-site system that manages this. One customer had around 250 WSDK stores up -- all styled differently and looking like individual stores.
-
Carl, The tag you want to use is <%=getAttribute not <%=getCurrentAttribute HTH Brett Knights
-
Imagine we’re running a WSDK site and are using our own written basket functionality…. At the point the user checks out we hand them over to checkout.netsuite.com…. calling the Add to Basket WSDK calls as we go… I'm curious as to why you'd want to do this. It doesn't sound like you are adding very much functionality -- the…
-
Your sample urls are for the same page but they were navigated to via different paths. This may mean you have items assigned to more than one category or that you actually do have different paths to the same item. If both urls are for the same item then there isn't really an SEO penalty for this. I've seen a great deal of…
-
May I ask where you got the library files from?
-
It looks like you are just returning text and NS is interpreting it as html. I use the following function (I have is as a Sublime Text snippet) for returning JSON from suitelets:: function _sendJS(request, response, respObject){ response.setContentType('JAVASCRIPT'); //'application/json'); var callbackFcn =…
-
I've done this a lot over the years. I just did a search through my scripts and I've never done this in a before submit script. Easiest thing would be to move your script to the after submit and var orderRec = nlapiLoadRecord('salesorder', nlapiGetRecordId()); // no need for dynamic ... same as dansteg HTH
-
Actually your script will only work if the last item is virtual. If you can have more than one line item and some may have the flag checked and some not you should probably do something like: var i = 1, isVirtual = false; for(i; i<= LineItemCount; i++) { if('T' == nlapiGetLineItemValue('item', 'custcol_is_virtual', i)){…
-
Oh well. The sample I supplied was based on you not being able to generate the UIDs so it should help. I'm wondering if you investigated modeling the UIDs as serialized inventory items with the UID as the serial number? If you did that the whole process might be simplified considerably.
-
Hi Robert, Similar to what khultquist offered one way to minimize processing time is a combination of scripts and scripted csv imports. The following describes a general approach I'd take to your problem. For 1. search for your POs. If you will generally have fewer than 1000 you can just run a search with…
-
Your code may have changed to use nlapiSubmitRecord instead of nlapiSubmitField. I just had to deal with this issue. var tmplt = item.getFieldText('storeitemtemplate') || ''; var shadow = item.getFieldValue('custitem_kotn_shadow_template') || ''; if (tmplt != shadow) { item.setFieldValue('custitem_kotn_shadow_template',…
-
Hello.. The thread khultquist mentions contains a strategy for dealing with the 1000 record limit in a search. Since you just started seeing governance errors you probably won't need the next step for a while but it wouldn't hurt to build in some future proofing. See this thread for a function that handles governance into…
-
The following works in a scriptable checkout script: var discountAmnt = (-1*bogoAmount/2).toFixed(2); nlapiSetFieldValue('discountitem', bogoDiscountId); nlapiSetFieldValue('discountrate', discountAmnt); nlapiSetFieldValue('discounttotal', discountAmnt);
-
Try adding response.setContentType('JAVASCRIPT'); before you write anything to the response
-
If you are building your JSON by hand you can escape any double quotes by preceding them with a \ see this stack overflow article. If you can though you should just build up the info you want to transfer as JSON and use JSON.stringify on the data. The JSON object is part of the NS environment for server side code (user…
-
Thanks for trying. No matter what I do I get that same error. I guess it just can't be done. That's a pretty big leap :-) FWIW if I were attempting to update item prices based on recalculated costs I'd probably do that in a daily scheduled script. Depending on your costing model your costs may be affected not just when you…
-
The following was cribbed from the NS help and works when you are editing an item and sets the online price for an item. You can see the original if you search the NS help for "Pricing Sublist Code Sample" In comparing it with your code your problem may be you are selecting "price" but committing "price1" // Check the…
-
Hi Wiz, You might want to check out this thread regarding updating prices. The nlapiSelectLineItem/nlapCommitLine item calls are used for client side scripts or server scripts where the record was loaded in dynamic mode. For your example I'd tend to make the code run after submit on the PO user event or before submit on…
-
It is a scheduled script that uses a saved search to write values to an item record. Never written to a sublist before - and it is not happening for me! Help would be much appreciated: This is the script, first writing values to the item record itself (which works) and then writing to the price sublist (which does not…
-
... A saved search that - finds items to be included in a promotion based on a start date - extracts current online price - calculates offer price based on a parent field controlled by marketing - takes a record of any other item information that we need to have in order to reverse the promotion at the end date of the…
-
Hello, I have an inventory item that I have changed the preferred vendor on. This is verified in the system notes on that item and the preferred vendor shows correctly on that item. In a client script on a quote form, I have this line of code: var strItemPreferredVendor =…