Hi,
Im wondering if its possible to modify the little popup prices on the images in Storebox? I want to show:
Was: (BASE PRICE)
Now: (Sale Price)
In different font sizes.
Thanks,
Fionn
.gkNspPM-ProductGallery .gkImage .gkImgOverlay div.PricebasePriceWithTax {
font-family: Arial;
}
.gkNspPM-ProductGallery .gkImage .gkImgOverlay div.PricetaxAmount {
font-family: Tahoma;
}
$news_price = '';
$news_price.= $currency->createPriceDiv('basepricewithtax','',$product->prices);
.gkNspPM-ProductGallery .gkPrice > div.salesPrice {
color: #ff7e57;
font-size: 18px;
font-weight: bold;
line-height: 24px;
}
.gkNspPM-ProductGallery .gkImage .gkImgOverlay div.salesPrice {
font-size: 24px;
font-weight: bold;
line-height: 32px;
margin-top: 44px;
text-align: center;
}
print '<pre>';
var_dump( $product->prices );
print '</pre>';
.gkImgOverlay div.PricesalesPrice {
background: none repeat scroll 0 0 transparent;
}
teitbite wrote:Hi
Please make a dump of prices to see which are available to display.
- Code: Select all
print '<pre>';
var_dump( $product->prices );
print '</pre>';
Use this code to remove white background:
- Code: Select all
.gkImgOverlay div.PricesalesPrice {
background: none repeat scroll 0 0 transparent;
}
print '<pre>';
var_dump( $product->prices );
print '</pre>';
array(18) {
["costPrice"]=>
string(10) "1218.69900"
["basePrice"]=>
float(1218.699)
["basePriceVariant"]=>
float(1218.699)
["basePriceWithTax"]=>
float(1499)
["discountedPriceWithoutTax"]=>
float(0)
["priceBeforeTax"]=>
float(1218.699)
["salesPrice"]=>
string(10) "1299.00000"
["taxAmount"]=>
float(243)
["salesPriceWithDiscount"]=>
float(0)
["salesPriceTemp"]=>
float(1499)
["unitPrice"]=>
float(0)
["priceWithoutTax"]=>
float(1256)
["discountAmount"]=>
float(200)
["variantModification"]=>
float(0)
["DBTax"]=>
array(0) {
}
["Tax"]=>
array(0) {
}
["VatTax"]=>
array(1) {
[1]=>
array(8) {
[0]=>
string(7) "VAT 23%"
[1]=>
string(7) "23.0000"
[2]=>
string(2) "+%"
[3]=>
string(1) "1"
[4]=>
string(2) "47"
[5]=>
string(0) ""
[6]=>
string(1) "1"
[7]=>
string(1) "1"
}
}
["DATax"]=>
array(0) {
}
}
.gkImgOverlay div.PricesalesPrice {
background: none repeat scroll 0 0 transparent;
text-align: center;
padding: 40px 0;
}