USD Price is not coming in the product listing and detail.
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 24
- Joined: 15 Mar 2018, 10:04
USD Price is not coming in the product listing and detail.
Hi Team,
I am doing through the JSONAPI, But I am not getting the USD price of product in the product listing API. BUT EUR is coming. Even i included the price in the URL.
jsonapi/product?filter[f_attrid][]=18&include=media,price,text
I am getting the media and text. But not the price
I am doing through the JSONAPI, But I am not getting the USD price of product in the product listing API. BUT EUR is coming. Even i included the price in the URL.
jsonapi/product?filter[f_attrid][]=18&include=media,price,text
I am getting the media and text. But not the price
Re: Price is not coming in the product listing and detail pa
Most of the time, the currency of the prices you've added in the admin interface doesn't match the currency of your locale. Have a look into the locale panel of the admin interface to see what is the first combination of site/language/currency that is used if you are not adding this information to the routes and URLs
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 24
- Joined: 15 Mar 2018, 10:04
Re: USD Price is not coming in the product listing and detai
Thanks this is working.
Can you tell me how to add the product into a particular customer basket.
```http://localhost/jsonapi/basket?id=defa ... es][id][12]```
I am using this and getting the response
```
{
"errors": [
{
"title": "Not allowed for this resource"
}
]
}
```
Can you tell me how to add the product into a particular customer basket.
```http://localhost/jsonapi/basket?id=defa ... es][id][12]```
I am using this and getting the response
```
{
"errors": [
{
"title": "Not allowed for this resource"
}
]
}
```
Re: USD Price is not coming in the product listing and detai
Have you read this section in the docs?
https://aimeos.org/docs/Developers/Clie ... d_products
https://aimeos.org/docs/Developers/Clie ... d_products
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 24
- Joined: 15 Mar 2018, 10:04
Re: USD Price is not coming in the product listing and detai
Yes, I read that. Even i am trying to add the product into baseket. Not able to add the product into the baseket.
Can you plesae help me through URL how can i add?
Can you plesae help me through URL how can i add?
Re: USD Price is not coming in the product listing and detai
The important thing is that you take the URL from the products:
The link (http://localhost/default/jsonapi/basket ... ed=product) might be different in your response. You need to take that and use a POST request to POST this data to the JSON API:
Code: Select all
"data": [{
"id": "1",
"type": "product",
"links": {
"basket\/product": {
"href": "http://localhost/default/jsonapi/basket?id=default&related=product",
"allow": ["POST"]
}
},
Code: Select all
var data = {data: [{
attributes: {
"product.id": response[0]['id'], // from product response
quantity: 1, // optional
stocktype: "default", // warehouse code (optional)
variant: [], // variant attribute IDs for selection products (optional)
config: [], // config attribute IDs (optional)
hidden: [], // hidden attribute IDs (optional)
custom: {} // custom attribute ID/value pairs (optional)
}
}]};
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 24
- Joined: 15 Mar 2018, 10:04
Re: USD Price is not coming in the product listing and detai
I am getting this error. when trying to post the data for base
Please find the attachment
Please find the attachment
- Attachments
-
- Untitled.png (15.32 KiB) Viewed 3346 times
Re: USD Price is not coming in the product listing and detai
You forgot to include the CSRF token like in the example code there:
https://aimeos.org/docs/Developers/Clie ... d_products
https://aimeos.org/docs/Developers/Clie ... d_products
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 24
- Joined: 15 Mar 2018, 10:04
Re: USD Price is not coming in the product listing and detai
After all these. How can a user see his/her previous order, I think there is no option to attach a order with any user?
Because When i am saving the basket and creating the order there is no parameter to send the customer id.
Because When i am saving the basket and creating the order there is no parameter to send the customer id.
Re: USD Price is not coming in the product listing and detai
Can you please open one topic for each kind of question?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star