Our client wants to display the designed product before add to cart performed ie to view the preview of designed product in product detail page like the screenshot attached. Is that possible?
So no one found a solution to get this preview before ? :(
Thanks,
S
Sushant Sanjay Khadilkar
said
over 8 years ago
Actually alert is not getting inside if(jQuery('.fpd-lightbox-enabled').size() > 0) function...so thats why it is not working, have you added code in if(jQuery('.fpd-lightbox-enabled').size() > 0) function?
S
Sushant Sanjay Khadilkar
said
over 8 years ago
Hi,
I added alert but alert is not showing anything. It will be not reaching into the function.
Is it working on you end? can you share screenshot of the frontend where you have implemented?
Thanks, Sushant
K
Krishna Priya
said
over 8 years ago
Hi,
var src3=fancyProductDesigner.getViewsDataURL('png', 'transparent', 0.3)[0]; alert(src3); //ADD THIS ALERT AND CHECK THE CONTENT OF SRC3
The above alert should show base 64 png image data. We have to add this in img src.
S
Sushant Sanjay Khadilkar
said
over 8 years ago
Hi Krishna,
I also added your code but its not working from my side. I added which you have mentioned correctly.
do you have any other solution?
Thanks,
Sushant
Efbi
said
over 8 years ago
Hi
Yes it's what I do but it seems it's in class-frontend-product.php that the problem is
in the file where woocommerce template single.php or in variable.php => wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php before the code
Krishna Priya
Hi there,
Our client wants to display the designed product before add to cart performed ie to view the preview of designed product in product detail page like the screenshot attached. Is that possible?
Hi,
variable.php =>Check line no 121
class-frontend-product.php => Check line no 334 to 341
1 person has this question
- Oldest First
- Popular
- Newest First
Sorted by Newest FirstEfbi
Hi Sushant,
While waiting for an answer, i do this :
in the "woocommerce/templates/notices/sucess.php" file.
When the user add to the cart the product, he'll see the preview in the sucess box..
It's the only thing i found till now.
Best regards,
RINVIL Jean
Sushant Sanjay Khadilkar
I need preview option. I also added separate feature request 1 Month ago. But nobody has replied for my request.
Thanks,
Sushant
Efbi
Hi,
So nobody need preview ?...
Efbi
Hi,
Thanks for your update but it still doesn't work for me.
I compared our 2 files, and it looks like different
Which version you have? I join my files here
Sushant Sanjay Khadilkar
Regards,
Sushant
Krishna Priya
Hi,
variable.php =>Check line no 121
class-frontend-product.php => Check line no 334 to 341
Efbi
Hi,
So no one found a solution to get this preview before ? :(
Thanks,
Sushant Sanjay Khadilkar
Sushant Sanjay Khadilkar
I added alert but alert is not showing anything. It will be not reaching into the function.
Is it working on you end? can you share screenshot of the frontend where you have implemented?
Thanks,
Sushant
Krishna Priya
var src3=fancyProductDesigner.getViewsDataURL('png', 'transparent', 0.3)[0];
alert(src3); //ADD THIS ALERT AND CHECK THE CONTENT OF SRC3
The above alert should show base 64 png image data. We have to add this in img src.
Sushant Sanjay Khadilkar
Hi Krishna,
I also added your code but its not working from my side. I added which you have mentioned correctly.
do you have any other solution?
Thanks,
Sushant
Efbi
Krishna Priya
You have to add
<div id="design_preview_div" style="display:none" > <label for="design_preview_label" class="labelmargin">Design Preview: </label> <img id="design_preview" /> </div>
in the file where woocommerce template single.php or in variable.php => wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php before the code
<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
Efbi
I exactly put it here
Efbi
Hi ! Thanks for the answer, but where do you exactly put your code ?
Because it doesn't work for me
-
Adding Fancy Products to Categories
-
Shortcode for specfic product designer
-
What theme is recommended to use with FPD ?
-
Exclude Image from export
-
Google Font Family adds extras
-
Floating Dialog box
-
Uploadzone not working
-
Image transparency like in T-shirt demo
-
How do I get clipart
-
What does the LOAD button do / what is it for?
See all 2207 topics