Quote from: fotonio on Yesterday at 19:18:54 PMHi,If I change it to white;black;red how will I charge a custom price for certain colors?
In the custom field configuration in the Default value insert the colors separated with ;
white;black;red
and Is a list? select As admin list
Quote from: GJC Web Design on March 12, 2024, 12:56:42 PMtemp fix till this is in the core:
components\com_virtuemart\helpers\shopfunctionsf.php ~ line 1256
currently$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required'));
change to$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required',null,null,null));
QuoteBtw all Select. must be select. So just lowercase
class plgSystemVD_matomo extends JPlugin {
function plgVmConfirmedOrder($cart, $order) {
//do something
$returnValues = vDispatcher::trigger('plgVmConfirmedOrder', array(&$this, $orderDetails));
$returnValues = vDispatcher::trigger('onplgVmConfirmedOrder', array(&$this, $orderDetails));
class plgSystemVD_matomo extends JPlugin {
function onplgVmConfirmedOrder($cart, $order) {
//do something
case "webp":
if( function_exists("imagecreatefromwebp") ) {
$orig_img = imagecreatefromwebp($filename);
} else {
$app = JFactory::getApplication();
$app->enqueueMessage('This server does NOT suppport auto generating Thumbnails by webp');
return false;
}
break;
case "webp":
if (strtolower(substr($fileout,strlen($fileout)-5,5))!=".webp")
$fileout .= ".webp";
return imagewebp($new_img,$fileout);
break;
case "webp":
header ("Content-type: image/webp");
return imagewebp($new_img);
break;
if($file_extension == 'jpg' || $file_extension == 'jpeg' || $file_extension == 'png' || $file_extension == 'gif'){
if($file_extension == 'jpg' || $file_extension == 'jpeg' || $file_extension == 'png' || $file_extension == 'gif' || $file_extension == 'webp'){
Quote from: Milbo on October 16, 2023, 20:52:17 PMWhich customfield do you use ? the String type? maybe a screenshot of the used customfield prototype.For some reason, I am not getting email notifications for replies in this forum. I hope you can still help me.
$product = $this->product;
$productModel = VmModel::getModel('product');
$calculator = clone calculationHelper::getInstance();
$children = $productModel->getProductChildIds($product->virtuemart_product_id);
$cheapestPrice = $product->prices;
foreach ($children as $child)
{
$child = $productModel->getProduct($child);
if (!$child->published)
{
continue;
}
$childPrices = $calculator->getProductPrices($child, true, 1);
if (!empty($childPrices['product_price']) && (is_null($product->prices['product_price']) || $product->prices['product_price'] > $childPrices['product_price']))
{
$cheapestPrice = $childPrices;
}
}
echo $cheapestPrice['product_price'];
Page created in 0.080 seconds with 12 queries.