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 January 9th, 2013, 04:20 AM
Sternberg Sternberg is offline
 
Join Date: Jan 2012
Posts: 39
Default Text/HTML for specific Merchant

Hi,

Is it possible to add a specific text/HTML-code to a page if the merchant = x? I'm looking for a solution similar to this: /show...77&postcount=3

If merchant is x: bla bla bla
else: bla 2 bla
  #2  
Old January 9th, 2013, 09:49 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Yes, this is possible. You can do something like:

PHP Code:
<?php if ($product->merchant_id == '123') : ?>
    Text about merchant 123.
<?php elseif ($product->merchant_id == '456') : ?>
    Text about merchant 456.
<?php elseif ($product->merchant_id == '789') : ?>
    Text about merchant 789.
<?php endif; ?>
You can only perform this within the Product list module loop or in the Product Details module.

Eric
  #3  
Old January 9th, 2013, 02:06 PM
Sternberg Sternberg is offline
 
Join Date: Jan 2012
Posts: 39
Default

Thanks

I tried this:
<?php if ($product->merchant_id == '33977') : ?>
1234567
<?php endif; ?>

But it doesn't seem to work?
  #4  
Old January 9th, 2013, 06:28 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

What's the network and name of the merchant you want to display a message for?

Also, what View are you attempting to add this code to?
  #5  
Old January 10th, 2013, 03:20 AM
Sternberg Sternberg is offline
 
Join Date: Jan 2012
Posts: 39
Default

The merchant is Halens from Adrecord.

I'm trying to do this in the Product list view.
  #6  
Old January 10th, 2013, 09:43 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

The code is working for me. Can you submit the entire code you're using in your Product list module?

Eric
  #7  
Old January 10th, 2013, 12:03 PM
Sternberg Sternberg is offline
 
Join Date: Jan 2012
Posts: 39
Default

I tried to insert in the product detail view and now it is working. Thanks
 


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
Geo Targeting to one specific merchant. cgarvey Questions 3 May 15th, 2011 05:55 AM
showing products from specific merchant only sylviathewitch Questions 1 March 18th, 2011 07:36 AM
Custom text box at top of specific category? lbuilta59 Questions 4 January 31st, 2011 06:10 PM


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


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