Top Menu

Welcome, Guest

TOPIC: Make a button link on preview image

Make a button link on preview image 15 Feb 2016 10:58 #450

Hi.
In need make a button link on preview image
please see full description in below screenshot

->> screenshot full


Link.jpg
Last Edit: 15 Feb 2016 14:13 by Ehsan.
The administrator has disabled public write access.

Make a button link on preview image 15 Feb 2016 19:57 #454

This is VirtueMart or wooCommerce component you are talking about ?
The administrator has disabled public write access.

Make a button link on preview image 15 Feb 2016 22:07 #458

Woocommmerce
The administrator has disabled public write access.

Make a button link on preview image 17 Feb 2016 13:46 #464

You could add you linking somewhere here:
,afterSelection:function(r, c, r_end, c_end){
			var img = DG.getDataAtRowProp(r,'image');
			if(img){
				if(img.src){
					ProductPreviewBox.css("background-image","url(" + img.src + ")");	
				}else
					ProductPreviewBox.css("background-image","");					
			}else
				ProductPreviewBox.css("background-image","");	

			ProductPreviewBox.attr('row', r);
			
			ProductPreviewBox_title.text("#" + (DG.getDataAtRowProp(r,'sku') || "") + "" + (DG.getDataAtRowProp(r,'name') || ""));
The administrator has disabled public write access.

Make a button link on preview image 17 Feb 2016 20:41 #466

Thank you for reply.
but I dont understand.
I put a sample link in there you said. but not work and page was white.

my link is same below:

<a href="mywebsite.com/edit/?pid=<?php echo ( $post->ID ); ?>">Edit</a>
section red color must call "Product ID"
What code should replace with it that call Product ID?

Thanks in advanced.
The administrator has disabled public write access.

Make a button link on preview image 18 Feb 2016 12:09 #468

Hi,

you can get product id like this:

var p_id = DG.getDataAtRowProp(r,'id');
The administrator has disabled public write access.

Make a button link on preview image 18 Feb 2016 22:37 #470

Im Sorry, because I'm a amateur
I could not used your help.
I tried different way but not worked.
would you please write to me complete code for my request.
I need each product link to edit product page.

my Address link is :
mywebsite.com/edit/?pid=Product ID
Thank you.

-->Screenshot
Last Edit: 19 Feb 2016 09:10 by Ehsan.
The administrator has disabled public write access.
Time to create page: 0.039 seconds