Posted By

ryarwood on 01/30/12


Tagged

hide client ExpressionEngine marchlab


Versions (?)

EE March Lab Cart Hide


 / Published in: PHP
 

  1. {if last_segment == 'fr' AND segment_3 != 'test-product'}
  2. <style type="text/css">#addToCartButtoninson { display: none; }</style>
  3. {if:else}
  4. <?php
  5. $country = "{exp:geolocation:country}";
  6. if ($country != "US") {
  7. print '<style type="text/css">#addToCartButtoninson { display: none; }</style>';
  8. }
  9. ?>
  10. {/if}

Report this snippet  

You need to login to post a comment.