Problem with custom fields on virtuemart 2 on Boutique
- GK User
- Thu Jan 31, 2013 11:33 pm
Hi.
I have installed Boutique template with virtuemart 2. I have a Custom Field that I want to show it after the price but can make it happen.
When i used ontop it appears but on top of the product picture, and onbot apprears too but at the end of the product details. But when i set it to normal or leave it on blank nothings happens. It doesn't appears.
Can you please help me out with this issue.
My virtuemart version is still the one that comes with the quickstar version of your template.
I have installed Boutique template with virtuemart 2. I have a Custom Field that I want to show it after the price but can make it happen.
When i used ontop it appears but on top of the product picture, and onbot apprears too but at the end of the product details. But when i set it to normal or leave it on blank nothings happens. It doesn't appears.
Can you please help me out with this issue.
My virtuemart version is still the one that comes with the quickstar version of your template.
-
- Fresh Boarder
- GK User
- Fri Feb 01, 2013 3:31 am
Ok i found hot to put my layout position on the virtuemart forum an it worked. Now i have to apply the same CSS that the Sale Price to this Custom Field.
How can i do this?
The custom field is:
<?php // Custom Field Precio
if (!empty($this->product->customfieldsSorted['precio'])) { $this->position='precio'; echo $this->loadTemplate('customfields'); } ?>
How can i do this?
The custom field is:
<?php // Custom Field Precio
if (!empty($this->product->customfieldsSorted['precio'])) { $this->position='precio'; echo $this->loadTemplate('customfields'); } ?>
-
- Fresh Boarder
- teitbite
- Fri Feb 01, 2013 7:46 pm
Hi
can You pleas eshow me both examples? I'll be able to check what code to use and how to modifie it to be used in a new place.
can You pleas eshow me both examples? I'll be able to check what code to use and how to modifie it to be used in a new place.
-
- Moderator
- GK User
- Fri Feb 01, 2013 8:38 pm
On my product detail i want to have the same CSS of the Sale Price (#1 on the Image attachment) for my custom field (#2 on the Image attachment)
The code of the Sale Price and te Custom Field is on templates/gk_boutique/html/com_virtuemart/productdetails/default.php:
The code of the Sale Price and te Custom Field is on templates/gk_boutique/html/com_virtuemart/productdetails/default.php:
- Code: Select all
// Product Price
if ($this->show_prices) { ?>
<div class="product-price" id="productPrice<?php echo $this->product->virtuemart_product_id ?>">
<?php
if ($this->product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) {
echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):</strong>";
} else {
echo "<strong>" . JText::_ ( '' ) . "</strong>"; //COM_VIRTUEMART_CART_PRICE Se borro de aqui
}
if ($this->product->prices['salesPrice']<=0 and VmConfig::get('askprice', 1)) {
?>
<a class="ask-a-question bold" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
<?php
}
if ($this->showBasePrice) {
echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices);
if (round($this->product->prices['basePrice'],$this->currency->_priceConfig['basePriceVariant'][1]) != $this->product->prices['basePriceVariant']) {
echo $this->currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices);
}
}
echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices );
echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices );
echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices );
echo $this->currency->createPriceDiv('unitPrice', 'COM_VIRTUEMART_PRODUCT_UNITPRICE', $this->product->prices);
?>
<?php // Custom Field Precio
if (!empty($this->product->customfieldsSorted['precio'])) { $this->position='precio'; echo $this->loadTemplate('customfields'); } ?>
</div>
<?php } ?>
-
- Fresh Boarder
- teitbite
- Fri Feb 01, 2013 8:56 pm
Hi
There is only one vm.css file loaded in both cases, which means that it's selectors which are missing and probably new classes needs to be created. Please show me this page exactly so I'll be able to check it with firebug and tell the solution.
There is only one vm.css file loaded in both cases, which means that it's selectors which are missing and probably new classes needs to be created. Please show me this page exactly so I'll be able to check it with firebug and tell the solution.
-
- Moderator
5 posts
• Page 1 of 1