Add Staring From to prices

GK User
Wed Mar 15, 2017 6:44 pm
Hello,
Is there a way to add "Starting From" to the prices for items with child items?
For example, have parent items show "Starting From $#.##".
Thank you.
User avatar
Fresh Boarder

teitbite
Mon Mar 20, 2017 1:33 pm
Hi

In what place will You need that ? I mean a product page or in category page ? In a module maybe ? Please tell me the url to example page You wish to have it.
User avatar
Moderator

GK User
Mon Mar 20, 2017 3:22 pm
Ideally, I'd like to have this on both the category and item page.
I had found a way to do this on our old Joomla 1.5 website with the MyStore template, but it has been a very long time and I cannot find how it was done.
User avatar
Fresh Boarder

teitbite
Wed Mar 22, 2017 2:32 pm
Hi

Ok. I'll try. Please send me an access to FTP and url to the example page of category and product with such products to my email [email protected]
User avatar
Moderator

teitbite
Wed Apr 12, 2017 3:16 pm
Hi

Sorry for keeping You wait, but since it was a customisation request I had to take care of other questions first.

I've solved this by adding this small script to /layout/blocks/head.php in template's folder:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.spacer-buy-area').each(function(){
   if( $(this).find('.addtocart-button-disabled').size() > 0 ) {
      $(this).find('.vm-price-value .vm-price-desc').html('Starting From: ');
   }
});

$('.browse-view .product').each(function(){
   if( $(this).find('.addtocart-button-disabled').size() > 0 ) {
      $(this).find('.vm-price-value .vm-price-desc').html('Starting From: ');
   }
});
});})(jQuery)</script>
User avatar
Moderator

GK User
Wed Apr 12, 2017 3:35 pm
Hello,
No apologies necessary at all. I completely understand this request went above the regular scope of support, and it is truly appreciated.
Thank you so much for resolving this request!
User avatar
Fresh Boarder

teitbite
Thu Apr 13, 2017 4:25 pm
Hi

I'm happy it works. Please test it for a little longer and let me know when You will experience problems with it.
User avatar
Moderator


cron