Woocommerce Cart page

Released
14 July, 2020 04:58:55
Michael
Topics: 1
Messages: 58
Hi,
Pre-Sale Question:
I have tried your plugin and it works great except I cannot print the cart page from woocommerce.
Is there any way to solve this?
Thanks for your help.
14 July, 2020 05:40:40
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Unfortunately E2Pdf doesn't have yet native WooCommerce support and it's not possible to output this information at this moment.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
4 September, 2020 00:54:30
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

We just released WooCommerce beta release with 1.12.00 version.

You can apply update now by turning on updates from "e2pdf.com". Option can be enabled at "E2Pdf" -> "Settings" -> "Release Candidate Builds" (screenshot 1). After enabling this option you must be able check for updates at "Dashboard" -> "Updates" and update plugin as usual.

Keep in mind please that this version is under beta now so it's recommended to have always up to date backup before any further updates from E2Pdf.com until it will be released under WordPress plugin directory.

After updating plugin to 1.12.00 it must be WooCommerce option while creating E2Pdf Template.

To add PDF to WooCommerce Cart page, it's need:

1. Create E2Pdf Template with extension "WooCommerce" and item "Cart" (screenshot 2).

2. Add "HTML" block with [e2pdf-wc-cart key="cart"] value by DBL click on newly created html object OR set value via "Right Mouse" click -> "Properties" -> "Value" OR set value via "Visual Mapper" ("Right Mouse Click" -> "Map") (screenshot 3)

3. Connect newly created Template to cart by going to "Settings" -> "WooCommerce" -> "Cart Template" (screenshot 4)

P.S. "Auto PDF" and documentation currently not available for WooCommerce extension, however it will be fixed in nearest time.

P.P.S. "Visual Mapper" currently also working, however it can be missed some additional needed shortcodes.

P.P.P.S. If you will face any problems with showing any information, or need some modification, let us know please, so we can include fix or add needed functionality the fastest we can.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 02:18:16
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

You are using too small HTML block along with [e2pdf-wc-cart key="cart"] shortcode, make it please the size bigger as it will respect it's size and will output cart products there.

If you could have a lot of products in cart which can overflow first page, you continue content to other page creating another "HTML" block, and set "Parent" to first "HTML" block ID and "Hide Page (if empty)" option, to hide page if content will not be overflowed in first block. (https://www.youtube.com/watch?v=SZNxz_JZ3d0).

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 02:57:50
Oleksandr
Support
Topics: 6
Messages: 2054
Please check for updates and update plugin to 1.12.01 to see if it will be showed product as it seems that the problem that content too big in one row.

If your shop can be accessed by us, you can also share the link where we can test it also from our side.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 03:02:47
Oleksandr
Support
Topics: 6
Messages: 2054
As an option, you can also try to reduce font-size under "Right Mouse Click" -> "Properties" on "HTML" block to see if it's the problem with content size. Screenshot attached.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 05:44:54
Oleksandr
Support
Topics: 6
Messages: 2054
Here is main product table header classes, it will be added soon to our docs the structure and features that can be set via CSS:

e2pdf-wc-cart-products-header-image, e2pdf-wc-cart-products-header-name, e2pdf-wc-cart-products-header-sku, e2pdf-wc-cart-products-header-quantity, e2pdf-wc-cart-products-header-price, e2pdf-wc-cart-products-header-subtotal

So to change the width for "Product" name column, it's need to add to CSS section code below, screenshot attached:

.e2pdf-wc-cart-products-header-name {
width: 50%;
}

P.S. Currently it's possible to set "width" only in percents.

As about ACF, do you have ACF fields connected to cart page directly? If so, it must be possible to use it as [e2pdf-wc-cart key="acf_field_key"], we will add it to Visual Mapper in nearest time.

If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 05:52:20
Oleksandr
Support
Topics: 6
Messages: 2054
Here also short additional shortcode attributes to modify [e2pdf-wc-cart key="cart"] shortcode.

Show attributes to hide cols for products table:
show_image, show_sku, show_quantity, show_price, show_subtotal, show_meta

Show attributes for totals table:
show_totals_subtotal, show_totals_coupons, show_totals_shipping, show_totals_shipping_destination, show_totals_shipping_package, show_totals_fees, show_totals_taxes, show_totals_total

The values is "true" or "false", default - "true"
Example: [e2pdf-wc-cart key="cart" show_image="false"]

Image size can be set via "image_size" attribute.
Example: [e2pdf-wc-cart key="cart" image_size="64x64"]
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 08:23:31
Oleksandr
Support
Topics: 6
Messages: 2054
Currently if it's working with WordPress extension and [e2pdf-download] shortcode placed on cart page, you must be able to use: [e2pdf-wc-cart key="firmenname"] and [e2pdf-wc-cart key="kundennummer"] inside "Cart" E2Pdf Template.

Let us know please if it will work like this. Thank you.

We remain at your service.


If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 September, 2020 08:32:45
Michael
Topics: 1
Messages: 58
Hi,
yes this works!!

Your support is really extremely good!
I think that's all for today ;)

kind regards,
8 September, 2020 02:48:28
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

You must be able to use such CSS:

.e2pdf-wc-cart-product-image {
vertical-align: top;
}

As about ACF image, it could be that it's saved as "Attachmend ID", if so, it must be converted to image by using such shortcode:

[e2pdf-wc-cart key="logo" attachment_image_url="true" size="full"], default size is set as "thumbnail", if "size" attribute not defined.

If it will not work, try to create just simple "textarea" with shortcode: [e2pdf-wc-cart key="logo"] to see which output you get. You can also choose image directly in E2Pdf Template, by "Right" Mouse Click on "Image" object and click on "Choose Image".

P.S. We also released an update 1.12.02 where were added "Meta Keys" to "Visual Mapper".

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
8 September, 2020 03:44:43
Oleksandr
Support
Topics: 6
Messages: 2054
It looks like saved as "attahment_id". Try please to put shortcode inside "textfield" to see output:

[e2pdf-wc-cart key="logo" attachment_image_url="true" size="full"]
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
8 September, 2020 04:40:16
Oleksandr
Support
Topics: 6
Messages: 2054
Shortcode works correctly and it generates right output, however it looks like issue is with image. It has type JFIF and not JPG, which can't be rendered currently by our engine. We will need to check if we can add its support.

Meanwhile can you try to use such shortcode on image object:

[e2pdf-wc-cart key="logo" attachment_image_url="true" size="thumbnail"]

In this case image must be converted by wordpress to thumbnail and it could be that it will convert it to correct format.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
9 September, 2020 03:33:21
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

We just released a hot fix under 1.12.03 version. Also there is an issue with image size, as "3D Product configurator for WooCommerce" output image without any classes with 255 width and 255 height. Unfortunately E2Pdf currently doesn't support nested CSS as .e2pdf-wc-cart-product-image img to set width only for this images.

So currently it's possible to fix it in 2 ways:

- Apply CSS to all images inside HTML block:
img {
width: 32px;
height: 32px;
}

- or "Search" and "Replace" width and height via [e2pdf-format-output] shortcode.

So we currently applied 2nd solution on staging size and modified "cart" shortcode in your E2Pdf Template to:

[e2pdf-format-output search='width="255"|||height="255"' replace='width="32"|||height="32"'][e2pdf-wc-cart key="cart" show_quantity="false"][/e2pdf-format-output]

P.S. We currently checking if we can find other easier solution and we will let you know if it will be any news. Sorry for inconvenience.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
9 September, 2020 04:29:10
Oleksandr
Support
Topics: 6
Messages: 2054
Thanks a lot. We really appreciate it. Just Wordpress Plugins Directory is just perfect.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
11 September, 2020 04:08:21
Michael
Topics: 1
Messages: 58
Hi,
short question, can I add the "cart pdf download-button" to the checkout page too?
The printout should be the same as on the cart page.

Thanks in advance,
Michael
11 September, 2020 06:14:14
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

You must be able to add action to output button by adding it to functions.php as in example: https://codeshare.io/5Xz8zk

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
11 September, 2020 06:21:44
Michael
Topics: 1
Messages: 58
Hi,

many thanks for the fast help, works perfectly!!
16 September, 2020 05:48:51
Michael
Topics: 1
Messages: 58
Hi,
I have another short question ...
Is it possible to generate a global "header" and "footer" for pdf files?
I would use ACF fields.
Or do I have to insert a "header" and "footer" inside every page?
16 September, 2020 06:09:42
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Each page has individual design so yes, "header" and "footer" must be added to each page separately.

However you can add "header" and "footer" to first page -> Select created elements with mouse -> "Right Mouse Click" -> "Copy" -> Go to 2nd page and "Right Mouse Click" on free space -> "Past in Place". It will copy all selected elements and will put on same positions.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
16 September, 2020 06:26:38
Michael
Topics: 1
Messages: 58
Thanks, that is was I did. I thought there is maybe another solution which I missed ;)
21 September, 2020 10:07:59
Michael
Topics: 1
Messages: 58
Hi,
a short question, is it possible to use a form for only logged-in users and a second form for logged-out users?

thanks in advance!
21 September, 2020 23:17:54
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Do you mean different templates inside Cart for logged in and logged out users? If so, then you must disable "WooCommerce" Cart Template inside "E2Pdf" -> "Settings" -> "WooCommerce" (screenshot attached) and add buttons manually via hooks to functions.php: https://codeshare.io/2KN09z. It will check if user logged in or not and depending on it will set template_id.

P.S. You must also remove previous hook added (https://codeshare.io/5Xz8zk)
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
21 September, 2020 23:28:45
Michael
Topics: 1
Messages: 58
Hi,
thanks for this solution. I really appreciate your support!!
23 September, 2020 03:48:59
Michael
Topics: 1
Messages: 58
Hi,

I changed all fields in a template to font: Arial und I get the error: UnsupportedOperationException: The coverage format 256 is not yet supported.

Any Ideas?
23 September, 2020 05:07:57
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Arial font has subsets that currently doesn't supported by E2Pdf for non english language, however we turned off its check and this subsets must be just ignored. Can you check please now if you will get exception or it will be any issues with showing any characters? Thank you.

We remain at your service.


If you appreciate our support , we would really appreciate your feedback at WordPress.org!
23 September, 2020 05:47:42
Michael
Topics: 1
Messages: 58
Hi,
it works now without problems, also characters like Ü,ö,ä are have no issues.
Thanks!
26 September, 2020 07:07:59
Michael
Topics: 1
Messages: 58
Hi,
sorry, I'm annoying again ;)

I have a CSS question:

I have added to my cart the following lines of CSS:

.product-name b::after {
content: ": ";
}
which adds a":' (see attached image).

I like to add the same to the PDF and I thought if I add:

.e2pdf-wc-cart-product-name b::after {
content: ": ";
}

this should be the same, but it does not work.
What is the name of the right class?

Thanks,



27 September, 2020 00:42:45
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Unfortunately E2Pdf currently doesn't support "content" and pseudo elements like "after" as CSS.

We are currently checking if it's possible to solve task with different way. As soon as it will be any news we will let you know. Sorry for inconvenince.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
27 September, 2020 01:11:27
Michael
Topics: 1
Messages: 58
Hi,
thanks for the information. I will wait if you find another solution...

regards,
28 September, 2020 05:54:20
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

1. It looks like can be possible to add ":" just by copying wp-content/plugins/expivi/templates/cart/product_item_details.phtml to your: wp-content/themes/current_theme/expivi/cart/product_item_details.phtml and modify its source. It must affect as your cart in html as in PDF.

2. If it's still not solution, another way can be to modify directly product name with function added to functions.php: https://codeshare.io/5RgxLB , it will replace all </b> tags with :</b>

It will also make changes to html and pdf.

P.S. Both solutions must work if you are still using "expivi" plugin.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
28 September, 2020 07:05:29
Michael
Topics: 1
Messages: 58
Hi,

the function works perfectly!!
Thanks again for your excellent support.

regards,
6 October, 2020 23:20:01
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Can you please confirm, do you need to extract single characteristics for each single item inside cart?

For example you need to output 1st characteristic for 1st cart item, 1st characteristic for 2nd cart item, etc?

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 October, 2020 01:14:11
Oleksandr
Support
Topics: 6
Messages: 2054
Thank you. Yes, it's now fully clear. Unfortunately it's not possible to complete without too much coding at this moment.

However we have in our TODO list possibility which must allow extracting separate data for each cart item. We plan to add its support on next week and this functionality must allow to do above operations with some filters. Wait please for update and we will provide you with solution. We will do our best to release it the fastest we can.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
15 October, 2020 01:11:54
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Unfrotunately it seems update with needed functionality will be delayed due tests and ongoing bug fixes till the start of next weekend. We will notify you as soon as it will be possible to update to version so you can complete the task. Sorry for inconvenice.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
23 October, 2020 01:47:15
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Please enable updates from E2Pdf.com at "E2Pdf" -> "Settings" and update plugin to "1.13.04".

After update:
- Add filter to your functions.php or as php snippet https://codeshare.io/5MrQyW

- Inside E2Pdf Template Cart use such shortcodes:
[e2pdf-wc-product key="cart_response_hook" index="0" attribute_name="Türhöhe in mm"]
[e2pdf-wc-product key="cart_response_hook" index="0" attribute_name="Türbreite in mm"]

This shortcodes must output just values.

* index - is the ID of added product
* attirbute_name - to search value inside xpv configuration

We are still working on tests on current release as we expected some more functionality to be added for woocommerce extension, so we just included part of changes in 1.13.04 and if it will be anything wrong or will not work, let us know please. Thank you.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
23 October, 2020 02:01:24
Oleksandr
Support
Topics: 6
Messages: 2054
If it will output values correctly, you can check updated example code which will make calculation of 2 values if attribute_name="math_turhohe_turbaite"

https://codeshare.io/GLLzyV

Usage inside E2Pdf Template:
[e2pdf-wc-product key="cart_response_hook" index="0" attribute_name="math_turhohe_turbaite"]


If you appreciate our support , we would really appreciate your feedback at WordPress.org!
25 October, 2020 00:34:40
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

If you didn't yet update plugin, please keep attention that latest RC build is 1.13.06, just be sure that you enabled updates from E2Pdf.com and updated to latest version so function can work properly.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 December, 2020 04:36:58
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

It looks like the issue that $cart_item which is used under function not defined.

Do you use 'montage' / 'k_rabatt' fields under cart page? If so, try to modify your code to get field value as:

$wb_price_type = get_field( 'montage', '123');

* where '123' is Cart page ID.

However if you have separate values for each product it seems you need to iterate over products in cart and get correct 'product_id'/'variation_id' and get field value as follows:

https://codeshare.io/5z8V77

Keep in mind please that current code example will detect only product_id and not variation as we are not sure if you use different values for variation_id, however we commented the code which will detect also 'variation_id' if it's set. Also we added '$cart' to function attribute to define it.

Let us know please if any solution will work for you. Thank you.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 December, 2020 06:20:55
Oleksandr
Support
Topics: 6
Messages: 2054
In theory it's possible to follow with manual PHP hook as in example above for logged-in users when download link generated, however PHP knowledge will be required:

https://codeshare.io/2KN09z

You will need to get cart items, iterate over them (even if it will be one product in cart) as it stored as array, get the option / variation id / field value of cart item and based on this define Template ID.

P.S. We are working on global IF conditions however we do not have any ETA when this functionality will be available.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 December, 2020 07:50:53
Oleksandr
Support
Topics: 6
Messages: 2054
Here is the code example:

https://codeshare.io/5R9XeB

It will get attributes of cart item, compare it with needed value and will set Template ID depending on check. We are not sure if your value stored as attribute so it will be need to check on your website directly. We commented out var_dump and die() functions which can be helpful to debug which data added to cart_item.

We can provide paid support however we are trying to avoid it due current overload. We charge $120 per hour for coding support. When you decide that you need it, let us know please, so we can provide you with information how to submit needed details.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
8 December, 2020 07:02:24
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Submit please support ticket here: https://e2pdf.com/support/request with access details to WP Admin Dashboard and FTP access details. Also attach please screenshot with product parameter on which it will be template id dependency.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
14 December, 2020 03:36:49
Michael
Topics: 1
Messages: 58
Hi,

a short, maybe easy question:
I have a page with an image as a background and a lot of fields in the foreground,
is it possible to "lock" the image that it does not move if I accendially click on it?

Thanks,
14 December, 2020 04:14:34
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Unfortunately such feature not available. It's good idea to have this feature, so we added it to our "Roadmap". As a temporary solution you can try just "Hide" background image via "Right Mouse Click" on it -> "Hide" while Template Edit.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
14 December, 2020 04:18:05
Michael
Topics: 1
Messages: 58
Hi,
thanks, a good idea for now!
4 January, 2021 02:44:22
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Unfortunately it will not be possible to style it exactly as on 1st screenshot as E2Pdf currently doesn't support separate border. Borders can be applied now only to whole table. We are working on adding this possibility, but do not yet have any ETA when its support will be available.

You can try currently to apply this styles as example:

.e2pdf-wc-cart-total-label {
font-weight: bold;
}

.e2pdf-wc-cart-totals {
width: 50%;
border: 1px solid #eeeeee;
float: right;
}

P.S. Keep in mind please that "float" support was added only in latest RC version, so you need to "Turn on Updates from E2Pdf" via "E2Pdf" -> "Settings" and update plugin version to 1.13.23.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
27 April, 2021 00:07:57
Michael
Topics: 1
Messages: 58
Hi,
I have hopefully a simple question.
I will buy the YITH Barcodes plugin. With some small modifications, it will show a Barcode for configured products on my cart page.
How can I implement the Barcode also in the PDF?

Thanks in advance,
27 April, 2021 01:08:14
Oleksandr
Support
Topics: 6
Messages: 2054
Hi,

Latest RC version of E2Pdf has built-in Barcode generator, however it was not yet tested with real "scanners" and we are not sure if it will fit your needs as it's separate element. Screenshot attached.

As about YITH Barcodes plugin unfortunately it was not yet tested however from the documentation we see that it generates barcode "image" directly and it's stored as meta key so it must be possible to output generated image inside PDF. Depending on how you want to show it, inside "HTML" or separate element it could be require to use some hooks.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
27 April, 2021 02:33:56
Oleksandr
Support
Topics: 6
Messages: 2054
"Value" must be the number identifier by which scanner can identify and from this number it will be generated the barcode. Do you have number stored under product meta key? If so, you must be able to use something like this inside E2Pdf Template to get meta key:

[e2pdf-wc-product key="bar_code_meta_key" meta="true" index="0"]

For example if you need to generate it from "SKU" it will be:

[e2pdf-wc-product key="_sku" meta="true" index="0"]

* index is the identifier of added product to Cart.

P.S. Barcode will work currently only inside PDF. We are preparing big update for WooCommerce extension and we will review also possibility to make "barcode" shortcode work globally, however we do not yet have any ETA as there are a lot of core changes of WooCommerce extension and we must be sure to have backward compatibility before release.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!