Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I use Prestashop and EBAY and AMAZON module.
Sometimes I used PHP script (change price database 2 table) fot update all my specific category price.
But this operation do not give input for update AMAZON and EBAY module.
For update products on ebay and Amazon I need to open single product and click on save.
How can I simulate each click category for mass update on ebay and Amazon.
In your script, just call the hook ( Hook::exec('actionAdminProductsControllerSaveBefore'); in your case if i'm right, or use the one used in amazon/ebay modules).
Be carefull, they will probably need some query parameters, like id_product, so set them up before your call the hook ( $_POST["id_product"] = $id_product; )
Hope it help.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working with shopeware 6 and adding the data with APIs. Using their documentation i have implemented the APIs for adding categories. Because they have given it in the docs. For more API info they asked to open swagger link.
So i tried it. But in the swagger there is no proper explanation of APIs. Somehow i manage to implement manufacturer API. But Now not able to implement add product APIs.
Please help me and let me know the required fields for the add product apis. I have tried API with some data but got error.
URL- https://www.meptrade.co.uk/api/v1/product Type - POST {
"stock":1000, "taxId":"f6ac5dsvjbd7wd3b2i32bb89e2e802fc1a1e",
"price":"100", "name":"test",
"manufacturerId":"72f26544ddfbb55eb3bwbt348ec0ea717" }
Error:-
{"errors":[{"code":"c1051bb4-d103-4f74-8988-acbcafc7fdc3","status":"400","detail":"This
value should not be blank.","template":"This value should not be
blank.","meta":{"parameters":{"{{ value
}}":"null"}},"source":{"pointer":"/0/productNumber"}}]}
The error says you are missing a required field, which in this case is the productNumber. A product needs several required fields. You can look them up in the ProductDefinition (they have the Required flag)
You need at least:
name
manufacturer
productNumber
tax
price
stock
You could also have a look at the product api test which creates a product in its tests.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am building a new online shop based on OpenCart 2. I am trying to integrate an supplier XML feed to automatically update product prices/stock info/etc. Is there an ADD/UPDATE PRODUCT API to use with OpenCart 2? Could not find any info on their site about this...
I analyzed the database diagram but I think it's very difficult to create a PHP code to add/update these products manually.
You can use existing code that opencart uses to add/update products.
Its in admin/model/catalog/product.php.
There are methods for addProduct and editProduct.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
May I retrieve the count of FBA sellers for a product through api?
User may input the product name and by amazon api we have to retrieve the count of FBA for that product. If yes than can you reference the documentation link
Please let me know if you need more description...
Here is the documentation:
http://docs.developer.amazonservices.com/en_US/products/Products_GetCompetitivePricingForASIN.html
http://docs.developer.amazonservices.com/en_US/products/Products_GetLowestOfferListingsForASIN.html
The operation you need to run is called GetCompetitivePricingForASIN and / or GetLowestOfferListingsForASIN
You can download several example libs here:
https://developer.amazonservices.com/gp/mws/api.html/185-9907857-4122940?ie=UTF8&group=products§ion=products&version=latest
A part of the response you'll get is (in GetCompetitivePricingForASIN):
<NumberOfOfferListings>
<OfferListingCount condition="Any">11</OfferListingCount>
<OfferListingCount condition="Used">1</OfferListingCount>
<OfferListingCount condition="New">10</OfferListingCount>
</NumberOfOfferListings>
and in GetLowestOfferListingsForASIN:
<FulfillmentChannel>Merchant</FulfillmentChannel>
You then can simply count the number of Merchant / Amazon Sellers
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How do I disable or remove add to cart, and checkout functions on OpenCart?
I have a website, and it's like a store catalog. I mean, it is not an online store, so I don't need these functions and would like to disable it, so people can see the price, but they can't buy it online.
As you know, OpenCart is E-commerce software which is meant to sell product online, so there is no feature of removing add to cart.
If you want you can do it in a custom way by disabling the addToCart() operation:
catalog>view>javascript>common::addToCart() comment the operational part
system>library>cart::add() comment the operational part
This will help to disable the function of addToCart().
To remove add to cart button, add script to footer.tpl before </body>:
<script type="text/javascript">
$('.cart, #cart').hide();
</script>
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
We are considering implementing Prestashop with a single product but having multiple parameters which user would have to choose going through the order steps. Parameters like color, size, etc. In the end user would purchase customized product.
What would be best way to implement it in Prestashop? Maybe there is some plugin/template for that?
Maybe there is some better alternative?
We are thinking about Prestashop as payment, orders & delivery managment could be reused.
There are a few ways to do this using Prestashop attributes. The most powerful and flexible method I know of would be to use the following module which actually bypasses the standard Prestashop combination generator to allow for more flexibility and a greater number of attribute combinations. You'd be able to customize how attribute options are displayed and in what order, and the price would change dynamically as attributes (parameters) are selected by the user. It sounds like this is exactly what you hope to accomplish.
http://www.presto-changeo.com/en/attribute-modules/34-attribute-wizard-pro.html