Expedia Affiliate Network
  • Home
  • Affiliate Program
  • Products
  • Developers
  • Travel Agents
  • About EAN
  • Blog
  • Support
  • Login
Open/Close Menu

Easy Tweaks to our Merchandising Widgets

Posted by Louise on April 5, 2011 6 Comments
Tweet
Buffer
merchandising-central-tweakes

With the recent updates made to Merchandising Central it is easier than ever to create customised merchandising widgets for your EAN site. But your customizations don’t have to end when you generate your widget – there are some simple tweaks that can be made to change the appearance of your widget on your page.

We’re going to look at several tweaks all put together on the same widget to create the desired effect. Here is the widget we are starting out with in context on the page:

step1 Easy Tweaks to our Merchandising Widgets

 

As you can see, there are several display issues in the widget:

- The scroll bar on the side is unnecessary

- There is white space at the bottom of the widget

- The state may not be necessary

- The font options may not fit in with the rest of the site

- The USD letters after the price are not needed

- The width of this widget needs adjusting for this particular placement.

By following these instructions, you will be able to change all of these aspects of this widget to make sure that it displays correctly on your site.

 

Getting the perfect format

Let’s start by changing the CSS code to fix the side bar and the white space at the bottom.

The first thing you need to do is use a program such as Firebug to find out the ID of your widget. You can do this by right clicking on the widget and going to “inspect element”. Take the widget ID from Firebug and input it into the code. In this instance, our widget ID is destination-widgets-image-336×280-1 – change the parts of code below where this ID appears to display your widget ID before placing in your CSS file:

#destination-widgets-image-336×280-1 { width: 290px !important; height: 290px !important;}

#destination-widgets-image-336×280-1 li { font: bold 12px Arial !important;}

#destination-widgets-image-336×280-1 div {height: 260px !important;}

Note that you can change the font attributes to whatever you use on your site by adjusting the fields within the second line of code above.

Once you have this code in place, you will see that your widget’s width is adjusted, you have no scroll bar to the side of the widget and you eliminate the white space at the bottom.

Removing the USD currency code

Now let’s look at how to remove the USD letters after the prices. Go to where you have pasted your widget’s code within your site, and place this code below it, remembering to change your widget name where it appears (highlighted):

<script type=”text/javascript”>

for(i=0; idestination-widgets-image-336×280-1“).getElementsByTagName(“li”).length;i++)

{

document.getElementById(“destination-widgets-image-336×280-1“).getElementsByTagName(“li”)[i].innerHTML = document.getElementById(“destination-widgets-image-336×280-1“).getElementsByTagName(“li”)[i].innerHTML.replace(‘USD’,”);

}

</script>

Removing the state from US destinations

The final tweak we will look at is how to remove the state from your US destinations. This code, like the above code to remove the USD, needs to be placed alongside your widget code within your site – again, remember to change the widget name to match that of your widget (highlighted):

<script type=”text/javascript”>

for(i=0; idestination-widgets-image-336×280-1“).getElementsByTagName(“a”).length;i++)

{

if(document.getElementById(“destination-widgets-image-336×280-1“).getElementsByTagName(“a”)[i].innerHTML.indexOf(“img”) > 0)

{}

else

{

document.getElementById(“destination-widgets-image-336×280-1“).getElementsByTagName(“a”)[i].innerHTML = document.getElementById(“destination-widgets-image-336×280-1“).getElementsByTagName(“a”)[i].innerHTML.split(‘,’)[0];

.replace(“area”,””);

}

 

}

</script>

 

step2 1 Easy Tweaks to our Merchandising Widgets

The finished product!

To the right you can see the widget with all of these changes applied.

  • The CSS changes have removed the white space from the bottom of the widget.
  • The scroll bar has been removed with the CSS changed.
  • The width of the widget has been adjusted by the CSS code to better fit with the booking box which appears above.
  • The USD letters at the end of the prices have been removed.
  • The state is no longer displayed for the US destinations.

These are just some of the changes you can make to our merchandising widgets – if you have worked out some of your own cool tweaks to a widget, why not share it below or on one of our Social Media channels?

Happy Merchandising!

Other Posts that may interest you

  • June 13, 2011 — 10 minutes to create RSS feeds for New York hotels (or any other destination) (9)
  • November 3, 2011 — How to create a Hotel Booking Facebook App (2)
  • January 6, 2011 — Why White Label? (12)
  • July 22, 2010 — Some tips for using our Marketing tools (13)
  • August 6, 2010 — How to run an effective travel promotion… for free! (1)
Louise

Written by Louise

6 Responses

  • Borle

    hello,

    i have tested but is not working firefix ok but not ie9

    April 18, 2011 at 4:09 pm
    • jjhuman

      Hi Borle,

      I tested this on a WordPress site in IE9 and it is working for me. Do you have a link to a test page where this is not working in IE9?

      Thanks,
      JJ

      June 14, 2011 at 4:43 pm
  • John B

    How do we implement LESS than ten hotels in the carousel widget? The text reads that we can put “up to” ten hotels in, but when I try it there is an error message requiring me to select a full ten . The feature I am promoting is remote… there just aren’t ten.

    How do I have a carousel widget with less than ten items?

    June 13, 2011 at 10:23 pm
  • jjhuman

    Hi John,

    The first version of the carousel widgets need 10 properties. We will keep this in mind when we add new widgets to Merchandising Central.

    June 14, 2011 at 4:46 pm
  • Enrico Alessi

    I don’t know if this is the rigth pace where I can post a request of support.

    I’m not able to customize the Display Today’s Top Deals slots in Chameleon.
    For e.g., If I select Catania, Etna, Italy on the right search box, no images are showed.

    For your reference; http://www.travelnow.com/templates/357863/

    Thanks in advance for your help

    Best Regards

    Enrico

    August 27, 2011 at 7:41 am
  • Enrico Alessi

    Can you help me in the post reported above?

    Thanks in advance

    Best regards

    Enrico

    September 17, 2011 at 8:08 am

Leave a Reply

Click here to cancel reply.

Connect with us

Travel Affiliates on Google PlusTravel Affiliates on TwitterTravel Affiliates on FacebookTravel Affiliates on LinkedInTravel Affiliates on RSSJoin our Travel Affiliate Network

Categories

  • Best Practices (14)
  • Blog (2)
  • Conferences (6)
  • Content (3)
  • Contests (2)
  • CRO (1)
  • EAN Events (2)
  • Featured (45)
  • Guest Posts (1)
  • Integration (18)
  • Merchandising (8)
  • Mobile (3)
  • Products (2)
  • SEO (32)
  • Social Media (10)
  • Uncategorized (6)
  • Upcoming Events (9)

Top Authors

  • Louise Bell RSS feed (21)
  • Jose Truchado RSS feed (18)
  • Martin Macdonald RSS feed (13)
  • Jeff Slipko RSS feed (5)
  • Ira Ignatova RSS feed (3)
  • Lara Irwin RSS feed (2)
  • Charlie Ranlett RSS feed (2)
  • Kate Fetty RSS feed (2)
  • Lily Cheng RSS feed (2)

Top 10 Posts

  • EAN Wordpress travel site: 10-step guide to creating yours!
  • How to Create and Upload your Header and Footer in Chameleon
  • New URL masking Guidelines
  • Why White Label?
  • Uploading a Header and a Footer for Your Affiliate Site
  • Search boxes that you can brand
  • EAN Insider Info: Our new Hotel API v3
  • EAN's API Made Easy - New White Papers
  • How to Customize your EAN Search Box for a Niche Site I
  • What's in a CNAME?
Private Label & API:
  • Commissions & Payments
  • Integration & Samples
  • Merchandising Resources
  • Support
  • Developers
  • About EAN
  • Program Benefits

© 2002-2012 Expedia Inc. All Rights Reserved. Terms and Conditions and Privacy Policy EAN, ean.com, expediaaffiliate.com, Expedia Affiliate Network logo, ian.com and Interactive Affiliate Network logo are trademarks and/or service marks of Expedia, Inc.