Woocommerce: custom price based on user input

后端 未结 4 1524
深忆病人
深忆病人 2021-02-04 08:24

I did not want to post here but I could not find the answer I was looking for and I do not have enough reputation to comment on other VERY SIMILAR questions to get my exact answ

4条回答
  •  名媛妹妹
    2021-02-04 09:08

    [this is a comment] Where do you set the cookie? My first guess is that the refreshes in the same page, using the GET method, and provides a PHP code-block with the $_GET['donation'] to set the cookie with. And then, once the cookie is set, you redirect the page to Woocommerce Cart page to continue the shopping process. If you're doing it easier way, please let me know. Thanks.

    Sorry, I couldn't post this as a comment to the selected answer due to the lack of points.

提交回复
热议问题