• matteotrip

    (@matteotrip)


    HI!
    I used the plugin to show in real time the engravings that can be made on my products.
    I would like the user’s choices to also be shown in the product order summary.
    I can pay for this kind of implementation, no problem.

    Could you help me?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author kontur

    (@kontur)

    Hey Matteo,

    I think this could be done with WooCommerce product meta. On the product page you would need to store the user selections whenever it is changed, and when a product is added the selected font should be saved along with the product to the order.

    I am currently not available for contracting since I am too busy with other projects. If you have a web developer who is familiar with WordPress and WooCommerce feel free to have her/him contact me for further instructions and I try help them implement this.

    Best,
    Johannes

    Thread Starter matteotrip

    (@matteotrip)

    Hi Kontur,

    thanks for the reply!

    If you have directions for me on how to enter meta, you can tell me directly. I am a developer, but this is the first time I have to enter such a feature.
    Thanks.

    Plugin Author kontur

    (@kontur)

    Hey Matteo,

    what I suggested is my hunch of what could work or what I would look into. In more detail you would need to keep track in javascript of the current user font selection. On the plugin repo there is documentation of the javascript events it fires. You probably want to get the current font on “fontsampler.event.afterinit” and then update it whenever “fontsampler.event.activatefont” fires.
    WooCommerce has a couple of javascript events also, you probably want to use the “adding_to_cart” or “add_to_cart” to listen for when a user adds something to the cart. I don’t know if you cant pass in product meta data in that event directly, or if you need to send another AJAX request to your theme with the product id the user added, and specifically send the font name and on the backend of the AJAX call add the meta info to the customer’s cart item. Here is a tutorial with some different approaches to adding the meta data, but the essential bit is this method by which you can add any kind of meta data to a WC_OrderItem — if the meta entry does not start with a _ it will automatically be added to the order confirmation, order backend etc.

    Again, above is not a concrete instruction, but how I would start to go about it ??

    Thread Starter matteotrip

    (@matteotrip)

    It seems like a great starting point.

    Thanks!

    Plugin Author kontur

    (@kontur)

    Great to hear,

    I’ll leave this topic open for a while. If you have more questions specific to Fontsampler feel free to ping me here. I’d be curious to learn how you get on ??

    -J

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce’ is closed to new replies.