Jump to content

mogarick

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by mogarick

  1. Hi @W3c2i, The only way I could do it was without using the Web Service. I copied and modified code fragments from the Controller that implements this feature in the PS Back Office. (PD: It looks your native language is not english. Mine is spanish. What's yours?)
  2. Hi IeM, I could solve my need with te help of your tip and using filter and display params. In my case I only needed to get the current stock quantity available. I didn't need to update it. The awkward thing is the fact that calling the products end point always have a 0 value for the quantity attribute but calling the stock_availables end point returns the correct quantity. This just enforces my last message, PS dev team implemented WS as an afterthough and they don't support it at the same level as the other components and features of PS and that's pretty sad.
  3. Thank you @IeM. I'm gonna try it out! In regard to de WS API, I've already suffered a previous disappointing when I tried to use it for Cart Rules. It only works for simple ones but if you want to create something more complex such as creating a discount for a category it is not supported via WS. I posted an issue in the PS issue tracker but never got any answer. I also complained about the heterogeneous way of enabling the different clases for WS but also got a mute response. So it appears WS API is definitely some kind of after though for PS dev team and those who dare to walk that path are on their own. That's pretty sad I think.
  4. Hi @IeM, I'm having the same problem plus one more: When I get the product XML data via <mypsshop.com>/api/products/<productID> I always get 0 for the quantity field even though in the BO I can see another value but zero. Have you find a solution for your problem or do you know why can my problem variant can be ocurring?
  5. Hi, Is there a way to include Product Group Rules via PS webservice? I'm creating an app that needs to create a discount promo code that applies to a Product category but the XML for cart_rules doesn't include any tag for adding such group rules o at least I don't know where to add them. This is the blank XML schema where I can't guess where to include such info: <prestashop> <cart_rule> <id/> <id_customer/> <date_from/> <date_to/> <description/> <quantity/> <quantity_per_user/> <priority/> <partial_use/> <code/> <minimum_amount/> <minimum_amount_tax/> <minimum_amount_currency/> <minimum_amount_shipping/> <country_restriction/> <carrier_restriction/> <group_restriction/> <cart_rule_restriction/> <product_restriction/> <shop_restriction/> <free_shipping/> <reduction_percent/> <reduction_amount/> <reduction_tax/> <reduction_currency/> <reduction_product/> <gift_product/> <gift_product_attribute/> <highlight/> <active/> <date_add/> <date_upd/> <name> <language id="1"/> </name> </cart_rule> </prestashop> Any help would be really appreciated! Thank you in advance!
×
×
  • Create New...