Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 15th, 2014, 04:29 PM
bradleyhebdon bradleyhebdon is offline
 
Join Date: Mar 2014
Posts: 160
Default 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
  #2  
Old April 15th, 2014, 07:14 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

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 } ?>
  #3  
Old April 15th, 2014, 07:16 PM
bradleyhebdon bradleyhebdon is offline
 
Join Date: Mar 2014
Posts: 160
Default

Thanks Stefan - I have the sale price code inserted --does this change anything?
  #4  
Old April 15th, 2014, 07:23 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

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.
  #5  
Old April 15th, 2014, 07:50 PM
bradleyhebdon bradleyhebdon is offline
 
Join Date: Mar 2014
Posts: 160
Default

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.
  #6  
Old April 15th, 2014, 07:53 PM
bradleyhebdon bradleyhebdon is offline
 
Join Date: Mar 2014
Posts: 160
Default

PS, that code is also breaking the design - see attached screengrab
Attached Thumbnails
Click image for larger version

Name:	Women s Vintage Fashion   Vintage Shopper.png
Views:	132
Size:	97.0 KB
ID:	685  
  #7  
Old April 15th, 2014, 07:55 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

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 } ?>
  #8  
Old April 15th, 2014, 08:06 PM
bradleyhebdon bradleyhebdon is offline
 
Join Date: Mar 2014
Posts: 160
Default

perfect! thanks mate
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do You Add Products From Amazon? goose Questions 3 May 17th, 2011 04:02 PM
Adding amazon products bigcroc Questions 1 May 10th, 2011 04:51 AM
How to get Amazon products on my website? andrew11 Questions 8 February 21st, 2011 06:44 PM


All times are GMT -5. The time now is 12:55 PM.


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