mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
Update custom-fields.js
This commit is contained in:
parent
79dad4cadc
commit
6140c50196
@ -6,8 +6,6 @@
|
||||
* THIS FILE IS USED FOR THE AGILITY'S CUSTOM FIELDS
|
||||
*/
|
||||
|
||||
var baseUrl = "https://forzaforni-commerce-agilitycms.vercel.app/"
|
||||
|
||||
|
||||
var FriendlyURLFormField = function () {
|
||||
var self = this;
|
||||
@ -267,6 +265,8 @@ var ChooseProductCustomField = function () {
|
||||
/// </param>
|
||||
var self = this;
|
||||
|
||||
ContentManager.DataAccess.GetPreviewUrl()
|
||||
|
||||
self.ajaxRequest = null;
|
||||
|
||||
self.selectedValue = options.fieldBinding.extend({ throttle: 500 });
|
||||
@ -307,7 +307,7 @@ var ChooseProductCustomField = function () {
|
||||
},
|
||||
|
||||
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
|
||||
url: "https://nextjs-commerce-agility-cms.vercel.app/api/search-products",
|
||||
url: "https://my-bigcommerce-store-oct-14.vercel.app/api/search-products",
|
||||
//url: "http://localhost:3000/api/search-products",
|
||||
dataType: 'json',
|
||||
type: "get",
|
||||
|
Loading…
x
Reference in New Issue
Block a user