• Resolved Eelco Deuling

    (@eelco-deuling)


    Dear everybody,

    I use eShop for an educational website where no products are sold, but where schools can arrange a cultural program (sorry: English is not my native language so I hope this makes sense).

    I do have a very large shop-extras.php file with more than 60 added fields.

    I have all prices and quantity related items hidden in the front-end, but they are displayed in the emails if I use the {CART} tag.

    I did find out I can add modified “default” items in my shop-extras.php file: for instance:
    $this_email = str_replace('{ITEM}', $array['transid'], $this_email); gives me *only* the transaction ID (that is a part of the {CART}).

    But I could not find how to display *only* the products.

    I would appreciate help: I am quite desperate 🙂

    https://wordpress.org/plugins/eshop/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The sample eshop-extras plugin code is well commented. Are you deliberately adding these fields to the emails using eshop_extras_emailtags()? They aren’t added unless you add them to that function.

    Thread Starter Eelco Deuling

    (@eelco-deuling)

    I do use this on purpose: the standard {CART} tag displays on my emails the following information:

    Transaction id: TEST-198560327853a9aff1464e2
    flops 1234 : a 
    
    Quantity: 1
    Price: €0,00
    
    Shipping Charge: €0,00
    
    Total €0,00
    
    Order placed on 2014-06-24 17:05:00

    But I only want to see the Transaction id and the product(s): in this case flops 1234 : a

    The solution described above (adding custom fields for info displayed in the {CART} tag in my eshop-extras.php file), is not a usual thing to do, but it works and it leaves the eShop plugin itself untouched.

    Thread Starter Eelco Deuling

    (@eelco-deuling)

    …but if there is another way to do this: I am fine with all suggestions 🙂

    Thread Starter Eelco Deuling

    (@eelco-deuling)

    For now, I don’t think it is possible to do it outside the main eShop plugin.
    So I did it in the eShop plugin itself (in the cart-functions.php file, around line 1230).

    I know this is dangerous because it breaks when eShop itself is updated, and I know I use a plugin to do something that is not intended by the author.

    …but then again, WordPress itself was intended to be used as a blog platform once 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘eShop emails: modify {CART} details’ is closed to new replies.