- Posts: 8
- Thank you received: 0
Prices and Rating
-
toad78
Inactive member - Topic Author
- New Member
Less
More
12 years 2 months ago #22624
by toad78
Replied by toad78 on topic Prices and Rating
Okay, I've managed to get that working.
One last thing: how do I adapt the module to display the rating stars?
One last thing: how do I adapt the module to display the rating stars?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 months ago #22628
by ivan.milic
Replied by ivan.milic on topic Prices and Rating
You would have to read information about number of stars to display , construct HTML to echo and echo that some-ware where price div we talked about is echoed.
Please Log in to join the conversation.
-
toad78
Inactive member - Topic Author
- New Member
Less
More
- Posts: 8
- Thank you received: 0
12 years 2 months ago #22663
by toad78
Replied by toad78 on topic Prices and Rating
I've noticed a few other things, which you can view yourself ('YOU MAY ALSO LIKE') to see the issues I'm encountering
here
.
#1: Sometimes when the scroller is first loaded, it only shows 3 out of the 4 items it is set up to display and the scroller does not run. But when you refresh the page, the scroller will then load all of the items and then run.
#2: When an item has no image associated with it, the 'noimage.gif' does not display. Rather the 'alt' text displays. How can this be fixed?
#3: I'm still unsure of how to integrate the rating code within your extension. Further assistance, would be greatly appreciated.
Thank you.
#1: Sometimes when the scroller is first loaded, it only shows 3 out of the 4 items it is set up to display and the scroller does not run. But when you refresh the page, the scroller will then load all of the items and then run.
#2: When an item has no image associated with it, the 'noimage.gif' does not display. Rather the 'alt' text displays. How can this be fixed?
#3: I'm still unsure of how to integrate the rating code within your extension. Further assistance, would be greatly appreciated.
Thank you.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 months ago #22669
by ivan.milic
Replied by ivan.milic on topic Prices and Rating
Enable jquery in vm scroller module. That happens because jquery reference is pointing to external site ajax.google.com....
Please Log in to join the conversation.
-
toad78
Inactive member - Topic Author
- New Member
Less
More
- Posts: 8
- Thank you received: 0
12 years 2 months ago #23026
by toad78
Replied by toad78 on topic Prices and Rating
Thank you, ivan.milic, that seems to have done the trick.
I'm trying to make modifications to the pricing I'm using to put into your module. I've come with this, which works in the VM category and product details, but I'm not quite sure how to adapt with your module.
Is it possible to modify this code you handed to me to what I'm trying to do?
I'm trying to make modifications to the pricing I'm using to put into your module. I've come with this, which works in the VM category and product details, but I'm not quite sure how to adapt with your module.
Code:
if (round($product->prices['priceWithoutTax'],$this->currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) {
echo '<span class="price-crossed" >' . $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices) . "</span>"; } else {
echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices) . "<br />"; }
if (round($product->prices['salesPrice'],$this->currency->_priceConfig['priceWithoutTax'][1]) != $product->prices['priceWithoutTax']) {
echo $this->currency->createPriceDiv('salesPrice','COM_VIRTUEMART_PRODUCT_SALESPRICE',$product->prices);
}
Is it possible to modify this code you handed to me to what I'm trying to do?
Code:
$price = $pr->prices['salesPrice'];
$price = '<span class="price-crossed"><div class="PricepriceWithoutTax PricebasePriceWithTax">Retail: '.'<span class="PricebasePriceWithTax">'.$price_object->pricetext.round($pr->prices,2).'</span>'.'</div></span>'.'<div class="PricesalesPrice">Sale: $'.sprintf("%1.2f",$pr->prices['salesPrice']).'</div>';
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 months ago #23031
by ivan.milic
Replied by ivan.milic on topic Prices and Rating
what is the problem with your code?
Please Log in to join the conversation.
Time to create page: 0.105 seconds