Pulling Out The Last Quantity Price

Questions and answers about ShopSite Custom Templates

Pulling Out The Last Quantity Price

Postby tmlogo » Thu Jul 25, 2019 8:13 am

I was looking to be able to add something like "As Low as $xx.xx" to some of my product templates. This number would be the last column price in the quantity pricing. Is there a way to do this? Thanks in Advance
tmlogo
 
Posts: 110
Joined: Tue Jun 17, 2008 3:00 pm

Re: Pulling Out The Last Quantity Price

Postby cyoung » Fri Jul 26, 2019 9:57 am

There isn't a built in template that does this , it could be added with JavaScript.

It would be something like this:

<!-- place this DIV where you want the "starting at" price to be displayed -->
[-- IF PRODUCT.QuantityPricing --][-- IF PRODUCT.DisplayQuantityPricing --]<div id="low-price"></div>[-- END_IF --][-- END_IF --]

<!-- note, this code only works if the quantity pricing DOES NOT have a comment/description field...so the last row is always a pricing row -->
<script>
var lowprc = ss_jQuery(".quantity-price table tr:last-child td:last-child").html();
ss_jQuery("#high-end").html(lowprc);
</script>
cyoung
 
Posts: 141
Joined: Wed Nov 09, 2016 11:01 am

Re: Pulling Out The Last Quantity Price

Postby tmlogo » Mon Jul 29, 2019 8:45 am

Thank you. I will give it a try
tmlogo
 
Posts: 110
Joined: Tue Jun 17, 2008 3:00 pm

Re: Pulling Out The Last Quantity Price

Postby tmlogo » Mon Jul 29, 2019 2:55 pm

Unfortunately I was not able to get it to work. Any further suggestions? Thanks
tmlogo
 
Posts: 110
Joined: Tue Jun 17, 2008 3:00 pm

Re: Pulling Out The Last Quantity Price

Postby EstJoe » Tue Aug 13, 2019 4:45 am

tmlogo wrote:I was looking to be able to add something like "As Low as $xx.xx" to some of my product templates. This number would be the last column price in the quantity pricing. Is there a way to do this? Thanks in Advance


Have you already created the code or you expecting new one?
Milesweb.co.uk
EstJoe
 
Posts: 1
Joined: Thu Mar 07, 2019 6:18 am
Location: UK

Re: Pulling Out The Last Quantity Price

Postby tmlogo » Tue Aug 13, 2019 5:28 am

EstJoe wrote:
tmlogo wrote:I was looking to be able to add something like "As Low as $xx.xx" to some of my product templates. This number would be the last column price in the quantity pricing. Is there a way to do this? Thanks in Advance


Have you already created the code or you expecting new one?


I’m all set. Thank you
tmlogo
 
Posts: 110
Joined: Tue Jun 17, 2008 3:00 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 12 guests