Support » Plugin: Product Fields, Addons and Price Calculator for WooCommerce » importing items and hiding price if not validated

  • I’m looking to use this plugin to offer installation services at prices based on zip code. I have a spread sheet of over 32,000 zip codes. I tried using:
    if{zip_num}== 12345 or 12346 or 12347 then price = +123
    if{zip_num}== 12348 or 12349 or 12350 then price = +234
    if{zip_num}== 12351 or 12352 or 12353 then price = +50

    But it doesn’t work. I can only make this work with each item as a single condition. Is there a way to combine all possible zip code values for specific price? Is there a way to import the 32,000 conditions? Also, is there a way to HIDE the total if equal to $0 (meaning, a valid zip code wasn’t entered)?

Viewing 1 replies (of 1 total)
  • Plugin Author Krzysztof Piątkowski

    (@wckalkulator)

    @skigirl1369 Hi, it could be possible with Global Parameter and JSON object to hold { 12345: 123, 12346: 123 … } but it will be a big object. I don’t know if will work.

    Better you should create your own function. WCK user input data will be in cart item meta data.

Viewing 1 replies (of 1 total)
  • The topic ‘importing items and hiding price if not validated’ is closed to new replies.