-
AuthorPosts
-
November 7, 2016 at 7:51 pm #709446
Hi,
I need the following changes at Woocommerce review-order.php:
– Productimage (Thumbnail) left of the productdescription
– Producttitle as link to productdetailpageBecause Enfold use filters instead woocommerce standard templating i hope you can help me?!
Thank you and reagrds
MikeNovember 7, 2016 at 10:27 pm #709509Hi Mike!
Can you please post a screenshot showing the changes you would like to make? You can upload your screenshots on imgur.com or Dropbox public folder and post the links here.
Best regards,
YigitNovember 7, 2016 at 10:47 pm #709514Hi Yigit,
mmmh was that so incomprehensible? Ok, here the screen…
http://www.exusu-design.de/_data/wcc.png
– Productimage (Thumbnail) left of the productdescription
– Producttitle as link to productdetailpageNovember 8, 2016 at 7:37 pm #709941Hi Yigit,
what’s up? Hope you can help me?!
Best Regards
MikeNovember 9, 2016 at 8:21 pm #710429Hi,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Also please provide us admin login.
Best regards,
AndyNovember 10, 2016 at 10:33 am #710618Hi Andy,
I can’t show you a site like that, because the elements in question are not in this site (checkout -> review-order.php).
This is the reason why I need your help! I don’t understand your question. This site you can only see if you put some items to the basket and going to the checkout, the last site of the checkout before you pay (Zahlungspflichtig bestellen) is the site what I mean.Best Regards
MikeNovember 14, 2016 at 2:12 pm #711948Hi,
go and edit your product in question. Scroll down and look for short product description (Kurzbschreibung des Produkts). Add your image there.
Best regards,
AndyNovember 14, 2016 at 2:37 pm #711967Hi,
that can’t be the right way, because then we have at the product detail page two productimages.
I ask you what is to do instead woocommerce templating because this don’t work with enfold?
When enfold will work with the regular woocommerce procedure I have no problem with edit
the review-order.php, but this have with enfold no impact.Regards
MikeNovember 14, 2016 at 2:47 pm #711971… your support wrote here https://kriesi.at/support/topic/enfold-with-child-theme-woocommerce-templating/
” That’s correct, we do not use template files. We use the Woocommerce filters.
You can find them all in the file I mentioned to customcms.”Ok, but then show me please, what I have to do for get the thmbnail and the link into review-order.php.
November 15, 2016 at 9:34 pm #712612Hi,
you could remove the image on product detail page using this code inside Quick CSS field:
.single-product .wp-caption img { display: none; }
Hope this helps!
Best regards,
AndyNovember 15, 2016 at 9:40 pm #712616Hi Andy,
I don’t want remove this image I want work normal and regular with woocommerce
and I can’t do that because Enfold don’ let me do this. Please, tell me what I can do
instead using woocommerce templating – not dirty workarounds!
And: I m not only ask for the thumbnail, I ask for the productlink too.
Read my post correctly please – Thank you!Regards
MikeNovember 17, 2016 at 6:57 am #713382Hi,
It’s true that the modification are added as filters and hooks inside a single file but we didn’t add any customization for the review_order.php file. I reviewed the whole thread but there’s not enough info regarding your requests and the screenshot doesn’t explain anything. I’m sorry for the confusion. What do you want to do with the thumbnails and title link in the review order page?
Best regards,
IsmaelNovember 17, 2016 at 11:21 am #713508Hi Ismael,
I need the Thumbnail exactly at the place what the screenshot (#709514) is showing, also the Link in the title.
What I will do with this? The Thumbnail is the thumbnail and the link goes to the product detail page.
I need this because in germany we have to do that when we want don’t go in trouble with law.
In fact you can’t use woocommerce with enfold in germany for onlineshops.Ok, you don’t customize the review_order.php but you make that I can’t do that in the normal way!
So! Why we have to wrote lines and lines instead you tell me what I have to do please!!regards
MikeNovember 22, 2016 at 8:13 am #715147Hi,
Please create a directory in the child theme folder called “woocommerce” > “checkout”, copy the review-order.php file and then replace it with the following code.
// http://pastebin.com/umMFvkSn
Best regards,
IsmaelNovember 22, 2016 at 9:19 pm #715578Hi Ismael,
thank you. I do that but nothing happens, the outpu is the same?!Best Regards
MikeNovember 23, 2016 at 11:42 am #715842Hi Ismael
This is funny: I wrote you that Woocommerce templating not work, your buddys wrote that woocommerce templating not work because Enlofd use filters (see reply 711971 of this thread) and you sende me an solution with woocommerce templating?
Regards
MikeNovember 27, 2016 at 5:56 am #717359Hi,
I’m very sorry for the confusion. You can actually override the templates as described in the link (https://docs.woocommerce.com/document/template-structure/). However, the theme configures the templates via hooks and filters. Do you have a cache plugin? Make sure that you’re not looking on a cached version of the site. The modification above should create a new column for the product thumbnail. We added this block of codes:
<td class="product-thumb"> <?php $thumb = get_the_post_thumbnail_url($_product->id, 'shop_catalog'); ?> <?php if(!empty($thumb)) { echo "<img src='{$thumb}' width='80px' height='100px'/>"; } ?></td>
Best regards,
IsmaelDecember 6, 2016 at 1:45 pm #720978Hi Ismael,
I don’t have an cache plugin and I try exactly what the link describe – before I open an ticket here!
And it doesn’t matter what I do – nothing change in review-order.php. Funny is that the page before
(Cash) have an column with productimages! Ca you please check this, it is verry important for thr
german market – please!Best regards
MikeDecember 9, 2016 at 5:49 am #722318Hi,
It is actually working. Please add some products then view the checkout page.
// https://www.feentueren.de/kasse/
Screenshot. http://i.imgur.com/7M16Fab.png
Best regards,
IsmaelDecember 9, 2016 at 9:14 am #722346Hi Ismael,
yes, this is what I wrote in my last post: “Funny is that the page before (Cash) have an
column with productimages!”, but this is the page before the page what I mean.
Klick on /kasse/ the button in the left bottom “Bestellung abschicken”, and this is the
page what I mean.Thank you so mutch, that you build this in “Kasse”, it is not wrong and can stay there,
but we need this also at the next page – this is what I wrote all the time “review-order.php”.
And we need at this page the producttitle (it the first line in the column “PRODUKT”)
as link to the correspondingly productdetailpage.Maybe you can tell me what I can copy from your fix to review-order.php?
Thank you again and best regards
MikeDecember 12, 2016 at 7:59 am #722993Hi!
I’m sorry but I’m a bit confused with your last post. If you want to create another column, look for this code.
<th class="product-name"><?php _e( 'Image', 'woocommerce' ); ?></th> <th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th> <th class="product-total"><?php _e( 'Total', 'woocommerce' ); ?></th>
I added the “Image” column there. Just copy the pattern and then create rows (td) inside the loop. Example:
<td class="product-thumb"> <?php $thumb = get_the_post_thumbnail_url($_product->id, 'shop_catalog'); ?> <?php if(!empty($thumb)) { echo "<img src='{$thumb}' width='80px' height='100px'/>"; } ?></td>
Regards,
IsmaelDecember 12, 2016 at 9:00 pm #723364Hi Ismael,
no, I need exactly your column, but in an other page than “kasse”.
That is what I want to explain you – in “kasse” it is ok too, but originally I need this column in the page *after* “kasse”.Thank you and reagrds
MikeDecember 14, 2016 at 7:17 am #724141Hi,
Thank you for the update. Please modify the templates > order > order-details.php and the order-details-item.php file. In the order-details.php file, look for this code:
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th> <th class="product-total"><?php _e( 'Total', 'woocommerce' ); ?></th>
Above, those lines, add this one:
<th class="product-thumb"><?php _e( 'Image', 'woocommerce' ); ?></th>
Edit the order-details-item.php, look for this code:
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
Below, add the image markup:
<td class="product-thumb"> <?php $thumb = get_the_post_thumbnail_url($item['product_id'], 'shop_catalog'); ?> <?php if(!empty($thumb)) { echo "<img src='{$thumb}' width='80px' height='100px'/>"; } ?></td>
Best regards,
IsmaelDecember 14, 2016 at 2:13 pm #724267Hi Ismael,
soryy, I do that at the Stagingsystem and it don’t work!
Try it: http://testsystem.feentueren.deI use /wp-content/themes/feentueren/woocommerce/order/order-details.php and /wp-content/themes/feentueren/woocommerce/order/order-details.php
What is wrong?
Best Regards
MikeDecember 14, 2016 at 2:15 pm #724269Send you some private data…
December 16, 2016 at 5:41 am #725160Hey!
I use /wp-content/themes/feentueren/woocommerce/order/order-details.php and /wp-content/themes/feentueren/woocommerce/order/order-details.php
Please check the instructions carefully. You need to edit two template files. One is the “order-details.php file and the other is the “order-details-item.php” file. And don’t forget to remove the browser cache or hard refresh before checking the page.
Regards,
IsmaelDecember 16, 2016 at 9:50 am #725229Hi Ismael,
sure, I am edit both files, I only wrote wrong in my post. And yes, I know that I have to refresh the cache
but it *don’t* work. I send you all private data that you need, why you don’t show me the solution,
it seems easy for you?!
Thank you and regards
MikeDecember 16, 2016 at 11:40 am #725246This is really bad! I am waiting for an solution since 5 Weeks! I try all suggestions you made an nothing happens!
And then Ismael, you will tell me it is all so easy and the only thing is that I forget to refresh the cache –
I think you will kidding me? But I can’t laugh because this is many time for me – 5 Weeks!
Please, fix this problem. It is good for you too because without this fix your shoptemplates are not right for the german market.December 22, 2016 at 4:03 am #727362Hi,
We are very sorry for the late response. We added the modifications in the child theme folder.
Best regards,
IsmaelDecember 22, 2016 at 12:43 pm #727496Hi Ismael,
I don’t know what you added in the child theme folder, but I can’t see any productimages at
this Checkoput page?! -> See Screenshot: http://www.exusu-design.de/_data/screen02.pngRegards
Mike -
AuthorPosts
- You must be logged in to reply to this topic.