Drupal 7: Notice: Undefined variable: views_php_product_url_with_id in __lambda_func() (line 35 of /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc(207) : runtime-created function)

Date: 
Sunday, November 18, 2018 - 00:00

Notice: Undefined variable: views_php_product_url_with_id in __lambda_func() (line 35 of /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc(207) : runtime-created function)

Project: 
Status: 
completed
Priority: 
normal
Applied Status: 
Website: 
shopperita.com

Comments

Posted by developer7 on 11/18/2018 - 00:02

Code location: mymodule.module
Code to change
if (!empty($fund_id)) {
$product_url_with_id = $product_url . $taglabel . $fund_id;
}
?>
<a href="<?php echo $product_url_with_id; ?>" class="button"><?php echo "Shop" . '&nbsp;' . $seller; ?></a>

New Code:

if (!empty($fund_id)) {
$views_php_product_url_with_id = $product_url . $taglabel . $fund_id;
echo '<a href= "<?php echo "$views_php_product_url_with_id;"?> " class="button">Shop &nbsp;' .$seller.'</a>';
}
?>

https://www.upwork.com/fl/shikharani

Project Management