Show Posts

Topics - Rawinder Dhillon

Pages: [1]
API Development / coupon working on website but not in API
« on: March 18, 2022, 04:38:15 AM »
 I created a coupon on website .
it works when i place order there
But while using it app or Postman via API is gives error
 "error_warning": "Error: Coupon is either invalid, expired or reached it's usage limit!",
can someone plz check

Template Support / Sort function of Tags
« on: February 27, 2022, 07:08:27 AM »
while entering product data we add Tags.
these tags are stored sorted in database .
can someone plz tell me the location where this sorting function is . as dont want tags to be sorted .

i checked and edited this file but not working
public _html/ admin/model/ catalog/product

Payment Modules / Bank Transfer extension that support API
« on: December 29, 2021, 07:48:46 AM »
i want to develop an extension (Bank Transfer Or I can Name it Prepay ) that is supported by API also.
i used extension development tool.  but can someone plz tell what other files of API need changes and any rough idea

API Development / Fetch Resources of a Product
« on: February 18, 2021, 02:55:16 AM »
i want to fetch all the images i uploaded on website through API of a particular product
with rt=a/product/product
it returns only Main image (one Url)
but i want all to display in android APP
i tried
but it returns empty response on "Postman"

can someone plz help

output of a/product/resources (this product has 3 images)
    "total": 6,
    "resources": [
            "type_id": "1",
            "type_name": "image",
            "default_directory": "image/",
            "default_icon": "icon_resource_image.png",
            "file_types": "/.+(jpe?g|gif|png|ico|svg|svgz|webp)$/i",
            "access_type": "0"
            "type_id": "2",
            "type_name": "audio",
            "default_directory": "audio/",
            "default_icon": "icon_resource_audio.png",
            "file_types": "/.+(mp3|wav)$/i",
            "access_type": "0"
            "type_id": "3",
            "type_name": "video",
            "default_directory": "video/",
            "default_icon": "icon_resource_video.png",
            "file_types": "/.+(avi|mpg|mov|flv)$/i",
            "access_type": "0"
            "type_id": "4",
            "type_name": "pdf",
            "default_directory": "pdf_document/",
            "default_icon": "icon_resource_pdf.png",
            "file_types": "/.+(pdf)$/i",
            "access_type": "0"
            "type_id": "5",
            "type_name": "archive",
            "default_directory": "archive/",
            "default_icon": "icon_resource_archive.png",
            "file_types": "/.+(zip|rar|gz|7z)$/i",
            "access_type": "1"
            "type_id": "6",
            "type_name": "download",
            "default_directory": "download/",
            "default_icon": "icon_resource_download.png",
            "file_types": "/.+$/i",
            "access_type": "1"

API Development / Sord (for Sorting) not working in API
« on: January 06, 2021, 10:41:24 AM »
while fetching products
im using these two options
first is keyword
2nd is category_id

with rt=a/product/filter

when i search with keyword
sord=DESC or ASC
it is working perfectly
but when instead of keyword i use category_id
with same options

then there will no sorting by price.
products are sorted by product id

im i doing something wrong ?

General Support / Change in Cart doesn't Reflect
« on: December 06, 2020, 04:07:58 AM »
i'm using Abantecart API with an android App.
Update Abntecart Version to 1.2.16 from an older version.
Before Updation Android App was working Perfectly.
Any operation like add product, delete, change quantity reflects at same time on web browser in  customer's account.
but after updation logoff and re login on web browser to check changes otherwise it show old data.
looks like this is related to caching .
can someone plz put light on this

API Development / Bank Transfer Payment Method in android APP
« on: October 28, 2020, 11:47:50 AM »
In my Android app. i'm able to place order on my Website but with payment type "COD" only.
on my website i have another payment extension that is Default_banktranfer. on website its working fine.but in android app is showing error
'status' => 5, 'error' => 'Something went wrong. Incomplete request!'

there is a parameter in process Request that is "payment details"
im not sending this as i assumed that on website it is working without any payment details(and also working for COD) so it will work here too.
but its not working . i search online but couldn't able to find any clue that what will be the value of this parameter in case of banktransfer (like null or something else)

documentation saying it is "Details that are returned from confirmation step in payment structure"   
and in notes "Required based on “required” flag in the structure".

Where is this Required Flag?
and what will be the value of parameter in case of bank transfer ?
Thx in Advance

API Development / getting 401 unauthorized response from API
« on: August 01, 2020, 03:37:48 PM »
i'm not a php developer , but can understand php code
problem is i'm trying to login through API. As i understand it , it includes 2 steps , first send email , password and api_key through Post Url
according to me , it will hit login.php & return me a Token and code 200.(as i can see from login .php in API Folder )
but it is returning 401, unauthorized
Now the questions are ?
ay be it is due to first step and yet no functionality  for resend data with tokens, but how can i get token in first step?
as i'm not getting one, i thought it is in the form of json , and  as response of command .

*with text_api.php i'm able to login with customer credentials
** Able to fetch Product with Get Command from Browser

Pages: [1]

Powered by SMFPacks Social Login Mod