jirikolarik

jirikolarik

Founder of @werein and web application developer using React, TypeScript, node, graphQL...

Member Since 8 years ago

Glencore, Zurich, Switzerland

Experience Points
18
follower
Lessons Completed
27
follow
Lessons Completed
169
stars
Best Reply Awards
12
repos

358 contributions in the last year

Pinned
⚡ Extremely simple boilerplate, easiest you can find, for React application including all the necessary tools: Flow | React 16 | redux | babel 6 | webpack 3 | css-modules | jest | enzyme | express + optional: sass/scss
⚡ Extra simple - JS Only boilerplate for React Native including all the necessary tools: React Native | React Native Experimental Navigation | Redux | Babel6 | Jest | Eslint
⚡ React Native date / daterange picker and calendar
⚡ Prestashop API for Ruby including low-level API access and Prestashop fields converted into PORO
⚡ Edit fields easily with X-Editable helper
⚡ Simple Streamio FFmpeg wrapper for CarrierWave uploader
Activity
Oct
27
1 month ago
Activity icon
issue

jirikolarik issue uber/baseweb

jirikolarik
jirikolarik

Readonly attribute doesn't exist on Input

I need to disable on screen keyboard (iPad/iOS) on a datepicker. This can be achieved by passing readonly attribute to an Input showing the date.

Current Behavior

Readonly attribute isn't available on an Input.

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly

Expected Behavior

Readonly attribute is available to an input.

Your Environment

Tech Version
Base UI v10.5.0
React
browser
  • I have searched the issues of this repository and believe that this is not a duplicate.
Oct
25
1 month ago
Activity icon
issue

jirikolarik issue werein/prestashop

jirikolarik
jirikolarik

Order with multiple cart_items

Hi,

I know that you was already surprised that someone is still using that repository but yeah, and I have new problem.

I want to create an order so I'm using Prestashop::Api::Converter.build to create proper payload but I have a problem when I want to build couple the same XML elements like under cart_items:

<cart_rows>
   <cart_row/>
   <cart_row/>
   <cart_row/>
   <cart_row/>
</cart_rows>

So I tried to pass array as items, but it doesn't work :(

cart_rows = []
      order.order_products.each do |product|
        cart_rows.push({
           id_product: product.product_id,
           quantity: product.qty
         })
      end

{
          id_shop: 1,
          id_customer: customer[:customer][:id],
          id_currency: currency_id,
          id_lang: language_id,
          id_address_delivery: address[:address][:id],
          id_address_invoice: address[:address][:id],
          id_carrier: carrier_id,
          secure_key: customer[:customer][:secure_key],
          associations: {
              cart_rows: cart_rows
          }
      }

And of course I cant create hash with the same symbols, do you have any solution for that?