Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Amazon products at $0 (/showthread.php?t=10499)

bradleyhebdon April 15th, 2014 04:29 PM

Amazon products at $0
 
I've noticed that products from Amazon will revert to $0 if they're not available.

Is there a way to change the $0 to something more meaningful? It's not free after all, it's unavailable/not in stock.

Thanks!
www.vintageshopper.com/store

stefan April 15th, 2014 07:14 PM

Try to replace in The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > Product list module > Theme settings ()

Code:

<div class="prc">
    <small>
      [product.currency mode='sign'][product.price]
    </small>
</div>

with this

Code:

<?php if ($product->price > 0 ) { ?>
 <div class="prc">
    <small>
      [product.currency mode='sign'][product.price]
    </small>
 </div>   
<?php } else { ?>
  Whatever text you want...
<?php } ?>


bradleyhebdon April 15th, 2014 07:16 PM

Thanks Stefan - I have the sale price code inserted --does this change anything?

stefan April 15th, 2014 07:23 PM

No. The sales price code only shows a sales price if merchant has provided a sales price otherwise it shows the regular price.

If regular price is 0 it will still show the 0.

bradleyhebdon April 15th, 2014 07:50 PM

OK thanks, that worked, but it's not reading well.

Is there a way to center like the price on the category pages, and left aligned on the product detail pages?

I don't know php/css so I'm afraid of breaking things here... thanks again for your help.

bradleyhebdon April 15th, 2014 07:53 PM

1 Attachment(s)
PS, that code is also breaking the design - see attached screengrab

Eric April 15th, 2014 07:55 PM

Try this:

HTML Code:

<?php if ($product->price > 0 ) { ?>
 <div class="prc">
    <small>
      [product.currency mode='sign'][product.price]
    </small>
 </div>   
<?php } else { ?>
 <div class="prc">
    <small>
                  Whatever text you want...
    </small>
 </div>   
<?php } ?>


bradleyhebdon April 15th, 2014 08:06 PM

perfect! thanks mate


All times are GMT -5. The time now is 01:15 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.