WordCamp Europe 2023 Special Offer - Get 30% OFF any edition with coupon: WC30

My Account

Forums

Home Forums General File path in woocommerce order

Viewing 2 reply threads
  • Author
    Posts
    • #163985
      Arnaud ROY Burotica
      Participant

      Hi,
      I use wsform for woocommerce, I created a product with several fields including an upload file
      How can I have the uploader file path in the order, instead of the file name?
      Best regard

    • #166637
      Kurt Eriksen
      Participant

      Would also like to know

    • #171157
      Arnaud ROY Burotica
      Participant

      To do this, I modified the file ws-form-“woocommerce/includes/classes/class-ws-form-action-woocommerce.php” line 2278

      Replace

      $value_array[] = $file_name . ( ( 'file' == $submit_meta['type'] ) ? ( ' (' . $file_size . ')' ) : '' );

      by

      $value_array[] = 'https://' . $baseurl . '/wp-content/uploads/' . $file_path;

Viewing 2 reply threads
  • You must be logged in to reply to this topic.

Login