*

Smithtech

  • ****
  • 219 posts
ASSISTANCE WITH IMAGE PATH (S_PATH)
« on: August 13, 2023, 12:01:21 AM »
Bought this plugin today.
However there is issue displaying listing images.

It appears that the API call does not show the full image path as can be seen in this API call.  https://plugins.abprofitrade.eu/oc-content/plugins/rest/api.php?key=test-api-key&type=read&object=search&action=items&bPremium=1

It appears that the image ID is in the response but is however not appended to the full path.

Please, could you help?

*

Smithtech

  • ****
  • 219 posts
Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #1 on: August 13, 2023, 12:50:42 AM »
...And also, how to deal with the additional Zeros added to the item price?

"i_price":"78900000000"

https://plugins.abprofitrade.eu/oc-content/plugins/rest/api.php?key=test-api-key&type=read&object=search&action=items&bPremium=1

*

MB Themes

Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #2 on: August 13, 2023, 01:48:58 PM »
You need to build image url in same way as theme - web url + path + image id + extension.
Price in Osclass is stored with 6 or 9 extra zeros as integer (do not remember how many).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #3 on: August 13, 2023, 05:40:15 PM »
Thank you

1. Could you please assist with a sample of such URL composition?
for now using only 
Code: [Select]
$.s_path  and image doesn't show.

pk_i_id   "1208"
fk_i_item_id   "1202"
s_name   "MCw1U62Z"
s_extension   "jpg"
s_content_type   "image/jpeg"
s_path   "oc-content/uploads/12/"


2. How do we trim off the extra Zeros?

*

Smithtech

  • ****
  • 219 posts
Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #4 on: August 14, 2023, 12:30:44 AM »
.... And also, which call to use for login????

This same one for Create new user?
Code: [Select]
object=user&action=add&s_name=&s_email=...
s_name, s_email, ...
Add an new user. Same form composition is required as on bender theme - registration form, sending parameters to API url

*

MB Themes

Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #5 on: August 24, 2023, 03:31:30 PM »
Open link to whatever image and you have it there.
https://plugins2.abprofitrade.eu/oc-content/uploads/8/733_thumbnail.jpg
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #6 on: August 27, 2023, 03:35:10 AM »
Hi Team,

Thank you.

Was able to display images. It was not an easy task and took so long to figure out.

Now wondering how to post listings with pictures. Tried tried but couldn't find the way to post listing with pictures

Please, can we just have a revised detailed documentation, probably with https://swagger.io?

*

MB Themes

Re: ASSISTANCE WITH IMAGE PATH (S_PATH)
« Reply #7 on: August 27, 2023, 08:33:59 PM »
There is another pinned post with postmaster script to publish listing.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots