Page 5 of 5 FirstFirst ... 345
Results 41 to 49 of 49
  1. #41
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: sold out sm button position

    Just one more question about this sold out image, I promise :)

    Is it possible to somehow make the image clickable with the URL of the image it's overlying? Or put another way, is it possible for the sold out image to be visible as it is now, but z-indexed or transparent in a way that allows you to click the product image behind it?

  2. #42
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: sold out sm button position

    product_listing.php

    PHP Code:
    // bof - SOLD OUT on Image
             
    if ($listing->fields['products_quantity'] <= 0) {
                            
    $lc_text .= '<div class="sold_out_on_image"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '"><img  src="http://www.dystynction.com/includes/templates/freetemplate2/images/button_sold_out_sm_mine.gif"></a></div>';
              }
    // eof - SOLD OUT on Image 
    ~Steve~

  3. #43
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: sold out sm button position

    specials_index.php

    PHP Code:
        $soldoutimage = ($specials_index->fields['products_quantity'] > 0) ? '' '<div class="sold_out_on_image"><a href="'
         
    zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' $productsInCategory[$specials_index->fields['products_id']] . '&products_id='
         
    $specials_index->fields['products_id'])
         . 
    '"><img src="http://www.dystynction.com/includes/templates/freetemplate2/images/button_sold_out_sm_mine.gif"></a></div>'
    ~Steve~

  4. #44
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: sold out sm button position

    Try one modification at a time and test thoroughly before trying the next...


    \includes\templates\custom\templates\tpl_modules_products_all_listing.php

    PHP Code:
        $soldoutimage = ($products_all->fields['products_quantity'] > 0) ? '' '<div class="sold_out_on_image"><a href="'
         
    .zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'cPath=' zen_get_generated_category_path_rev($products_all->fields['master_categories_id']) . '&products_id=' $products_all->fields['products_id']). '"><img src="http://www.dystynction.com/includes/templates/freetemplate2/images/button_sold_out_sm_mine.gif"></a></div>'

    \includes\templates\custom\templates\tpl_modules_products_new_listing.php
    PHP Code:
        $soldoutimage = ($products_new->fields['products_quantity'] > 0) ? '' '<div class="sold_out_on_image"><a href="'
         
    zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' $products_new->fields['products_id']) .  '"><img src="http://www.dystynction.com/includes/templates/freetemplate2/images/button_sold_out_sm_mine.gif"></a></div>'
    ~Steve~

  5. #45
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: sold out sm button position

    Steve, are you human or droid?!?! You never cease to amaze me, I just don't know how you could come up with something like the above and get it 100% pixel perfect yet again?!?!

    I'm racking my brains now, trying to come up with a problem for you, just to see you at work, not because I need it.

    I keep using this word for you , amazing!!

    Do you make a living from web design then?

  6. #46
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: sold out sm button position

    You have some good ideas and your site is a very good example of what can be achieved.

    nope, I dont make a living at web design... i know i should give it a go tho.. cos i reaaaaaalllly dont want to go to work tomorrow. :-(
    ~Steve~

  7. #47
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: sold out sm button position

    Hi Steve,

    I hope they're paying you well for working Sundays! Do you at least work in some sort of programming or is this just purely a hobby?

    Thanks for the compliments on my site, coming from you that means a lot. I'm a complete amateur so you can imagine the learning curve I've gone through building this site from scratch. It's been fun though and I can see why you find it so interesting and challenging :-)

  8. #48
    Join Date
    Jun 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: sold out sm button position

    great post!!
    I'm just having a problem though trying to implement this into the default tpl_product_info_display.php file...

    Any suggestions?

    Thanks in advance!!

  9. #49
    Join Date
    Jun 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: sold out sm button position

    ok I got that part... :)

    Is there a way to place this on the sidebox under "New Products" ?

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. sold out button
    By dmagic in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2014, 07:45 AM
  2. Sold Out Button says "Sold Out SM".... Sophy Blue
    By huntleybill in forum Addon Templates
    Replies: 3
    Last Post: 28 Nov 2011, 05:32 AM
  3. Chenge the "sold out" button position
    By ilmarchez in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 15 Apr 2011, 10:52 PM
  4. SOLD-OUT graphic /outline /position
    By rdcast in forum General Questions
    Replies: 2
    Last Post: 9 Apr 2011, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg