probably you should also have two constants in main file ulisting.php:
`
define(‘ULISTING_BASE_URL’, ‘/1/api’ );
define(‘ULISTING_REL_PATH’, home_url(”,’relative’).ULISTING_BASE_URL );
`
and use ULISTING_REL_PATH instead of ULISTING_BASE_URL in some cases, like i.e. in various .js files (i.e. ulisting\assets\js\admin\stm-item-card-layout.js) , change manual urls, like:
.$http.post("ulisting-builder/listing-item-card-layout
it should be changed to like:
.$http.post( ULISTING_URL + "ulisting-builder/listing-item-card-layout
and it might solve issue.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
also, would be nice if in “attribute” types, there was “link” (hyperlink) type for website/facebook urls.
• I see that the problem rises mostly if plugin activated only on other subsite in Multi-Site network.
• Please disregard one my above message, talking about $http.post in javascripts. Instead, the changes needs to be done to includes/enqueue.php and includes/admin/enqueue.php (both places) for
“Vue.http.options.root = ‘/1/api’;”);
into
“Vue.http.options.root = ‘”.ULISTING_REL_PATH.”‘;”);
(so, no changes needed to route.php). that will fix the issues of : https://i.imgur.com/vfT97lq.png
the problem that remains is that the attributes data for post (when clicking UPDATE) doesnt get saved (so, on page reload, the fields are empty). happens only in secondary sub-site inside multisite.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
-
This reply was modified 6 years, 9 months ago by
tazotodua.
what is this?
View post on imgur.com
there are everywhere “lisitngs”, “lisitn” and such words. why so many typos?
adds backslashes after update, in front of ‘ chars:
View post on imgur.com
listing pages doesnt show any content..
too many issues, untested plugin. i am leaving it and switching to other..
Hello Toma,
Regarding the first issue which you had, you need to change the permalink structure to the “Post Type” to fix the demo import and JS errors.
Also, we will correct the typo errors in the coming update of the theme. Could you please clarify, which other problems do you have with the plugin and we will try to provide the needed solutions for you?
regards